diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/404.php b/wp-content/upgrade-temp-backup/themes/generatepress/404.php deleted file mode 100644 index 2ad86c7e..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/404.php +++ /dev/null @@ -1,46 +0,0 @@ - - -
> -
> - -
-
- - - -
> -
> - -
-
- - div { - padding: 12px; -} -#generate_layout_options_meta_box .inside { - padding: 0; - margin:0; -} -#generate-meta-box-container .generate-meta-box-menu { - position: relative; - float: left; - list-style: none; - width: 180px; - line-height: 1em; - margin: 0 0 -1px 0; - padding: 0; - background-color: #fafafa; - border-right: 1px solid #eee; - box-sizing: border-box; -} - -#generate-meta-box-container .generate-meta-box-menu li { - display: block; - position: relative; - margin: 0; - padding: 0; - line-height: 20px; -} - -#generate-meta-box-container .generate-meta-box-menu li a { - display: block; - margin: 0; - padding: 10px; - line-height: 20px !important; - text-decoration: none; - border-bottom: 1px solid #eee; - box-shadow: none; -} - -#generate-meta-box-container .generate-meta-box-content { - float: left; - width: calc( 100% - 180px ); - margin-left: -1px; - border-left: 1px solid #eee; - background-color: #fff; -} - -#generate-meta-box-container { - overflow: hidden; - background: #fff; - background: linear-gradient( 90deg, #fafafa 0%, #fafafa 180px, #fff 180px, #fff 100% ); -} - -#generate-meta-box-container .current { - position: relative; - font-weight: bold; - background-color: #e0e0e0; -} - -#generate-meta-box-container .current a { - color: #555; -} - -#generate-meta-box-container label { - font-weight: 400; - display: inline-block; - margin-bottom: 3px; -} - - -.generate-meta-box-menu li { - display: inline-block; -} - -#side-sortables #generate-meta-box-container .generate-meta-box-menu, -#side-sortables #generate-meta-box-container .generate-meta-box-content { - float: none; - width: 100%; - margin: 0; - border: 0; -} - -.edit-post-meta-boxes-area.is-side .generate-meta-box-content > div { - display: block !important; -} - -.edit-post-meta-boxes-area.is-side .generate-meta-box-menu { - display: none; -} - -#generate-meta-box-container label { - display: none; -} - -.edit-post-meta-boxes-area.is-side #generate-meta-box-container label.generate-layout-metabox-section-title { - display: block; - font-weight: 500; - margin-bottom: 5px; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/admin/style.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/admin/style.css deleted file mode 100644 index 4d3e6dbf..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/admin/style.css +++ /dev/null @@ -1,232 +0,0 @@ -.js .generate-metabox.postbox .hndle { - cursor: inherit; -} - -.generate-metabox .clear { - padding-top: 10px; - margin-bottom: 10px; - border-bottom: 1px solid #DDD; -} - -.generate-metabox .clear:after { - content: ""; - display: table; - clear: both; -} - -.customize-button a.button, -.customize-button a.button:visited { - font-size: 25px; - padding: 10px 20px; - line-height: normal; - height: auto; - width: 100%; - text-align: center; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - box-sizing: border-box; -} - -.customize-button { - margin-bottom: 40px; -} - -.addon-container:before, -.addon-container:after { - content: "."; - display: block; - overflow: hidden; - visibility: hidden; - font-size: 0; - line-height: 0; - width: 0; - height: 0; -} -.addon-container:after { - clear: both; -} -.premium-addons .gp-clear { - margin: 0 !important; - border: 0; - padding: 0 !important; -} -.premium-addons .add-on.gp-clear { - padding: 15px !important; - margin: 0 !important; - -moz-box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) inset; - -webkit-box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) inset; - box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) inset; -} -.premium-addons .add-on:last-child { - border: 0 !important; -} -.addon-action { - float: right; - clear: right; -} -.addon-name { - float: left; -} - -.addon-name a { - text-decoration: none; - font-weight: bold; -} - -/* New admin */ -.clearfix:after, -.clearfix:before { - content: "."; - display: block; - overflow: hidden; - visibility: hidden; - font-size: 0; - line-height: 0; - width: 0; - height: 0; -} - -.clearfix:after { - clear: both; -} - -.gp-container { - max-width: 1200px; - margin: 0 auto; - padding: 0 20px; - box-sizing: border-box; -} - -.gp-container a { - text-decoration: none; -} - -.appearance_page_generate-options #wpcontent, -.appearance_page_generate-options #wpbody-content .metabox-holder { - padding: 0; -} - -.appearance_page_generate-options .wrap { - margin-top: 0; - margin-left: 0; - margin-right: 0; -} - -.gp-masthead { - background-color: #fff; - text-align: center; - box-shadow: 0 1px 0 rgba(200,215,225,0.5), 0 1px 2px #DDD; - margin-bottom: 40px; - padding: 20px; -} - -.gp-container .postbox { - box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #DDD; - border: 0; - min-width: initial; - margin-bottom: 40px; -} - -.gp-masthead .gp-title { - float: left; -} - -.gp-masthead .gp-title a { - font-size: 20px; - color: #000; - font-weight: 500; -} - -.gp-masthead .gp-masthead-links { - float: right; -} - -.gp-masthead-links a { - display: inline-block; - margin: 0 10px; -} - -.gp-masthead .gp-version { - display: inline-block; - background: #EFEFEF; - padding: 1px 3px; - border-radius: 2px; - font-size: 11px; - vertical-align: top; - margin-left: 5px; -} - -.gp-options-footer { - text-align: center; -} - -.popular-articles ul { - list-style-type: disc; - margin-left: 20px; - margin-bottom: 0; -} - -.popular-articles .hndle a { - float:right; - font-size:13px; -} - -#gen-delete p:last-child { - margin-bottom: 0; -} - -.start-customizing li { - margin-bottom: 15px; -} - -.start-customizing li span { - padding-right: 5px; -} - -.start-customizing ul { - border-bottom: 1px solid #ddd; -} - -.gp-container .postbox > h3.hndle { - padding-top: 12px; - padding-bottom: 12px; -} - -@media (min-width: 768px) { - .hide-on-desktop { - display: none; - } - - .grid-70 { - float: left; - width: 70%; - box-sizing: border-box; - padding-right: 20px; - } - - .grid-30 { - float: left; - width: 30%; - box-sizing: border-box; - padding-left: 20px; - } - - .grid-parent { - padding-left: 0; - padding-right: 0; - } -} - -@media (max-width: 767px) { - .hide-on-mobile { - display: none; - } - .gp-masthead .gp-masthead-links, - .gp-masthead .gp-title { - float: none; - text-align: center; - } - .gp-masthead .gp-title { - margin-bottom: 20px; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/all.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/all.css deleted file mode 100644 index 8e83c950..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/all.css +++ /dev/null @@ -1,2573 +0,0 @@ -.grid-container:before, .grid-15:before, .grid-20:before, .grid-25:before, .grid-30:before, .grid-35:before, .grid-40:before, .grid-45:before, .grid-50:before, .grid-55:before, .grid-60:before, .grid-65:before, .grid-70:before, .grid-75:before, .grid-80:before, .grid-85:before, .grid-100:before, .grid-33:before, .grid-66:before, [class*="mobile-grid-"]:before, [class*="tablet-grid-"]:before, .clearfix:before, -.grid-container:after, -.grid-15:after, -.grid-20:after, -.grid-25:after, -.grid-30:after, -.grid-35:after, -.grid-40:after, -.grid-45:after, -.grid-50:after, -.grid-55:after, -.grid-60:after, -.grid-65:after, -.grid-70:after, -.grid-75:after, -.grid-80:after, -.grid-85:after, -.grid-100:after, -.grid-33:after, -.grid-66:after, -[class*="mobile-grid-"]:after, -[class*="tablet-grid-"]:after, -.clearfix:after { - content: "."; - display: block; - overflow: hidden; - visibility: hidden; - font-size: 0; - line-height: 0; - width: 0; - height: 0; -} - -.grid-container:after, .grid-15:after, .grid-20:after, .grid-25:after, .grid-30:after, .grid-35:after, .grid-40:after, .grid-45:after, .grid-50:after, .grid-55:after, .grid-60:after, .grid-65:after, .grid-70:after, .grid-75:after, .grid-80:after, .grid-85:after, .grid-90:after, .grid-95:after, .grid-100:after, .grid-33:after, .grid-66:after, [class*="mobile-grid-"]:after, [class*="tablet-grid-"]:after, .clearfix:after { - clear: both; -} - -.grid-container { - margin-left: auto; - margin-right: auto; - max-width: 1200px; - padding-left: 10px; - padding-right: 10px; -} - -.grid-15, .grid-20, .grid-25, .grid-30, .grid-35, .grid-40, .grid-45, .grid-50, .grid-55, .grid-60, .grid-65, .grid-70, .grid-75, .grid-80, .grid-85, .grid-90, .grid-95, .grid-100, .grid-33, .grid-66, [class*="mobile-grid-"], [class*="tablet-grid-"] { - box-sizing: border-box; - padding-left: 10px; - padding-right: 10px; -} - -.grid-parent { - padding-left: 0; - padding-right: 0; -} - -@media (max-width: 767px) { - .hide-on-mobile { - display: none !important; - } - .mobile-grid-50 { - float: left; - width: 50%; - } - .mobile-grid-100 { - clear: both; - width: 100%; - } -} - -@media (min-width: 768px) and (max-width: 1024px) { - [class*="tablet-push-"], - [class*="tablet-pull-"] { - position: relative; - } - .hide-on-tablet { - display: none !important; - } - .tablet-grid-15 { - float: left; - width: 15%; - } - .tablet-push-15 { - left: 15%; - } - .tablet-pull-15 { - left: -15%; - } - .tablet-grid-20 { - float: left; - width: 20%; - } - .tablet-push-20 { - left: 20%; - } - .tablet-pull-20 { - left: -20%; - } - .tablet-grid-25 { - float: left; - width: 25%; - } - .tablet-push-25 { - left: 25%; - } - .tablet-pull-25 { - left: -25%; - } - .tablet-grid-30 { - float: left; - width: 30%; - } - .tablet-push-30 { - left: 30%; - } - .tablet-pull-30 { - left: -30%; - } - .tablet-grid-35 { - float: left; - width: 35%; - } - .tablet-push-35 { - left: 35%; - } - .tablet-pull-35 { - left: -35%; - } - .tablet-grid-40 { - float: left; - width: 40%; - } - .tablet-push-40 { - left: 40%; - } - .tablet-pull-40 { - left: -40%; - } - .tablet-grid-45 { - float: left; - width: 45%; - } - .tablet-push-45 { - left: 45%; - } - .tablet-pull-45 { - left: -45%; - } - .tablet-grid-50 { - float: left; - width: 50%; - } - .tablet-push-50 { - left: 50%; - } - .tablet-pull-50 { - left: -50%; - } - .tablet-grid-55 { - float: left; - width: 55%; - } - .tablet-push-55 { - left: 55%; - } - .tablet-pull-55 { - left: -55%; - } - .tablet-grid-60 { - float: left; - width: 60%; - } - .tablet-push-60 { - left: 60%; - } - .tablet-pull-60 { - left: -60%; - } - .tablet-grid-65 { - float: left; - width: 65%; - } - .tablet-push-65 { - left: 65%; - } - .tablet-pull-65 { - left: -65%; - } - .tablet-grid-70 { - float: left; - width: 70%; - } - .tablet-push-70 { - left: 70%; - } - .tablet-pull-70 { - left: -70%; - } - .tablet-grid-75 { - float: left; - width: 75%; - } - .tablet-push-75 { - left: 75%; - } - .tablet-pull-75 { - left: -75%; - } - .tablet-grid-80 { - float: left; - width: 80%; - } - .tablet-push-80 { - left: 80%; - } - .tablet-pull-80 { - left: -80%; - } - .tablet-grid-85 { - float: left; - width: 85%; - } - .tablet-push-85 { - left: 85%; - } - .tablet-pull-85 { - left: -85%; - } - .tablet-suffix-33 { - margin-right: 33.33333%; - } - .tablet-push-33 { - left: 33.33333%; - } - .tablet-pull-33 { - left: -33.33333%; - } - .tablet-grid-66 { - float: left; - width: 66.66667%; - } - .tablet-push-66 { - left: 66.66667%; - } - .tablet-pull-66 { - left: -66.66667%; - } - .tablet-grid-100 { - clear: both; - width: 100%; - } - /* GP specific grid */ - .inside-footer-widgets > div { - margin-bottom: 50px; - } - .inside-footer-widgets > div:nth-child(odd) { - clear: both; - } - .active-footer-widgets-1 .footer-widget-1, - .active-footer-widgets-3 .footer-widget-3, - .active-footer-widgets-5 .footer-widget-5 { - width: 100%; - margin-bottom: 0; - } - .active-footer-widgets-2 .inside-footer-widgets > div, - .active-footer-widgets-4 .footer-widget-3, - .active-footer-widgets-4 .footer-widget-4 { - margin-bottom: 0; - } -} - -@media (min-width: 1025px) { - .push-15, .pull-15, .push-20, .pull-20, .push-25, .pull-25, .push-30, .pull-30, .push-35, .pull-35, .push-40, .pull-40, .push-45, .pull-45, .push-50, .pull-50, .push-55, .pull-55, .push-60, .pull-60, .push-65, .pull-65, .push-70, .pull-70, .push-75, .pull-75, .push-80, .pull-80, .push-85, .pull-85, .push-90, .pull-90, .push-95, .pull-95, .push-33, .pull-33, .push-66, .pull-66 { - position: relative; - } - .hide-on-desktop { - display: none !important; - } - .grid-15 { - float: left; - width: 15%; - } - .push-15 { - left: 15%; - } - .pull-15 { - left: -15%; - } - .grid-20 { - float: left; - width: 20%; - } - .push-20 { - left: 20%; - } - .pull-20 { - left: -20%; - } - .grid-25 { - float: left; - width: 25%; - } - .push-25 { - left: 25%; - } - .pull-25 { - left: -25%; - } - .grid-30 { - float: left; - width: 30%; - } - .push-30 { - left: 30%; - } - .pull-30 { - left: -30%; - } - .grid-35 { - float: left; - width: 35%; - } - .push-35 { - left: 35%; - } - .pull-35 { - left: -35%; - } - .grid-40 { - float: left; - width: 40%; - } - .push-40 { - left: 40%; - } - .pull-40 { - left: -40%; - } - .grid-45 { - float: left; - width: 45%; - } - .push-45 { - left: 45%; - } - .pull-45 { - left: -45%; - } - .grid-50 { - float: left; - width: 50%; - } - .push-50 { - left: 50%; - } - .pull-50 { - left: -50%; - } - .grid-55 { - float: left; - width: 55%; - } - .push-55 { - left: 55%; - } - .pull-55 { - left: -55%; - } - .grid-60 { - float: left; - width: 60%; - } - .push-60 { - left: 60%; - } - .pull-60 { - left: -60%; - } - .grid-65 { - float: left; - width: 65%; - } - .push-65 { - left: 65%; - } - .pull-65 { - left: -65%; - } - .grid-70 { - float: left; - width: 70%; - } - .push-70 { - left: 70%; - } - .pull-70 { - left: -70%; - } - .grid-75 { - float: left; - width: 75%; - } - .push-75 { - left: 75%; - } - .pull-75 { - left: -75%; - } - .grid-80 { - float: left; - width: 80%; - } - .push-80 { - left: 80%; - } - .pull-80 { - left: -80%; - } - .grid-85 { - float: left; - width: 85%; - } - .push-85 { - left: 85%; - } - .pull-85 { - left: -85%; - } - .grid-33 { - float: left; - width: 33.33333%; - } - .push-33 { - left: 33.33333%; - } - .pull-33 { - left: -33.33333%; - } - .grid-66 { - float: left; - width: 66.66667%; - } - .push-66 { - left: 66.66667%; - } - .pull-66 { - left: -66.66667%; - } - .grid-100 { - clear: both; - width: 100%; - } -} - -/*-------------------------------------------------------------- ->>> TABLE OF CONTENTS: ----------------------------------------------------------------- -# Reset -# Elements -# Forms -# Links -# Alignments -# Accessibility -# Clearings -# Navigation - # Mobile Menu - # Navigation Search - # Dropdown Menus - # Sidebar Navigation - # Navigation Layout -# Post Navigation -# Header -# Post Content -# Widgets -# Content Layout -# Footer -# Featured Images -# Top Bar -# Icons -# Compatibility ---------------------------------------------------------------*/ -/*-------------------------------------------------------------- -# Reset ---------------------------------------------------------------*/ -html, -body, -div, -span, -applet, -object, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -font, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td { - border: 0; - margin: 0; - padding: 0; -} - -html { - font-family: sans-serif; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -main, -nav, -section { - display: block; -} - -audio, -canvas, -progress, -video { - display: inline-block; - vertical-align: baseline; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -[hidden], -template { - display: none; -} - -ol, -ul { - list-style: none; -} - -table { - /* tables still need 'cellspacing="0"' in the markup */ - border-collapse: separate; - border-spacing: 0; -} - -caption, -th, -td { - font-weight: normal; - text-align: left; - padding: 5px; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ""; -} - -a { - background-color: transparent; -} - -a img { - border: 0; -} - -/*-------------------------------------------------------------- -# Elements ---------------------------------------------------------------*/ -body, -button, -input, -select, -textarea { - font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-weight: normal; - text-transform: none; - font-size: 17px; - line-height: 1.5; -} - -p { - margin-bottom: 1.5em; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - font-family: inherit; - font-size: 100%; - font-style: inherit; - font-weight: inherit; -} - -pre { - background: rgba(0, 0, 0, 0.05); - font-family: inherit; - font-size: inherit; - line-height: normal; - margin-bottom: 1.5em; - padding: 20px; - overflow: auto; - max-width: 100%; -} - -blockquote { - border-left: 5px solid rgba(0, 0, 0, 0.05); - padding: 20px; - font-size: 1.2em; - font-style: italic; - margin: 0 0 1.5em; - position: relative; -} - -blockquote p:last-child { - margin: 0; -} - -table, -th, -td { - border: 1px solid rgba(0, 0, 0, 0.1); -} - -table { - border-collapse: separate; - border-spacing: 0; - border-width: 1px 0 0 1px; - margin: 0 0 1.5em; - width: 100%; -} - -th, -td { - padding: 8px; -} - -th { - border-width: 0 1px 1px 0; -} - -td { - border-width: 0 1px 1px 0; -} - -hr { - background-color: rgba(0, 0, 0, 0.1); - border: 0; - height: 1px; - margin-bottom: 40px; - margin-top: 40px; -} - -fieldset { - padding: 0; - border: 0; - min-width: inherit; -} - -fieldset legend { - padding: 0; - margin-bottom: 1.5em; -} - -h1 { - font-size: 42px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h2 { - font-size: 35px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h3 { - font-size: 29px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h4 { - font-size: 24px; -} - -h5 { - font-size: 20px; -} - -h4, -h5, -h6 { - margin-bottom: 20px; -} - -ul, -ol { - margin: 0 0 1.5em 3em; -} - -ul { - list-style: disc; -} - -ol { - list-style: decimal; -} - -li > ul, -li > ol { - margin-bottom: 0; - margin-left: 1.5em; -} - -dt { - font-weight: bold; -} - -dd { - margin: 0 1.5em 1.5em; -} - -b, -strong { - font-weight: bold; -} - -dfn, -cite, -em, -i { - font-style: italic; -} - -address { - margin: 0 0 1.5em; -} - -code, -kbd, -tt, -var { - font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; -} - -abbr, -acronym { - border-bottom: 1px dotted #666; - cursor: help; -} - -mark, -ins { - text-decoration: none; -} - -sup, -sub { - font-size: 75%; - height: 0; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - bottom: 1ex; -} - -sub { - top: .5ex; -} - -small { - font-size: 75%; -} - -big { - font-size: 125%; -} - -figure { - margin: 0; -} - -table { - margin: 0 0 1.5em; - width: 100%; -} - -th { - font-weight: bold; -} - -img { - height: auto; - /* Make sure images are scaled correctly. */ - max-width: 100%; - /* Adhere to container width. */ -} - -/*-------------------------------------------------------------- -# Forms ---------------------------------------------------------------*/ -button, -input, -select, -textarea { - font-size: 100%; - /* Corrects font size not being inherited in all browsers */ - margin: 0; - /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */ - vertical-align: baseline; - /* Improves appearance and consistency in all browsers */ - *vertical-align: middle; - /* Improves appearance and consistency in all browsers */ -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - border: 1px solid transparent; - background: #55555e; - cursor: pointer; - /* Improves usability and consistency of cursor style between image-type 'input' and others */ - -webkit-appearance: button; - /* Corrects inability to style clickable 'input' types in iOS */ - padding: 10px 20px; - color: #FFF; -} - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; - /* Addresses box sizing set to content-box in IE8/9 */ - padding: 0; - /* Addresses excess padding in IE8/9 */ -} - -input[type="search"] { - -webkit-appearance: textfield; - /* Addresses appearance set to searchfield in S5, Chrome */ - box-sizing: content-box; -} - -input[type="search"]::-webkit-search-decoration { - /* Corrects inner padding displayed oddly in S5, Chrome on OSX */ - -webkit-appearance: none; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */ - border: 0; - padding: 0; -} - -input[type="text"], -input[type="email"], -input[type="url"], -input[type="password"], -input[type="search"], -input[type="tel"], -input[type="number"], -textarea, -select { - background: #FAFAFA; - color: #666; - border: 1px solid #ccc; - border-radius: 0px; - padding: 10px 15px; - box-sizing: border-box; - max-width: 100%; -} - -textarea { - overflow: auto; - /* Removes default vertical scrollbar in IE6/7/8/9 */ - vertical-align: top; - /* Improves readability and alignment in all browsers */ - width: 100%; -} - -input[type="file"] { - max-width: 100%; - box-sizing: border-box; -} - -/*-------------------------------------------------------------- -# Links ---------------------------------------------------------------*/ -a, -button, -input { - transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out; -} - -a { - text-decoration: none; -} - -.button, -.wp-block-button .wp-block-button__link { - padding: 10px 20px; - display: inline-block; -} - -.wp-block-button .wp-block-button__link { - font-size: inherit; - line-height: inherit; -} - -.using-mouse :focus { - outline: 0; -} - -.using-mouse ::-moz-focus-inner { - border: 0; -} - -/*-------------------------------------------------------------- -# Alignments ---------------------------------------------------------------*/ -.alignleft { - float: left; - margin-right: 1.5em; -} - -.alignright { - float: right; - margin-left: 1.5em; -} - -.aligncenter { - clear: both; - display: block; - margin: 0 auto; -} - -.size-auto, -.size-full, -.size-large, -.size-medium, -.size-thumbnail { - max-width: 100%; - height: auto; -} - -.no-sidebar .entry-content .alignfull { - margin-left: calc( -100vw / 2 + 100% / 2); - margin-right: calc( -100vw / 2 + 100% / 2); - max-width: 100vw; - width: auto; -} - -/*-------------------------------------------------------------- -# Accessibility ---------------------------------------------------------------*/ -.screen-reader-text { - border: 0; - clip: rect(1px, 1px, 1px, 1px); - -webkit-clip-path: inset(50%); - clip-path: inset(50%); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute !important; - width: 1px; - word-wrap: normal !important; -} - -.screen-reader-text:focus { - background-color: #f1f1f1; - border-radius: 3px; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - clip: auto !important; - -webkit-clip-path: none; - clip-path: none; - color: #21759b; - display: block; - font-size: 0.875rem; - font-weight: 700; - height: auto; - left: 5px; - line-height: normal; - padding: 15px 23px 14px; - text-decoration: none; - top: 5px; - width: auto; - z-index: 100000; -} - -/* Do not show the outline on the skip link target. */ -#primary[tabindex="-1"]:focus { - outline: 0; -} - -/*-------------------------------------------------------------- -# Clearings ---------------------------------------------------------------*/ -.clear:after, -.entry-content:after, -.comment-content:after, -.site-header:after, -.site-content:after, -.paging-navigation:after, -.site-footer:after, -.site-info:after, -.page-header-content-container:after, -.inside-navigation:not(.grid-container):after, -.inside-header:not(.grid-container):after, -.inside-top-bar:not(.grid-container):after, -.inside-footer-widgets:not(.grid-container):after { - content: ""; - display: table; - clear: both; -} - -/*-------------------------------------------------------------- -# Navigation ---------------------------------------------------------------*/ -.main-navigation { - z-index: 100; - padding: 0; - clear: both; - display: block; -} - -.main-navigation a { - display: block; - text-decoration: none; - font-weight: normal; - text-transform: none; - font-size: 15px; -} - -.main-navigation ul { - list-style: none; - margin: 0; - padding-left: 0; -} - -.main-navigation .main-nav ul li a { - padding-left: 20px; - padding-right: 20px; - line-height: 60px; -} - -.inside-navigation { - position: relative; -} - -.main-navigation li { - float: left; - position: relative; -} - -.sf-menu > li.menu-item-float-right { - float: right !important; -} - -.nav-float-right .inside-header .main-navigation { - float: right; - clear: right; -} - -.nav-float-left .inside-header .main-navigation { - float: left; - clear: left; -} - -.nav-aligned-right .main-navigation:not(.toggled) .menu > li, -.nav-aligned-center .main-navigation:not(.toggled) .menu > li { - float: none; - display: inline-block; -} - -.nav-aligned-right .main-navigation:not(.toggled) ul, -.nav-aligned-center .main-navigation:not(.toggled) ul { - letter-spacing: -0.31em; - font-size: 1em; -} - -.nav-aligned-right .main-navigation:not(.toggled) ul li, -.nav-aligned-center .main-navigation:not(.toggled) ul li { - letter-spacing: normal; -} - -.nav-aligned-center .main-navigation { - text-align: center; -} - -.nav-aligned-right .main-navigation { - text-align: right; -} - -.main-navigation li.search-item { - float: right; -} - -.main-navigation .mobile-bar-items a { - padding-left: 20px; - padding-right: 20px; - line-height: 60px; -} - -/*-------------------------------------------------------------- -## Dropdown Menus ---------------------------------------------------------------*/ -.main-navigation ul ul { - display: block; - box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1); - float: left; - position: absolute; - left: -99999px; - opacity: 0; - z-index: 99999; - width: 200px; - text-align: left; - top: auto; - transition: opacity 80ms linear; - transition-delay: 0s; - pointer-events: none; - height: 0; - overflow: hidden; -} - -.main-navigation ul ul a { - display: block; -} - -.main-navigation ul ul li { - width: 100%; -} - -.main-navigation .main-nav ul ul li a { - line-height: normal; - padding: 10px 20px; - font-size: 14px; -} - -.main-navigation .main-nav ul li.menu-item-has-children > a { - padding-right: 0; - position: relative; -} - -.main-navigation.sub-menu-left ul ul { - box-shadow: -1px 1px 0 rgba(0, 0, 0, 0.1); -} - -.main-navigation.sub-menu-left .sub-menu { - right: 0; -} - -.main-navigation:not(.toggled) ul li:hover > ul, -.main-navigation:not(.toggled) ul li.sfHover > ul { - left: auto; - opacity: 1; - transition-delay: 150ms; - pointer-events: auto; - height: auto; - overflow: visible; -} - -.main-navigation:not(.toggled) ul ul li:hover > ul, -.main-navigation:not(.toggled) ul ul li.sfHover > ul { - left: 100%; - top: 0; -} - -.main-navigation.sub-menu-left:not(.toggled) ul ul li:hover > ul, -.main-navigation.sub-menu-left:not(.toggled) ul ul li.sfHover > ul { - right: 100%; - left: auto; -} - -.nav-float-right .main-navigation ul ul ul { - top: 0; -} - -.menu-item-has-children .dropdown-menu-toggle { - display: inline-block; - height: 100%; - clear: both; - padding-right: 20px; - padding-left: 10px; -} - -.menu-item-has-children ul .dropdown-menu-toggle { - padding-top: 10px; - padding-bottom: 10px; - margin-top: -10px; -} - -nav ul ul .menu-item-has-children .dropdown-menu-toggle, -.sidebar .menu-item-has-children .dropdown-menu-toggle { - float: right; -} - -/*-------------------------------------------------------------- -## Sidebar Navigation ---------------------------------------------------------------*/ -.widget-area .main-navigation li { - float: none; - display: block; - width: 100%; - padding: 0; - margin: 0; -} - -.sidebar .main-navigation.sub-menu-right ul li:hover ul, -.sidebar .main-navigation.sub-menu-right ul li.sfHover ul { - top: 0; - left: 100%; -} - -.sidebar .main-navigation.sub-menu-left ul li:hover ul, -.sidebar .main-navigation.sub-menu-left ul li.sfHover ul { - top: 0; - right: 100%; -} - -/*-------------------------------------------------------------- -# Post Navigation ---------------------------------------------------------------*/ -.site-main .comment-navigation, -.site-main .posts-navigation, -.site-main .post-navigation { - margin: 0 0 2em; - overflow: hidden; -} - -.site-main .post-navigation { - margin-bottom: 0; -} - -.paging-navigation .nav-previous, -.paging-navigation .nav-next { - display: none; -} - -.paging-navigation .nav-links > * { - padding: 0 5px; -} - -.paging-navigation .nav-links .current { - font-weight: bold; -} - -/* Less specific so we don't overwrite existing customizations. */ -.nav-links > *:first-child { - padding-left: 0; -} - -/*-------------------------------------------------------------- -# Header ---------------------------------------------------------------*/ -.site-header { - position: relative; -} - -.inside-header { - padding: 20px 40px; -} - -.main-title { - margin: 0; - font-size: 25px; - line-height: 1.2em; - word-wrap: break-word; - font-weight: bold; - text-transform: none; -} - -.site-description { - margin: 0; - line-height: 1.5; - font-weight: normal; - text-transform: none; - font-size: 15px; -} - -.site-logo { - display: inline-block; - max-width: 100%; -} - -.site-header .header-image { - vertical-align: middle; -} - -.header-widget { - float: right; - overflow: hidden; - max-width: 50%; -} - -.header-widget .widget { - padding: 0 0 20px; - margin-bottom: 0; -} - -.header-widget .widget:last-child { - padding-bottom: 0; -} - -.header-widget .widget-title { - margin-bottom: 15px; -} - -.nav-float-right .header-widget { - position: relative; - top: -10px; -} - -.nav-float-right .header-widget .widget { - padding: 0 0 10px; -} - -.nav-float-left .inside-header .site-branding, -.nav-float-left .inside-header .site-logo { - float: right; - clear: right; -} - -.nav-float-left .inside-header:after { - clear: both; - content: ''; - display: table; -} - -.nav-float-right .inside-header .site-branding { - display: inline-block; -} - -.site-branding-container { - display: inline-flex; - align-items: center; - text-align: left; -} - -.site-branding-container .site-logo { - margin-right: 1.5em; -} - -.header-aligned-center .site-header { - text-align: center; -} - -.header-aligned-right .site-header { - text-align: right; -} - -.header-aligned-right .site-branding-container { - text-align: right; -} - -.header-aligned-right .site-branding-container .site-logo { - order: 10; - margin-right: 0; - margin-left: 1.5em; -} - -/*-------------------------------------------------------------- -# Post Content ---------------------------------------------------------------*/ -.sticky { - display: block; -} - -.posted-on .updated, -.entry-header .gp-icon { - display: none; -} - -.byline, -.single .byline, -.group-blog .byline, -.entry-header .cat-links, -.entry-header .tags-links, -.entry-header .comments-link { - display: inline; -} - -footer.entry-meta .byline, -footer.entry-meta .posted-on { - display: block; -} - -.page-content:not(:first-child), -.entry-content:not(:first-child), -.entry-summary:not(:first-child) { - margin-top: 2em; -} - -.page-links { - clear: both; - margin: 0 0 1.5em; -} - -.blog .format-status .entry-title, -.archive .format-status .entry-title, -.blog .format-aside .entry-header, -.archive .format-aside .entry-header, -.blog .format-status .entry-header, -.archive .format-status .entry-header, -.blog .format-status .entry-meta, -.archive .format-status .entry-meta { - display: none; -} - -.blog .format-aside .entry-content, -.archive .format-aside .entry-content, -.blog .format-status .entry-content, -.archive .format-status .entry-content { - margin-top: 0; -} - -.blog .format-status .entry-content p:last-child, -.archive .format-status .entry-content p:last-child { - margin-bottom: 0; -} - -.site-content, -.entry-header { - word-wrap: break-word; -} - -.entry-title { - margin-bottom: 0; -} - -.author .page-header .page-title { - display: flex; - align-items: center; -} - -.author .page-header .avatar { - margin-right: 20px; -} - -.page-header > *:last-child, -.page-header .author-info > *:last-child { - margin-bottom: 0; -} - -.entry-meta { - font-size: 85%; - margin-top: .5em; - line-height: 1.5; -} - -footer.entry-meta { - margin-top: 2em; -} - -.cat-links, -.tags-links, -.comments-link { - display: block; -} - -.taxonomy-description p:last-child, -.read-more-container, -.page-content > p:last-child, -.entry-content > p:last-child, -.entry-summary > p:last-child { - margin-bottom: 0; -} - -/*-------------------------------------------------------------- -# Media ---------------------------------------------------------------*/ -/*-------------------------------------------------------------- -## Captions ---------------------------------------------------------------*/ -.wp-caption { - margin-bottom: 1.5em; - max-width: 100%; - position: relative; -} - -.wp-caption img[class*="wp-image-"] { - display: block; - margin: 0 auto 0; - max-width: 100%; -} - -.wp-caption .wp-caption-text { - font-size: 75%; - padding-top: 5px; - opacity: 0.8; -} - -.wp-caption img { - position: relative; - vertical-align: bottom; -} - -.wp-block-image figcaption { - font-size: 13px; - text-align: center; -} - -/*-------------------------------------------------------------- -## Galleries ---------------------------------------------------------------*/ -.wp-block-gallery, -ul.blocks-gallery-grid { - margin-left: 0; -} - -.wp-block-gallery .blocks-gallery-image figcaption, -.wp-block-gallery .blocks-gallery-item figcaption { - background: rgba(255, 255, 255, 0.7); - color: #000; - padding: 10px; - box-sizing: border-box; -} - -.gallery { - margin-bottom: 1.5em; -} - -.gallery-item { - display: inline-block; - text-align: center; - vertical-align: top; - width: 100%; -} - -.gallery-columns-2 .gallery-item { - max-width: 50%; -} - -.gallery-columns-3 .gallery-item { - max-width: 33.33%; -} - -.gallery-columns-4 .gallery-item { - max-width: 25%; -} - -.gallery-columns-5 .gallery-item { - max-width: 20%; -} - -.gallery-columns-6 .gallery-item { - max-width: 16.66%; -} - -.gallery-columns-7 .gallery-item { - max-width: 14.28%; -} - -.gallery-columns-8 .gallery-item { - max-width: 12.5%; -} - -.gallery-columns-9 .gallery-item { - max-width: 11.11%; -} - -.gallery-caption { - display: block; -} - -.site-main .gallery { - margin-bottom: 1.5em; -} - -.gallery-item img { - vertical-align: bottom; -} - -.gallery-icon { - padding: 5px; -} - -embed, -iframe, -object { - max-width: 100%; -} - -/*-------------------------------------------------------------- -## Post Loop Block ---------------------------------------------------------------*/ -.wp-block-post-template { - margin-left: 0; -} - -/*-------------------------------------------------------------- -# Comments ---------------------------------------------------------------*/ -.comment-content a { - word-wrap: break-word; -} - -.bypostauthor { - display: block; -} - -.comment, -.comment-list { - list-style-type: none; - padding: 0; - margin: 0; -} - -.comment-author-info { - display: inline-block; - vertical-align: middle; -} - -.comment-meta .avatar { - float: left; - margin-right: 10px; - border-radius: 50%; -} - -.comment-author cite { - font-style: normal; - font-weight: bold; -} - -.entry-meta.comment-metadata { - margin-top: 0; -} - -.comment-content { - margin-top: 1.5em; -} - -.comment-respond { - margin-top: 0; -} - -.comment-form > .form-submit { - margin-bottom: 0; -} - -.comment-form input, -.comment-form-comment { - margin-bottom: 10px; -} - -.comment-form-comment textarea { - resize: vertical; -} - -.comment-form #author, -.comment-form #email, -.comment-form #url { - display: block; -} - -.comment-metadata .edit-link:before { - display: none; -} - -.comment-body { - padding: 30px 0; -} - -.comment-content { - padding: 30px; - border: 1px solid rgba(0, 0, 0, 0.05); -} - -.depth-1.parent > .children { - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -.comment .children { - padding-left: 30px; - margin-top: -30px; - border-left: 1px solid rgba(0, 0, 0, 0.05); -} - -.pingback .comment-body, -.trackback .comment-body { - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -.pingback .edit-link { - font-size: 13px; -} - -.comment-content p:last-child { - margin-bottom: 0; -} - -.comment-list > .comment:first-child { - padding-top: 0; - margin-top: 0; - border-top: 0; -} - -ol.comment-list { - margin-bottom: 1.5em; -} - -.comment-form-cookies-consent { - display: flex; - align-items: center; -} - -.comment-form-cookies-consent input { - margin-right: 0.5em; - margin-bottom: 0; -} - -.one-container .comments-area { - margin-top: 1.5em; -} - -.comment-content .reply { - font-size: 85%; -} - -#cancel-comment-reply-link { - padding-left: 10px; -} - -/*-------------------------------------------------------------- -# Widgets ---------------------------------------------------------------*/ -.widget-area .widget { - padding: 40px; -} - -.widget select { - max-width: 100%; -} - -.sidebar .widget *:last-child, -.footer-widgets .widget *:last-child { - margin-bottom: 0; -} - -.widget-title { - margin-bottom: 30px; - font-size: 20px; - line-height: 1.5; - font-weight: normal; - text-transform: none; -} - -.widget ul, -.widget ol { - margin: 0; -} - -.widget .search-field { - width: 100%; -} - -.widget_search .search-submit { - display: none; -} - -.widget { - margin: 0 0 30px; - box-sizing: border-box; -} - -.widget:last-child, -.separate-containers .widget:last-child { - margin-bottom: 0; -} - -.sidebar .widget, -.footer-widgets .widget { - font-size: 17px; -} - -.widget ul li { - list-style-type: none; - position: relative; - padding-bottom: 5px; -} - -.widget_categories .children { - margin-left: 1.5em; - padding-top: 5px; -} - -.widget_categories .children li:last-child { - padding-bottom: 0; -} - -.widget_nav_menu ul ul, -.widget_pages ul ul { - margin-left: 1em; - margin-top: 5px; -} - -.widget ul li.menu-item-has-children, -.widget ul li.page_item_has_children { - padding-bottom: 0; -} - -#wp-calendar { - table-layout: fixed; - font-size: 80%; -} - -#wp-calendar #prev, -#wp-calendar #prev + .pad { - border-right: 0; -} - -.sidebar .grid-container { - max-width: 100%; - width: 100%; -} - -/*-------------------------------------------------------------- -# Content Layout ---------------------------------------------------------------*/ -.post { - margin: 0 0 2em; -} - -.page-header { - margin-bottom: 30px; -} - -/*-------------------------------------------------------------- -## One Container ---------------------------------------------------------------*/ -.one-container.both-left .inside-left-sidebar, -.one-container.both-right .inside-left-sidebar { - margin-right: 20px; -} - -.one-container.both-left .inside-right-sidebar, -.one-container.both-right .inside-right-sidebar { - margin-left: 20px; -} - -.one-container:not(.page) .inside-article { - padding: 0 0 30px 0; -} - -.one-container.right-sidebar .site-main, -.one-container.both-right .site-main { - margin-right: 40px; -} - -.one-container.left-sidebar .site-main, -.one-container.both-left .site-main { - margin-left: 40px; -} - -.one-container.both-sidebars .site-main { - margin: 0px 40px 0px 40px; -} - -.one-container .site-content { - padding: 40px; -} - -/*-------------------------------------------------------------- -## Separate Containers ---------------------------------------------------------------*/ -.separate-containers .inside-article, -.separate-containers .comments-area, -.separate-containers .page-header, -.separate-containers .paging-navigation { - padding: 40px; -} - -.separate-containers .widget, -.separate-containers .site-main > *, -.separate-containers .page-header { - margin-bottom: 20px; -} - -.separate-containers .site-main { - margin: 20px; -} - -.separate-containers.no-sidebar .site-main { - margin-left: 0; - margin-right: 0; -} - -.separate-containers.right-sidebar .site-main, -.separate-containers.both-right .site-main { - margin-left: 0; -} - -.separate-containers.left-sidebar .site-main, -.separate-containers.both-left .site-main { - margin-right: 0; -} - -.separate-containers.both-right .inside-left-sidebar, -.separate-containers.both-left .inside-left-sidebar { - margin-right: 10px; -} - -.separate-containers.both-right .inside-right-sidebar, -.separate-containers.both-left .inside-right-sidebar { - margin-left: 10px; -} - -.separate-containers .inside-right-sidebar, -.separate-containers .inside-left-sidebar { - margin-top: 20px; - margin-bottom: 20px; -} - -.inside-page-header { - padding: 40px; -} - -.widget-area .main-navigation { - margin-bottom: 20px; -} - -.separate-containers .site-main > *:last-child, -.one-container .site-main > *:last-child { - margin-bottom: 0; -} - -/*-------------------------------------------------------------- -## Full Width Content ---------------------------------------------------------------*/ -.full-width-content .container.grid-container { - max-width: 100%; -} - -.full-width-content.no-sidebar.separate-containers .site-main { - margin: 0; -} - -.full-width-content.separate-containers .inside-article, -.full-width-content.one-container .site-content { - padding: 0; -} - -.full-width-content .entry-content .alignwide { - margin-left: 0; - width: auto; - max-width: unset; -} - -/*-------------------------------------------------------------- -## Contained Content ---------------------------------------------------------------*/ -.contained-content.separate-containers .inside-article, -.contained-content.one-container .site-content { - padding: 0; -} - -/*-------------------------------------------------------------- -# Footer ---------------------------------------------------------------*/ -.site-info { - text-align: center; - font-size: 15px; -} - -.site-info { - padding: 20px 40px; -} - -.footer-widgets { - padding: 40px; -} - -.site-footer .footer-widgets-container .inner-padding { - padding: 0px 0px 0px 40px; -} - -.site-footer .footer-widgets-container .inside-footer-widgets { - margin-left: -40px; -} - -/*-------------------------------------------------------------- -## Footer Bar ---------------------------------------------------------------*/ -.footer-bar-active .footer-bar .widget { - padding: 0; -} - -.footer-bar .widget_nav_menu > div > ul { - display: inline-block; - vertical-align: top; -} - -.footer-bar .widget_nav_menu li { - margin: 0 10px; - float: left; - padding: 0; -} - -.footer-bar .widget_nav_menu li:first-child { - margin-left: 0; -} - -.footer-bar .widget_nav_menu li:last-child { - margin-right: 0; -} - -.footer-bar .widget_nav_menu li ul { - display: none; -} - -.footer-bar .textwidget p:last-child { - margin: 0; -} - -.footer-bar .widget-title { - display: none; -} - -.footer-bar-align-right .copyright-bar { - float: left; -} - -.footer-bar-align-right .footer-bar { - float: right; - text-align: right; -} - -.footer-bar-align-left .copyright-bar { - float: right; - text-align: right; -} - -.footer-bar-align-left .footer-bar { - float: left; - text-align: left; -} - -.footer-bar-align-center .copyright-bar { - float: none; - text-align: center; -} - -.footer-bar-align-center .footer-bar { - float: none; - text-align: center; - margin-bottom: 10px; -} - -/*-------------------------------------------------------------- -# Featured Images ---------------------------------------------------------------*/ -.post-image:not(:first-child) { - margin-top: 2em; -} - -.page-header-image, -.page-header-image-single { - line-height: 0; - /* no more weird spacing */ -} - -.separate-containers .inside-article > [class*="page-header-"], -.one-container .inside-article > [class*="page-header-"] { - margin-bottom: 2em; - margin-top: 0; -} - -.inside-article .page-header-image-single.page-header-below-title { - margin-top: 2em; -} - -.separate-containers .page-header-image, -.separate-containers .page-header-contained, -.separate-containers .page-header-content, -.separate-containers .page-header-image-single, -.separate-containers .page-header-content-single { - margin-top: 20px; -} - -/*-------------------------------------------------------------- -# Top Bar ---------------------------------------------------------------*/ -.top-bar { - font-weight: normal; - text-transform: none; - font-size: 13px; -} - -.top-bar .inside-top-bar .widget { - padding: 0; - display: inline-block; - margin: 0; -} - -.top-bar .inside-top-bar .textwidget p:last-child { - margin: 0; -} - -.top-bar .widget-title { - display: none; -} - -.top-bar .widget_nav_menu li { - margin: 0 10px; - float: left; - padding: 0; -} - -.top-bar .widget_nav_menu li:first-child { - margin-left: 0; -} - -.top-bar .widget_nav_menu li:last-child { - margin-right: 0; -} - -.top-bar .widget_nav_menu li ul { - display: none; -} - -.top-bar .widget_nav_menu > div > ul { - display: inline-block; - vertical-align: top; -} - -.inside-top-bar { - padding: 10px 40px; -} - -.top-bar-align-center { - text-align: center; -} - -.top-bar-align-center .inside-top-bar .widget:not(:first-child) { - margin-left: 10px; -} - -.top-bar-align-center .inside-top-bar .widget:first-child:last-child { - display: block; -} - -.top-bar-align-right { - text-align: right; -} - -.top-bar-align-right .inside-top-bar > .widget:nth-child(even) { - float: left; - margin-right: 10px; -} - -.top-bar-align-right .inside-top-bar > .widget:nth-child(odd) { - margin-left: 10px; -} - -.top-bar-align-left .inside-top-bar > .widget:nth-child(odd) { - float: left; - margin-right: 10px; -} - -.top-bar-align-left .inside-top-bar > .widget:nth-child(even) { - margin-left: 10px; - float: right; -} - -/*-------------------------------------------------------------- -# Icons ---------------------------------------------------------------*/ -.gp-icon { - display: inline-flex; - align-self: center; -} - -.gp-icon svg { - height: 1em; - width: 1em; - top: .125em; - position: relative; - fill: currentColor; -} - -.icon-menu-bars svg:nth-child(2), -.toggled .icon-menu-bars svg:nth-child(1), -.icon-search svg:nth-child(2), -.close-search .icon-search svg:nth-child(1) { - display: none; -} - -.toggled .icon-menu-bars svg:nth-child(2), -.close-search .icon-search svg:nth-child(2) { - display: block; -} - -.entry-meta .gp-icon { - margin-right: 0.6em; - opacity: 0.7; -} - -nav.toggled .icon-arrow-left svg { - transform: rotate(-90deg); -} - -nav.toggled .icon-arrow-right svg { - transform: rotate(90deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon svg { - transform: rotate(180deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon.icon-arrow-left svg { - transform: rotate(-270deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon.icon-arrow-right svg { - transform: rotate(270deg); -} - -/*-------------------------------------------------------------- -# Compatibility ---------------------------------------------------------------*/ -/* Bootstrap fix */ -.container.grid-container { - width: auto; -} - -/* Globally hidden elements when Infinite Scroll is supported and in use. */ -.infinite-scroll .paging-navigation, -.infinite-scroll.neverending .site-footer { - /* Theme Footer (when set to scrolling) */ - display: none; -} - -/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */ -.infinity-end.neverending .site-footer { - display: block; -} - -/* SiteOrigin Page Builder */ -.so-panel.widget { - padding: 0; -} - -/* MailChimp CSS */ -#mc_embed_signup .clear { - display: block; - height: auto; - visibility: visible; - width: auto; -} - -/*-------------------------------------------------------------- -# Mobile Menu ---------------------------------------------------------------*/ -.menu-toggle, -.mobile-bar-items, -.sidebar-nav-mobile { - display: none; -} - -.menu-toggle { - padding: 0 20px; - line-height: 60px; - margin: 0; - font-weight: normal; - text-transform: none; - font-size: 15px; - cursor: pointer; -} - -button.menu-toggle { - background-color: transparent; - width: 100%; - border: 0; - text-align: center; -} - -button.menu-toggle:hover, -button.menu-toggle:active, -button.menu-toggle:focus { - background-color: transparent; -} - -.menu-toggle .mobile-menu { - padding-left: 3px; -} - -.menu-toggle .gp-icon + .mobile-menu { - padding-left: 9px; -} - -.menu-toggle .mobile-menu:empty { - display: none; -} - -.nav-search-enabled .main-navigation .menu-toggle { - text-align: left; -} - -.mobile-bar-items { - display: none; - position: absolute; - right: 0; - top: 0; - z-index: 21; - list-style-type: none; -} - -.mobile-bar-items a { - display: inline-block; -} - -nav.toggled ul ul.sub-menu { - width: 100%; -} - -.dropdown-hover .main-navigation.toggled ul li:hover > ul, -.dropdown-hover .main-navigation.toggled ul li.sfHover > ul { - transition-delay: 0s; -} - -.toggled .menu-item-has-children .dropdown-menu-toggle { - padding-left: 20px; -} - -.main-navigation.toggled ul ul { - transition: 0s; - visibility: hidden; -} - -.main-navigation.toggled .main-nav > ul { - display: block; -} - -.main-navigation.toggled .main-nav ul ul.toggled-on { - position: relative; - top: 0; - left: auto !important; - right: auto !important; - width: 100%; - pointer-events: auto; - height: auto; - opacity: 1; - display: block; - visibility: visible; - float: none; -} - -.main-navigation.toggled .main-nav li { - float: none; - clear: both; - display: block; - text-align: left; -} - -.main-navigation.toggled .main-nav li.hide-on-mobile { - display: none !important; -} - -.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle { - float: right; -} - -.main-navigation.toggled .menu li.search-item { - display: none !important; -} - -.main-navigation.toggled .sf-menu > li.menu-item-float-right { - float: none; - display: inline-block; -} - -/*-------------------------------------------------------------- -# Breakpoint (768px) ---------------------------------------------------------------*/ -@media (max-width: 768px) { - /*-------------------------------------------------------------- - ## Links - --------------------------------------------------------------*/ - a, body, button, input, select, textarea { - transition: all 0s ease-in-out; - } - /*-------------------------------------------------------------- - ## Top Bar - --------------------------------------------------------------*/ - .top-bar.top-bar-align-left, - .top-bar.top-bar-align-right { - text-align: center; - } - .top-bar .widget { - float: none !important; - margin: 0 10px !important; - } - .top-bar .widget_nav_menu li { - float: none; - display: inline-block; - padding: 5px 0; - } - .footer-bar .widget_nav_menu li:first-child { - margin-left: 10px; - } - .footer-bar .widget_nav_menu li:last-child { - margin-right: 10px; - } - /*-------------------------------------------------------------- - ## Header - --------------------------------------------------------------*/ - .inside-header > *:not(:last-child):not(.main-navigation) { - margin-bottom: 20px; - } - .site-header, - .header-aligned-right .site-header { - text-align: center; - } - .header-widget { - float: none; - max-width: 100%; - text-align: center; - } - /*-------------------------------------------------------------- - ## Content Area - --------------------------------------------------------------*/ - .sidebar, - .content-area, - .inside-footer-widgets > div { - float: none; - width: 100%; - left: 0; - right: 0; - } - .site-main { - margin-left: 0 !important; - margin-right: 0 !important; - } - body:not(.no-sidebar) .site-main { - margin-bottom: 0 !important; - } - .one-container .sidebar { - margin-top: 40px; - } - .separate-containers #left-sidebar + #right-sidebar .inside-right-sidebar { - margin-top: 0; - } - .both-right.separate-containers .inside-left-sidebar, - .both-left.separate-containers .inside-left-sidebar, - .both-right.separate-containers .inside-right-sidebar, - .both-left.separate-containers .inside-right-sidebar { - margin-right: 0; - margin-left: 0; - } - .alignleft, - .alignright { - float: none; - display: block; - margin-left: auto; - margin-right: auto; - } - .post-image-aligned-left .post-image, - .post-image-aligned-right .post-image { - float: none; - margin: 2em 0; - text-align: center; - } - .comment .children { - padding-left: 10px; - margin-left: 0; - } - .edd_download { - display: block; - float: none !important; - margin-bottom: 1.5em; - width: 100% !important; - } - .entry-meta { - font-size: inherit; - } - .entry-meta a { - line-height: 1.8em; - } - /*-------------------------------------------------------------- - ## Footer - --------------------------------------------------------------*/ - .site-info { - text-align: center; - } - .copyright-bar { - float: none !important; - text-align: center !important; - } - .footer-bar { - float: none !important; - text-align: center !important; - margin-bottom: 20px; - } - .footer-bar .widget_nav_menu li { - float: none; - display: inline-block; - padding: 5px 0; - } - .inside-footer-widgets > div:not(:last-child) { - margin-bottom: 40px; - } - .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets { - margin: 0; - } - .site-footer .footer-widgets .footer-widgets-container .inner-padding { - padding: 0; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/all.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/all.min.css deleted file mode 100644 index 8148a033..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/all.min.css +++ /dev/null @@ -1 +0,0 @@ -.clearfix:after,.clearfix:before,.grid-100:after,.grid-100:before,.grid-15:after,.grid-15:before,.grid-20:after,.grid-20:before,.grid-25:after,.grid-25:before,.grid-30:after,.grid-30:before,.grid-33:after,.grid-33:before,.grid-35:after,.grid-35:before,.grid-40:after,.grid-40:before,.grid-45:after,.grid-45:before,.grid-50:after,.grid-50:before,.grid-55:after,.grid-55:before,.grid-60:after,.grid-60:before,.grid-65:after,.grid-65:before,.grid-66:after,.grid-66:before,.grid-70:after,.grid-70:before,.grid-75:after,.grid-75:before,.grid-80:after,.grid-80:before,.grid-85:after,.grid-85:before,.grid-container:after,.grid-container:before,[class*=mobile-grid-]:after,[class*=mobile-grid-]:before,[class*=tablet-grid-]:after,[class*=tablet-grid-]:before{content:".";display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0}.clearfix:after,.grid-100:after,.grid-15:after,.grid-20:after,.grid-25:after,.grid-30:after,.grid-33:after,.grid-35:after,.grid-40:after,.grid-45:after,.grid-50:after,.grid-55:after,.grid-60:after,.grid-65:after,.grid-66:after,.grid-70:after,.grid-75:after,.grid-80:after,.grid-85:after,.grid-90:after,.grid-95:after,.grid-container:after,[class*=mobile-grid-]:after,[class*=tablet-grid-]:after{clear:both}.grid-container{margin-left:auto;margin-right:auto;max-width:1200px;padding-left:10px;padding-right:10px}.grid-100,.grid-15,.grid-20,.grid-25,.grid-30,.grid-33,.grid-35,.grid-40,.grid-45,.grid-50,.grid-55,.grid-60,.grid-65,.grid-66,.grid-70,.grid-75,.grid-80,.grid-85,.grid-90,.grid-95,[class*=mobile-grid-],[class*=tablet-grid-]{box-sizing:border-box;padding-left:10px;padding-right:10px}.grid-parent{padding-left:0;padding-right:0}@media (max-width:767px){.hide-on-mobile{display:none!important}.mobile-grid-50{float:left;width:50%}.mobile-grid-100{clear:both;width:100%}}@media (min-width:768px) and (max-width:1024px){[class*=tablet-pull-],[class*=tablet-push-]{position:relative}.hide-on-tablet{display:none!important}.tablet-grid-15{float:left;width:15%}.tablet-push-15{left:15%}.tablet-pull-15{left:-15%}.tablet-grid-20{float:left;width:20%}.tablet-push-20{left:20%}.tablet-pull-20{left:-20%}.tablet-grid-25{float:left;width:25%}.tablet-push-25{left:25%}.tablet-pull-25{left:-25%}.tablet-grid-30{float:left;width:30%}.tablet-push-30{left:30%}.tablet-pull-30{left:-30%}.tablet-grid-35{float:left;width:35%}.tablet-push-35{left:35%}.tablet-pull-35{left:-35%}.tablet-grid-40{float:left;width:40%}.tablet-push-40{left:40%}.tablet-pull-40{left:-40%}.tablet-grid-45{float:left;width:45%}.tablet-push-45{left:45%}.tablet-pull-45{left:-45%}.tablet-grid-50{float:left;width:50%}.tablet-push-50{left:50%}.tablet-pull-50{left:-50%}.tablet-grid-55{float:left;width:55%}.tablet-push-55{left:55%}.tablet-pull-55{left:-55%}.tablet-grid-60{float:left;width:60%}.tablet-push-60{left:60%}.tablet-pull-60{left:-60%}.tablet-grid-65{float:left;width:65%}.tablet-push-65{left:65%}.tablet-pull-65{left:-65%}.tablet-grid-70{float:left;width:70%}.tablet-push-70{left:70%}.tablet-pull-70{left:-70%}.tablet-grid-75{float:left;width:75%}.tablet-push-75{left:75%}.tablet-pull-75{left:-75%}.tablet-grid-80{float:left;width:80%}.tablet-push-80{left:80%}.tablet-pull-80{left:-80%}.tablet-grid-85{float:left;width:85%}.tablet-push-85{left:85%}.tablet-pull-85{left:-85%}.tablet-suffix-33{margin-right:33.33333%}.tablet-push-33{left:33.33333%}.tablet-pull-33{left:-33.33333%}.tablet-grid-66{float:left;width:66.66667%}.tablet-push-66{left:66.66667%}.tablet-pull-66{left:-66.66667%}.tablet-grid-100{clear:both;width:100%}.inside-footer-widgets>div{margin-bottom:50px}.inside-footer-widgets>div:nth-child(odd){clear:both}.active-footer-widgets-1 .footer-widget-1,.active-footer-widgets-3 .footer-widget-3,.active-footer-widgets-5 .footer-widget-5{width:100%;margin-bottom:0}.active-footer-widgets-2 .inside-footer-widgets>div,.active-footer-widgets-4 .footer-widget-3,.active-footer-widgets-4 .footer-widget-4{margin-bottom:0}}@media (min-width:1025px){.pull-15,.pull-20,.pull-25,.pull-30,.pull-33,.pull-35,.pull-40,.pull-45,.pull-50,.pull-55,.pull-60,.pull-65,.pull-66,.pull-70,.pull-75,.pull-80,.pull-85,.pull-90,.pull-95,.push-15,.push-20,.push-25,.push-30,.push-33,.push-35,.push-40,.push-45,.push-50,.push-55,.push-60,.push-65,.push-66,.push-70,.push-75,.push-80,.push-85,.push-90,.push-95{position:relative}.hide-on-desktop{display:none!important}.grid-15{float:left;width:15%}.push-15{left:15%}.pull-15{left:-15%}.grid-20{float:left;width:20%}.push-20{left:20%}.pull-20{left:-20%}.grid-25{float:left;width:25%}.push-25{left:25%}.pull-25{left:-25%}.grid-30{float:left;width:30%}.push-30{left:30%}.pull-30{left:-30%}.grid-35{float:left;width:35%}.push-35{left:35%}.pull-35{left:-35%}.grid-40{float:left;width:40%}.push-40{left:40%}.pull-40{left:-40%}.grid-45{float:left;width:45%}.push-45{left:45%}.pull-45{left:-45%}.grid-50{float:left;width:50%}.push-50{left:50%}.pull-50{left:-50%}.grid-55{float:left;width:55%}.push-55{left:55%}.pull-55{left:-55%}.grid-60{float:left;width:60%}.push-60{left:60%}.pull-60{left:-60%}.grid-65{float:left;width:65%}.push-65{left:65%}.pull-65{left:-65%}.grid-70{float:left;width:70%}.push-70{left:70%}.pull-70{left:-70%}.grid-75{float:left;width:75%}.push-75{left:75%}.pull-75{left:-75%}.grid-80{float:left;width:80%}.push-80{left:80%}.pull-80{left:-80%}.grid-85{float:left;width:85%}.push-85{left:85%}.pull-85{left:-85%}.grid-33{float:left;width:33.33333%}.push-33{left:33.33333%}.pull-33{left:-33.33333%}.grid-66{float:left;width:66.66667%}.push-66{left:66.66667%}.pull-66{left:-66.66667%}.grid-100{clear:both;width:100%}}a,abbr,acronym,address,applet,big,blockquote,body,caption,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,iframe,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,ul,var{border:0;margin:0;padding:0}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,main,nav,section{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}ol,ul{list-style:none}table{border-collapse:separate;border-spacing:0}caption,td,th{font-weight:400;text-align:left;padding:5px}blockquote:after,blockquote:before,q:after,q:before{content:""}a{background-color:transparent}a img{border:0}body,button,input,select,textarea{font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-weight:400;text-transform:none;font-size:17px;line-height:1.5}p{margin-bottom:1.5em}h1,h2,h3,h4,h5,h6{font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit}pre{background:rgba(0,0,0,.05);font-family:inherit;font-size:inherit;line-height:normal;margin-bottom:1.5em;padding:20px;overflow:auto;max-width:100%}blockquote{border-left:5px solid rgba(0,0,0,.05);padding:20px;font-size:1.2em;font-style:italic;margin:0 0 1.5em;position:relative}blockquote p:last-child{margin:0}table,td,th{border:1px solid rgba(0,0,0,.1)}table{border-collapse:separate;border-spacing:0;border-width:1px 0 0 1px;margin:0 0 1.5em;width:100%}td,th{padding:8px}th{border-width:0 1px 1px 0}td{border-width:0 1px 1px 0}hr{background-color:rgba(0,0,0,.1);border:0;height:1px;margin-bottom:40px;margin-top:40px}fieldset{padding:0;border:0;min-width:inherit}fieldset legend{padding:0;margin-bottom:1.5em}h1{font-size:42px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h2{font-size:35px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h3{font-size:29px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h4{font-size:24px}h5{font-size:20px}h4,h5,h6{margin-bottom:20px}ol,ul{margin:0 0 1.5em 3em}ul{list-style:disc}ol{list-style:decimal}li>ol,li>ul{margin-bottom:0;margin-left:1.5em}dt{font-weight:700}dd{margin:0 1.5em 1.5em}b,strong{font-weight:700}cite,dfn,em,i{font-style:italic}address{margin:0 0 1.5em}code,kbd,tt,var{font:15px Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace}abbr,acronym{border-bottom:1px dotted #666;cursor:help}ins,mark{text-decoration:none}sub,sup{font-size:75%;height:0;line-height:0;position:relative;vertical-align:baseline}sup{bottom:1ex}sub{top:.5ex}small{font-size:75%}big{font-size:125%}figure{margin:0}table{margin:0 0 1.5em;width:100%}th{font-weight:700}img{height:auto;max-width:100%}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline}button,html input[type=button],input[type=reset],input[type=submit]{border:1px solid transparent;background:#55555e;cursor:pointer;-webkit-appearance:button;padding:10px 20px;color:#fff}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{background:#fafafa;color:#666;border:1px solid #ccc;border-radius:0;padding:10px 15px;box-sizing:border-box;max-width:100%}textarea{overflow:auto;vertical-align:top;width:100%}input[type=file]{max-width:100%;box-sizing:border-box}a,button,input{transition:color .1s ease-in-out,background-color .1s ease-in-out}a{text-decoration:none}.button,.wp-block-button .wp-block-button__link{padding:10px 20px;display:inline-block}.wp-block-button .wp-block-button__link{font-size:inherit;line-height:inherit}.using-mouse :focus{outline:0}.using-mouse ::-moz-focus-inner{border:0}.alignleft{float:left;margin-right:1.5em}.alignright{float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin:0 auto}.size-auto,.size-full,.size-large,.size-medium,.size-thumbnail{max-width:100%;height:auto}.no-sidebar .entry-content .alignfull{margin-left:calc(-100vw / 2 + 100% / 2);margin-right:calc(-100vw / 2 + 100% / 2);max-width:100vw;width:auto}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#21759b;display:block;font-size:.875rem;font-weight:700;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}#primary[tabindex="-1"]:focus{outline:0}.clear:after,.comment-content:after,.entry-content:after,.inside-footer-widgets:not(.grid-container):after,.inside-header:not(.grid-container):after,.inside-navigation:not(.grid-container):after,.inside-top-bar:not(.grid-container):after,.page-header-content-container:after,.paging-navigation:after,.site-content:after,.site-footer:after,.site-header:after,.site-info:after{content:"";display:table;clear:both}.main-navigation{z-index:100;padding:0;clear:both;display:block}.main-navigation a{display:block;text-decoration:none;font-weight:400;text-transform:none;font-size:15px}.main-navigation ul{list-style:none;margin:0;padding-left:0}.main-navigation .main-nav ul li a{padding-left:20px;padding-right:20px;line-height:60px}.inside-navigation{position:relative}.main-navigation li{float:left;position:relative}.sf-menu>li.menu-item-float-right{float:right!important}.nav-float-right .inside-header .main-navigation{float:right;clear:right}.nav-float-left .inside-header .main-navigation{float:left;clear:left}.nav-aligned-center .main-navigation:not(.toggled) .menu>li,.nav-aligned-right .main-navigation:not(.toggled) .menu>li{float:none;display:inline-block}.nav-aligned-center .main-navigation:not(.toggled) ul,.nav-aligned-right .main-navigation:not(.toggled) ul{letter-spacing:-.31em;font-size:1em}.nav-aligned-center .main-navigation:not(.toggled) ul li,.nav-aligned-right .main-navigation:not(.toggled) ul li{letter-spacing:normal}.nav-aligned-center .main-navigation{text-align:center}.nav-aligned-right .main-navigation{text-align:right}.main-navigation li.search-item{float:right}.main-navigation .mobile-bar-items a{padding-left:20px;padding-right:20px;line-height:60px}.main-navigation ul ul{display:block;box-shadow:1px 1px 0 rgba(0,0,0,.1);float:left;position:absolute;left:-99999px;opacity:0;z-index:99999;width:200px;text-align:left;top:auto;transition:opacity 80ms linear;transition-delay:0s;pointer-events:none;height:0;overflow:hidden}.main-navigation ul ul a{display:block}.main-navigation ul ul li{width:100%}.main-navigation .main-nav ul ul li a{line-height:normal;padding:10px 20px;font-size:14px}.main-navigation .main-nav ul li.menu-item-has-children>a{padding-right:0;position:relative}.main-navigation.sub-menu-left ul ul{box-shadow:-1px 1px 0 rgba(0,0,0,.1)}.main-navigation.sub-menu-left .sub-menu{right:0}.main-navigation:not(.toggled) ul li.sfHover>ul,.main-navigation:not(.toggled) ul li:hover>ul{left:auto;opacity:1;transition-delay:150ms;pointer-events:auto;height:auto;overflow:visible}.main-navigation:not(.toggled) ul ul li.sfHover>ul,.main-navigation:not(.toggled) ul ul li:hover>ul{left:100%;top:0}.main-navigation.sub-menu-left:not(.toggled) ul ul li.sfHover>ul,.main-navigation.sub-menu-left:not(.toggled) ul ul li:hover>ul{right:100%;left:auto}.nav-float-right .main-navigation ul ul ul{top:0}.menu-item-has-children .dropdown-menu-toggle{display:inline-block;height:100%;clear:both;padding-right:20px;padding-left:10px}.menu-item-has-children ul .dropdown-menu-toggle{padding-top:10px;padding-bottom:10px;margin-top:-10px}.sidebar .menu-item-has-children .dropdown-menu-toggle,nav ul ul .menu-item-has-children .dropdown-menu-toggle{float:right}.widget-area .main-navigation li{float:none;display:block;width:100%;padding:0;margin:0}.sidebar .main-navigation.sub-menu-right ul li.sfHover ul,.sidebar .main-navigation.sub-menu-right ul li:hover ul{top:0;left:100%}.sidebar .main-navigation.sub-menu-left ul li.sfHover ul,.sidebar .main-navigation.sub-menu-left ul li:hover ul{top:0;right:100%}.site-main .comment-navigation,.site-main .post-navigation,.site-main .posts-navigation{margin:0 0 2em;overflow:hidden}.site-main .post-navigation{margin-bottom:0}.paging-navigation .nav-next,.paging-navigation .nav-previous{display:none}.paging-navigation .nav-links>*{padding:0 5px}.paging-navigation .nav-links .current{font-weight:700}.nav-links>:first-child{padding-left:0}.site-header{position:relative}.inside-header{padding:20px 40px}.main-title{margin:0;font-size:25px;line-height:1.2em;word-wrap:break-word;font-weight:700;text-transform:none}.site-description{margin:0;line-height:1.5;font-weight:400;text-transform:none;font-size:15px}.site-logo{display:inline-block;max-width:100%}.site-header .header-image{vertical-align:middle}.header-widget{float:right;overflow:hidden;max-width:50%}.header-widget .widget{padding:0 0 20px;margin-bottom:0}.header-widget .widget:last-child{padding-bottom:0}.header-widget .widget-title{margin-bottom:15px}.nav-float-right .header-widget{position:relative;top:-10px}.nav-float-right .header-widget .widget{padding:0 0 10px}.nav-float-left .inside-header .site-branding,.nav-float-left .inside-header .site-logo{float:right;clear:right}.nav-float-left .inside-header:after{clear:both;content:'';display:table}.nav-float-right .inside-header .site-branding{display:inline-block}.site-branding-container{display:inline-flex;align-items:center;text-align:left}.site-branding-container .site-logo{margin-right:1.5em}.header-aligned-center .site-header{text-align:center}.header-aligned-right .site-header{text-align:right}.header-aligned-right .site-branding-container{text-align:right}.header-aligned-right .site-branding-container .site-logo{order:10;margin-right:0;margin-left:1.5em}.sticky{display:block}.entry-header .gp-icon,.posted-on .updated{display:none}.byline,.entry-header .cat-links,.entry-header .comments-link,.entry-header .tags-links,.group-blog .byline,.single .byline{display:inline}footer.entry-meta .byline,footer.entry-meta .posted-on{display:block}.entry-content:not(:first-child),.entry-summary:not(:first-child),.page-content:not(:first-child){margin-top:2em}.page-links{clear:both;margin:0 0 1.5em}.archive .format-aside .entry-header,.archive .format-status .entry-header,.archive .format-status .entry-meta,.archive .format-status .entry-title,.blog .format-aside .entry-header,.blog .format-status .entry-header,.blog .format-status .entry-meta,.blog .format-status .entry-title{display:none}.archive .format-aside .entry-content,.archive .format-status .entry-content,.blog .format-aside .entry-content,.blog .format-status .entry-content{margin-top:0}.archive .format-status .entry-content p:last-child,.blog .format-status .entry-content p:last-child{margin-bottom:0}.entry-header,.site-content{word-wrap:break-word}.entry-title{margin-bottom:0}.author .page-header .page-title{display:flex;align-items:center}.author .page-header .avatar{margin-right:20px}.page-header .author-info>:last-child,.page-header>:last-child{margin-bottom:0}.entry-meta{font-size:85%;margin-top:.5em;line-height:1.5}footer.entry-meta{margin-top:2em}.cat-links,.comments-link,.tags-links{display:block}.entry-content>p:last-child,.entry-summary>p:last-child,.page-content>p:last-child,.read-more-container,.taxonomy-description p:last-child{margin-bottom:0}.wp-caption{margin-bottom:1.5em;max-width:100%;position:relative}.wp-caption img[class*=wp-image-]{display:block;margin:0 auto 0;max-width:100%}.wp-caption .wp-caption-text{font-size:75%;padding-top:5px;opacity:.8}.wp-caption img{position:relative;vertical-align:bottom}.wp-block-image figcaption{font-size:13px;text-align:center}.wp-block-gallery,ul.blocks-gallery-grid{margin-left:0}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{background:rgba(255,255,255,.7);color:#000;padding:10px;box-sizing:border-box}.gallery{margin-bottom:1.5em}.gallery-item{display:inline-block;text-align:center;vertical-align:top;width:100%}.gallery-columns-2 .gallery-item{max-width:50%}.gallery-columns-3 .gallery-item{max-width:33.33%}.gallery-columns-4 .gallery-item{max-width:25%}.gallery-columns-5 .gallery-item{max-width:20%}.gallery-columns-6 .gallery-item{max-width:16.66%}.gallery-columns-7 .gallery-item{max-width:14.28%}.gallery-columns-8 .gallery-item{max-width:12.5%}.gallery-columns-9 .gallery-item{max-width:11.11%}.gallery-caption{display:block}.site-main .gallery{margin-bottom:1.5em}.gallery-item img{vertical-align:bottom}.gallery-icon{padding:5px}embed,iframe,object{max-width:100%}.wp-block-post-template{margin-left:0}.comment-content a{word-wrap:break-word}.bypostauthor{display:block}.comment,.comment-list{list-style-type:none;padding:0;margin:0}.comment-author-info{display:inline-block;vertical-align:middle}.comment-meta .avatar{float:left;margin-right:10px;border-radius:50%}.comment-author cite{font-style:normal;font-weight:700}.entry-meta.comment-metadata{margin-top:0}.comment-content{margin-top:1.5em}.comment-respond{margin-top:0}.comment-form>.form-submit{margin-bottom:0}.comment-form input,.comment-form-comment{margin-bottom:10px}.comment-form-comment textarea{resize:vertical}.comment-form #author,.comment-form #email,.comment-form #url{display:block}.comment-metadata .edit-link:before{display:none}.comment-body{padding:30px 0}.comment-content{padding:30px;border:1px solid rgba(0,0,0,.05)}.depth-1.parent>.children{border-bottom:1px solid rgba(0,0,0,.05)}.comment .children{padding-left:30px;margin-top:-30px;border-left:1px solid rgba(0,0,0,.05)}.pingback .comment-body,.trackback .comment-body{border-bottom:1px solid rgba(0,0,0,.05)}.pingback .edit-link{font-size:13px}.comment-content p:last-child{margin-bottom:0}.comment-list>.comment:first-child{padding-top:0;margin-top:0;border-top:0}ol.comment-list{margin-bottom:1.5em}.comment-form-cookies-consent{display:flex;align-items:center}.comment-form-cookies-consent input{margin-right:.5em;margin-bottom:0}.one-container .comments-area{margin-top:1.5em}.comment-content .reply{font-size:85%}#cancel-comment-reply-link{padding-left:10px}.widget-area .widget{padding:40px}.widget select{max-width:100%}.footer-widgets .widget :last-child,.sidebar .widget :last-child{margin-bottom:0}.widget-title{margin-bottom:30px;font-size:20px;line-height:1.5;font-weight:400;text-transform:none}.widget ol,.widget ul{margin:0}.widget .search-field{width:100%}.widget_search .search-submit{display:none}.widget{margin:0 0 30px;box-sizing:border-box}.separate-containers .widget:last-child,.widget:last-child{margin-bottom:0}.footer-widgets .widget,.sidebar .widget{font-size:17px}.widget ul li{list-style-type:none;position:relative;padding-bottom:5px}.widget_categories .children{margin-left:1.5em;padding-top:5px}.widget_categories .children li:last-child{padding-bottom:0}.widget_nav_menu ul ul,.widget_pages ul ul{margin-left:1em;margin-top:5px}.widget ul li.menu-item-has-children,.widget ul li.page_item_has_children{padding-bottom:0}#wp-calendar{table-layout:fixed;font-size:80%}#wp-calendar #prev,#wp-calendar #prev+.pad{border-right:0}.sidebar .grid-container{max-width:100%;width:100%}.post{margin:0 0 2em}.page-header{margin-bottom:30px}.one-container.both-left .inside-left-sidebar,.one-container.both-right .inside-left-sidebar{margin-right:20px}.one-container.both-left .inside-right-sidebar,.one-container.both-right .inside-right-sidebar{margin-left:20px}.one-container:not(.page) .inside-article{padding:0 0 30px 0}.one-container.both-right .site-main,.one-container.right-sidebar .site-main{margin-right:40px}.one-container.both-left .site-main,.one-container.left-sidebar .site-main{margin-left:40px}.one-container.both-sidebars .site-main{margin:0 40px 0 40px}.one-container .site-content{padding:40px}.separate-containers .comments-area,.separate-containers .inside-article,.separate-containers .page-header,.separate-containers .paging-navigation{padding:40px}.separate-containers .page-header,.separate-containers .site-main>*,.separate-containers .widget{margin-bottom:20px}.separate-containers .site-main{margin:20px}.separate-containers.no-sidebar .site-main{margin-left:0;margin-right:0}.separate-containers.both-right .site-main,.separate-containers.right-sidebar .site-main{margin-left:0}.separate-containers.both-left .site-main,.separate-containers.left-sidebar .site-main{margin-right:0}.separate-containers.both-left .inside-left-sidebar,.separate-containers.both-right .inside-left-sidebar{margin-right:10px}.separate-containers.both-left .inside-right-sidebar,.separate-containers.both-right .inside-right-sidebar{margin-left:10px}.separate-containers .inside-left-sidebar,.separate-containers .inside-right-sidebar{margin-top:20px;margin-bottom:20px}.inside-page-header{padding:40px}.widget-area .main-navigation{margin-bottom:20px}.one-container .site-main>:last-child,.separate-containers .site-main>:last-child{margin-bottom:0}.full-width-content .container.grid-container{max-width:100%}.full-width-content.no-sidebar.separate-containers .site-main{margin:0}.full-width-content.one-container .site-content,.full-width-content.separate-containers .inside-article{padding:0}.full-width-content .entry-content .alignwide{margin-left:0;width:auto;max-width:unset}.contained-content.one-container .site-content,.contained-content.separate-containers .inside-article{padding:0}.site-info{text-align:center;font-size:15px}.site-info{padding:20px 40px}.footer-widgets{padding:40px}.site-footer .footer-widgets-container .inner-padding{padding:0 0 0 40px}.site-footer .footer-widgets-container .inside-footer-widgets{margin-left:-40px}.footer-bar-active .footer-bar .widget{padding:0}.footer-bar .widget_nav_menu>div>ul{display:inline-block;vertical-align:top}.footer-bar .widget_nav_menu li{margin:0 10px;float:left;padding:0}.footer-bar .widget_nav_menu li:first-child{margin-left:0}.footer-bar .widget_nav_menu li:last-child{margin-right:0}.footer-bar .widget_nav_menu li ul{display:none}.footer-bar .textwidget p:last-child{margin:0}.footer-bar .widget-title{display:none}.footer-bar-align-right .copyright-bar{float:left}.footer-bar-align-right .footer-bar{float:right;text-align:right}.footer-bar-align-left .copyright-bar{float:right;text-align:right}.footer-bar-align-left .footer-bar{float:left;text-align:left}.footer-bar-align-center .copyright-bar{float:none;text-align:center}.footer-bar-align-center .footer-bar{float:none;text-align:center;margin-bottom:10px}.post-image:not(:first-child){margin-top:2em}.page-header-image,.page-header-image-single{line-height:0}.one-container .inside-article>[class*=page-header-],.separate-containers .inside-article>[class*=page-header-]{margin-bottom:2em;margin-top:0}.inside-article .page-header-image-single.page-header-below-title{margin-top:2em}.separate-containers .page-header-contained,.separate-containers .page-header-content,.separate-containers .page-header-content-single,.separate-containers .page-header-image,.separate-containers .page-header-image-single{margin-top:20px}.top-bar{font-weight:400;text-transform:none;font-size:13px}.top-bar .inside-top-bar .widget{padding:0;display:inline-block;margin:0}.top-bar .inside-top-bar .textwidget p:last-child{margin:0}.top-bar .widget-title{display:none}.top-bar .widget_nav_menu li{margin:0 10px;float:left;padding:0}.top-bar .widget_nav_menu li:first-child{margin-left:0}.top-bar .widget_nav_menu li:last-child{margin-right:0}.top-bar .widget_nav_menu li ul{display:none}.top-bar .widget_nav_menu>div>ul{display:inline-block;vertical-align:top}.inside-top-bar{padding:10px 40px}.top-bar-align-center{text-align:center}.top-bar-align-center .inside-top-bar .widget:not(:first-child){margin-left:10px}.top-bar-align-center .inside-top-bar .widget:first-child:last-child{display:block}.top-bar-align-right{text-align:right}.top-bar-align-right .inside-top-bar>.widget:nth-child(2n){float:left;margin-right:10px}.top-bar-align-right .inside-top-bar>.widget:nth-child(odd){margin-left:10px}.top-bar-align-left .inside-top-bar>.widget:nth-child(odd){float:left;margin-right:10px}.top-bar-align-left .inside-top-bar>.widget:nth-child(2n){margin-left:10px;float:right}.gp-icon{display:inline-flex;align-self:center}.gp-icon svg{height:1em;width:1em;top:.125em;position:relative;fill:currentColor}.close-search .icon-search svg:first-child,.icon-menu-bars svg:nth-child(2),.icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:first-child{display:none}.close-search .icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:nth-child(2){display:block}.entry-meta .gp-icon{margin-right:.6em;opacity:.7}nav.toggled .icon-arrow-left svg{transform:rotate(-90deg)}nav.toggled .icon-arrow-right svg{transform:rotate(90deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon svg{transform:rotate(180deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon.icon-arrow-left svg{transform:rotate(-270deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon.icon-arrow-right svg{transform:rotate(270deg)}.container.grid-container{width:auto}.infinite-scroll .paging-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.so-panel.widget{padding:0}#mc_embed_signup .clear{display:block;height:auto;visibility:visible;width:auto}.menu-toggle,.mobile-bar-items,.sidebar-nav-mobile{display:none}.menu-toggle{padding:0 20px;line-height:60px;margin:0;font-weight:400;text-transform:none;font-size:15px;cursor:pointer}button.menu-toggle{background-color:transparent;width:100%;border:0;text-align:center}button.menu-toggle:active,button.menu-toggle:focus,button.menu-toggle:hover{background-color:transparent}.menu-toggle .mobile-menu{padding-left:3px}.menu-toggle .gp-icon+.mobile-menu{padding-left:9px}.menu-toggle .mobile-menu:empty{display:none}.nav-search-enabled .main-navigation .menu-toggle{text-align:left}.mobile-bar-items{display:none;position:absolute;right:0;top:0;z-index:21;list-style-type:none}.mobile-bar-items a{display:inline-block}nav.toggled ul ul.sub-menu{width:100%}.dropdown-hover .main-navigation.toggled ul li.sfHover>ul,.dropdown-hover .main-navigation.toggled ul li:hover>ul{transition-delay:0s}.toggled .menu-item-has-children .dropdown-menu-toggle{padding-left:20px}.main-navigation.toggled ul ul{transition:0s;visibility:hidden}.main-navigation.toggled .main-nav>ul{display:block}.main-navigation.toggled .main-nav ul ul.toggled-on{position:relative;top:0;left:auto!important;right:auto!important;width:100%;pointer-events:auto;height:auto;opacity:1;display:block;visibility:visible;float:none}.main-navigation.toggled .main-nav li{float:none;clear:both;display:block;text-align:left}.main-navigation.toggled .main-nav li.hide-on-mobile{display:none!important}.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle{float:right}.main-navigation.toggled .menu li.search-item{display:none!important}.main-navigation.toggled .sf-menu>li.menu-item-float-right{float:none;display:inline-block}@media (max-width:768px){a,body,button,input,select,textarea{transition:all 0s ease-in-out}.top-bar.top-bar-align-left,.top-bar.top-bar-align-right{text-align:center}.top-bar .widget{float:none!important;margin:0 10px!important}.top-bar .widget_nav_menu li{float:none;display:inline-block;padding:5px 0}.footer-bar .widget_nav_menu li:first-child{margin-left:10px}.footer-bar .widget_nav_menu li:last-child{margin-right:10px}.inside-header>:not(:last-child):not(.main-navigation){margin-bottom:20px}.header-aligned-right .site-header,.site-header{text-align:center}.header-widget{float:none;max-width:100%;text-align:center}.content-area,.inside-footer-widgets>div,.sidebar{float:none;width:100%;left:0;right:0}.site-main{margin-left:0!important;margin-right:0!important}body:not(.no-sidebar) .site-main{margin-bottom:0!important}.one-container .sidebar{margin-top:40px}.separate-containers #left-sidebar+#right-sidebar .inside-right-sidebar{margin-top:0}.both-left.separate-containers .inside-left-sidebar,.both-left.separate-containers .inside-right-sidebar,.both-right.separate-containers .inside-left-sidebar,.both-right.separate-containers .inside-right-sidebar{margin-right:0;margin-left:0}.alignleft,.alignright{float:none;display:block;margin-left:auto;margin-right:auto}.post-image-aligned-left .post-image,.post-image-aligned-right .post-image{float:none;margin:2em 0;text-align:center}.comment .children{padding-left:10px;margin-left:0}.edd_download{display:block;float:none!important;margin-bottom:1.5em;width:100%!important}.entry-meta{font-size:inherit}.entry-meta a{line-height:1.8em}.site-info{text-align:center}.copyright-bar{float:none!important;text-align:center!important}.footer-bar{float:none!important;text-align:center!important;margin-bottom:20px}.footer-bar .widget_nav_menu li{float:none;display:inline-block;padding:5px 0}.inside-footer-widgets>div:not(:last-child){margin-bottom:40px}.site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets{margin:0}.site-footer .footer-widgets .footer-widgets-container .inner-padding{padding:0}} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/comments.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/comments.css deleted file mode 100644 index 56a56ac2..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/comments.css +++ /dev/null @@ -1,129 +0,0 @@ -.comment-content a { - word-wrap: break-word; -} - -.bypostauthor { - display: block; -} - -.comment, -.comment-list { - list-style-type: none; - padding: 0; - margin: 0; -} - -.comment-author-info { - display: inline-block; - vertical-align: middle; -} - -.comment-meta .avatar { - float: left; - margin-right: 10px; - border-radius: 50%; -} - -.comment-author cite { - font-style: normal; - font-weight: bold; -} - -.entry-meta.comment-metadata { - margin-top: 0; -} - -.comment-content { - margin-top: 1.5em; -} - -.comment-respond { - margin-top: 0; -} - -.comment-form > .form-submit { - margin-bottom: 0; -} - -.comment-form input, -.comment-form-comment { - margin-bottom: 10px; -} - -.comment-form-comment textarea { - resize: vertical; -} - -.comment-form #author, -.comment-form #email, -.comment-form #url { - display: block; -} - -.comment-metadata .edit-link:before { - display: none; -} - -.comment-body { - padding: 30px 0; -} - -.comment-content { - padding: 30px; - border: 1px solid rgba(0, 0, 0, 0.05); -} - -.depth-1.parent > .children { - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -.comment .children { - padding-left: 30px; - margin-top: -30px; - border-left: 1px solid rgba(0, 0, 0, 0.05); -} - -.pingback .comment-body, -.trackback .comment-body { - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -.pingback .edit-link { - font-size: 13px; -} - -.comment-content p:last-child { - margin-bottom: 0; -} - -.comment-list > .comment:first-child { - padding-top: 0; - margin-top: 0; - border-top: 0; -} - -ol.comment-list { - margin-bottom: 1.5em; -} - -.comment-form-cookies-consent { - display: flex; - align-items: center; -} - -.comment-form-cookies-consent input { - margin-right: 0.5em; - margin-bottom: 0; -} - -.one-container .comments-area { - margin-top: 1.5em; -} - -.comment-content .reply { - font-size: 85%; -} - -#cancel-comment-reply-link { - padding-left: 10px; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/comments.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/comments.min.css deleted file mode 100644 index 17a40bac..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/comments.min.css +++ /dev/null @@ -1 +0,0 @@ -.comment-content a{word-wrap:break-word}.bypostauthor{display:block}.comment,.comment-list{list-style-type:none;padding:0;margin:0}.comment-author-info{display:inline-block;vertical-align:middle}.comment-meta .avatar{float:left;margin-right:10px;border-radius:50%}.comment-author cite{font-style:normal;font-weight:700}.entry-meta.comment-metadata{margin-top:0}.comment-content{margin-top:1.5em}.comment-respond{margin-top:0}.comment-form>.form-submit{margin-bottom:0}.comment-form input,.comment-form-comment{margin-bottom:10px}.comment-form-comment textarea{resize:vertical}.comment-form #author,.comment-form #email,.comment-form #url{display:block}.comment-metadata .edit-link:before{display:none}.comment-body{padding:30px 0}.comment-content{padding:30px;border:1px solid rgba(0,0,0,.05)}.depth-1.parent>.children{border-bottom:1px solid rgba(0,0,0,.05)}.comment .children{padding-left:30px;margin-top:-30px;border-left:1px solid rgba(0,0,0,.05)}.pingback .comment-body,.trackback .comment-body{border-bottom:1px solid rgba(0,0,0,.05)}.pingback .edit-link{font-size:13px}.comment-content p:last-child{margin-bottom:0}.comment-list>.comment:first-child{padding-top:0;margin-top:0;border-top:0}ol.comment-list{margin-bottom:1.5em}.comment-form-cookies-consent{display:flex;align-items:center}.comment-form-cookies-consent input{margin-right:.5em;margin-bottom:0}.one-container .comments-area{margin-top:1.5em}.comment-content .reply{font-size:85%}#cancel-comment-reply-link{padding-left:10px} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-awesome.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-awesome.css deleted file mode 100644 index 24283478..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-awesome.css +++ /dev/null @@ -1,2337 +0,0 @@ -/*! - * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome - * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */ -/* FONT PATH - * -------------------------- */ -@font-face { - font-family: 'FontAwesome'; - src: url('../../fonts/fontawesome-webfont.eot'); - src: url('../../fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'), url('../../fonts/fontawesome-webfont.woff2') format('woff2'), url('../../fonts/fontawesome-webfont.woff') format('woff'), url('../../fonts/fontawesome-webfont.ttf') format('truetype'), url('../../fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg'); - font-weight: normal; - font-style: normal; -} -.fa { - display: inline-block; - font: normal normal normal 14px/1 FontAwesome; - font-size: inherit; - text-rendering: auto; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -/* makes the font 33% larger relative to the icon container */ -.fa-lg { - font-size: 1.33333333em; - line-height: 0.75em; - vertical-align: -15%; -} -.fa-2x { - font-size: 2em; -} -.fa-3x { - font-size: 3em; -} -.fa-4x { - font-size: 4em; -} -.fa-5x { - font-size: 5em; -} -.fa-fw { - width: 1.28571429em; - text-align: center; -} -.fa-ul { - padding-left: 0; - margin-left: 2.14285714em; - list-style-type: none; -} -.fa-ul > li { - position: relative; -} -.fa-li { - position: absolute; - left: -2.14285714em; - width: 2.14285714em; - top: 0.14285714em; - text-align: center; -} -.fa-li.fa-lg { - left: -1.85714286em; -} -.fa-border { - padding: .2em .25em .15em; - border: solid 0.08em #eeeeee; - border-radius: .1em; -} -.fa-pull-left { - float: left; -} -.fa-pull-right { - float: right; -} -.fa.fa-pull-left { - margin-right: .3em; -} -.fa.fa-pull-right { - margin-left: .3em; -} -/* Deprecated as of 4.4.0 */ -.pull-right { - float: right; -} -.pull-left { - float: left; -} -.fa.pull-left { - margin-right: .3em; -} -.fa.pull-right { - margin-left: .3em; -} -.fa-spin { - -webkit-animation: fa-spin 2s infinite linear; - animation: fa-spin 2s infinite linear; -} -.fa-pulse { - -webkit-animation: fa-spin 1s infinite steps(8); - animation: fa-spin 1s infinite steps(8); -} -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} -@keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} -.fa-rotate-90 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"; - -webkit-transform: rotate(90deg); - -ms-transform: rotate(90deg); - transform: rotate(90deg); -} -.fa-rotate-180 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); -} -.fa-rotate-270 { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; - -webkit-transform: rotate(270deg); - -ms-transform: rotate(270deg); - transform: rotate(270deg); -} -.fa-flip-horizontal { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; - -webkit-transform: scale(-1, 1); - -ms-transform: scale(-1, 1); - transform: scale(-1, 1); -} -.fa-flip-vertical { - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; - -webkit-transform: scale(1, -1); - -ms-transform: scale(1, -1); - transform: scale(1, -1); -} -:root .fa-rotate-90, -:root .fa-rotate-180, -:root .fa-rotate-270, -:root .fa-flip-horizontal, -:root .fa-flip-vertical { - filter: none; -} -.fa-stack { - position: relative; - display: inline-block; - width: 2em; - height: 2em; - line-height: 2em; - vertical-align: middle; -} -.fa-stack-1x, -.fa-stack-2x { - position: absolute; - left: 0; - width: 100%; - text-align: center; -} -.fa-stack-1x { - line-height: inherit; -} -.fa-stack-2x { - font-size: 2em; -} -.fa-inverse { - color: #ffffff; -} -/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen - readers do not read off random characters that represent icons */ -.fa-glass:before { - content: "\f000"; -} -.fa-music:before { - content: "\f001"; -} -.fa-search:before { - content: "\f002"; -} -.fa-envelope-o:before { - content: "\f003"; -} -.fa-heart:before { - content: "\f004"; -} -.fa-star:before { - content: "\f005"; -} -.fa-star-o:before { - content: "\f006"; -} -.fa-user:before { - content: "\f007"; -} -.fa-film:before { - content: "\f008"; -} -.fa-th-large:before { - content: "\f009"; -} -.fa-th:before { - content: "\f00a"; -} -.fa-th-list:before { - content: "\f00b"; -} -.fa-check:before { - content: "\f00c"; -} -.fa-remove:before, -.fa-close:before, -.fa-times:before { - content: "\f00d"; -} -.fa-search-plus:before { - content: "\f00e"; -} -.fa-search-minus:before { - content: "\f010"; -} -.fa-power-off:before { - content: "\f011"; -} -.fa-signal:before { - content: "\f012"; -} -.fa-gear:before, -.fa-cog:before { - content: "\f013"; -} -.fa-trash-o:before { - content: "\f014"; -} -.fa-home:before { - content: "\f015"; -} -.fa-file-o:before { - content: "\f016"; -} -.fa-clock-o:before { - content: "\f017"; -} -.fa-road:before { - content: "\f018"; -} -.fa-download:before { - content: "\f019"; -} -.fa-arrow-circle-o-down:before { - content: "\f01a"; -} -.fa-arrow-circle-o-up:before { - content: "\f01b"; -} -.fa-inbox:before { - content: "\f01c"; -} -.fa-play-circle-o:before { - content: "\f01d"; -} -.fa-rotate-right:before, -.fa-repeat:before { - content: "\f01e"; -} -.fa-refresh:before { - content: "\f021"; -} -.fa-list-alt:before { - content: "\f022"; -} -.fa-lock:before { - content: "\f023"; -} -.fa-flag:before { - content: "\f024"; -} -.fa-headphones:before { - content: "\f025"; -} -.fa-volume-off:before { - content: "\f026"; -} -.fa-volume-down:before { - content: "\f027"; -} -.fa-volume-up:before { - content: "\f028"; -} -.fa-qrcode:before { - content: "\f029"; -} -.fa-barcode:before { - content: "\f02a"; -} -.fa-tag:before { - content: "\f02b"; -} -.fa-tags:before { - content: "\f02c"; -} -.fa-book:before { - content: "\f02d"; -} -.fa-bookmark:before { - content: "\f02e"; -} -.fa-print:before { - content: "\f02f"; -} -.fa-camera:before { - content: "\f030"; -} -.fa-font:before { - content: "\f031"; -} -.fa-bold:before { - content: "\f032"; -} -.fa-italic:before { - content: "\f033"; -} -.fa-text-height:before { - content: "\f034"; -} -.fa-text-width:before { - content: "\f035"; -} -.fa-align-left:before { - content: "\f036"; -} -.fa-align-center:before { - content: "\f037"; -} -.fa-align-right:before { - content: "\f038"; -} -.fa-align-justify:before { - content: "\f039"; -} -.fa-list:before { - content: "\f03a"; -} -.fa-dedent:before, -.fa-outdent:before { - content: "\f03b"; -} -.fa-indent:before { - content: "\f03c"; -} -.fa-video-camera:before { - content: "\f03d"; -} -.fa-photo:before, -.fa-image:before, -.fa-picture-o:before { - content: "\f03e"; -} -.fa-pencil:before { - content: "\f040"; -} -.fa-map-marker:before { - content: "\f041"; -} -.fa-adjust:before { - content: "\f042"; -} -.fa-tint:before { - content: "\f043"; -} -.fa-edit:before, -.fa-pencil-square-o:before { - content: "\f044"; -} -.fa-share-square-o:before { - content: "\f045"; -} -.fa-check-square-o:before { - content: "\f046"; -} -.fa-arrows:before { - content: "\f047"; -} -.fa-step-backward:before { - content: "\f048"; -} -.fa-fast-backward:before { - content: "\f049"; -} -.fa-backward:before { - content: "\f04a"; -} -.fa-play:before { - content: "\f04b"; -} -.fa-pause:before { - content: "\f04c"; -} -.fa-stop:before { - content: "\f04d"; -} -.fa-forward:before { - content: "\f04e"; -} -.fa-fast-forward:before { - content: "\f050"; -} -.fa-step-forward:before { - content: "\f051"; -} -.fa-eject:before { - content: "\f052"; -} -.fa-chevron-left:before { - content: "\f053"; -} -.fa-chevron-right:before { - content: "\f054"; -} -.fa-plus-circle:before { - content: "\f055"; -} -.fa-minus-circle:before { - content: "\f056"; -} -.fa-times-circle:before { - content: "\f057"; -} -.fa-check-circle:before { - content: "\f058"; -} -.fa-question-circle:before { - content: "\f059"; -} -.fa-info-circle:before { - content: "\f05a"; -} -.fa-crosshairs:before { - content: "\f05b"; -} -.fa-times-circle-o:before { - content: "\f05c"; -} -.fa-check-circle-o:before { - content: "\f05d"; -} -.fa-ban:before { - content: "\f05e"; -} -.fa-arrow-left:before { - content: "\f060"; -} -.fa-arrow-right:before { - content: "\f061"; -} -.fa-arrow-up:before { - content: "\f062"; -} -.fa-arrow-down:before { - content: "\f063"; -} -.fa-mail-forward:before, -.fa-share:before { - content: "\f064"; -} -.fa-expand:before { - content: "\f065"; -} -.fa-compress:before { - content: "\f066"; -} -.fa-plus:before { - content: "\f067"; -} -.fa-minus:before { - content: "\f068"; -} -.fa-asterisk:before { - content: "\f069"; -} -.fa-exclamation-circle:before { - content: "\f06a"; -} -.fa-gift:before { - content: "\f06b"; -} -.fa-leaf:before { - content: "\f06c"; -} -.fa-fire:before { - content: "\f06d"; -} -.fa-eye:before { - content: "\f06e"; -} -.fa-eye-slash:before { - content: "\f070"; -} -.fa-warning:before, -.fa-exclamation-triangle:before { - content: "\f071"; -} -.fa-plane:before { - content: "\f072"; -} -.fa-calendar:before { - content: "\f073"; -} -.fa-random:before { - content: "\f074"; -} -.fa-comment:before { - content: "\f075"; -} -.fa-magnet:before { - content: "\f076"; -} -.fa-chevron-up:before { - content: "\f077"; -} -.fa-chevron-down:before { - content: "\f078"; -} -.fa-retweet:before { - content: "\f079"; -} -.fa-shopping-cart:before { - content: "\f07a"; -} -.fa-folder:before { - content: "\f07b"; -} -.fa-folder-open:before { - content: "\f07c"; -} -.fa-arrows-v:before { - content: "\f07d"; -} -.fa-arrows-h:before { - content: "\f07e"; -} -.fa-bar-chart-o:before, -.fa-bar-chart:before { - content: "\f080"; -} -.fa-twitter-square:before { - content: "\f081"; -} -.fa-facebook-square:before { - content: "\f082"; -} -.fa-camera-retro:before { - content: "\f083"; -} -.fa-key:before { - content: "\f084"; -} -.fa-gears:before, -.fa-cogs:before { - content: "\f085"; -} -.fa-comments:before { - content: "\f086"; -} -.fa-thumbs-o-up:before { - content: "\f087"; -} -.fa-thumbs-o-down:before { - content: "\f088"; -} -.fa-star-half:before { - content: "\f089"; -} -.fa-heart-o:before { - content: "\f08a"; -} -.fa-sign-out:before { - content: "\f08b"; -} -.fa-linkedin-square:before { - content: "\f08c"; -} -.fa-thumb-tack:before { - content: "\f08d"; -} -.fa-external-link:before { - content: "\f08e"; -} -.fa-sign-in:before { - content: "\f090"; -} -.fa-trophy:before { - content: "\f091"; -} -.fa-github-square:before { - content: "\f092"; -} -.fa-upload:before { - content: "\f093"; -} -.fa-lemon-o:before { - content: "\f094"; -} -.fa-phone:before { - content: "\f095"; -} -.fa-square-o:before { - content: "\f096"; -} -.fa-bookmark-o:before { - content: "\f097"; -} -.fa-phone-square:before { - content: "\f098"; -} -.fa-twitter:before { - content: "\f099"; -} -.fa-facebook-f:before, -.fa-facebook:before { - content: "\f09a"; -} -.fa-github:before { - content: "\f09b"; -} -.fa-unlock:before { - content: "\f09c"; -} -.fa-credit-card:before { - content: "\f09d"; -} -.fa-feed:before, -.fa-rss:before { - content: "\f09e"; -} -.fa-hdd-o:before { - content: "\f0a0"; -} -.fa-bullhorn:before { - content: "\f0a1"; -} -.fa-bell:before { - content: "\f0f3"; -} -.fa-certificate:before { - content: "\f0a3"; -} -.fa-hand-o-right:before { - content: "\f0a4"; -} -.fa-hand-o-left:before { - content: "\f0a5"; -} -.fa-hand-o-up:before { - content: "\f0a6"; -} -.fa-hand-o-down:before { - content: "\f0a7"; -} -.fa-arrow-circle-left:before { - content: "\f0a8"; -} -.fa-arrow-circle-right:before { - content: "\f0a9"; -} -.fa-arrow-circle-up:before { - content: "\f0aa"; -} -.fa-arrow-circle-down:before { - content: "\f0ab"; -} -.fa-globe:before { - content: "\f0ac"; -} -.fa-wrench:before { - content: "\f0ad"; -} -.fa-tasks:before { - content: "\f0ae"; -} -.fa-filter:before { - content: "\f0b0"; -} -.fa-briefcase:before { - content: "\f0b1"; -} -.fa-arrows-alt:before { - content: "\f0b2"; -} -.fa-group:before, -.fa-users:before { - content: "\f0c0"; -} -.fa-chain:before, -.fa-link:before { - content: "\f0c1"; -} -.fa-cloud:before { - content: "\f0c2"; -} -.fa-flask:before { - content: "\f0c3"; -} -.fa-cut:before, -.fa-scissors:before { - content: "\f0c4"; -} -.fa-copy:before, -.fa-files-o:before { - content: "\f0c5"; -} -.fa-paperclip:before { - content: "\f0c6"; -} -.fa-save:before, -.fa-floppy-o:before { - content: "\f0c7"; -} -.fa-square:before { - content: "\f0c8"; -} -.fa-navicon:before, -.fa-reorder:before, -.fa-bars:before { - content: "\f0c9"; -} -.fa-list-ul:before { - content: "\f0ca"; -} -.fa-list-ol:before { - content: "\f0cb"; -} -.fa-strikethrough:before { - content: "\f0cc"; -} -.fa-underline:before { - content: "\f0cd"; -} -.fa-table:before { - content: "\f0ce"; -} -.fa-magic:before { - content: "\f0d0"; -} -.fa-truck:before { - content: "\f0d1"; -} -.fa-pinterest:before { - content: "\f0d2"; -} -.fa-pinterest-square:before { - content: "\f0d3"; -} -.fa-google-plus-square:before { - content: "\f0d4"; -} -.fa-google-plus:before { - content: "\f0d5"; -} -.fa-money:before { - content: "\f0d6"; -} -.fa-caret-down:before { - content: "\f0d7"; -} -.fa-caret-up:before { - content: "\f0d8"; -} -.fa-caret-left:before { - content: "\f0d9"; -} -.fa-caret-right:before { - content: "\f0da"; -} -.fa-columns:before { - content: "\f0db"; -} -.fa-unsorted:before, -.fa-sort:before { - content: "\f0dc"; -} -.fa-sort-down:before, -.fa-sort-desc:before { - content: "\f0dd"; -} -.fa-sort-up:before, -.fa-sort-asc:before { - content: "\f0de"; -} -.fa-envelope:before { - content: "\f0e0"; -} -.fa-linkedin:before { - content: "\f0e1"; -} -.fa-rotate-left:before, -.fa-undo:before { - content: "\f0e2"; -} -.fa-legal:before, -.fa-gavel:before { - content: "\f0e3"; -} -.fa-dashboard:before, -.fa-tachometer:before { - content: "\f0e4"; -} -.fa-comment-o:before { - content: "\f0e5"; -} -.fa-comments-o:before { - content: "\f0e6"; -} -.fa-flash:before, -.fa-bolt:before { - content: "\f0e7"; -} -.fa-sitemap:before { - content: "\f0e8"; -} -.fa-umbrella:before { - content: "\f0e9"; -} -.fa-paste:before, -.fa-clipboard:before { - content: "\f0ea"; -} -.fa-lightbulb-o:before { - content: "\f0eb"; -} -.fa-exchange:before { - content: "\f0ec"; -} -.fa-cloud-download:before { - content: "\f0ed"; -} -.fa-cloud-upload:before { - content: "\f0ee"; -} -.fa-user-md:before { - content: "\f0f0"; -} -.fa-stethoscope:before { - content: "\f0f1"; -} -.fa-suitcase:before { - content: "\f0f2"; -} -.fa-bell-o:before { - content: "\f0a2"; -} -.fa-coffee:before { - content: "\f0f4"; -} -.fa-cutlery:before { - content: "\f0f5"; -} -.fa-file-text-o:before { - content: "\f0f6"; -} -.fa-building-o:before { - content: "\f0f7"; -} -.fa-hospital-o:before { - content: "\f0f8"; -} -.fa-ambulance:before { - content: "\f0f9"; -} -.fa-medkit:before { - content: "\f0fa"; -} -.fa-fighter-jet:before { - content: "\f0fb"; -} -.fa-beer:before { - content: "\f0fc"; -} -.fa-h-square:before { - content: "\f0fd"; -} -.fa-plus-square:before { - content: "\f0fe"; -} -.fa-angle-double-left:before { - content: "\f100"; -} -.fa-angle-double-right:before { - content: "\f101"; -} -.fa-angle-double-up:before { - content: "\f102"; -} -.fa-angle-double-down:before { - content: "\f103"; -} -.fa-angle-left:before { - content: "\f104"; -} -.fa-angle-right:before { - content: "\f105"; -} -.fa-angle-up:before { - content: "\f106"; -} -.fa-angle-down:before { - content: "\f107"; -} -.fa-desktop:before { - content: "\f108"; -} -.fa-laptop:before { - content: "\f109"; -} -.fa-tablet:before { - content: "\f10a"; -} -.fa-mobile-phone:before, -.fa-mobile:before { - content: "\f10b"; -} -.fa-circle-o:before { - content: "\f10c"; -} -.fa-quote-left:before { - content: "\f10d"; -} -.fa-quote-right:before { - content: "\f10e"; -} -.fa-spinner:before { - content: "\f110"; -} -.fa-circle:before { - content: "\f111"; -} -.fa-mail-reply:before, -.fa-reply:before { - content: "\f112"; -} -.fa-github-alt:before { - content: "\f113"; -} -.fa-folder-o:before { - content: "\f114"; -} -.fa-folder-open-o:before { - content: "\f115"; -} -.fa-smile-o:before { - content: "\f118"; -} -.fa-frown-o:before { - content: "\f119"; -} -.fa-meh-o:before { - content: "\f11a"; -} -.fa-gamepad:before { - content: "\f11b"; -} -.fa-keyboard-o:before { - content: "\f11c"; -} -.fa-flag-o:before { - content: "\f11d"; -} -.fa-flag-checkered:before { - content: "\f11e"; -} -.fa-terminal:before { - content: "\f120"; -} -.fa-code:before { - content: "\f121"; -} -.fa-mail-reply-all:before, -.fa-reply-all:before { - content: "\f122"; -} -.fa-star-half-empty:before, -.fa-star-half-full:before, -.fa-star-half-o:before { - content: "\f123"; -} -.fa-location-arrow:before { - content: "\f124"; -} -.fa-crop:before { - content: "\f125"; -} -.fa-code-fork:before { - content: "\f126"; -} -.fa-unlink:before, -.fa-chain-broken:before { - content: "\f127"; -} -.fa-question:before { - content: "\f128"; -} -.fa-info:before { - content: "\f129"; -} -.fa-exclamation:before { - content: "\f12a"; -} -.fa-superscript:before { - content: "\f12b"; -} -.fa-subscript:before { - content: "\f12c"; -} -.fa-eraser:before { - content: "\f12d"; -} -.fa-puzzle-piece:before { - content: "\f12e"; -} -.fa-microphone:before { - content: "\f130"; -} -.fa-microphone-slash:before { - content: "\f131"; -} -.fa-shield:before { - content: "\f132"; -} -.fa-calendar-o:before { - content: "\f133"; -} -.fa-fire-extinguisher:before { - content: "\f134"; -} -.fa-rocket:before { - content: "\f135"; -} -.fa-maxcdn:before { - content: "\f136"; -} -.fa-chevron-circle-left:before { - content: "\f137"; -} -.fa-chevron-circle-right:before { - content: "\f138"; -} -.fa-chevron-circle-up:before { - content: "\f139"; -} -.fa-chevron-circle-down:before { - content: "\f13a"; -} -.fa-html5:before { - content: "\f13b"; -} -.fa-css3:before { - content: "\f13c"; -} -.fa-anchor:before { - content: "\f13d"; -} -.fa-unlock-alt:before { - content: "\f13e"; -} -.fa-bullseye:before { - content: "\f140"; -} -.fa-ellipsis-h:before { - content: "\f141"; -} -.fa-ellipsis-v:before { - content: "\f142"; -} -.fa-rss-square:before { - content: "\f143"; -} -.fa-play-circle:before { - content: "\f144"; -} -.fa-ticket:before { - content: "\f145"; -} -.fa-minus-square:before { - content: "\f146"; -} -.fa-minus-square-o:before { - content: "\f147"; -} -.fa-level-up:before { - content: "\f148"; -} -.fa-level-down:before { - content: "\f149"; -} -.fa-check-square:before { - content: "\f14a"; -} -.fa-pencil-square:before { - content: "\f14b"; -} -.fa-external-link-square:before { - content: "\f14c"; -} -.fa-share-square:before { - content: "\f14d"; -} -.fa-compass:before { - content: "\f14e"; -} -.fa-toggle-down:before, -.fa-caret-square-o-down:before { - content: "\f150"; -} -.fa-toggle-up:before, -.fa-caret-square-o-up:before { - content: "\f151"; -} -.fa-toggle-right:before, -.fa-caret-square-o-right:before { - content: "\f152"; -} -.fa-euro:before, -.fa-eur:before { - content: "\f153"; -} -.fa-gbp:before { - content: "\f154"; -} -.fa-dollar:before, -.fa-usd:before { - content: "\f155"; -} -.fa-rupee:before, -.fa-inr:before { - content: "\f156"; -} -.fa-cny:before, -.fa-rmb:before, -.fa-yen:before, -.fa-jpy:before { - content: "\f157"; -} -.fa-ruble:before, -.fa-rouble:before, -.fa-rub:before { - content: "\f158"; -} -.fa-won:before, -.fa-krw:before { - content: "\f159"; -} -.fa-bitcoin:before, -.fa-btc:before { - content: "\f15a"; -} -.fa-file:before { - content: "\f15b"; -} -.fa-file-text:before { - content: "\f15c"; -} -.fa-sort-alpha-asc:before { - content: "\f15d"; -} -.fa-sort-alpha-desc:before { - content: "\f15e"; -} -.fa-sort-amount-asc:before { - content: "\f160"; -} -.fa-sort-amount-desc:before { - content: "\f161"; -} -.fa-sort-numeric-asc:before { - content: "\f162"; -} -.fa-sort-numeric-desc:before { - content: "\f163"; -} -.fa-thumbs-up:before { - content: "\f164"; -} -.fa-thumbs-down:before { - content: "\f165"; -} -.fa-youtube-square:before { - content: "\f166"; -} -.fa-youtube:before { - content: "\f167"; -} -.fa-xing:before { - content: "\f168"; -} -.fa-xing-square:before { - content: "\f169"; -} -.fa-youtube-play:before { - content: "\f16a"; -} -.fa-dropbox:before { - content: "\f16b"; -} -.fa-stack-overflow:before { - content: "\f16c"; -} -.fa-instagram:before { - content: "\f16d"; -} -.fa-flickr:before { - content: "\f16e"; -} -.fa-adn:before { - content: "\f170"; -} -.fa-bitbucket:before { - content: "\f171"; -} -.fa-bitbucket-square:before { - content: "\f172"; -} -.fa-tumblr:before { - content: "\f173"; -} -.fa-tumblr-square:before { - content: "\f174"; -} -.fa-long-arrow-down:before { - content: "\f175"; -} -.fa-long-arrow-up:before { - content: "\f176"; -} -.fa-long-arrow-left:before { - content: "\f177"; -} -.fa-long-arrow-right:before { - content: "\f178"; -} -.fa-apple:before { - content: "\f179"; -} -.fa-windows:before { - content: "\f17a"; -} -.fa-android:before { - content: "\f17b"; -} -.fa-linux:before { - content: "\f17c"; -} -.fa-dribbble:before { - content: "\f17d"; -} -.fa-skype:before { - content: "\f17e"; -} -.fa-foursquare:before { - content: "\f180"; -} -.fa-trello:before { - content: "\f181"; -} -.fa-female:before { - content: "\f182"; -} -.fa-male:before { - content: "\f183"; -} -.fa-gittip:before, -.fa-gratipay:before { - content: "\f184"; -} -.fa-sun-o:before { - content: "\f185"; -} -.fa-moon-o:before { - content: "\f186"; -} -.fa-archive:before { - content: "\f187"; -} -.fa-bug:before { - content: "\f188"; -} -.fa-vk:before { - content: "\f189"; -} -.fa-weibo:before { - content: "\f18a"; -} -.fa-renren:before { - content: "\f18b"; -} -.fa-pagelines:before { - content: "\f18c"; -} -.fa-stack-exchange:before { - content: "\f18d"; -} -.fa-arrow-circle-o-right:before { - content: "\f18e"; -} -.fa-arrow-circle-o-left:before { - content: "\f190"; -} -.fa-toggle-left:before, -.fa-caret-square-o-left:before { - content: "\f191"; -} -.fa-dot-circle-o:before { - content: "\f192"; -} -.fa-wheelchair:before { - content: "\f193"; -} -.fa-vimeo-square:before { - content: "\f194"; -} -.fa-turkish-lira:before, -.fa-try:before { - content: "\f195"; -} -.fa-plus-square-o:before { - content: "\f196"; -} -.fa-space-shuttle:before { - content: "\f197"; -} -.fa-slack:before { - content: "\f198"; -} -.fa-envelope-square:before { - content: "\f199"; -} -.fa-wordpress:before { - content: "\f19a"; -} -.fa-openid:before { - content: "\f19b"; -} -.fa-institution:before, -.fa-bank:before, -.fa-university:before { - content: "\f19c"; -} -.fa-mortar-board:before, -.fa-graduation-cap:before { - content: "\f19d"; -} -.fa-yahoo:before { - content: "\f19e"; -} -.fa-google:before { - content: "\f1a0"; -} -.fa-reddit:before { - content: "\f1a1"; -} -.fa-reddit-square:before { - content: "\f1a2"; -} -.fa-stumbleupon-circle:before { - content: "\f1a3"; -} -.fa-stumbleupon:before { - content: "\f1a4"; -} -.fa-delicious:before { - content: "\f1a5"; -} -.fa-digg:before { - content: "\f1a6"; -} -.fa-pied-piper-pp:before { - content: "\f1a7"; -} -.fa-pied-piper-alt:before { - content: "\f1a8"; -} -.fa-drupal:before { - content: "\f1a9"; -} -.fa-joomla:before { - content: "\f1aa"; -} -.fa-language:before { - content: "\f1ab"; -} -.fa-fax:before { - content: "\f1ac"; -} -.fa-building:before { - content: "\f1ad"; -} -.fa-child:before { - content: "\f1ae"; -} -.fa-paw:before { - content: "\f1b0"; -} -.fa-spoon:before { - content: "\f1b1"; -} -.fa-cube:before { - content: "\f1b2"; -} -.fa-cubes:before { - content: "\f1b3"; -} -.fa-behance:before { - content: "\f1b4"; -} -.fa-behance-square:before { - content: "\f1b5"; -} -.fa-steam:before { - content: "\f1b6"; -} -.fa-steam-square:before { - content: "\f1b7"; -} -.fa-recycle:before { - content: "\f1b8"; -} -.fa-automobile:before, -.fa-car:before { - content: "\f1b9"; -} -.fa-cab:before, -.fa-taxi:before { - content: "\f1ba"; -} -.fa-tree:before { - content: "\f1bb"; -} -.fa-spotify:before { - content: "\f1bc"; -} -.fa-deviantart:before { - content: "\f1bd"; -} -.fa-soundcloud:before { - content: "\f1be"; -} -.fa-database:before { - content: "\f1c0"; -} -.fa-file-pdf-o:before { - content: "\f1c1"; -} -.fa-file-word-o:before { - content: "\f1c2"; -} -.fa-file-excel-o:before { - content: "\f1c3"; -} -.fa-file-powerpoint-o:before { - content: "\f1c4"; -} -.fa-file-photo-o:before, -.fa-file-picture-o:before, -.fa-file-image-o:before { - content: "\f1c5"; -} -.fa-file-zip-o:before, -.fa-file-archive-o:before { - content: "\f1c6"; -} -.fa-file-sound-o:before, -.fa-file-audio-o:before { - content: "\f1c7"; -} -.fa-file-movie-o:before, -.fa-file-video-o:before { - content: "\f1c8"; -} -.fa-file-code-o:before { - content: "\f1c9"; -} -.fa-vine:before { - content: "\f1ca"; -} -.fa-codepen:before { - content: "\f1cb"; -} -.fa-jsfiddle:before { - content: "\f1cc"; -} -.fa-life-bouy:before, -.fa-life-buoy:before, -.fa-life-saver:before, -.fa-support:before, -.fa-life-ring:before { - content: "\f1cd"; -} -.fa-circle-o-notch:before { - content: "\f1ce"; -} -.fa-ra:before, -.fa-resistance:before, -.fa-rebel:before { - content: "\f1d0"; -} -.fa-ge:before, -.fa-empire:before { - content: "\f1d1"; -} -.fa-git-square:before { - content: "\f1d2"; -} -.fa-git:before { - content: "\f1d3"; -} -.fa-y-combinator-square:before, -.fa-yc-square:before, -.fa-hacker-news:before { - content: "\f1d4"; -} -.fa-tencent-weibo:before { - content: "\f1d5"; -} -.fa-qq:before { - content: "\f1d6"; -} -.fa-wechat:before, -.fa-weixin:before { - content: "\f1d7"; -} -.fa-send:before, -.fa-paper-plane:before { - content: "\f1d8"; -} -.fa-send-o:before, -.fa-paper-plane-o:before { - content: "\f1d9"; -} -.fa-history:before { - content: "\f1da"; -} -.fa-circle-thin:before { - content: "\f1db"; -} -.fa-header:before { - content: "\f1dc"; -} -.fa-paragraph:before { - content: "\f1dd"; -} -.fa-sliders:before { - content: "\f1de"; -} -.fa-share-alt:before { - content: "\f1e0"; -} -.fa-share-alt-square:before { - content: "\f1e1"; -} -.fa-bomb:before { - content: "\f1e2"; -} -.fa-soccer-ball-o:before, -.fa-futbol-o:before { - content: "\f1e3"; -} -.fa-tty:before { - content: "\f1e4"; -} -.fa-binoculars:before { - content: "\f1e5"; -} -.fa-plug:before { - content: "\f1e6"; -} -.fa-slideshare:before { - content: "\f1e7"; -} -.fa-twitch:before { - content: "\f1e8"; -} -.fa-yelp:before { - content: "\f1e9"; -} -.fa-newspaper-o:before { - content: "\f1ea"; -} -.fa-wifi:before { - content: "\f1eb"; -} -.fa-calculator:before { - content: "\f1ec"; -} -.fa-paypal:before { - content: "\f1ed"; -} -.fa-google-wallet:before { - content: "\f1ee"; -} -.fa-cc-visa:before { - content: "\f1f0"; -} -.fa-cc-mastercard:before { - content: "\f1f1"; -} -.fa-cc-discover:before { - content: "\f1f2"; -} -.fa-cc-amex:before { - content: "\f1f3"; -} -.fa-cc-paypal:before { - content: "\f1f4"; -} -.fa-cc-stripe:before { - content: "\f1f5"; -} -.fa-bell-slash:before { - content: "\f1f6"; -} -.fa-bell-slash-o:before { - content: "\f1f7"; -} -.fa-trash:before { - content: "\f1f8"; -} -.fa-copyright:before { - content: "\f1f9"; -} -.fa-at:before { - content: "\f1fa"; -} -.fa-eyedropper:before { - content: "\f1fb"; -} -.fa-paint-brush:before { - content: "\f1fc"; -} -.fa-birthday-cake:before { - content: "\f1fd"; -} -.fa-area-chart:before { - content: "\f1fe"; -} -.fa-pie-chart:before { - content: "\f200"; -} -.fa-line-chart:before { - content: "\f201"; -} -.fa-lastfm:before { - content: "\f202"; -} -.fa-lastfm-square:before { - content: "\f203"; -} -.fa-toggle-off:before { - content: "\f204"; -} -.fa-toggle-on:before { - content: "\f205"; -} -.fa-bicycle:before { - content: "\f206"; -} -.fa-bus:before { - content: "\f207"; -} -.fa-ioxhost:before { - content: "\f208"; -} -.fa-angellist:before { - content: "\f209"; -} -.fa-cc:before { - content: "\f20a"; -} -.fa-shekel:before, -.fa-sheqel:before, -.fa-ils:before { - content: "\f20b"; -} -.fa-meanpath:before { - content: "\f20c"; -} -.fa-buysellads:before { - content: "\f20d"; -} -.fa-connectdevelop:before { - content: "\f20e"; -} -.fa-dashcube:before { - content: "\f210"; -} -.fa-forumbee:before { - content: "\f211"; -} -.fa-leanpub:before { - content: "\f212"; -} -.fa-sellsy:before { - content: "\f213"; -} -.fa-shirtsinbulk:before { - content: "\f214"; -} -.fa-simplybuilt:before { - content: "\f215"; -} -.fa-skyatlas:before { - content: "\f216"; -} -.fa-cart-plus:before { - content: "\f217"; -} -.fa-cart-arrow-down:before { - content: "\f218"; -} -.fa-diamond:before { - content: "\f219"; -} -.fa-ship:before { - content: "\f21a"; -} -.fa-user-secret:before { - content: "\f21b"; -} -.fa-motorcycle:before { - content: "\f21c"; -} -.fa-street-view:before { - content: "\f21d"; -} -.fa-heartbeat:before { - content: "\f21e"; -} -.fa-venus:before { - content: "\f221"; -} -.fa-mars:before { - content: "\f222"; -} -.fa-mercury:before { - content: "\f223"; -} -.fa-intersex:before, -.fa-transgender:before { - content: "\f224"; -} -.fa-transgender-alt:before { - content: "\f225"; -} -.fa-venus-double:before { - content: "\f226"; -} -.fa-mars-double:before { - content: "\f227"; -} -.fa-venus-mars:before { - content: "\f228"; -} -.fa-mars-stroke:before { - content: "\f229"; -} -.fa-mars-stroke-v:before { - content: "\f22a"; -} -.fa-mars-stroke-h:before { - content: "\f22b"; -} -.fa-neuter:before { - content: "\f22c"; -} -.fa-genderless:before { - content: "\f22d"; -} -.fa-facebook-official:before { - content: "\f230"; -} -.fa-pinterest-p:before { - content: "\f231"; -} -.fa-whatsapp:before { - content: "\f232"; -} -.fa-server:before { - content: "\f233"; -} -.fa-user-plus:before { - content: "\f234"; -} -.fa-user-times:before { - content: "\f235"; -} -.fa-hotel:before, -.fa-bed:before { - content: "\f236"; -} -.fa-viacoin:before { - content: "\f237"; -} -.fa-train:before { - content: "\f238"; -} -.fa-subway:before { - content: "\f239"; -} -.fa-medium:before { - content: "\f23a"; -} -.fa-yc:before, -.fa-y-combinator:before { - content: "\f23b"; -} -.fa-optin-monster:before { - content: "\f23c"; -} -.fa-opencart:before { - content: "\f23d"; -} -.fa-expeditedssl:before { - content: "\f23e"; -} -.fa-battery-4:before, -.fa-battery:before, -.fa-battery-full:before { - content: "\f240"; -} -.fa-battery-3:before, -.fa-battery-three-quarters:before { - content: "\f241"; -} -.fa-battery-2:before, -.fa-battery-half:before { - content: "\f242"; -} -.fa-battery-1:before, -.fa-battery-quarter:before { - content: "\f243"; -} -.fa-battery-0:before, -.fa-battery-empty:before { - content: "\f244"; -} -.fa-mouse-pointer:before { - content: "\f245"; -} -.fa-i-cursor:before { - content: "\f246"; -} -.fa-object-group:before { - content: "\f247"; -} -.fa-object-ungroup:before { - content: "\f248"; -} -.fa-sticky-note:before { - content: "\f249"; -} -.fa-sticky-note-o:before { - content: "\f24a"; -} -.fa-cc-jcb:before { - content: "\f24b"; -} -.fa-cc-diners-club:before { - content: "\f24c"; -} -.fa-clone:before { - content: "\f24d"; -} -.fa-balance-scale:before { - content: "\f24e"; -} -.fa-hourglass-o:before { - content: "\f250"; -} -.fa-hourglass-1:before, -.fa-hourglass-start:before { - content: "\f251"; -} -.fa-hourglass-2:before, -.fa-hourglass-half:before { - content: "\f252"; -} -.fa-hourglass-3:before, -.fa-hourglass-end:before { - content: "\f253"; -} -.fa-hourglass:before { - content: "\f254"; -} -.fa-hand-grab-o:before, -.fa-hand-rock-o:before { - content: "\f255"; -} -.fa-hand-stop-o:before, -.fa-hand-paper-o:before { - content: "\f256"; -} -.fa-hand-scissors-o:before { - content: "\f257"; -} -.fa-hand-lizard-o:before { - content: "\f258"; -} -.fa-hand-spock-o:before { - content: "\f259"; -} -.fa-hand-pointer-o:before { - content: "\f25a"; -} -.fa-hand-peace-o:before { - content: "\f25b"; -} -.fa-trademark:before { - content: "\f25c"; -} -.fa-registered:before { - content: "\f25d"; -} -.fa-creative-commons:before { - content: "\f25e"; -} -.fa-gg:before { - content: "\f260"; -} -.fa-gg-circle:before { - content: "\f261"; -} -.fa-tripadvisor:before { - content: "\f262"; -} -.fa-odnoklassniki:before { - content: "\f263"; -} -.fa-odnoklassniki-square:before { - content: "\f264"; -} -.fa-get-pocket:before { - content: "\f265"; -} -.fa-wikipedia-w:before { - content: "\f266"; -} -.fa-safari:before { - content: "\f267"; -} -.fa-chrome:before { - content: "\f268"; -} -.fa-firefox:before { - content: "\f269"; -} -.fa-opera:before { - content: "\f26a"; -} -.fa-internet-explorer:before { - content: "\f26b"; -} -.fa-tv:before, -.fa-television:before { - content: "\f26c"; -} -.fa-contao:before { - content: "\f26d"; -} -.fa-500px:before { - content: "\f26e"; -} -.fa-amazon:before { - content: "\f270"; -} -.fa-calendar-plus-o:before { - content: "\f271"; -} -.fa-calendar-minus-o:before { - content: "\f272"; -} -.fa-calendar-times-o:before { - content: "\f273"; -} -.fa-calendar-check-o:before { - content: "\f274"; -} -.fa-industry:before { - content: "\f275"; -} -.fa-map-pin:before { - content: "\f276"; -} -.fa-map-signs:before { - content: "\f277"; -} -.fa-map-o:before { - content: "\f278"; -} -.fa-map:before { - content: "\f279"; -} -.fa-commenting:before { - content: "\f27a"; -} -.fa-commenting-o:before { - content: "\f27b"; -} -.fa-houzz:before { - content: "\f27c"; -} -.fa-vimeo:before { - content: "\f27d"; -} -.fa-black-tie:before { - content: "\f27e"; -} -.fa-fonticons:before { - content: "\f280"; -} -.fa-reddit-alien:before { - content: "\f281"; -} -.fa-edge:before { - content: "\f282"; -} -.fa-credit-card-alt:before { - content: "\f283"; -} -.fa-codiepie:before { - content: "\f284"; -} -.fa-modx:before { - content: "\f285"; -} -.fa-fort-awesome:before { - content: "\f286"; -} -.fa-usb:before { - content: "\f287"; -} -.fa-product-hunt:before { - content: "\f288"; -} -.fa-mixcloud:before { - content: "\f289"; -} -.fa-scribd:before { - content: "\f28a"; -} -.fa-pause-circle:before { - content: "\f28b"; -} -.fa-pause-circle-o:before { - content: "\f28c"; -} -.fa-stop-circle:before { - content: "\f28d"; -} -.fa-stop-circle-o:before { - content: "\f28e"; -} -.fa-shopping-bag:before { - content: "\f290"; -} -.fa-shopping-basket:before { - content: "\f291"; -} -.fa-hashtag:before { - content: "\f292"; -} -.fa-bluetooth:before { - content: "\f293"; -} -.fa-bluetooth-b:before { - content: "\f294"; -} -.fa-percent:before { - content: "\f295"; -} -.fa-gitlab:before { - content: "\f296"; -} -.fa-wpbeginner:before { - content: "\f297"; -} -.fa-wpforms:before { - content: "\f298"; -} -.fa-envira:before { - content: "\f299"; -} -.fa-universal-access:before { - content: "\f29a"; -} -.fa-wheelchair-alt:before { - content: "\f29b"; -} -.fa-question-circle-o:before { - content: "\f29c"; -} -.fa-blind:before { - content: "\f29d"; -} -.fa-audio-description:before { - content: "\f29e"; -} -.fa-volume-control-phone:before { - content: "\f2a0"; -} -.fa-braille:before { - content: "\f2a1"; -} -.fa-assistive-listening-systems:before { - content: "\f2a2"; -} -.fa-asl-interpreting:before, -.fa-american-sign-language-interpreting:before { - content: "\f2a3"; -} -.fa-deafness:before, -.fa-hard-of-hearing:before, -.fa-deaf:before { - content: "\f2a4"; -} -.fa-glide:before { - content: "\f2a5"; -} -.fa-glide-g:before { - content: "\f2a6"; -} -.fa-signing:before, -.fa-sign-language:before { - content: "\f2a7"; -} -.fa-low-vision:before { - content: "\f2a8"; -} -.fa-viadeo:before { - content: "\f2a9"; -} -.fa-viadeo-square:before { - content: "\f2aa"; -} -.fa-snapchat:before { - content: "\f2ab"; -} -.fa-snapchat-ghost:before { - content: "\f2ac"; -} -.fa-snapchat-square:before { - content: "\f2ad"; -} -.fa-pied-piper:before { - content: "\f2ae"; -} -.fa-first-order:before { - content: "\f2b0"; -} -.fa-yoast:before { - content: "\f2b1"; -} -.fa-themeisle:before { - content: "\f2b2"; -} -.fa-google-plus-circle:before, -.fa-google-plus-official:before { - content: "\f2b3"; -} -.fa-fa:before, -.fa-font-awesome:before { - content: "\f2b4"; -} -.fa-handshake-o:before { - content: "\f2b5"; -} -.fa-envelope-open:before { - content: "\f2b6"; -} -.fa-envelope-open-o:before { - content: "\f2b7"; -} -.fa-linode:before { - content: "\f2b8"; -} -.fa-address-book:before { - content: "\f2b9"; -} -.fa-address-book-o:before { - content: "\f2ba"; -} -.fa-vcard:before, -.fa-address-card:before { - content: "\f2bb"; -} -.fa-vcard-o:before, -.fa-address-card-o:before { - content: "\f2bc"; -} -.fa-user-circle:before { - content: "\f2bd"; -} -.fa-user-circle-o:before { - content: "\f2be"; -} -.fa-user-o:before { - content: "\f2c0"; -} -.fa-id-badge:before { - content: "\f2c1"; -} -.fa-drivers-license:before, -.fa-id-card:before { - content: "\f2c2"; -} -.fa-drivers-license-o:before, -.fa-id-card-o:before { - content: "\f2c3"; -} -.fa-quora:before { - content: "\f2c4"; -} -.fa-free-code-camp:before { - content: "\f2c5"; -} -.fa-telegram:before { - content: "\f2c6"; -} -.fa-thermometer-4:before, -.fa-thermometer:before, -.fa-thermometer-full:before { - content: "\f2c7"; -} -.fa-thermometer-3:before, -.fa-thermometer-three-quarters:before { - content: "\f2c8"; -} -.fa-thermometer-2:before, -.fa-thermometer-half:before { - content: "\f2c9"; -} -.fa-thermometer-1:before, -.fa-thermometer-quarter:before { - content: "\f2ca"; -} -.fa-thermometer-0:before, -.fa-thermometer-empty:before { - content: "\f2cb"; -} -.fa-shower:before { - content: "\f2cc"; -} -.fa-bathtub:before, -.fa-s15:before, -.fa-bath:before { - content: "\f2cd"; -} -.fa-podcast:before { - content: "\f2ce"; -} -.fa-window-maximize:before { - content: "\f2d0"; -} -.fa-window-minimize:before { - content: "\f2d1"; -} -.fa-window-restore:before { - content: "\f2d2"; -} -.fa-times-rectangle:before, -.fa-window-close:before { - content: "\f2d3"; -} -.fa-times-rectangle-o:before, -.fa-window-close-o:before { - content: "\f2d4"; -} -.fa-bandcamp:before { - content: "\f2d5"; -} -.fa-grav:before { - content: "\f2d6"; -} -.fa-etsy:before { - content: "\f2d7"; -} -.fa-imdb:before { - content: "\f2d8"; -} -.fa-ravelry:before { - content: "\f2d9"; -} -.fa-eercast:before { - content: "\f2da"; -} -.fa-microchip:before { - content: "\f2db"; -} -.fa-snowflake-o:before { - content: "\f2dc"; -} -.fa-superpowers:before { - content: "\f2dd"; -} -.fa-wpexplorer:before { - content: "\f2de"; -} -.fa-meetup:before { - content: "\f2e0"; -} -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; -} -.sr-only-focusable:active, -.sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-awesome.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-awesome.min.css deleted file mode 100644 index 8c8a1efc..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-awesome.min.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:'FontAwesome';src:url('../../fonts/fontawesome-webfont.eot');src:url('../../fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),url('../../fonts/fontawesome-webfont.woff2') format('woff2'),url('../../fonts/fontawesome-webfont.woff') format('woff'),url('../../fonts/fontawesome-webfont.ttf') format('truetype'),url('../../fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-icons.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-icons.css deleted file mode 100644 index b876888b..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-icons.css +++ /dev/null @@ -1,174 +0,0 @@ -@font-face { - font-family: "GeneratePress"; - src: url("../../fonts/generatepress.eot"); - src: url("../../fonts/generatepress.eot#iefix") format("embedded-opentype"), url("../../fonts/generatepress.woff2") format("woff2"), url("../../fonts/generatepress.woff") format("woff"), url("../../fonts/generatepress.ttf") format("truetype"), url("../../fonts/generatepress.svg#GeneratePress") format("svg"); - font-weight: normal; - font-style: normal; -} - -.menu-toggle:before, -.search-item a:before, -.dropdown-menu-toggle:before, -.cat-links:before, -.tags-links:before, -.comments-link:before, -.nav-previous .prev:before, -.nav-next .next:before, -.generate-back-to-top:before, -.search-form .search-submit:before { - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - font-style: normal; - font-variant: normal; - text-rendering: auto; - line-height: 1; -} - -.cat-links:before, -.tags-links:before, -.comments-link:before, -.nav-previous .prev:before, -.nav-next .next:before { - opacity: 0.7; -} - -/*-------------------------------------------------------------- -# Mobile Menu ---------------------------------------------------------------*/ -.menu-toggle:before { - content: "\f0c9"; - font-family: GeneratePress; - width: 1.28571429em; - text-align: center; - display: inline-block; -} - -.toggled .menu-toggle:before { - content: "\f00d"; -} - -.main-navigation.toggled .sfHover > a .dropdown-menu-toggle:before { - content: "\f106"; -} - -/*-------------------------------------------------------------- -# Navigation Search ---------------------------------------------------------------*/ -.search-item a:before { - content: "\f002"; - font-family: GeneratePress; - width: 1.28571429em; - text-align: center; - display: inline-block; -} - -.search-item.close-search a:before { - content: "\f00d"; -} - -.widget .search-form button:before { - content: "\f002"; - font-family: GeneratePress; -} - -/*-------------------------------------------------------------- -# Navigation Dropdowns ---------------------------------------------------------------*/ -.dropdown-menu-toggle:before { - content: "\f107"; - font-family: GeneratePress; - display: inline-block; - width: 0.8em; - text-align: left; -} - -nav:not(.toggled) ul ul .dropdown-menu-toggle:before { - text-align: right; -} - -.dropdown-hover .sub-menu-left:not(.toggled) ul ul .dropdown-menu-toggle:before { - transform: rotate(180deg); -} - -.dropdown-click .menu-item-has-children.sfHover > a .dropdown-menu-toggle:before { - content: "\f106"; -} - -.dropdown-hover nav:not(.toggled) ul ul .dropdown-menu-toggle:before { - content: "\f105"; -} - -/*-------------------------------------------------------------- -# Post Content ---------------------------------------------------------------*/ -.entry-header .cat-links:before, -.entry-header .tags-links:before, -.entry-header .comments-link:before { - display: none; -} - -.cat-links:before, -.tags-links:before, -.comments-link:before, -.nav-previous .prev:before, -.nav-next .next:before { - font-family: GeneratePress; - text-decoration: inherit; - position: relative; - margin-right: 0.6em; - width: 13px; - text-align: center; - display: inline-block; -} - -.cat-links:before { - content: "\f07b"; -} - -.tags-links:before { - content: "\f02c"; -} - -.comments-link:before { - content: "\f086"; -} - -.nav-previous .prev:before { - content: "\f104"; -} - -.nav-next .next:before { - content: "\f105"; -} - -/*-------------------------------------------------------------- -# Sidebar Navigation ---------------------------------------------------------------*/ -.dropdown-hover.both-right .inside-left-sidebar .dropdown-menu-toggle:before, -.dropdown-hover .inside-right-sidebar .dropdown-menu-toggle:before { - content: "\f104"; -} - -.dropdown-hover.both-left .inside-right-sidebar .dropdown-menu-toggle:before, -.dropdown-hover .inside-left-sidebar .dropdown-menu-toggle:before { - content: "\f105"; -} - -/*-------------------------------------------------------------- -# Back to Top Button ---------------------------------------------------------------*/ -.generate-back-to-top:before { - content: "\f106"; - font-family: GeneratePress; -} - -/*-------------------------------------------------------------- -# Search button ---------------------------------------------------------------*/ -.search-form .search-submit:before { - content: "\f002"; - font-family: GeneratePress; - width: 1.28571429em; - text-align: center; - display: inline-block; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-icons.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-icons.min.css deleted file mode 100644 index 77f0dd6d..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/font-icons.min.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:GeneratePress;src:url("../../fonts/generatepress.eot");src:url("../../fonts/generatepress.eot#iefix") format("embedded-opentype"),url("../../fonts/generatepress.woff2") format("woff2"),url("../../fonts/generatepress.woff") format("woff"),url("../../fonts/generatepress.ttf") format("truetype"),url("../../fonts/generatepress.svg#GeneratePress") format("svg");font-weight:400;font-style:normal}.cat-links:before,.comments-link:before,.dropdown-menu-toggle:before,.generate-back-to-top:before,.menu-toggle:before,.nav-next .next:before,.nav-previous .prev:before,.search-form .search-submit:before,.search-item a:before,.tags-links:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.cat-links:before,.comments-link:before,.nav-next .next:before,.nav-previous .prev:before,.tags-links:before{opacity:.7}.menu-toggle:before{content:"\f0c9";font-family:GeneratePress;width:1.28571429em;text-align:center;display:inline-block}.toggled .menu-toggle:before{content:"\f00d"}.main-navigation.toggled .sfHover>a .dropdown-menu-toggle:before{content:"\f106"}.search-item a:before{content:"\f002";font-family:GeneratePress;width:1.28571429em;text-align:center;display:inline-block}.search-item.close-search a:before{content:"\f00d"}.widget .search-form button:before{content:"\f002";font-family:GeneratePress}.dropdown-menu-toggle:before{content:"\f107";font-family:GeneratePress;display:inline-block;width:.8em;text-align:left}nav:not(.toggled) ul ul .dropdown-menu-toggle:before{text-align:right}.dropdown-hover .sub-menu-left:not(.toggled) ul ul .dropdown-menu-toggle:before{transform:rotate(180deg)}.dropdown-click .menu-item-has-children.sfHover>a .dropdown-menu-toggle:before{content:"\f106"}.dropdown-hover nav:not(.toggled) ul ul .dropdown-menu-toggle:before{content:"\f105"}.entry-header .cat-links:before,.entry-header .comments-link:before,.entry-header .tags-links:before{display:none}.cat-links:before,.comments-link:before,.nav-next .next:before,.nav-previous .prev:before,.tags-links:before{font-family:GeneratePress;text-decoration:inherit;position:relative;margin-right:.6em;width:13px;text-align:center;display:inline-block}.cat-links:before{content:"\f07b"}.tags-links:before{content:"\f02c"}.comments-link:before{content:"\f086"}.nav-previous .prev:before{content:"\f104"}.nav-next .next:before{content:"\f105"}.dropdown-hover .inside-right-sidebar .dropdown-menu-toggle:before,.dropdown-hover.both-right .inside-left-sidebar .dropdown-menu-toggle:before{content:"\f104"}.dropdown-hover .inside-left-sidebar .dropdown-menu-toggle:before,.dropdown-hover.both-left .inside-right-sidebar .dropdown-menu-toggle:before{content:"\f105"}.generate-back-to-top:before{content:"\f106";font-family:GeneratePress}.search-form .search-submit:before{content:"\f002";font-family:GeneratePress;width:1.28571429em;text-align:center;display:inline-block} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/widget-areas.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/widget-areas.css deleted file mode 100644 index 94097904..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/widget-areas.css +++ /dev/null @@ -1,256 +0,0 @@ -/*-------------------------------------------------------------- -## Footer Widgets ---------------------------------------------------------------*/ -.footer-widgets-container { - padding: 40px; -} - -.inside-footer-widgets { - display: flex; -} - -.inside-footer-widgets > div { - flex: 1 1 0; -} - -.site-footer .footer-widgets-container .inner-padding { - padding: 0px 0px 0px 40px; -} - -.site-footer .footer-widgets-container .inside-footer-widgets { - margin-left: -40px; -} - -/*-------------------------------------------------------------- -## Top Bar ---------------------------------------------------------------*/ -.top-bar { - font-weight: normal; - text-transform: none; - font-size: 13px; -} - -.top-bar .inside-top-bar { - display: flex; - align-items: center; - flex-wrap: wrap; -} - -.top-bar .inside-top-bar .widget { - padding: 0; - display: inline-block; - margin-bottom: 0; -} - -.top-bar .inside-top-bar .textwidget p:last-child { - margin: 0; -} - -.top-bar .widget-title { - display: none; -} - -.top-bar .widget { - margin: 0 10px; -} - -.top-bar .widget_nav_menu > div > ul { - display: flex; - align-items: center; -} - -.top-bar .widget_nav_menu li { - margin: 0 10px; - padding: 0; -} - -.top-bar .widget_nav_menu li:first-child { - margin-left: 0; -} - -.top-bar .widget_nav_menu li:last-child { - margin-right: 0; -} - -.top-bar .widget_nav_menu li ul { - display: none; -} - -.inside-top-bar { - padding: 10px 40px; -} - -div.top-bar .widget { - margin-bottom: 0; -} - -.top-bar-align-right .widget { - margin-right: 0; -} - -.top-bar-align-right .widget:first-child { - margin-left: auto; -} - -.top-bar-align-right .widget:nth-child(even) { - order: -20; -} - -.top-bar-align-right .widget:nth-child(2) { - margin-left: 0; -} - -.top-bar-align-left .widget { - margin-left: 0; -} - -.top-bar-align-left .widget:nth-child(odd) { - order: -20; -} - -.top-bar-align-left .widget:nth-child(2) { - margin-left: auto; -} - -.top-bar-align-left .widget:last-child { - margin-right: 0; -} - -.top-bar-align-center .widget:first-child { - margin-left: auto; -} - -.top-bar-align-center .widget:last-child { - margin-right: auto; -} - -.top-bar-align-center .widget:not(:first-child):not(:last-child) { - margin: 0 5px; -} - -/*-------------------------------------------------------------- -## Footer Bar ---------------------------------------------------------------*/ -.footer-bar-active .footer-bar .widget { - padding: 0; -} - -.footer-bar .widget_nav_menu > div > ul { - display: flex; - align-items: center; - flex-wrap: wrap; -} - -.footer-bar .widget_nav_menu li { - margin: 0 10px; - padding: 0; -} - -.footer-bar .widget_nav_menu li:first-child { - margin-left: 0; -} - -.footer-bar .widget_nav_menu li:last-child { - margin-right: 0; -} - -.footer-bar .widget_nav_menu li ul { - display: none; -} - -.footer-bar .textwidget p:last-child { - margin: 0; -} - -.footer-bar .widget-title { - display: none; -} - -.footer-bar-align-right .copyright-bar { - order: -20; - margin-right: auto; -} - -.footer-bar-align-left .copyright-bar { - margin-left: auto; -} - -.footer-bar-align-center .inside-site-info { - flex-direction: column; -} - -.footer-bar-align-center .footer-bar { - margin-bottom: 10px; -} - -.site-footer:not(.footer-bar-active) .copyright-bar { - margin: 0 auto; -} - -/*-------------------------------------------------------------- -## Breakpoint (768px) ---------------------------------------------------------------*/ -@media (max-width: 768px) { - /*-------------------------------------------------------------- - ## Top Bar - --------------------------------------------------------------*/ - .top-bar .inside-top-bar { - justify-content: center; - } - .top-bar .inside-top-bar > .widget { - order: 1; - margin: 0 10px; - } - .top-bar .inside-top-bar:first-child { - margin-left: auto; - } - .top-bar .inside-top-bar:last-child { - margin-right: auto; - } - .top-bar .widget_nav_menu li { - padding: 5px 0; - } - .top-bar-align-center { - text-align: center; - } - /*-------------------------------------------------------------- - ## Footer - --------------------------------------------------------------*/ - .inside-footer-widgets { - flex-direction: column; - } - .inside-footer-widgets > div:not(:last-child) { - margin-bottom: 40px; - } - .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets { - margin: 0; - } - .site-footer .footer-widgets .footer-widgets-container .inner-padding { - padding: 0; - } - .footer-bar-active .inside-site-info { - flex-direction: column; - } - .footer-bar-active .footer-bar { - margin-bottom: 10px; - } - .footer-bar .widget_nav_menu > div > ul { - justify-content: center; - } - .footer-bar .widget_nav_menu li { - padding: 5px 0; - } - .footer-bar .widget_nav_menu li:first-child { - margin-left: 10px; - } - .footer-bar .widget_nav_menu li:last-child { - margin-right: 10px; - } - .footer-bar-align-left .copyright-bar { - margin-left: 0; - } - .footer-bar-align-right .copyright-bar { - order: unset; - margin-right: 0; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/widget-areas.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/widget-areas.min.css deleted file mode 100644 index cf7a1020..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/components/widget-areas.min.css +++ /dev/null @@ -1 +0,0 @@ -.footer-widgets-container{padding:40px}.inside-footer-widgets{display:flex}.inside-footer-widgets>div{flex:1 1 0}.site-footer .footer-widgets-container .inner-padding{padding:0 0 0 40px}.site-footer .footer-widgets-container .inside-footer-widgets{margin-left:-40px}.top-bar{font-weight:400;text-transform:none;font-size:13px}.top-bar .inside-top-bar{display:flex;align-items:center;flex-wrap:wrap}.top-bar .inside-top-bar .widget{padding:0;display:inline-block;margin-bottom:0}.top-bar .inside-top-bar .textwidget p:last-child{margin:0}.top-bar .widget-title{display:none}.top-bar .widget{margin:0 10px}.top-bar .widget_nav_menu>div>ul{display:flex;align-items:center}.top-bar .widget_nav_menu li{margin:0 10px;padding:0}.top-bar .widget_nav_menu li:first-child{margin-left:0}.top-bar .widget_nav_menu li:last-child{margin-right:0}.top-bar .widget_nav_menu li ul{display:none}.inside-top-bar{padding:10px 40px}div.top-bar .widget{margin-bottom:0}.top-bar-align-right .widget{margin-right:0}.top-bar-align-right .widget:first-child{margin-left:auto}.top-bar-align-right .widget:nth-child(2n){order:-20}.top-bar-align-right .widget:nth-child(2){margin-left:0}.top-bar-align-left .widget{margin-left:0}.top-bar-align-left .widget:nth-child(odd){order:-20}.top-bar-align-left .widget:nth-child(2){margin-left:auto}.top-bar-align-left .widget:last-child{margin-right:0}.top-bar-align-center .widget:first-child{margin-left:auto}.top-bar-align-center .widget:last-child{margin-right:auto}.top-bar-align-center .widget:not(:first-child):not(:last-child){margin:0 5px}.footer-bar-active .footer-bar .widget{padding:0}.footer-bar .widget_nav_menu>div>ul{display:flex;align-items:center;flex-wrap:wrap}.footer-bar .widget_nav_menu li{margin:0 10px;padding:0}.footer-bar .widget_nav_menu li:first-child{margin-left:0}.footer-bar .widget_nav_menu li:last-child{margin-right:0}.footer-bar .widget_nav_menu li ul{display:none}.footer-bar .textwidget p:last-child{margin:0}.footer-bar .widget-title{display:none}.footer-bar-align-right .copyright-bar{order:-20;margin-right:auto}.footer-bar-align-left .copyright-bar{margin-left:auto}.footer-bar-align-center .inside-site-info{flex-direction:column}.footer-bar-align-center .footer-bar{margin-bottom:10px}.site-footer:not(.footer-bar-active) .copyright-bar{margin:0 auto}@media (max-width:768px){.top-bar .inside-top-bar{justify-content:center}.top-bar .inside-top-bar>.widget{order:1;margin:0 10px}.top-bar .inside-top-bar:first-child{margin-left:auto}.top-bar .inside-top-bar:last-child{margin-right:auto}.top-bar .widget_nav_menu li{padding:5px 0}.top-bar-align-center{text-align:center}.inside-footer-widgets{flex-direction:column}.inside-footer-widgets>div:not(:last-child){margin-bottom:40px}.site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets{margin:0}.site-footer .footer-widgets .footer-widgets-container .inner-padding{padding:0}.footer-bar-active .inside-site-info{flex-direction:column}.footer-bar-active .footer-bar{margin-bottom:10px}.footer-bar .widget_nav_menu>div>ul{justify-content:center}.footer-bar .widget_nav_menu li{padding:5px 0}.footer-bar .widget_nav_menu li:first-child{margin-left:10px}.footer-bar .widget_nav_menu li:last-child{margin-right:10px}.footer-bar-align-left .copyright-bar{margin-left:0}.footer-bar-align-right .copyright-bar{order:unset;margin-right:0}} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main-rtl.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main-rtl.css deleted file mode 100644 index 42df0756..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main-rtl.css +++ /dev/null @@ -1,195 +0,0 @@ -caption, -td, -th { - text-align: right; -} - -.header-aligned-right:not([class*="nav-float-"]) .inside-header { - justify-content: flex-start; -} - -.header-aligned-left:not([class*="nav-float-"]) .inside-header { - justify-content: flex-end; -} - -.header-aligned-right:not([class*="nav-float-"]) .header-widget { - order: 10; -} - -.header-aligned-left:not([class*="nav-float-"]) .header-widget { - order: -10; -} - -.site-logo + .site-branding { - order: -1; -} - -.nav-float-right #site-navigation { - order: -5; -} - -.nav-float-right #site-navigation.toggled, .nav-float-right #site-navigation.has-active-search { - order: 10; -} - -.nav-float-right .header-widget { - order: -10; -} - -.nav-float-left #site-navigation { - order: 5; -} - -.nav-float-left .header-widget, -.nav-float-left .mobile-menu-control-wrapper { - order: 10; -} - -.mobile-menu-control-wrapper { - margin-right: auto; - margin-left: 0; -} - -.nav-align-right .inside-navigation { - justify-content: flex-start; -} - -.nav-align-left .inside-navigation { - justify-content: flex-end; -} - -.menu-item-has-children .dropdown-menu-toggle { - float: left !important; -} - -.main-navigation ul ul { - text-align: right; -} - -.sidebar .menu-item-has-children .dropdown-menu-toggle, -nav ul ul .menu-item-has-children .dropdown-menu-toggle { - float: left; -} - -.comment-meta .avatar { - float: right; - margin-left: 10px; -} - -.page-header .avatar { - float: right; - margin-left: 1.5em; -} - -.slideout-navigation .menu-item-has-children .dropdown-menu-toggle { - float: left; -} - -.dropdown-click #generate-slideout-menu .slideout-menu .menu-item-has-children > a:first-child, -.slideout-desktop.dropdown-hover #generate-slideout-menu .slideout-menu .menu-item-has-children > a:first-child { - padding-left: 0; -} - -.comment .children { - padding-right: 30px; - border-right: 1px solid rgba(0, 0, 0, 0.05); -} - -.main-navigation .main-nav ul li.menu-item-has-children > a, -.secondary-navigation .main-nav ul li.menu-item-has-children > a { - padding-left: 0; -} - -nav:not(.toggled) ul ul .menu-item-has-children .dropdown-menu-toggle { - padding-left: 15px; -} - -nav:not(.toggled) .menu-item-has-children .dropdown-menu-toggle { - padding-right: 10px; -} - -.main-navigation { - padding-right: 0; -} - -ol, -ul { - margin: 0 3em 1.5em 0; -} - -li > ol, -li > ul { - margin-right: 1.5em; -} - -.menu-toggle .mobile-menu { - margin-right: 5px; - margin-left: 0; -} - -.widget_categories .children { - margin-right: 1.5em; -} - -.widget_nav_menu ul ul, -.widget_pages ul ul { - margin-right: 1em; -} - -.cat-links:before, -.comments-link:before, -.nav-next .next:before, -.nav-previous .prev:before, -.tags-links:before { - margin-left: 0.6em; - margin-right: 0; -} - -.entry-meta .gp-icon { - margin-right: 0; - margin-left: 0.6em; -} - -.menu-toggle, -.nav-search-enabled .main-navigation .menu-toggle { - text-align: right; -} - -.rtl .navigation-search { - left: auto; - right: -99999px; -} - -.rtl .navigation-search.nav-search-active { - right: 0; -} - -.main-navigation.toggled .main-nav li { - text-align: right; -} - -.left-sidebar .sidebar, -.both-left #left-sidebar, -.both-sidebars #left-sidebar { - order: 10; -} - -.both-left #right-sidebar { - order: 5; -} - -.both-right #left-sidebar { - order: -5; -} - -.both-right #right-sidebar, -.both-sidebars #right-sidebar, -.right-sidebar #right-sidebar { - order: -10; -} - -@media (max-width: 768px) { - .site-content .content-area { - order: -20; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main-rtl.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main-rtl.min.css deleted file mode 100644 index 2dcfa49a..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -caption,td,th{text-align:right}.header-aligned-right:not([class*=nav-float-]) .inside-header{justify-content:flex-start}.header-aligned-left:not([class*=nav-float-]) .inside-header{justify-content:flex-end}.header-aligned-right:not([class*=nav-float-]) .header-widget{order:10}.header-aligned-left:not([class*=nav-float-]) .header-widget{order:-10}.site-logo+.site-branding{order:-1}.nav-float-right #site-navigation{order:-5}.nav-float-right #site-navigation.has-active-search,.nav-float-right #site-navigation.toggled{order:10}.nav-float-right .header-widget{order:-10}.nav-float-left #site-navigation{order:5}.nav-float-left .header-widget,.nav-float-left .mobile-menu-control-wrapper{order:10}.mobile-menu-control-wrapper{margin-right:auto;margin-left:0}.nav-align-right .inside-navigation{justify-content:flex-start}.nav-align-left .inside-navigation{justify-content:flex-end}.menu-item-has-children .dropdown-menu-toggle{float:left!important}.main-navigation ul ul{text-align:right}.sidebar .menu-item-has-children .dropdown-menu-toggle,nav ul ul .menu-item-has-children .dropdown-menu-toggle{float:left}.comment-meta .avatar{float:right;margin-left:10px}.page-header .avatar{float:right;margin-left:1.5em}.slideout-navigation .menu-item-has-children .dropdown-menu-toggle{float:left}.dropdown-click #generate-slideout-menu .slideout-menu .menu-item-has-children>a:first-child,.slideout-desktop.dropdown-hover #generate-slideout-menu .slideout-menu .menu-item-has-children>a:first-child{padding-left:0}.comment .children{padding-right:30px;border-right:1px solid rgba(0,0,0,.05)}.main-navigation .main-nav ul li.menu-item-has-children>a,.secondary-navigation .main-nav ul li.menu-item-has-children>a{padding-left:0}nav:not(.toggled) ul ul .menu-item-has-children .dropdown-menu-toggle{padding-left:15px}nav:not(.toggled) .menu-item-has-children .dropdown-menu-toggle{padding-right:10px}.main-navigation{padding-right:0}ol,ul{margin:0 3em 1.5em 0}li>ol,li>ul{margin-right:1.5em}.menu-toggle .mobile-menu{margin-right:5px;margin-left:0}.widget_categories .children{margin-right:1.5em}.widget_nav_menu ul ul,.widget_pages ul ul{margin-right:1em}.cat-links:before,.comments-link:before,.nav-next .next:before,.nav-previous .prev:before,.tags-links:before{margin-left:.6em;margin-right:0}.entry-meta .gp-icon{margin-right:0;margin-left:.6em}.menu-toggle,.nav-search-enabled .main-navigation .menu-toggle{text-align:right}.rtl .navigation-search{left:auto;right:-99999px}.rtl .navigation-search.nav-search-active{right:0}.main-navigation.toggled .main-nav li{text-align:right}.both-left #left-sidebar,.both-sidebars #left-sidebar,.left-sidebar .sidebar{order:10}.both-left #right-sidebar{order:5}.both-right #left-sidebar{order:-5}.both-right #right-sidebar,.both-sidebars #right-sidebar,.right-sidebar #right-sidebar{order:-10}@media (max-width:768px){.site-content .content-area{order:-20}} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main.css deleted file mode 100644 index 4fdb6180..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main.css +++ /dev/null @@ -1,1652 +0,0 @@ -/*-------------------------------------------------------------- ->>> TABLE OF CONTENTS: ----------------------------------------------------------------- -# Reset -# Elements -# Forms -# Links -# Alignments -# Accessibility -# Navigation - # Dropdown Menus - # Sidebar Navigation -# Post Navigation -# Header -# Post Content -# Widgets -# Content Layout -# Sidebars -# Footer -# Featured Images -# Icons -# Compatibility -# Mobile ---------------------------------------------------------------*/ -/*-------------------------------------------------------------- -# Reset ---------------------------------------------------------------*/ -html, -body, -p, -ol, -ul, -li, -dl, -dt, -dd, -blockquote, -figure, -fieldset, -legend, -textarea, -pre, -iframe, -hr, -h1, -h2, -h3, -h4, -h5, -h6 { - margin: 0; - padding: 0; - border: 0; -} - -html { - font-family: sans-serif; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/** - * Render the `main` element consistently in IE. - */ -main { - display: block; -} - -/** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ -progress { - vertical-align: baseline; -} - -/* Inherit box-sizing to more easily change it's value on a component level. -@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */ -html { - box-sizing: border-box; -} - -*, -*::before, -*::after { - box-sizing: inherit; -} - -/** - * 1. Change the font styles in all browsers. - * 2. Remove the margin in Firefox and Safari. -*/ -button, -input, -optgroup, -select, -textarea { - font-family: inherit; - font-size: 100%; - margin: 0; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ -[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; -} - -/** - * Remove the inner padding in Chrome and Safari on macOS. - */ -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * Remove the inner border and padding in Firefox. - */ -::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ -:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/*-------------------------------------------------------------- -# Elements ---------------------------------------------------------------*/ -body, -button, -input, -select, -textarea { - font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-weight: normal; - text-transform: none; - font-size: 17px; - line-height: 1.5; -} - -p { - margin-bottom: 1.5em; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - font-family: inherit; - font-size: 100%; - font-style: inherit; - font-weight: inherit; -} - -pre { - background: rgba(0, 0, 0, 0.05); - font-family: inherit; - font-size: inherit; - line-height: normal; - margin-bottom: 1.5em; - padding: 20px; - overflow: auto; - max-width: 100%; -} - -blockquote { - border-left: 5px solid rgba(0, 0, 0, 0.05); - padding: 20px; - font-size: 1.2em; - font-style: italic; - margin: 0 0 1.5em; - position: relative; -} - -blockquote p:last-child { - margin: 0; -} - -table, -th, -td { - border: 1px solid rgba(0, 0, 0, 0.1); -} - -table { - border-collapse: separate; - border-spacing: 0; - border-width: 1px 0 0 1px; - margin: 0 0 1.5em; - width: 100%; -} - -th, -td { - padding: 8px; -} - -th { - border-width: 0 1px 1px 0; -} - -td { - border-width: 0 1px 1px 0; -} - -hr { - background-color: rgba(0, 0, 0, 0.1); - border: 0; - height: 1px; - margin-bottom: 40px; - margin-top: 40px; -} - -fieldset { - padding: 0; - border: 0; - min-width: inherit; -} - -fieldset legend { - padding: 0; - margin-bottom: 1.5em; -} - -h1 { - font-size: 42px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h2 { - font-size: 35px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h3 { - font-size: 29px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h4 { - font-size: 24px; -} - -h5 { - font-size: 20px; -} - -h4, -h5, -h6 { - margin-bottom: 20px; -} - -ul, -ol { - margin: 0 0 1.5em 3em; -} - -ul { - list-style: disc; -} - -ol { - list-style: decimal; -} - -li > ul, -li > ol { - margin-bottom: 0; - margin-left: 1.5em; -} - -dt { - font-weight: bold; -} - -dd { - margin: 0 1.5em 1.5em; -} - -b, -strong { - font-weight: bold; -} - -dfn, -cite, -em, -i { - font-style: italic; -} - -address { - margin: 0 0 1.5em; -} - -code, -kbd, -tt, -var { - font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; -} - -abbr, -acronym { - border-bottom: 1px dotted #666; - cursor: help; -} - -mark, -ins { - text-decoration: none; -} - -sup, -sub { - font-size: 75%; - height: 0; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - bottom: 1ex; -} - -sub { - top: .5ex; -} - -small { - font-size: 75%; -} - -big { - font-size: 125%; -} - -figure { - margin: 0; -} - -table { - margin: 0 0 1.5em; - width: 100%; -} - -th { - font-weight: bold; -} - -img { - height: auto; - /* Make sure images are scaled correctly. */ - max-width: 100%; - /* Adhere to container width. */ -} - -/*-------------------------------------------------------------- -# Forms ---------------------------------------------------------------*/ -button, -input[type="button"], -input[type="reset"], -input[type="submit"] { - background: #55555e; - color: #fff; - border: 1px solid transparent; - cursor: pointer; - -webkit-appearance: button; - /* Corrects inability to style clickable 'input' types in iOS */ - padding: 10px 20px; -} - -input[type="text"], -input[type="email"], -input[type="url"], -input[type="password"], -input[type="search"], -input[type="tel"], -input[type="number"], -textarea, -select { - border: 1px solid; - border-radius: 0; - padding: 10px 15px; - max-width: 100%; -} - -textarea { - width: 100%; -} - -/*-------------------------------------------------------------- -# Links ---------------------------------------------------------------*/ -a, -button, -input { - transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out; -} - -a { - text-decoration: none; -} - -.button, -.wp-block-button .wp-block-button__link { - padding: 10px 20px; - display: inline-block; -} - -.wp-block-button .wp-block-button__link { - font-size: inherit; - line-height: inherit; -} - -.using-mouse :focus { - outline: 0; -} - -.using-mouse ::-moz-focus-inner { - border: 0; -} - -/*-------------------------------------------------------------- -# Alignments ---------------------------------------------------------------*/ -.alignleft { - float: left; - margin-right: 1.5em; -} - -.alignright { - float: right; - margin-left: 1.5em; -} - -.aligncenter { - clear: both; - display: block; - margin: 0 auto; -} - -.size-auto, -.size-full, -.size-large, -.size-medium, -.size-thumbnail { - max-width: 100%; - height: auto; -} - -.no-sidebar .entry-content .alignfull { - margin-left: calc( -100vw / 2 + 100% / 2); - margin-right: calc( -100vw / 2 + 100% / 2); - max-width: 100vw; - width: auto; -} - -/*-------------------------------------------------------------- -# Accessibility ---------------------------------------------------------------*/ -.screen-reader-text { - border: 0; - clip: rect(1px, 1px, 1px, 1px); - -webkit-clip-path: inset(50%); - clip-path: inset(50%); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute !important; - width: 1px; - word-wrap: normal !important; -} - -.screen-reader-text:focus { - background-color: #f1f1f1; - border-radius: 3px; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - clip: auto !important; - -webkit-clip-path: none; - clip-path: none; - color: #21759b; - display: block; - font-size: 0.875rem; - font-weight: 700; - height: auto; - left: 5px; - line-height: normal; - padding: 15px 23px 14px; - text-decoration: none; - top: 5px; - width: auto; - z-index: 100000; -} - -/* Do not show the outline on the skip link target. */ -#primary[tabindex="-1"]:focus { - outline: 0; -} - -/*-------------------------------------------------------------- -# Navigation ---------------------------------------------------------------*/ -.main-navigation { - z-index: 100; - padding: 0; - clear: both; - display: block; -} - -.main-navigation a { - display: block; - text-decoration: none; - font-weight: normal; - text-transform: none; - font-size: 15px; -} - -.main-navigation ul { - list-style: none; - margin: 0; - padding-left: 0; -} - -.main-navigation .main-nav ul li a { - padding-left: 20px; - padding-right: 20px; - line-height: 60px; -} - -.inside-navigation { - position: relative; -} - -.main-navigation .inside-navigation { - display: flex; - align-items: center; - flex-wrap: wrap; - justify-content: space-between; -} - -.main-navigation .main-nav > ul { - display: flex; - flex-wrap: wrap; - align-items: center; -} - -.main-navigation li { - position: relative; -} - -.main-navigation .menu-bar-items { - display: flex; - align-items: center; - font-size: 15px; -} - -.main-navigation .menu-bar-items a { - color: inherit; -} - -.main-navigation .menu-bar-item { - position: relative; -} - -.main-navigation .menu-bar-item.search-item { - z-index: 20; -} - -.main-navigation .menu-bar-item > a { - padding-left: 20px; - padding-right: 20px; - line-height: 60px; -} - -.sidebar .main-navigation .main-nav { - flex-basis: 100%; -} - -.sidebar .main-navigation .main-nav > ul { - flex-direction: column; -} - -.sidebar .main-navigation .menu-bar-items { - margin: 0 auto; -} - -.sidebar .main-navigation .menu-bar-items .search-item { - order: 10; -} - -.nav-align-center .inside-navigation { - justify-content: center; -} - -.nav-align-center .main-nav > ul { - justify-content: center; -} - -.nav-align-right .inside-navigation { - justify-content: flex-end; -} - -/*-------------------------------------------------------------- -## Dropdown Menus ---------------------------------------------------------------*/ -.main-navigation ul ul { - display: block; - box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1); - float: left; - position: absolute; - left: -99999px; - opacity: 0; - z-index: 99999; - width: 200px; - text-align: left; - top: auto; - transition: opacity 80ms linear; - transition-delay: 0s; - pointer-events: none; - height: 0; - overflow: hidden; -} - -.main-navigation ul ul a { - display: block; -} - -.main-navigation ul ul li { - width: 100%; -} - -.main-navigation .main-nav ul ul li a { - line-height: normal; - padding: 10px 20px; - font-size: 14px; -} - -.main-navigation .main-nav ul li.menu-item-has-children > a { - padding-right: 0; - position: relative; -} - -.main-navigation.sub-menu-left ul ul { - box-shadow: -1px 1px 0 rgba(0, 0, 0, 0.1); -} - -.main-navigation.sub-menu-left .sub-menu { - right: 0; -} - -.main-navigation:not(.toggled) ul li:hover > ul, -.main-navigation:not(.toggled) ul li.sfHover > ul { - left: auto; - opacity: 1; - transition-delay: 150ms; - pointer-events: auto; - height: auto; - overflow: visible; -} - -.main-navigation:not(.toggled) ul ul li:hover > ul, -.main-navigation:not(.toggled) ul ul li.sfHover > ul { - left: 100%; - top: 0; -} - -.main-navigation.sub-menu-left:not(.toggled) ul ul li:hover > ul, -.main-navigation.sub-menu-left:not(.toggled) ul ul li.sfHover > ul { - right: 100%; - left: auto; -} - -.nav-float-right .main-navigation ul ul ul { - top: 0; -} - -.menu-item-has-children .dropdown-menu-toggle { - display: inline-block; - height: 100%; - clear: both; - padding-right: 20px; - padding-left: 10px; -} - -.menu-item-has-children ul .dropdown-menu-toggle { - padding-top: 10px; - padding-bottom: 10px; - margin-top: -10px; -} - -nav ul ul .menu-item-has-children .dropdown-menu-toggle, -.sidebar .menu-item-has-children .dropdown-menu-toggle { - float: right; -} - -/*-------------------------------------------------------------- -## Sidebar Navigation ---------------------------------------------------------------*/ -.widget-area .main-navigation li { - float: none; - display: block; - width: 100%; - padding: 0; - margin: 0; -} - -.sidebar .main-navigation.sub-menu-right ul li:hover ul, -.sidebar .main-navigation.sub-menu-right ul li.sfHover ul { - top: 0; - left: 100%; -} - -.sidebar .main-navigation.sub-menu-left ul li:hover ul, -.sidebar .main-navigation.sub-menu-left ul li.sfHover ul { - top: 0; - right: 100%; -} - -/*-------------------------------------------------------------- -# Post Navigation ---------------------------------------------------------------*/ -.site-main .comment-navigation, -.site-main .posts-navigation, -.site-main .post-navigation { - margin: 0 0 2em; - overflow: hidden; -} - -.site-main .post-navigation { - margin-bottom: 0; -} - -.paging-navigation .nav-previous, -.paging-navigation .nav-next { - display: none; -} - -.paging-navigation .nav-links > * { - padding: 0 5px; -} - -.paging-navigation .nav-links .current { - font-weight: bold; -} - -/* Less specific so we don't overwrite existing customizations. */ -.nav-links > *:first-child { - padding-left: 0; -} - -/*-------------------------------------------------------------- -# Header ---------------------------------------------------------------*/ -.site-header { - position: relative; -} - -.inside-header { - padding: 20px 40px; -} - -.main-title { - margin: 0; - font-size: 25px; - line-height: 1.2em; - word-wrap: break-word; - font-weight: bold; - text-transform: none; -} - -.site-description { - margin: 0; - line-height: 1.5; - font-weight: normal; - text-transform: none; - font-size: 15px; -} - -.site-logo { - display: inline-block; - max-width: 100%; -} - -.site-header .header-image { - vertical-align: middle; -} - -.inside-header { - display: flex; - align-items: center; -} - -.header-widget { - margin-left: auto; -} - -.header-widget p:last-child { - margin-bottom: 0; -} - -.nav-float-right .header-widget { - margin-left: 20px; -} - -.nav-float-right #site-navigation { - margin-left: auto; -} - -.nav-float-left #site-navigation { - margin-right: auto; - order: -10; -} - -.nav-float-left .header-widget { - margin-left: 0; - margin-right: 20px; - order: -15; -} - -.header-aligned-center:not([class*="nav-float-"]) .inside-header { - justify-content: center; - flex-direction: column; - text-align: center; -} - -.header-aligned-center:not([class*="nav-float-"]) .header-widget { - margin-left: auto; - margin-right: auto; -} - -.header-aligned-center:not([class*="nav-float-"]) .inside-header > *:not(:first-child) { - margin-top: 1em; -} - -.header-aligned-right:not([class*="nav-float-"]) .inside-header { - justify-content: flex-end; -} - -.header-aligned-right:not([class*="nav-float-"]) .header-widget { - margin-right: auto; - margin-left: 0; - order: -10; -} - -.site-branding-container { - display: inline-flex; - align-items: center; - text-align: left; - flex-shrink: 0; -} - -.site-branding-container .site-logo { - margin-right: 1em; -} - -/*-------------------------------------------------------------- -# Post Content ---------------------------------------------------------------*/ -.sticky { - display: block; -} - -.posted-on .updated, -.entry-header .gp-icon { - display: none; -} - -.byline, -.single .byline, -.group-blog .byline, -.entry-header .cat-links, -.entry-header .tags-links, -.entry-header .comments-link { - display: inline; -} - -footer.entry-meta .byline, -footer.entry-meta .posted-on { - display: block; -} - -.page-content:not(:first-child), -.entry-content:not(:first-child), -.entry-summary:not(:first-child) { - margin-top: 2em; -} - -.page-links { - clear: both; - margin: 0 0 1.5em; -} - -.blog .format-status .entry-title, -.archive .format-status .entry-title, -.blog .format-aside .entry-header, -.archive .format-aside .entry-header, -.blog .format-status .entry-header, -.archive .format-status .entry-header, -.blog .format-status .entry-meta, -.archive .format-status .entry-meta { - display: none; -} - -.blog .format-aside .entry-content, -.archive .format-aside .entry-content, -.blog .format-status .entry-content, -.archive .format-status .entry-content { - margin-top: 0; -} - -.blog .format-status .entry-content p:last-child, -.archive .format-status .entry-content p:last-child { - margin-bottom: 0; -} - -.site-content, -.entry-header { - word-wrap: break-word; -} - -.entry-title { - margin-bottom: 0; -} - -.author .page-header .page-title { - display: flex; - align-items: center; -} - -.author .page-header .avatar { - margin-right: 20px; -} - -.page-header > *:last-child, -.page-header .author-info > *:last-child { - margin-bottom: 0; -} - -.entry-meta { - font-size: 85%; - margin-top: .5em; - line-height: 1.5; -} - -footer.entry-meta { - margin-top: 2em; -} - -.cat-links, -.tags-links, -.comments-link { - display: block; -} - -.taxonomy-description p:last-child, -.read-more-container, -.page-content > p:last-child, -.entry-content > p:last-child, -.entry-summary > p:last-child { - margin-bottom: 0; -} - -/*-------------------------------------------------------------- -# Media ---------------------------------------------------------------*/ -/*-------------------------------------------------------------- -## Captions ---------------------------------------------------------------*/ -.wp-caption { - margin-bottom: 1.5em; - max-width: 100%; - position: relative; -} - -.wp-caption img[class*="wp-image-"] { - display: block; - margin: 0 auto 0; - max-width: 100%; -} - -.wp-caption .wp-caption-text { - font-size: 75%; - padding-top: 5px; - opacity: 0.8; -} - -.wp-caption img { - position: relative; - vertical-align: bottom; -} - -.wp-block-image figcaption { - font-size: 13px; - text-align: center; -} - -/*-------------------------------------------------------------- -## Galleries ---------------------------------------------------------------*/ -.wp-block-gallery, -ul.blocks-gallery-grid { - margin-left: 0; -} - -.wp-block-gallery .blocks-gallery-image figcaption, -.wp-block-gallery .blocks-gallery-item figcaption { - background: rgba(255, 255, 255, 0.7); - color: #000; - padding: 10px; - box-sizing: border-box; -} - -.gallery { - margin-bottom: 1.5em; -} - -.gallery-item { - display: inline-block; - text-align: center; - vertical-align: top; - width: 100%; -} - -.gallery-columns-2 .gallery-item { - max-width: 50%; -} - -.gallery-columns-3 .gallery-item { - max-width: 33.33%; -} - -.gallery-columns-4 .gallery-item { - max-width: 25%; -} - -.gallery-columns-5 .gallery-item { - max-width: 20%; -} - -.gallery-columns-6 .gallery-item { - max-width: 16.66%; -} - -.gallery-columns-7 .gallery-item { - max-width: 14.28%; -} - -.gallery-columns-8 .gallery-item { - max-width: 12.5%; -} - -.gallery-columns-9 .gallery-item { - max-width: 11.11%; -} - -.gallery-caption { - display: block; -} - -.site-main .gallery { - margin-bottom: 1.5em; -} - -.gallery-item img { - vertical-align: bottom; -} - -.gallery-icon { - padding: 5px; -} - -embed, -iframe, -object { - max-width: 100%; -} - -/*-------------------------------------------------------------- -## Post Loop Block ---------------------------------------------------------------*/ -.wp-block-post-template { - margin-left: 0; -} - -/*-------------------------------------------------------------- -# Widgets ---------------------------------------------------------------*/ -.widget-area .widget { - padding: 40px; -} - -.widget select { - max-width: 100%; -} - -.sidebar .widget *:last-child, -.footer-widgets .widget *:last-child { - margin-bottom: 0; -} - -.widget-title { - margin-bottom: 30px; - font-size: 20px; - line-height: 1.5; - font-weight: normal; - text-transform: none; -} - -.widget ul, -.widget ol { - margin: 0; -} - -.widget .search-field { - width: 100%; -} - -.widget .search-form { - display: flex; -} - -.widget .search-form button.search-submit { - font-size: 15px; -} - -.footer-widgets .widget { - margin-bottom: 30px; -} - -.sidebar .widget:last-child, -.footer-widgets .widget:last-child { - margin-bottom: 0; -} - -.widget ul li { - list-style-type: none; - position: relative; - margin-bottom: 0.5em; -} - -.widget ul li ul { - margin-left: 1em; - margin-top: 0.5em; -} - -.wp-calendar-table { - table-layout: fixed; -} - -/*-------------------------------------------------------------- -# Content Layout ---------------------------------------------------------------*/ -.site-content { - display: flex; -} - -.grid-container { - margin-left: auto; - margin-right: auto; - max-width: 1200px; -} - -.sidebar .widget, -.page-header, -.site-main > * { - margin-bottom: 20px; -} - -.both-right .inside-left-sidebar, -.both-left .inside-left-sidebar { - margin-right: 10px; -} - -.both-right .inside-right-sidebar, -.both-left .inside-right-sidebar { - margin-left: 10px; -} - -/*-------------------------------------------------------------- -## One Container ---------------------------------------------------------------*/ -.one-container.right-sidebar .site-main, -.one-container.both-right .site-main { - margin-right: 40px; -} - -.one-container.left-sidebar .site-main, -.one-container.both-left .site-main { - margin-left: 40px; -} - -.one-container.both-sidebars .site-main { - margin: 0px 40px 0px 40px; -} - -.one-container.archive .post:not(:last-child):not(.is-loop-template-item), -.one-container.blog .post:not(:last-child):not(.is-loop-template-item) { - padding-bottom: 40px; -} - -.one-container .site-content { - padding: 40px; -} - -/*-------------------------------------------------------------- -## Separate Containers ---------------------------------------------------------------*/ -.separate-containers .inside-article, -.separate-containers .comments-area, -.separate-containers .page-header, -.separate-containers .paging-navigation { - padding: 40px; -} - -.separate-containers .site-main { - margin: 20px; -} - -.separate-containers.no-sidebar .site-main { - margin-left: 0; - margin-right: 0; -} - -.separate-containers.right-sidebar .site-main, -.separate-containers.both-right .site-main { - margin-left: 0; -} - -.separate-containers.left-sidebar .site-main, -.separate-containers.both-left .site-main { - margin-right: 0; -} - -.separate-containers .inside-right-sidebar, -.separate-containers .inside-left-sidebar { - margin-top: 20px; - margin-bottom: 20px; -} - -.inside-page-header { - padding: 40px; -} - -.widget-area .main-navigation { - margin-bottom: 20px; -} - -.separate-containers .site-main > *:last-child, -.one-container .site-main > *:last-child { - margin-bottom: 0; -} - -/*-------------------------------------------------------------- -## Full Width Content ---------------------------------------------------------------*/ -.full-width-content .container.grid-container { - max-width: 100%; -} - -.full-width-content.no-sidebar.separate-containers .site-main { - margin: 0; -} - -.full-width-content.separate-containers .inside-article, -.full-width-content.one-container .site-content { - padding: 0; -} - -.full-width-content .entry-content .alignwide { - margin-left: 0; - width: auto; - max-width: unset; -} - -/*-------------------------------------------------------------- -## Contained Content ---------------------------------------------------------------*/ -.contained-content.separate-containers .inside-article, -.contained-content.one-container .site-content { - padding: 0; -} - -/*-------------------------------------------------------------- -# Sidebars ---------------------------------------------------------------*/ -.sidebar .grid-container { - max-width: 100%; - width: 100%; -} - -.left-sidebar .sidebar, -.both-left .is-left-sidebar, -.both-sidebars .is-left-sidebar { - order: -10; -} - -.both-left .is-right-sidebar { - order: -5; -} - -.both-right .is-left-sidebar { - order: 5; -} - -.both-right .is-right-sidebar, -.both-sidebars .is-right-sidebar { - order: 10; -} - -/*-------------------------------------------------------------- -# Footer ---------------------------------------------------------------*/ -.inside-site-info { - display: flex; - align-items: center; - justify-content: center; - padding: 20px 40px; -} - -.site-info { - text-align: center; - font-size: 15px; -} - -/*-------------------------------------------------------------- -# Featured Images ---------------------------------------------------------------*/ -.post-image:not(:first-child) { - margin-top: 2em; -} - -.featured-image { - line-height: 0; - /* no more weird spacing */ -} - -.separate-containers .featured-image { - margin-top: 20px; -} - -.separate-containers .inside-article > .featured-image { - margin-top: 0; - margin-bottom: 2em; -} - -.one-container .inside-article > .featured-image { - margin-top: 0; - margin-bottom: 2em; -} - -/*-------------------------------------------------------------- -# Icons ---------------------------------------------------------------*/ -.gp-icon { - display: inline-flex; - align-self: center; -} - -.gp-icon svg { - height: 1em; - width: 1em; - top: .125em; - position: relative; - fill: currentColor; -} - -.icon-menu-bars svg:nth-child(2), -.toggled .icon-menu-bars svg:nth-child(1), -.icon-search svg:nth-child(2), -.close-search .icon-search svg:nth-child(1) { - display: none; -} - -.toggled .icon-menu-bars svg:nth-child(2), -.close-search .icon-search svg:nth-child(2) { - display: block; -} - -.entry-meta .gp-icon { - margin-right: 0.6em; - opacity: 0.7; -} - -nav.toggled .icon-arrow-left svg { - transform: rotate(-90deg); -} - -nav.toggled .icon-arrow-right svg { - transform: rotate(90deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon svg { - transform: rotate(180deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon.icon-arrow-left svg { - transform: rotate(-270deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon.icon-arrow-right svg { - transform: rotate(270deg); -} - -/*-------------------------------------------------------------- -# Compatibility ---------------------------------------------------------------*/ -/* Bootstrap fix */ -.container.grid-container { - width: auto; -} - -/*-------------------------------------------------------------- -# Mobile ---------------------------------------------------------------*/ -/*-------------------------------------------------------------- -# Mobile Menu ---------------------------------------------------------------*/ -.menu-toggle, -.mobile-bar-items, -.sidebar-nav-mobile { - display: none; -} - -.menu-toggle { - padding: 0 20px; - line-height: 60px; - margin: 0; - font-weight: normal; - text-transform: none; - font-size: 15px; - cursor: pointer; -} - -.menu-toggle .mobile-menu { - padding-left: 3px; -} - -.menu-toggle .gp-icon + .mobile-menu { - padding-left: 9px; -} - -.menu-toggle .mobile-menu:empty { - display: none; -} - -button.menu-toggle { - background-color: transparent; - flex-grow: 1; - border: 0; - text-align: center; -} - -button.menu-toggle:hover, button.menu-toggle:active, button.menu-toggle:focus { - background-color: transparent; -} - -.has-menu-bar-items button.menu-toggle { - flex-grow: 0; -} - -nav.toggled ul ul.sub-menu { - width: 100%; -} - -.toggled .menu-item-has-children .dropdown-menu-toggle { - padding-left: 20px; -} - -.main-navigation.toggled .main-nav { - flex-basis: 100%; - order: 3; -} - -.main-navigation.toggled .main-nav > ul { - display: block; -} - -.main-navigation.toggled .main-nav li { - width: 100%; - text-align: left; -} - -.main-navigation.toggled .main-nav ul ul { - transition: 0s; - visibility: hidden; - box-shadow: none; - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -.main-navigation.toggled .main-nav ul ul li:last-child > ul { - border-bottom: 0; -} - -.main-navigation.toggled .main-nav ul ul.toggled-on { - position: relative; - top: 0; - left: auto !important; - right: auto !important; - width: 100%; - pointer-events: auto; - height: auto; - opacity: 1; - display: block; - visibility: visible; - float: none; -} - -.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle { - float: right; -} - -.mobile-menu-control-wrapper { - display: none; - margin-left: auto; - align-items: center; -} - -.has-inline-mobile-toggle #site-navigation.toggled { - margin-top: 1.5em; -} - -.has-inline-mobile-toggle #site-navigation.has-active-search { - margin-top: 1.5em; -} - -.has-inline-mobile-toggle #site-navigation.has-active-search .nav-search-active { - position: relative; -} - -.has-inline-mobile-toggle #site-navigation.has-active-search .navigation-search input { - outline: auto; -} - -.nav-float-left .mobile-menu-control-wrapper { - order: -10; - margin-left: 0; - margin-right: auto; - flex-direction: row-reverse; -} - -/*-------------------------------------------------------------- -## Breakpoint (768px) ---------------------------------------------------------------*/ -@media (max-width: 768px) { - .hide-on-mobile { - display: none !important; - } - /*-------------------------------------------------------------- - ## Links - --------------------------------------------------------------*/ - a, body, button, input, select, textarea { - transition: all 0s ease-in-out; - } - /*-------------------------------------------------------------- - ## Header - --------------------------------------------------------------*/ - .inside-header { - flex-direction: column; - text-align: center; - } - .site-header .header-widget { - margin-top: 1.5em; - margin-left: auto; - margin-right: auto; - text-align: center; - } - /*-------------------------------------------------------------- - ## Content Area - --------------------------------------------------------------*/ - .site-content { - flex-direction: column; - } - .container .site-content .content-area { - width: auto; - } - .is-left-sidebar.sidebar, - .is-right-sidebar.sidebar { - width: auto; - order: initial; - } - .is-left-sidebar + .is-right-sidebar .inside-right-sidebar { - margin-top: 0; - } - .both-right .inside-left-sidebar, - .both-left .inside-left-sidebar, - .both-right .inside-right-sidebar, - .both-left .inside-right-sidebar { - margin-right: 0; - margin-left: 0; - } - #main { - margin-left: 0; - margin-right: 0; - } - body:not(.no-sidebar) #main { - margin-bottom: 0; - } - .alignleft, - .alignright { - float: none; - display: block; - margin-left: auto; - margin-right: auto; - } - .comment .children { - padding-left: 10px; - margin-left: 0; - } - .entry-meta { - font-size: inherit; - } - .entry-meta a { - line-height: 1.8em; - } -} - -@media (min-width: 769px) and (max-width: 1024px) { - .hide-on-tablet { - display: none !important; - } -} - -@media (min-width: 1025px) { - .hide-on-desktop { - display: none !important; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main.min.css deleted file mode 100644 index 09e4fd23..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/main.min.css +++ /dev/null @@ -1 +0,0 @@ -blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0;border:0}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}progress{vertical-align:baseline}html{box-sizing:border-box}*,::after,::before{box-sizing:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;margin:0}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}body,button,input,select,textarea{font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-weight:400;text-transform:none;font-size:17px;line-height:1.5}p{margin-bottom:1.5em}h1,h2,h3,h4,h5,h6{font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit}pre{background:rgba(0,0,0,.05);font-family:inherit;font-size:inherit;line-height:normal;margin-bottom:1.5em;padding:20px;overflow:auto;max-width:100%}blockquote{border-left:5px solid rgba(0,0,0,.05);padding:20px;font-size:1.2em;font-style:italic;margin:0 0 1.5em;position:relative}blockquote p:last-child{margin:0}table,td,th{border:1px solid rgba(0,0,0,.1)}table{border-collapse:separate;border-spacing:0;border-width:1px 0 0 1px;margin:0 0 1.5em;width:100%}td,th{padding:8px}th{border-width:0 1px 1px 0}td{border-width:0 1px 1px 0}hr{background-color:rgba(0,0,0,.1);border:0;height:1px;margin-bottom:40px;margin-top:40px}fieldset{padding:0;border:0;min-width:inherit}fieldset legend{padding:0;margin-bottom:1.5em}h1{font-size:42px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h2{font-size:35px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h3{font-size:29px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h4{font-size:24px}h5{font-size:20px}h4,h5,h6{margin-bottom:20px}ol,ul{margin:0 0 1.5em 3em}ul{list-style:disc}ol{list-style:decimal}li>ol,li>ul{margin-bottom:0;margin-left:1.5em}dt{font-weight:700}dd{margin:0 1.5em 1.5em}b,strong{font-weight:700}cite,dfn,em,i{font-style:italic}address{margin:0 0 1.5em}code,kbd,tt,var{font:15px Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace}abbr,acronym{border-bottom:1px dotted #666;cursor:help}ins,mark{text-decoration:none}sub,sup{font-size:75%;height:0;line-height:0;position:relative;vertical-align:baseline}sup{bottom:1ex}sub{top:.5ex}small{font-size:75%}big{font-size:125%}figure{margin:0}table{margin:0 0 1.5em;width:100%}th{font-weight:700}img{height:auto;max-width:100%}button,input[type=button],input[type=reset],input[type=submit]{background:#55555e;color:#fff;border:1px solid transparent;cursor:pointer;-webkit-appearance:button;padding:10px 20px}input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{border:1px solid;border-radius:0;padding:10px 15px;max-width:100%}textarea{width:100%}a,button,input{transition:color .1s ease-in-out,background-color .1s ease-in-out}a{text-decoration:none}.button,.wp-block-button .wp-block-button__link{padding:10px 20px;display:inline-block}.wp-block-button .wp-block-button__link{font-size:inherit;line-height:inherit}.using-mouse :focus{outline:0}.using-mouse ::-moz-focus-inner{border:0}.alignleft{float:left;margin-right:1.5em}.alignright{float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin:0 auto}.size-auto,.size-full,.size-large,.size-medium,.size-thumbnail{max-width:100%;height:auto}.no-sidebar .entry-content .alignfull{margin-left:calc(-100vw / 2 + 100% / 2);margin-right:calc(-100vw / 2 + 100% / 2);max-width:100vw;width:auto}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#21759b;display:block;font-size:.875rem;font-weight:700;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}#primary[tabindex="-1"]:focus{outline:0}.main-navigation{z-index:100;padding:0;clear:both;display:block}.main-navigation a{display:block;text-decoration:none;font-weight:400;text-transform:none;font-size:15px}.main-navigation ul{list-style:none;margin:0;padding-left:0}.main-navigation .main-nav ul li a{padding-left:20px;padding-right:20px;line-height:60px}.inside-navigation{position:relative}.main-navigation .inside-navigation{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}.main-navigation .main-nav>ul{display:flex;flex-wrap:wrap;align-items:center}.main-navigation li{position:relative}.main-navigation .menu-bar-items{display:flex;align-items:center;font-size:15px}.main-navigation .menu-bar-items a{color:inherit}.main-navigation .menu-bar-item{position:relative}.main-navigation .menu-bar-item.search-item{z-index:20}.main-navigation .menu-bar-item>a{padding-left:20px;padding-right:20px;line-height:60px}.sidebar .main-navigation .main-nav{flex-basis:100%}.sidebar .main-navigation .main-nav>ul{flex-direction:column}.sidebar .main-navigation .menu-bar-items{margin:0 auto}.sidebar .main-navigation .menu-bar-items .search-item{order:10}.nav-align-center .inside-navigation{justify-content:center}.nav-align-center .main-nav>ul{justify-content:center}.nav-align-right .inside-navigation{justify-content:flex-end}.main-navigation ul ul{display:block;box-shadow:1px 1px 0 rgba(0,0,0,.1);float:left;position:absolute;left:-99999px;opacity:0;z-index:99999;width:200px;text-align:left;top:auto;transition:opacity 80ms linear;transition-delay:0s;pointer-events:none;height:0;overflow:hidden}.main-navigation ul ul a{display:block}.main-navigation ul ul li{width:100%}.main-navigation .main-nav ul ul li a{line-height:normal;padding:10px 20px;font-size:14px}.main-navigation .main-nav ul li.menu-item-has-children>a{padding-right:0;position:relative}.main-navigation.sub-menu-left ul ul{box-shadow:-1px 1px 0 rgba(0,0,0,.1)}.main-navigation.sub-menu-left .sub-menu{right:0}.main-navigation:not(.toggled) ul li.sfHover>ul,.main-navigation:not(.toggled) ul li:hover>ul{left:auto;opacity:1;transition-delay:150ms;pointer-events:auto;height:auto;overflow:visible}.main-navigation:not(.toggled) ul ul li.sfHover>ul,.main-navigation:not(.toggled) ul ul li:hover>ul{left:100%;top:0}.main-navigation.sub-menu-left:not(.toggled) ul ul li.sfHover>ul,.main-navigation.sub-menu-left:not(.toggled) ul ul li:hover>ul{right:100%;left:auto}.nav-float-right .main-navigation ul ul ul{top:0}.menu-item-has-children .dropdown-menu-toggle{display:inline-block;height:100%;clear:both;padding-right:20px;padding-left:10px}.menu-item-has-children ul .dropdown-menu-toggle{padding-top:10px;padding-bottom:10px;margin-top:-10px}.sidebar .menu-item-has-children .dropdown-menu-toggle,nav ul ul .menu-item-has-children .dropdown-menu-toggle{float:right}.widget-area .main-navigation li{float:none;display:block;width:100%;padding:0;margin:0}.sidebar .main-navigation.sub-menu-right ul li.sfHover ul,.sidebar .main-navigation.sub-menu-right ul li:hover ul{top:0;left:100%}.sidebar .main-navigation.sub-menu-left ul li.sfHover ul,.sidebar .main-navigation.sub-menu-left ul li:hover ul{top:0;right:100%}.site-main .comment-navigation,.site-main .post-navigation,.site-main .posts-navigation{margin:0 0 2em;overflow:hidden}.site-main .post-navigation{margin-bottom:0}.paging-navigation .nav-next,.paging-navigation .nav-previous{display:none}.paging-navigation .nav-links>*{padding:0 5px}.paging-navigation .nav-links .current{font-weight:700}.nav-links>:first-child{padding-left:0}.site-header{position:relative}.inside-header{padding:20px 40px}.main-title{margin:0;font-size:25px;line-height:1.2em;word-wrap:break-word;font-weight:700;text-transform:none}.site-description{margin:0;line-height:1.5;font-weight:400;text-transform:none;font-size:15px}.site-logo{display:inline-block;max-width:100%}.site-header .header-image{vertical-align:middle}.inside-header{display:flex;align-items:center}.header-widget{margin-left:auto}.header-widget p:last-child{margin-bottom:0}.nav-float-right .header-widget{margin-left:20px}.nav-float-right #site-navigation{margin-left:auto}.nav-float-left #site-navigation{margin-right:auto;order:-10}.nav-float-left .header-widget{margin-left:0;margin-right:20px;order:-15}.header-aligned-center:not([class*=nav-float-]) .inside-header{justify-content:center;flex-direction:column;text-align:center}.header-aligned-center:not([class*=nav-float-]) .header-widget{margin-left:auto;margin-right:auto}.header-aligned-center:not([class*=nav-float-]) .inside-header>:not(:first-child){margin-top:1em}.header-aligned-right:not([class*=nav-float-]) .inside-header{justify-content:flex-end}.header-aligned-right:not([class*=nav-float-]) .header-widget{margin-right:auto;margin-left:0;order:-10}.site-branding-container{display:inline-flex;align-items:center;text-align:left;flex-shrink:0}.site-branding-container .site-logo{margin-right:1em}.sticky{display:block}.entry-header .gp-icon,.posted-on .updated{display:none}.byline,.entry-header .cat-links,.entry-header .comments-link,.entry-header .tags-links,.group-blog .byline,.single .byline{display:inline}footer.entry-meta .byline,footer.entry-meta .posted-on{display:block}.entry-content:not(:first-child),.entry-summary:not(:first-child),.page-content:not(:first-child){margin-top:2em}.page-links{clear:both;margin:0 0 1.5em}.archive .format-aside .entry-header,.archive .format-status .entry-header,.archive .format-status .entry-meta,.archive .format-status .entry-title,.blog .format-aside .entry-header,.blog .format-status .entry-header,.blog .format-status .entry-meta,.blog .format-status .entry-title{display:none}.archive .format-aside .entry-content,.archive .format-status .entry-content,.blog .format-aside .entry-content,.blog .format-status .entry-content{margin-top:0}.archive .format-status .entry-content p:last-child,.blog .format-status .entry-content p:last-child{margin-bottom:0}.entry-header,.site-content{word-wrap:break-word}.entry-title{margin-bottom:0}.author .page-header .page-title{display:flex;align-items:center}.author .page-header .avatar{margin-right:20px}.page-header .author-info>:last-child,.page-header>:last-child{margin-bottom:0}.entry-meta{font-size:85%;margin-top:.5em;line-height:1.5}footer.entry-meta{margin-top:2em}.cat-links,.comments-link,.tags-links{display:block}.entry-content>p:last-child,.entry-summary>p:last-child,.page-content>p:last-child,.read-more-container,.taxonomy-description p:last-child{margin-bottom:0}.wp-caption{margin-bottom:1.5em;max-width:100%;position:relative}.wp-caption img[class*=wp-image-]{display:block;margin:0 auto 0;max-width:100%}.wp-caption .wp-caption-text{font-size:75%;padding-top:5px;opacity:.8}.wp-caption img{position:relative;vertical-align:bottom}.wp-block-image figcaption{font-size:13px;text-align:center}.wp-block-gallery,ul.blocks-gallery-grid{margin-left:0}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{background:rgba(255,255,255,.7);color:#000;padding:10px;box-sizing:border-box}.gallery{margin-bottom:1.5em}.gallery-item{display:inline-block;text-align:center;vertical-align:top;width:100%}.gallery-columns-2 .gallery-item{max-width:50%}.gallery-columns-3 .gallery-item{max-width:33.33%}.gallery-columns-4 .gallery-item{max-width:25%}.gallery-columns-5 .gallery-item{max-width:20%}.gallery-columns-6 .gallery-item{max-width:16.66%}.gallery-columns-7 .gallery-item{max-width:14.28%}.gallery-columns-8 .gallery-item{max-width:12.5%}.gallery-columns-9 .gallery-item{max-width:11.11%}.gallery-caption{display:block}.site-main .gallery{margin-bottom:1.5em}.gallery-item img{vertical-align:bottom}.gallery-icon{padding:5px}embed,iframe,object{max-width:100%}.wp-block-post-template{margin-left:0}.widget-area .widget{padding:40px}.widget select{max-width:100%}.footer-widgets .widget :last-child,.sidebar .widget :last-child{margin-bottom:0}.widget-title{margin-bottom:30px;font-size:20px;line-height:1.5;font-weight:400;text-transform:none}.widget ol,.widget ul{margin:0}.widget .search-field{width:100%}.widget .search-form{display:flex}.widget .search-form button.search-submit{font-size:15px}.footer-widgets .widget{margin-bottom:30px}.footer-widgets .widget:last-child,.sidebar .widget:last-child{margin-bottom:0}.widget ul li{list-style-type:none;position:relative;margin-bottom:.5em}.widget ul li ul{margin-left:1em;margin-top:.5em}.wp-calendar-table{table-layout:fixed}.site-content{display:flex}.grid-container{margin-left:auto;margin-right:auto;max-width:1200px}.page-header,.sidebar .widget,.site-main>*{margin-bottom:20px}.both-left .inside-left-sidebar,.both-right .inside-left-sidebar{margin-right:10px}.both-left .inside-right-sidebar,.both-right .inside-right-sidebar{margin-left:10px}.one-container.both-right .site-main,.one-container.right-sidebar .site-main{margin-right:40px}.one-container.both-left .site-main,.one-container.left-sidebar .site-main{margin-left:40px}.one-container.both-sidebars .site-main{margin:0 40px 0 40px}.one-container.archive .post:not(:last-child):not(.is-loop-template-item),.one-container.blog .post:not(:last-child):not(.is-loop-template-item){padding-bottom:40px}.one-container .site-content{padding:40px}.separate-containers .comments-area,.separate-containers .inside-article,.separate-containers .page-header,.separate-containers .paging-navigation{padding:40px}.separate-containers .site-main{margin:20px}.separate-containers.no-sidebar .site-main{margin-left:0;margin-right:0}.separate-containers.both-right .site-main,.separate-containers.right-sidebar .site-main{margin-left:0}.separate-containers.both-left .site-main,.separate-containers.left-sidebar .site-main{margin-right:0}.separate-containers .inside-left-sidebar,.separate-containers .inside-right-sidebar{margin-top:20px;margin-bottom:20px}.inside-page-header{padding:40px}.widget-area .main-navigation{margin-bottom:20px}.one-container .site-main>:last-child,.separate-containers .site-main>:last-child{margin-bottom:0}.full-width-content .container.grid-container{max-width:100%}.full-width-content.no-sidebar.separate-containers .site-main{margin:0}.full-width-content.one-container .site-content,.full-width-content.separate-containers .inside-article{padding:0}.full-width-content .entry-content .alignwide{margin-left:0;width:auto;max-width:unset}.contained-content.one-container .site-content,.contained-content.separate-containers .inside-article{padding:0}.sidebar .grid-container{max-width:100%;width:100%}.both-left .is-left-sidebar,.both-sidebars .is-left-sidebar,.left-sidebar .sidebar{order:-10}.both-left .is-right-sidebar{order:-5}.both-right .is-left-sidebar{order:5}.both-right .is-right-sidebar,.both-sidebars .is-right-sidebar{order:10}.inside-site-info{display:flex;align-items:center;justify-content:center;padding:20px 40px}.site-info{text-align:center;font-size:15px}.post-image:not(:first-child){margin-top:2em}.featured-image{line-height:0}.separate-containers .featured-image{margin-top:20px}.separate-containers .inside-article>.featured-image{margin-top:0;margin-bottom:2em}.one-container .inside-article>.featured-image{margin-top:0;margin-bottom:2em}.gp-icon{display:inline-flex;align-self:center}.gp-icon svg{height:1em;width:1em;top:.125em;position:relative;fill:currentColor}.close-search .icon-search svg:first-child,.icon-menu-bars svg:nth-child(2),.icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:first-child{display:none}.close-search .icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:nth-child(2){display:block}.entry-meta .gp-icon{margin-right:.6em;opacity:.7}nav.toggled .icon-arrow-left svg{transform:rotate(-90deg)}nav.toggled .icon-arrow-right svg{transform:rotate(90deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon svg{transform:rotate(180deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon.icon-arrow-left svg{transform:rotate(-270deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon.icon-arrow-right svg{transform:rotate(270deg)}.container.grid-container{width:auto}.menu-toggle,.mobile-bar-items,.sidebar-nav-mobile{display:none}.menu-toggle{padding:0 20px;line-height:60px;margin:0;font-weight:400;text-transform:none;font-size:15px;cursor:pointer}.menu-toggle .mobile-menu{padding-left:3px}.menu-toggle .gp-icon+.mobile-menu{padding-left:9px}.menu-toggle .mobile-menu:empty{display:none}button.menu-toggle{background-color:transparent;flex-grow:1;border:0;text-align:center}button.menu-toggle:active,button.menu-toggle:focus,button.menu-toggle:hover{background-color:transparent}.has-menu-bar-items button.menu-toggle{flex-grow:0}nav.toggled ul ul.sub-menu{width:100%}.toggled .menu-item-has-children .dropdown-menu-toggle{padding-left:20px}.main-navigation.toggled .main-nav{flex-basis:100%;order:3}.main-navigation.toggled .main-nav>ul{display:block}.main-navigation.toggled .main-nav li{width:100%;text-align:left}.main-navigation.toggled .main-nav ul ul{transition:0s;visibility:hidden;box-shadow:none;border-bottom:1px solid rgba(0,0,0,.05)}.main-navigation.toggled .main-nav ul ul li:last-child>ul{border-bottom:0}.main-navigation.toggled .main-nav ul ul.toggled-on{position:relative;top:0;left:auto!important;right:auto!important;width:100%;pointer-events:auto;height:auto;opacity:1;display:block;visibility:visible;float:none}.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle{float:right}.mobile-menu-control-wrapper{display:none;margin-left:auto;align-items:center}.has-inline-mobile-toggle #site-navigation.toggled{margin-top:1.5em}.has-inline-mobile-toggle #site-navigation.has-active-search{margin-top:1.5em}.has-inline-mobile-toggle #site-navigation.has-active-search .nav-search-active{position:relative}.has-inline-mobile-toggle #site-navigation.has-active-search .navigation-search input{outline:auto}.nav-float-left .mobile-menu-control-wrapper{order:-10;margin-left:0;margin-right:auto;flex-direction:row-reverse}@media (max-width:768px){.hide-on-mobile{display:none!important}a,body,button,input,select,textarea{transition:all 0s ease-in-out}.inside-header{flex-direction:column;text-align:center}.site-header .header-widget{margin-top:1.5em;margin-left:auto;margin-right:auto;text-align:center}.site-content{flex-direction:column}.container .site-content .content-area{width:auto}.is-left-sidebar.sidebar,.is-right-sidebar.sidebar{width:auto;order:initial}.is-left-sidebar+.is-right-sidebar .inside-right-sidebar{margin-top:0}.both-left .inside-left-sidebar,.both-left .inside-right-sidebar,.both-right .inside-left-sidebar,.both-right .inside-right-sidebar{margin-right:0;margin-left:0}#main{margin-left:0;margin-right:0}body:not(.no-sidebar) #main{margin-bottom:0}.alignleft,.alignright{float:none;display:block;margin-left:auto;margin-right:auto}.comment .children{padding-left:10px;margin-left:0}.entry-meta{font-size:inherit}.entry-meta a{line-height:1.8em}}@media (min-width:769px) and (max-width:1024px){.hide-on-tablet{display:none!important}}@media (min-width:1025px){.hide-on-desktop{display:none!important}} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/mobile.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/mobile.css deleted file mode 100644 index aa1c1c15..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/mobile.css +++ /dev/null @@ -1,258 +0,0 @@ -/*-------------------------------------------------------------- -# Mobile Menu ---------------------------------------------------------------*/ -.menu-toggle, -.mobile-bar-items, -.sidebar-nav-mobile { - display: none; -} - -.menu-toggle { - padding: 0 20px; - line-height: 60px; - margin: 0; - font-weight: normal; - text-transform: none; - font-size: 15px; - cursor: pointer; -} - -button.menu-toggle { - background-color: transparent; - width: 100%; - border: 0; - text-align: center; -} - -button.menu-toggle:hover, -button.menu-toggle:active, -button.menu-toggle:focus { - background-color: transparent; -} - -.menu-toggle .mobile-menu { - padding-left: 3px; -} - -.menu-toggle .gp-icon + .mobile-menu { - padding-left: 9px; -} - -.menu-toggle .mobile-menu:empty { - display: none; -} - -.nav-search-enabled .main-navigation .menu-toggle { - text-align: left; -} - -.mobile-bar-items { - display: none; - position: absolute; - right: 0; - top: 0; - z-index: 21; - list-style-type: none; -} - -.mobile-bar-items a { - display: inline-block; -} - -nav.toggled ul ul.sub-menu { - width: 100%; -} - -.dropdown-hover .main-navigation.toggled ul li:hover > ul, -.dropdown-hover .main-navigation.toggled ul li.sfHover > ul { - transition-delay: 0s; -} - -.toggled .menu-item-has-children .dropdown-menu-toggle { - padding-left: 20px; -} - -.main-navigation.toggled ul ul { - transition: 0s; - visibility: hidden; -} - -.main-navigation.toggled .main-nav > ul { - display: block; -} - -.main-navigation.toggled .main-nav ul ul.toggled-on { - position: relative; - top: 0; - left: auto !important; - right: auto !important; - width: 100%; - pointer-events: auto; - height: auto; - opacity: 1; - display: block; - visibility: visible; - float: none; -} - -.main-navigation.toggled .main-nav li { - float: none; - clear: both; - display: block; - text-align: left; -} - -.main-navigation.toggled .main-nav li.hide-on-mobile { - display: none !important; -} - -.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle { - float: right; -} - -.main-navigation.toggled .menu li.search-item { - display: none !important; -} - -.main-navigation.toggled .sf-menu > li.menu-item-float-right { - float: none; - display: inline-block; -} - -/*-------------------------------------------------------------- -# Breakpoint (768px) ---------------------------------------------------------------*/ -@media (max-width: 768px) { - /*-------------------------------------------------------------- - ## Links - --------------------------------------------------------------*/ - a, body, button, input, select, textarea { - transition: all 0s ease-in-out; - } - /*-------------------------------------------------------------- - ## Top Bar - --------------------------------------------------------------*/ - .top-bar.top-bar-align-left, - .top-bar.top-bar-align-right { - text-align: center; - } - .top-bar .widget { - float: none !important; - margin: 0 10px !important; - } - .top-bar .widget_nav_menu li { - float: none; - display: inline-block; - padding: 5px 0; - } - .footer-bar .widget_nav_menu li:first-child { - margin-left: 10px; - } - .footer-bar .widget_nav_menu li:last-child { - margin-right: 10px; - } - /*-------------------------------------------------------------- - ## Header - --------------------------------------------------------------*/ - .inside-header > *:not(:last-child):not(.main-navigation) { - margin-bottom: 20px; - } - .site-header, - .header-aligned-right .site-header { - text-align: center; - } - .header-widget { - float: none; - max-width: 100%; - text-align: center; - } - /*-------------------------------------------------------------- - ## Content Area - --------------------------------------------------------------*/ - .sidebar, - .content-area, - .inside-footer-widgets > div { - float: none; - width: 100%; - left: 0; - right: 0; - } - .site-main { - margin-left: 0 !important; - margin-right: 0 !important; - } - body:not(.no-sidebar) .site-main { - margin-bottom: 0 !important; - } - .one-container .sidebar { - margin-top: 40px; - } - .separate-containers #left-sidebar + #right-sidebar .inside-right-sidebar { - margin-top: 0; - } - .both-right.separate-containers .inside-left-sidebar, - .both-left.separate-containers .inside-left-sidebar, - .both-right.separate-containers .inside-right-sidebar, - .both-left.separate-containers .inside-right-sidebar { - margin-right: 0; - margin-left: 0; - } - .alignleft, - .alignright { - float: none; - display: block; - margin-left: auto; - margin-right: auto; - } - .post-image-aligned-left .post-image, - .post-image-aligned-right .post-image { - float: none; - margin: 2em 0; - text-align: center; - } - .comment .children { - padding-left: 10px; - margin-left: 0; - } - .edd_download { - display: block; - float: none !important; - margin-bottom: 1.5em; - width: 100% !important; - } - .entry-meta { - font-size: inherit; - } - .entry-meta a { - line-height: 1.8em; - } - /*-------------------------------------------------------------- - ## Footer - --------------------------------------------------------------*/ - .site-info { - text-align: center; - } - .copyright-bar { - float: none !important; - text-align: center !important; - } - .footer-bar { - float: none !important; - text-align: center !important; - margin-bottom: 20px; - } - .footer-bar .widget_nav_menu li { - float: none; - display: inline-block; - padding: 5px 0; - } - .inside-footer-widgets > div:not(:last-child) { - margin-bottom: 40px; - } - .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets { - margin: 0; - } - .site-footer .footer-widgets .footer-widgets-container .inner-padding { - padding: 0; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/mobile.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/mobile.min.css deleted file mode 100644 index c02e268b..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/mobile.min.css +++ /dev/null @@ -1 +0,0 @@ -.menu-toggle,.mobile-bar-items,.sidebar-nav-mobile{display:none}.menu-toggle{padding:0 20px;line-height:60px;margin:0;font-weight:400;text-transform:none;font-size:15px;cursor:pointer}button.menu-toggle{background-color:transparent;width:100%;border:0;text-align:center}button.menu-toggle:active,button.menu-toggle:focus,button.menu-toggle:hover{background-color:transparent}.menu-toggle .mobile-menu{padding-left:3px}.menu-toggle .gp-icon+.mobile-menu{padding-left:9px}.menu-toggle .mobile-menu:empty{display:none}.nav-search-enabled .main-navigation .menu-toggle{text-align:left}.mobile-bar-items{display:none;position:absolute;right:0;top:0;z-index:21;list-style-type:none}.mobile-bar-items a{display:inline-block}nav.toggled ul ul.sub-menu{width:100%}.dropdown-hover .main-navigation.toggled ul li.sfHover>ul,.dropdown-hover .main-navigation.toggled ul li:hover>ul{transition-delay:0s}.toggled .menu-item-has-children .dropdown-menu-toggle{padding-left:20px}.main-navigation.toggled ul ul{transition:0s;visibility:hidden}.main-navigation.toggled .main-nav>ul{display:block}.main-navigation.toggled .main-nav ul ul.toggled-on{position:relative;top:0;left:auto!important;right:auto!important;width:100%;pointer-events:auto;height:auto;opacity:1;display:block;visibility:visible;float:none}.main-navigation.toggled .main-nav li{float:none;clear:both;display:block;text-align:left}.main-navigation.toggled .main-nav li.hide-on-mobile{display:none!important}.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle{float:right}.main-navigation.toggled .menu li.search-item{display:none!important}.main-navigation.toggled .sf-menu>li.menu-item-float-right{float:none;display:inline-block}@media (max-width:768px){a,body,button,input,select,textarea{transition:all 0s ease-in-out}.top-bar.top-bar-align-left,.top-bar.top-bar-align-right{text-align:center}.top-bar .widget{float:none!important;margin:0 10px!important}.top-bar .widget_nav_menu li{float:none;display:inline-block;padding:5px 0}.footer-bar .widget_nav_menu li:first-child{margin-left:10px}.footer-bar .widget_nav_menu li:last-child{margin-right:10px}.inside-header>:not(:last-child):not(.main-navigation){margin-bottom:20px}.header-aligned-right .site-header,.site-header{text-align:center}.header-widget{float:none;max-width:100%;text-align:center}.content-area,.inside-footer-widgets>div,.sidebar{float:none;width:100%;left:0;right:0}.site-main{margin-left:0!important;margin-right:0!important}body:not(.no-sidebar) .site-main{margin-bottom:0!important}.one-container .sidebar{margin-top:40px}.separate-containers #left-sidebar+#right-sidebar .inside-right-sidebar{margin-top:0}.both-left.separate-containers .inside-left-sidebar,.both-left.separate-containers .inside-right-sidebar,.both-right.separate-containers .inside-left-sidebar,.both-right.separate-containers .inside-right-sidebar{margin-right:0;margin-left:0}.alignleft,.alignright{float:none;display:block;margin-left:auto;margin-right:auto}.post-image-aligned-left .post-image,.post-image-aligned-right .post-image{float:none;margin:2em 0;text-align:center}.comment .children{padding-left:10px;margin-left:0}.edd_download{display:block;float:none!important;margin-bottom:1.5em;width:100%!important}.entry-meta{font-size:inherit}.entry-meta a{line-height:1.8em}.site-info{text-align:center}.copyright-bar{float:none!important;text-align:center!important}.footer-bar{float:none!important;text-align:center!important;margin-bottom:20px}.footer-bar .widget_nav_menu li{float:none;display:inline-block;padding:5px 0}.inside-footer-widgets>div:not(:last-child){margin-bottom:40px}.site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets{margin:0}.site-footer .footer-widgets .footer-widgets-container .inner-padding{padding:0}} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style-rtl.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style-rtl.css deleted file mode 100644 index c2bdac2f..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style-rtl.css +++ /dev/null @@ -1,178 +0,0 @@ -caption, -td, -th { - text-align: right; -} - -.menu-item-has-children .dropdown-menu-toggle { - float: left !important; -} - -.main-navigation li { - float: right; - text-align: right; -} - -.main-navigation li.search-item, -.nav-aligned-right.nav-below-header .main-navigation .menu > li.search-item { - float: left; -} - -.nav-left-sidebar .main-navigation li.search-item.current-menu-item, -.nav-right-sidebar .main-navigation li.search-item.current-menu-item { - float: left; -} - -.rtl.nav-aligned-left .main-navigation .menu > li { - float: none; - display: inline-block; -} - -.rtl.nav-aligned-left .main-navigation ul { - letter-spacing: -0.31em; - font-size: 1em; -} - -.rtl.nav-aligned-left .main-navigation ul li { - letter-spacing: normal; -} - -.rtl.nav-aligned-left .main-navigation { - text-align: left; -} - -.sidebar .menu-item-has-children .dropdown-menu-toggle, -nav ul ul .menu-item-has-children .dropdown-menu-toggle { - float: left; -} - -.comment-meta .avatar { - float: right; - margin-left: 10px; -} - -.page-header .avatar { - float: right; - margin-left: 1.5em; -} - -.header-widget { - float: left; -} - -.sf-menu > li.menu-item-float-right { - float: left !important; -} - -.slideout-navigation .menu-item-has-children .dropdown-menu-toggle { - float: left; -} - -.dropdown-click #generate-slideout-menu .slideout-menu .menu-item-has-children > a:first-child, -.slideout-desktop.dropdown-hover #generate-slideout-menu .slideout-menu .menu-item-has-children > a:first-child { - padding-left: 0; -} - -.comment .children { - padding-right: 30px; - border-right: 1px solid rgba(0, 0, 0, 0.05); -} - -.main-navigation .main-nav ul li.menu-item-has-children > a, -.secondary-navigation .main-nav ul li.menu-item-has-children > a { - padding-left: 0; -} - -nav:not(.toggled) ul ul .menu-item-has-children .dropdown-menu-toggle { - padding-left: 15px; -} - -nav:not(.toggled) .menu-item-has-children .dropdown-menu-toggle { - padding-right: 10px; -} - -.main-navigation ul, -.menu-toggle li.search-item { - padding-right: 0; -} - -ol, -ul { - margin: 0 3em 1.5em 0; -} - -li > ol, -li > ul { - margin-right: 1.5em; -} - -.menu-toggle .mobile-menu { - margin-right: 5px; - margin-left: 0; -} - -.widget_categories .children { - margin-right: 1.5em; -} - -.widget_nav_menu ul ul, -.widget_pages ul ul { - margin-right: 1em; -} - -.cat-links:before, -.comments-link:before, -.nav-next .next:before, -.nav-previous .prev:before, -.tags-links:before { - margin-left: 0.6em; - margin-right: 0; -} - -.menu-toggle, -.nav-search-enabled .main-navigation .menu-toggle { - text-align: right; -} - -.main-navigation .mobile-bar-items { - float: left; - left: 0; - right: auto; -} - -.rtl .navigation-search { - left: auto; - right: -999999px; -} - -.rtl .navigation-search.nav-search-active { - right: 0; -} - -.rtl .footer-bar .widget_nav_menu li { - direction: rtl; - float: right; -} - -.main-navigation.toggled .main-nav li { - text-align: right !important; -} - -.entry-meta .gp-icon { - margin-right: 0; - margin-left: 0.6em; -} - -@media (max-width: 768px) { - .rtl .mobile-bar-items { - position: absolute; - left: 0; - top: 0; - } -} - -@media (min-width: 768px) { - .inside-footer-widgets > div { - float: right; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style-rtl.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style-rtl.min.css deleted file mode 100644 index 1722e0fb..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style-rtl.min.css +++ /dev/null @@ -1 +0,0 @@ -caption,td,th{text-align:right}.menu-item-has-children .dropdown-menu-toggle{float:left!important}.main-navigation li{float:right;text-align:right}.main-navigation li.search-item,.nav-aligned-right.nav-below-header .main-navigation .menu>li.search-item{float:left}.nav-left-sidebar .main-navigation li.search-item.current-menu-item,.nav-right-sidebar .main-navigation li.search-item.current-menu-item{float:left}.rtl.nav-aligned-left .main-navigation .menu>li{float:none;display:inline-block}.rtl.nav-aligned-left .main-navigation ul{letter-spacing:-.31em;font-size:1em}.rtl.nav-aligned-left .main-navigation ul li{letter-spacing:normal}.rtl.nav-aligned-left .main-navigation{text-align:left}.sidebar .menu-item-has-children .dropdown-menu-toggle,nav ul ul .menu-item-has-children .dropdown-menu-toggle{float:left}.comment-meta .avatar{float:right;margin-left:10px}.page-header .avatar{float:right;margin-left:1.5em}.header-widget{float:left}.sf-menu>li.menu-item-float-right{float:left!important}.slideout-navigation .menu-item-has-children .dropdown-menu-toggle{float:left}.dropdown-click #generate-slideout-menu .slideout-menu .menu-item-has-children>a:first-child,.slideout-desktop.dropdown-hover #generate-slideout-menu .slideout-menu .menu-item-has-children>a:first-child{padding-left:0}.comment .children{padding-right:30px;border-right:1px solid rgba(0,0,0,.05)}.main-navigation .main-nav ul li.menu-item-has-children>a,.secondary-navigation .main-nav ul li.menu-item-has-children>a{padding-left:0}nav:not(.toggled) ul ul .menu-item-has-children .dropdown-menu-toggle{padding-left:15px}nav:not(.toggled) .menu-item-has-children .dropdown-menu-toggle{padding-right:10px}.main-navigation ul,.menu-toggle li.search-item{padding-right:0}ol,ul{margin:0 3em 1.5em 0}li>ol,li>ul{margin-right:1.5em}.menu-toggle .mobile-menu{margin-right:5px;margin-left:0}.widget_categories .children{margin-right:1.5em}.widget_nav_menu ul ul,.widget_pages ul ul{margin-right:1em}.cat-links:before,.comments-link:before,.nav-next .next:before,.nav-previous .prev:before,.tags-links:before{margin-left:.6em;margin-right:0}.menu-toggle,.nav-search-enabled .main-navigation .menu-toggle{text-align:right}.main-navigation .mobile-bar-items{float:left;left:0;right:auto}.rtl .navigation-search{left:auto;right:-999999px}.rtl .navigation-search.nav-search-active{right:0}.rtl .footer-bar .widget_nav_menu li{direction:rtl;float:right}.main-navigation.toggled .main-nav li{text-align:right!important}.entry-meta .gp-icon{margin-right:0;margin-left:.6em}@media (max-width:768px){.rtl .mobile-bar-items{position:absolute;left:0;top:0}}@media (min-width:768px){.inside-footer-widgets>div{float:right}} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style.css deleted file mode 100644 index 3548f5c9..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style.css +++ /dev/null @@ -1,1860 +0,0 @@ -/*-------------------------------------------------------------- ->>> TABLE OF CONTENTS: ----------------------------------------------------------------- -# Reset -# Elements -# Forms -# Links -# Alignments -# Accessibility -# Clearings -# Navigation - # Mobile Menu - # Navigation Search - # Dropdown Menus - # Sidebar Navigation - # Navigation Layout -# Post Navigation -# Header -# Post Content -# Widgets -# Content Layout -# Footer -# Featured Images -# Top Bar -# Icons -# Compatibility ---------------------------------------------------------------*/ -/*-------------------------------------------------------------- -# Reset ---------------------------------------------------------------*/ -html, -body, -div, -span, -applet, -object, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -font, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td { - border: 0; - margin: 0; - padding: 0; -} - -html { - font-family: sans-serif; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -main, -nav, -section { - display: block; -} - -audio, -canvas, -progress, -video { - display: inline-block; - vertical-align: baseline; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -[hidden], -template { - display: none; -} - -ol, -ul { - list-style: none; -} - -table { - /* tables still need 'cellspacing="0"' in the markup */ - border-collapse: separate; - border-spacing: 0; -} - -caption, -th, -td { - font-weight: normal; - text-align: left; - padding: 5px; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ""; -} - -a { - background-color: transparent; -} - -a img { - border: 0; -} - -/*-------------------------------------------------------------- -# Elements ---------------------------------------------------------------*/ -body, -button, -input, -select, -textarea { - font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-weight: normal; - text-transform: none; - font-size: 17px; - line-height: 1.5; -} - -p { - margin-bottom: 1.5em; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - font-family: inherit; - font-size: 100%; - font-style: inherit; - font-weight: inherit; -} - -pre { - background: rgba(0, 0, 0, 0.05); - font-family: inherit; - font-size: inherit; - line-height: normal; - margin-bottom: 1.5em; - padding: 20px; - overflow: auto; - max-width: 100%; -} - -blockquote { - border-left: 5px solid rgba(0, 0, 0, 0.05); - padding: 20px; - font-size: 1.2em; - font-style: italic; - margin: 0 0 1.5em; - position: relative; -} - -blockquote p:last-child { - margin: 0; -} - -table, -th, -td { - border: 1px solid rgba(0, 0, 0, 0.1); -} - -table { - border-collapse: separate; - border-spacing: 0; - border-width: 1px 0 0 1px; - margin: 0 0 1.5em; - width: 100%; -} - -th, -td { - padding: 8px; -} - -th { - border-width: 0 1px 1px 0; -} - -td { - border-width: 0 1px 1px 0; -} - -hr { - background-color: rgba(0, 0, 0, 0.1); - border: 0; - height: 1px; - margin-bottom: 40px; - margin-top: 40px; -} - -fieldset { - padding: 0; - border: 0; - min-width: inherit; -} - -fieldset legend { - padding: 0; - margin-bottom: 1.5em; -} - -h1 { - font-size: 42px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h2 { - font-size: 35px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h3 { - font-size: 29px; - margin-bottom: 20px; - line-height: 1.2em; - font-weight: normal; - text-transform: none; -} - -h4 { - font-size: 24px; -} - -h5 { - font-size: 20px; -} - -h4, -h5, -h6 { - margin-bottom: 20px; -} - -ul, -ol { - margin: 0 0 1.5em 3em; -} - -ul { - list-style: disc; -} - -ol { - list-style: decimal; -} - -li > ul, -li > ol { - margin-bottom: 0; - margin-left: 1.5em; -} - -dt { - font-weight: bold; -} - -dd { - margin: 0 1.5em 1.5em; -} - -b, -strong { - font-weight: bold; -} - -dfn, -cite, -em, -i { - font-style: italic; -} - -address { - margin: 0 0 1.5em; -} - -code, -kbd, -tt, -var { - font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; -} - -abbr, -acronym { - border-bottom: 1px dotted #666; - cursor: help; -} - -mark, -ins { - text-decoration: none; -} - -sup, -sub { - font-size: 75%; - height: 0; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - bottom: 1ex; -} - -sub { - top: .5ex; -} - -small { - font-size: 75%; -} - -big { - font-size: 125%; -} - -figure { - margin: 0; -} - -table { - margin: 0 0 1.5em; - width: 100%; -} - -th { - font-weight: bold; -} - -img { - height: auto; - /* Make sure images are scaled correctly. */ - max-width: 100%; - /* Adhere to container width. */ -} - -/*-------------------------------------------------------------- -# Forms ---------------------------------------------------------------*/ -button, -input, -select, -textarea { - font-size: 100%; - /* Corrects font size not being inherited in all browsers */ - margin: 0; - /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */ - vertical-align: baseline; - /* Improves appearance and consistency in all browsers */ - *vertical-align: middle; - /* Improves appearance and consistency in all browsers */ -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - border: 1px solid transparent; - background: #55555e; - cursor: pointer; - /* Improves usability and consistency of cursor style between image-type 'input' and others */ - -webkit-appearance: button; - /* Corrects inability to style clickable 'input' types in iOS */ - padding: 10px 20px; - color: #FFF; -} - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; - /* Addresses box sizing set to content-box in IE8/9 */ - padding: 0; - /* Addresses excess padding in IE8/9 */ -} - -input[type="search"] { - -webkit-appearance: textfield; - /* Addresses appearance set to searchfield in S5, Chrome */ - box-sizing: content-box; -} - -input[type="search"]::-webkit-search-decoration { - /* Corrects inner padding displayed oddly in S5, Chrome on OSX */ - -webkit-appearance: none; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */ - border: 0; - padding: 0; -} - -input[type="text"], -input[type="email"], -input[type="url"], -input[type="password"], -input[type="search"], -input[type="tel"], -input[type="number"], -textarea, -select { - background: #FAFAFA; - color: #666; - border: 1px solid #ccc; - border-radius: 0px; - padding: 10px 15px; - box-sizing: border-box; - max-width: 100%; -} - -textarea { - overflow: auto; - /* Removes default vertical scrollbar in IE6/7/8/9 */ - vertical-align: top; - /* Improves readability and alignment in all browsers */ - width: 100%; -} - -input[type="file"] { - max-width: 100%; - box-sizing: border-box; -} - -/*-------------------------------------------------------------- -# Links ---------------------------------------------------------------*/ -a, -button, -input { - transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out; -} - -a { - text-decoration: none; -} - -.button, -.wp-block-button .wp-block-button__link { - padding: 10px 20px; - display: inline-block; -} - -.wp-block-button .wp-block-button__link { - font-size: inherit; - line-height: inherit; -} - -.using-mouse :focus { - outline: 0; -} - -.using-mouse ::-moz-focus-inner { - border: 0; -} - -/*-------------------------------------------------------------- -# Alignments ---------------------------------------------------------------*/ -.alignleft { - float: left; - margin-right: 1.5em; -} - -.alignright { - float: right; - margin-left: 1.5em; -} - -.aligncenter { - clear: both; - display: block; - margin: 0 auto; -} - -.size-auto, -.size-full, -.size-large, -.size-medium, -.size-thumbnail { - max-width: 100%; - height: auto; -} - -.no-sidebar .entry-content .alignfull { - margin-left: calc( -100vw / 2 + 100% / 2); - margin-right: calc( -100vw / 2 + 100% / 2); - max-width: 100vw; - width: auto; -} - -/*-------------------------------------------------------------- -# Accessibility ---------------------------------------------------------------*/ -.screen-reader-text { - border: 0; - clip: rect(1px, 1px, 1px, 1px); - -webkit-clip-path: inset(50%); - clip-path: inset(50%); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute !important; - width: 1px; - word-wrap: normal !important; -} - -.screen-reader-text:focus { - background-color: #f1f1f1; - border-radius: 3px; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - clip: auto !important; - -webkit-clip-path: none; - clip-path: none; - color: #21759b; - display: block; - font-size: 0.875rem; - font-weight: 700; - height: auto; - left: 5px; - line-height: normal; - padding: 15px 23px 14px; - text-decoration: none; - top: 5px; - width: auto; - z-index: 100000; -} - -/* Do not show the outline on the skip link target. */ -#primary[tabindex="-1"]:focus { - outline: 0; -} - -/*-------------------------------------------------------------- -# Clearings ---------------------------------------------------------------*/ -.clear:after, -.entry-content:after, -.comment-content:after, -.site-header:after, -.site-content:after, -.paging-navigation:after, -.site-footer:after, -.site-info:after, -.page-header-content-container:after, -.inside-navigation:not(.grid-container):after, -.inside-header:not(.grid-container):after, -.inside-top-bar:not(.grid-container):after, -.inside-footer-widgets:not(.grid-container):after { - content: ""; - display: table; - clear: both; -} - -/*-------------------------------------------------------------- -# Navigation ---------------------------------------------------------------*/ -.main-navigation { - z-index: 100; - padding: 0; - clear: both; - display: block; -} - -.main-navigation a { - display: block; - text-decoration: none; - font-weight: normal; - text-transform: none; - font-size: 15px; -} - -.main-navigation ul { - list-style: none; - margin: 0; - padding-left: 0; -} - -.main-navigation .main-nav ul li a { - padding-left: 20px; - padding-right: 20px; - line-height: 60px; -} - -.inside-navigation { - position: relative; -} - -.main-navigation li { - float: left; - position: relative; -} - -.sf-menu > li.menu-item-float-right { - float: right !important; -} - -.nav-float-right .inside-header .main-navigation { - float: right; - clear: right; -} - -.nav-float-left .inside-header .main-navigation { - float: left; - clear: left; -} - -.nav-aligned-right .main-navigation:not(.toggled) .menu > li, -.nav-aligned-center .main-navigation:not(.toggled) .menu > li { - float: none; - display: inline-block; -} - -.nav-aligned-right .main-navigation:not(.toggled) ul, -.nav-aligned-center .main-navigation:not(.toggled) ul { - letter-spacing: -0.31em; - font-size: 1em; -} - -.nav-aligned-right .main-navigation:not(.toggled) ul li, -.nav-aligned-center .main-navigation:not(.toggled) ul li { - letter-spacing: normal; -} - -.nav-aligned-center .main-navigation { - text-align: center; -} - -.nav-aligned-right .main-navigation { - text-align: right; -} - -.main-navigation li.search-item { - float: right; -} - -.main-navigation .mobile-bar-items a { - padding-left: 20px; - padding-right: 20px; - line-height: 60px; -} - -/*-------------------------------------------------------------- -## Dropdown Menus ---------------------------------------------------------------*/ -.main-navigation ul ul { - display: block; - box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1); - float: left; - position: absolute; - left: -99999px; - opacity: 0; - z-index: 99999; - width: 200px; - text-align: left; - top: auto; - transition: opacity 80ms linear; - transition-delay: 0s; - pointer-events: none; - height: 0; - overflow: hidden; -} - -.main-navigation ul ul a { - display: block; -} - -.main-navigation ul ul li { - width: 100%; -} - -.main-navigation .main-nav ul ul li a { - line-height: normal; - padding: 10px 20px; - font-size: 14px; -} - -.main-navigation .main-nav ul li.menu-item-has-children > a { - padding-right: 0; - position: relative; -} - -.main-navigation.sub-menu-left ul ul { - box-shadow: -1px 1px 0 rgba(0, 0, 0, 0.1); -} - -.main-navigation.sub-menu-left .sub-menu { - right: 0; -} - -.main-navigation:not(.toggled) ul li:hover > ul, -.main-navigation:not(.toggled) ul li.sfHover > ul { - left: auto; - opacity: 1; - transition-delay: 150ms; - pointer-events: auto; - height: auto; - overflow: visible; -} - -.main-navigation:not(.toggled) ul ul li:hover > ul, -.main-navigation:not(.toggled) ul ul li.sfHover > ul { - left: 100%; - top: 0; -} - -.main-navigation.sub-menu-left:not(.toggled) ul ul li:hover > ul, -.main-navigation.sub-menu-left:not(.toggled) ul ul li.sfHover > ul { - right: 100%; - left: auto; -} - -.nav-float-right .main-navigation ul ul ul { - top: 0; -} - -.menu-item-has-children .dropdown-menu-toggle { - display: inline-block; - height: 100%; - clear: both; - padding-right: 20px; - padding-left: 10px; -} - -.menu-item-has-children ul .dropdown-menu-toggle { - padding-top: 10px; - padding-bottom: 10px; - margin-top: -10px; -} - -nav ul ul .menu-item-has-children .dropdown-menu-toggle, -.sidebar .menu-item-has-children .dropdown-menu-toggle { - float: right; -} - -/*-------------------------------------------------------------- -## Sidebar Navigation ---------------------------------------------------------------*/ -.widget-area .main-navigation li { - float: none; - display: block; - width: 100%; - padding: 0; - margin: 0; -} - -.sidebar .main-navigation.sub-menu-right ul li:hover ul, -.sidebar .main-navigation.sub-menu-right ul li.sfHover ul { - top: 0; - left: 100%; -} - -.sidebar .main-navigation.sub-menu-left ul li:hover ul, -.sidebar .main-navigation.sub-menu-left ul li.sfHover ul { - top: 0; - right: 100%; -} - -/*-------------------------------------------------------------- -# Post Navigation ---------------------------------------------------------------*/ -.site-main .comment-navigation, -.site-main .posts-navigation, -.site-main .post-navigation { - margin: 0 0 2em; - overflow: hidden; -} - -.site-main .post-navigation { - margin-bottom: 0; -} - -.paging-navigation .nav-previous, -.paging-navigation .nav-next { - display: none; -} - -.paging-navigation .nav-links > * { - padding: 0 5px; -} - -.paging-navigation .nav-links .current { - font-weight: bold; -} - -/* Less specific so we don't overwrite existing customizations. */ -.nav-links > *:first-child { - padding-left: 0; -} - -/*-------------------------------------------------------------- -# Header ---------------------------------------------------------------*/ -.site-header { - position: relative; -} - -.inside-header { - padding: 20px 40px; -} - -.main-title { - margin: 0; - font-size: 25px; - line-height: 1.2em; - word-wrap: break-word; - font-weight: bold; - text-transform: none; -} - -.site-description { - margin: 0; - line-height: 1.5; - font-weight: normal; - text-transform: none; - font-size: 15px; -} - -.site-logo { - display: inline-block; - max-width: 100%; -} - -.site-header .header-image { - vertical-align: middle; -} - -.header-widget { - float: right; - overflow: hidden; - max-width: 50%; -} - -.header-widget .widget { - padding: 0 0 20px; - margin-bottom: 0; -} - -.header-widget .widget:last-child { - padding-bottom: 0; -} - -.header-widget .widget-title { - margin-bottom: 15px; -} - -.nav-float-right .header-widget { - position: relative; - top: -10px; -} - -.nav-float-right .header-widget .widget { - padding: 0 0 10px; -} - -.nav-float-left .inside-header .site-branding, -.nav-float-left .inside-header .site-logo { - float: right; - clear: right; -} - -.nav-float-left .inside-header:after { - clear: both; - content: ''; - display: table; -} - -.nav-float-right .inside-header .site-branding { - display: inline-block; -} - -.site-branding-container { - display: inline-flex; - align-items: center; - text-align: left; -} - -.site-branding-container .site-logo { - margin-right: 1.5em; -} - -.header-aligned-center .site-header { - text-align: center; -} - -.header-aligned-right .site-header { - text-align: right; -} - -.header-aligned-right .site-branding-container { - text-align: right; -} - -.header-aligned-right .site-branding-container .site-logo { - order: 10; - margin-right: 0; - margin-left: 1.5em; -} - -/*-------------------------------------------------------------- -# Post Content ---------------------------------------------------------------*/ -.sticky { - display: block; -} - -.posted-on .updated, -.entry-header .gp-icon { - display: none; -} - -.byline, -.single .byline, -.group-blog .byline, -.entry-header .cat-links, -.entry-header .tags-links, -.entry-header .comments-link { - display: inline; -} - -footer.entry-meta .byline, -footer.entry-meta .posted-on { - display: block; -} - -.page-content:not(:first-child), -.entry-content:not(:first-child), -.entry-summary:not(:first-child) { - margin-top: 2em; -} - -.page-links { - clear: both; - margin: 0 0 1.5em; -} - -.blog .format-status .entry-title, -.archive .format-status .entry-title, -.blog .format-aside .entry-header, -.archive .format-aside .entry-header, -.blog .format-status .entry-header, -.archive .format-status .entry-header, -.blog .format-status .entry-meta, -.archive .format-status .entry-meta { - display: none; -} - -.blog .format-aside .entry-content, -.archive .format-aside .entry-content, -.blog .format-status .entry-content, -.archive .format-status .entry-content { - margin-top: 0; -} - -.blog .format-status .entry-content p:last-child, -.archive .format-status .entry-content p:last-child { - margin-bottom: 0; -} - -.site-content, -.entry-header { - word-wrap: break-word; -} - -.entry-title { - margin-bottom: 0; -} - -.author .page-header .page-title { - display: flex; - align-items: center; -} - -.author .page-header .avatar { - margin-right: 20px; -} - -.page-header > *:last-child, -.page-header .author-info > *:last-child { - margin-bottom: 0; -} - -.entry-meta { - font-size: 85%; - margin-top: .5em; - line-height: 1.5; -} - -footer.entry-meta { - margin-top: 2em; -} - -.cat-links, -.tags-links, -.comments-link { - display: block; -} - -.taxonomy-description p:last-child, -.read-more-container, -.page-content > p:last-child, -.entry-content > p:last-child, -.entry-summary > p:last-child { - margin-bottom: 0; -} - -/*-------------------------------------------------------------- -# Media ---------------------------------------------------------------*/ -/*-------------------------------------------------------------- -## Captions ---------------------------------------------------------------*/ -.wp-caption { - margin-bottom: 1.5em; - max-width: 100%; - position: relative; -} - -.wp-caption img[class*="wp-image-"] { - display: block; - margin: 0 auto 0; - max-width: 100%; -} - -.wp-caption .wp-caption-text { - font-size: 75%; - padding-top: 5px; - opacity: 0.8; -} - -.wp-caption img { - position: relative; - vertical-align: bottom; -} - -.wp-block-image figcaption { - font-size: 13px; - text-align: center; -} - -/*-------------------------------------------------------------- -## Galleries ---------------------------------------------------------------*/ -.wp-block-gallery, -ul.blocks-gallery-grid { - margin-left: 0; -} - -.wp-block-gallery .blocks-gallery-image figcaption, -.wp-block-gallery .blocks-gallery-item figcaption { - background: rgba(255, 255, 255, 0.7); - color: #000; - padding: 10px; - box-sizing: border-box; -} - -.gallery { - margin-bottom: 1.5em; -} - -.gallery-item { - display: inline-block; - text-align: center; - vertical-align: top; - width: 100%; -} - -.gallery-columns-2 .gallery-item { - max-width: 50%; -} - -.gallery-columns-3 .gallery-item { - max-width: 33.33%; -} - -.gallery-columns-4 .gallery-item { - max-width: 25%; -} - -.gallery-columns-5 .gallery-item { - max-width: 20%; -} - -.gallery-columns-6 .gallery-item { - max-width: 16.66%; -} - -.gallery-columns-7 .gallery-item { - max-width: 14.28%; -} - -.gallery-columns-8 .gallery-item { - max-width: 12.5%; -} - -.gallery-columns-9 .gallery-item { - max-width: 11.11%; -} - -.gallery-caption { - display: block; -} - -.site-main .gallery { - margin-bottom: 1.5em; -} - -.gallery-item img { - vertical-align: bottom; -} - -.gallery-icon { - padding: 5px; -} - -embed, -iframe, -object { - max-width: 100%; -} - -/*-------------------------------------------------------------- -## Post Loop Block ---------------------------------------------------------------*/ -.wp-block-post-template { - margin-left: 0; -} - -/*-------------------------------------------------------------- -# Comments ---------------------------------------------------------------*/ -.comment-content a { - word-wrap: break-word; -} - -.bypostauthor { - display: block; -} - -.comment, -.comment-list { - list-style-type: none; - padding: 0; - margin: 0; -} - -.comment-author-info { - display: inline-block; - vertical-align: middle; -} - -.comment-meta .avatar { - float: left; - margin-right: 10px; - border-radius: 50%; -} - -.comment-author cite { - font-style: normal; - font-weight: bold; -} - -.entry-meta.comment-metadata { - margin-top: 0; -} - -.comment-content { - margin-top: 1.5em; -} - -.comment-respond { - margin-top: 0; -} - -.comment-form > .form-submit { - margin-bottom: 0; -} - -.comment-form input, -.comment-form-comment { - margin-bottom: 10px; -} - -.comment-form-comment textarea { - resize: vertical; -} - -.comment-form #author, -.comment-form #email, -.comment-form #url { - display: block; -} - -.comment-metadata .edit-link:before { - display: none; -} - -.comment-body { - padding: 30px 0; -} - -.comment-content { - padding: 30px; - border: 1px solid rgba(0, 0, 0, 0.05); -} - -.depth-1.parent > .children { - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -.comment .children { - padding-left: 30px; - margin-top: -30px; - border-left: 1px solid rgba(0, 0, 0, 0.05); -} - -.pingback .comment-body, -.trackback .comment-body { - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -.pingback .edit-link { - font-size: 13px; -} - -.comment-content p:last-child { - margin-bottom: 0; -} - -.comment-list > .comment:first-child { - padding-top: 0; - margin-top: 0; - border-top: 0; -} - -ol.comment-list { - margin-bottom: 1.5em; -} - -.comment-form-cookies-consent { - display: flex; - align-items: center; -} - -.comment-form-cookies-consent input { - margin-right: 0.5em; - margin-bottom: 0; -} - -.one-container .comments-area { - margin-top: 1.5em; -} - -.comment-content .reply { - font-size: 85%; -} - -#cancel-comment-reply-link { - padding-left: 10px; -} - -/*-------------------------------------------------------------- -# Widgets ---------------------------------------------------------------*/ -.widget-area .widget { - padding: 40px; -} - -.widget select { - max-width: 100%; -} - -.sidebar .widget *:last-child, -.footer-widgets .widget *:last-child { - margin-bottom: 0; -} - -.widget-title { - margin-bottom: 30px; - font-size: 20px; - line-height: 1.5; - font-weight: normal; - text-transform: none; -} - -.widget ul, -.widget ol { - margin: 0; -} - -.widget .search-field { - width: 100%; -} - -.widget_search .search-submit { - display: none; -} - -.widget { - margin: 0 0 30px; - box-sizing: border-box; -} - -.widget:last-child, -.separate-containers .widget:last-child { - margin-bottom: 0; -} - -.sidebar .widget, -.footer-widgets .widget { - font-size: 17px; -} - -.widget ul li { - list-style-type: none; - position: relative; - padding-bottom: 5px; -} - -.widget_categories .children { - margin-left: 1.5em; - padding-top: 5px; -} - -.widget_categories .children li:last-child { - padding-bottom: 0; -} - -.widget_nav_menu ul ul, -.widget_pages ul ul { - margin-left: 1em; - margin-top: 5px; -} - -.widget ul li.menu-item-has-children, -.widget ul li.page_item_has_children { - padding-bottom: 0; -} - -#wp-calendar { - table-layout: fixed; - font-size: 80%; -} - -#wp-calendar #prev, -#wp-calendar #prev + .pad { - border-right: 0; -} - -.sidebar .grid-container { - max-width: 100%; - width: 100%; -} - -/*-------------------------------------------------------------- -# Content Layout ---------------------------------------------------------------*/ -.post { - margin: 0 0 2em; -} - -.page-header { - margin-bottom: 30px; -} - -/*-------------------------------------------------------------- -## One Container ---------------------------------------------------------------*/ -.one-container.both-left .inside-left-sidebar, -.one-container.both-right .inside-left-sidebar { - margin-right: 20px; -} - -.one-container.both-left .inside-right-sidebar, -.one-container.both-right .inside-right-sidebar { - margin-left: 20px; -} - -.one-container:not(.page) .inside-article { - padding: 0 0 30px 0; -} - -.one-container.right-sidebar .site-main, -.one-container.both-right .site-main { - margin-right: 40px; -} - -.one-container.left-sidebar .site-main, -.one-container.both-left .site-main { - margin-left: 40px; -} - -.one-container.both-sidebars .site-main { - margin: 0px 40px 0px 40px; -} - -.one-container .site-content { - padding: 40px; -} - -/*-------------------------------------------------------------- -## Separate Containers ---------------------------------------------------------------*/ -.separate-containers .inside-article, -.separate-containers .comments-area, -.separate-containers .page-header, -.separate-containers .paging-navigation { - padding: 40px; -} - -.separate-containers .widget, -.separate-containers .site-main > *, -.separate-containers .page-header { - margin-bottom: 20px; -} - -.separate-containers .site-main { - margin: 20px; -} - -.separate-containers.no-sidebar .site-main { - margin-left: 0; - margin-right: 0; -} - -.separate-containers.right-sidebar .site-main, -.separate-containers.both-right .site-main { - margin-left: 0; -} - -.separate-containers.left-sidebar .site-main, -.separate-containers.both-left .site-main { - margin-right: 0; -} - -.separate-containers.both-right .inside-left-sidebar, -.separate-containers.both-left .inside-left-sidebar { - margin-right: 10px; -} - -.separate-containers.both-right .inside-right-sidebar, -.separate-containers.both-left .inside-right-sidebar { - margin-left: 10px; -} - -.separate-containers .inside-right-sidebar, -.separate-containers .inside-left-sidebar { - margin-top: 20px; - margin-bottom: 20px; -} - -.inside-page-header { - padding: 40px; -} - -.widget-area .main-navigation { - margin-bottom: 20px; -} - -.separate-containers .site-main > *:last-child, -.one-container .site-main > *:last-child { - margin-bottom: 0; -} - -/*-------------------------------------------------------------- -## Full Width Content ---------------------------------------------------------------*/ -.full-width-content .container.grid-container { - max-width: 100%; -} - -.full-width-content.no-sidebar.separate-containers .site-main { - margin: 0; -} - -.full-width-content.separate-containers .inside-article, -.full-width-content.one-container .site-content { - padding: 0; -} - -.full-width-content .entry-content .alignwide { - margin-left: 0; - width: auto; - max-width: unset; -} - -/*-------------------------------------------------------------- -## Contained Content ---------------------------------------------------------------*/ -.contained-content.separate-containers .inside-article, -.contained-content.one-container .site-content { - padding: 0; -} - -/*-------------------------------------------------------------- -# Footer ---------------------------------------------------------------*/ -.site-info { - text-align: center; - font-size: 15px; -} - -.site-info { - padding: 20px 40px; -} - -.footer-widgets { - padding: 40px; -} - -.site-footer .footer-widgets-container .inner-padding { - padding: 0px 0px 0px 40px; -} - -.site-footer .footer-widgets-container .inside-footer-widgets { - margin-left: -40px; -} - -/*-------------------------------------------------------------- -## Footer Bar ---------------------------------------------------------------*/ -.footer-bar-active .footer-bar .widget { - padding: 0; -} - -.footer-bar .widget_nav_menu > div > ul { - display: inline-block; - vertical-align: top; -} - -.footer-bar .widget_nav_menu li { - margin: 0 10px; - float: left; - padding: 0; -} - -.footer-bar .widget_nav_menu li:first-child { - margin-left: 0; -} - -.footer-bar .widget_nav_menu li:last-child { - margin-right: 0; -} - -.footer-bar .widget_nav_menu li ul { - display: none; -} - -.footer-bar .textwidget p:last-child { - margin: 0; -} - -.footer-bar .widget-title { - display: none; -} - -.footer-bar-align-right .copyright-bar { - float: left; -} - -.footer-bar-align-right .footer-bar { - float: right; - text-align: right; -} - -.footer-bar-align-left .copyright-bar { - float: right; - text-align: right; -} - -.footer-bar-align-left .footer-bar { - float: left; - text-align: left; -} - -.footer-bar-align-center .copyright-bar { - float: none; - text-align: center; -} - -.footer-bar-align-center .footer-bar { - float: none; - text-align: center; - margin-bottom: 10px; -} - -/*-------------------------------------------------------------- -# Featured Images ---------------------------------------------------------------*/ -.post-image:not(:first-child) { - margin-top: 2em; -} - -.page-header-image, -.page-header-image-single { - line-height: 0; - /* no more weird spacing */ -} - -.separate-containers .inside-article > [class*="page-header-"], -.one-container .inside-article > [class*="page-header-"] { - margin-bottom: 2em; - margin-top: 0; -} - -.inside-article .page-header-image-single.page-header-below-title { - margin-top: 2em; -} - -.separate-containers .page-header-image, -.separate-containers .page-header-contained, -.separate-containers .page-header-content, -.separate-containers .page-header-image-single, -.separate-containers .page-header-content-single { - margin-top: 20px; -} - -/*-------------------------------------------------------------- -# Top Bar ---------------------------------------------------------------*/ -.top-bar { - font-weight: normal; - text-transform: none; - font-size: 13px; -} - -.top-bar .inside-top-bar .widget { - padding: 0; - display: inline-block; - margin: 0; -} - -.top-bar .inside-top-bar .textwidget p:last-child { - margin: 0; -} - -.top-bar .widget-title { - display: none; -} - -.top-bar .widget_nav_menu li { - margin: 0 10px; - float: left; - padding: 0; -} - -.top-bar .widget_nav_menu li:first-child { - margin-left: 0; -} - -.top-bar .widget_nav_menu li:last-child { - margin-right: 0; -} - -.top-bar .widget_nav_menu li ul { - display: none; -} - -.top-bar .widget_nav_menu > div > ul { - display: inline-block; - vertical-align: top; -} - -.inside-top-bar { - padding: 10px 40px; -} - -.top-bar-align-center { - text-align: center; -} - -.top-bar-align-center .inside-top-bar .widget:not(:first-child) { - margin-left: 10px; -} - -.top-bar-align-center .inside-top-bar .widget:first-child:last-child { - display: block; -} - -.top-bar-align-right { - text-align: right; -} - -.top-bar-align-right .inside-top-bar > .widget:nth-child(even) { - float: left; - margin-right: 10px; -} - -.top-bar-align-right .inside-top-bar > .widget:nth-child(odd) { - margin-left: 10px; -} - -.top-bar-align-left .inside-top-bar > .widget:nth-child(odd) { - float: left; - margin-right: 10px; -} - -.top-bar-align-left .inside-top-bar > .widget:nth-child(even) { - margin-left: 10px; - float: right; -} - -/*-------------------------------------------------------------- -# Icons ---------------------------------------------------------------*/ -.gp-icon { - display: inline-flex; - align-self: center; -} - -.gp-icon svg { - height: 1em; - width: 1em; - top: .125em; - position: relative; - fill: currentColor; -} - -.icon-menu-bars svg:nth-child(2), -.toggled .icon-menu-bars svg:nth-child(1), -.icon-search svg:nth-child(2), -.close-search .icon-search svg:nth-child(1) { - display: none; -} - -.toggled .icon-menu-bars svg:nth-child(2), -.close-search .icon-search svg:nth-child(2) { - display: block; -} - -.entry-meta .gp-icon { - margin-right: 0.6em; - opacity: 0.7; -} - -nav.toggled .icon-arrow-left svg { - transform: rotate(-90deg); -} - -nav.toggled .icon-arrow-right svg { - transform: rotate(90deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon svg { - transform: rotate(180deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon.icon-arrow-left svg { - transform: rotate(-270deg); -} - -nav.toggled .sfHover > a > .dropdown-menu-toggle .gp-icon.icon-arrow-right svg { - transform: rotate(270deg); -} - -/*-------------------------------------------------------------- -# Compatibility ---------------------------------------------------------------*/ -/* Bootstrap fix */ -.container.grid-container { - width: auto; -} - -/* Globally hidden elements when Infinite Scroll is supported and in use. */ -.infinite-scroll .paging-navigation, -.infinite-scroll.neverending .site-footer { - /* Theme Footer (when set to scrolling) */ - display: none; -} - -/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */ -.infinity-end.neverending .site-footer { - display: block; -} - -/* SiteOrigin Page Builder */ -.so-panel.widget { - padding: 0; -} - -/* MailChimp CSS */ -#mc_embed_signup .clear { - display: block; - height: auto; - visibility: visible; - width: auto; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style.min.css deleted file mode 100644 index c88bf037..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/style.min.css +++ /dev/null @@ -1 +0,0 @@ -a,abbr,acronym,address,applet,big,blockquote,body,caption,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,iframe,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,ul,var{border:0;margin:0;padding:0}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,main,nav,section{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}ol,ul{list-style:none}table{border-collapse:separate;border-spacing:0}caption,td,th{font-weight:400;text-align:left;padding:5px}blockquote:after,blockquote:before,q:after,q:before{content:""}a{background-color:transparent}a img{border:0}body,button,input,select,textarea{font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-weight:400;text-transform:none;font-size:17px;line-height:1.5}p{margin-bottom:1.5em}h1,h2,h3,h4,h5,h6{font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit}pre{background:rgba(0,0,0,.05);font-family:inherit;font-size:inherit;line-height:normal;margin-bottom:1.5em;padding:20px;overflow:auto;max-width:100%}blockquote{border-left:5px solid rgba(0,0,0,.05);padding:20px;font-size:1.2em;font-style:italic;margin:0 0 1.5em;position:relative}blockquote p:last-child{margin:0}table,td,th{border:1px solid rgba(0,0,0,.1)}table{border-collapse:separate;border-spacing:0;border-width:1px 0 0 1px;margin:0 0 1.5em;width:100%}td,th{padding:8px}th{border-width:0 1px 1px 0}td{border-width:0 1px 1px 0}hr{background-color:rgba(0,0,0,.1);border:0;height:1px;margin-bottom:40px;margin-top:40px}fieldset{padding:0;border:0;min-width:inherit}fieldset legend{padding:0;margin-bottom:1.5em}h1{font-size:42px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h2{font-size:35px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h3{font-size:29px;margin-bottom:20px;line-height:1.2em;font-weight:400;text-transform:none}h4{font-size:24px}h5{font-size:20px}h4,h5,h6{margin-bottom:20px}ol,ul{margin:0 0 1.5em 3em}ul{list-style:disc}ol{list-style:decimal}li>ol,li>ul{margin-bottom:0;margin-left:1.5em}dt{font-weight:700}dd{margin:0 1.5em 1.5em}b,strong{font-weight:700}cite,dfn,em,i{font-style:italic}address{margin:0 0 1.5em}code,kbd,tt,var{font:15px Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace}abbr,acronym{border-bottom:1px dotted #666;cursor:help}ins,mark{text-decoration:none}sub,sup{font-size:75%;height:0;line-height:0;position:relative;vertical-align:baseline}sup{bottom:1ex}sub{top:.5ex}small{font-size:75%}big{font-size:125%}figure{margin:0}table{margin:0 0 1.5em;width:100%}th{font-weight:700}img{height:auto;max-width:100%}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline}button,html input[type=button],input[type=reset],input[type=submit]{border:1px solid transparent;background:#55555e;cursor:pointer;-webkit-appearance:button;padding:10px 20px;color:#fff}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{background:#fafafa;color:#666;border:1px solid #ccc;border-radius:0;padding:10px 15px;box-sizing:border-box;max-width:100%}textarea{overflow:auto;vertical-align:top;width:100%}input[type=file]{max-width:100%;box-sizing:border-box}a,button,input{transition:color .1s ease-in-out,background-color .1s ease-in-out}a{text-decoration:none}.button,.wp-block-button .wp-block-button__link{padding:10px 20px;display:inline-block}.wp-block-button .wp-block-button__link{font-size:inherit;line-height:inherit}.using-mouse :focus{outline:0}.using-mouse ::-moz-focus-inner{border:0}.alignleft{float:left;margin-right:1.5em}.alignright{float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin:0 auto}.size-auto,.size-full,.size-large,.size-medium,.size-thumbnail{max-width:100%;height:auto}.no-sidebar .entry-content .alignfull{margin-left:calc(-100vw / 2 + 100% / 2);margin-right:calc(-100vw / 2 + 100% / 2);max-width:100vw;width:auto}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#21759b;display:block;font-size:.875rem;font-weight:700;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}#primary[tabindex="-1"]:focus{outline:0}.clear:after,.comment-content:after,.entry-content:after,.inside-footer-widgets:not(.grid-container):after,.inside-header:not(.grid-container):after,.inside-navigation:not(.grid-container):after,.inside-top-bar:not(.grid-container):after,.page-header-content-container:after,.paging-navigation:after,.site-content:after,.site-footer:after,.site-header:after,.site-info:after{content:"";display:table;clear:both}.main-navigation{z-index:100;padding:0;clear:both;display:block}.main-navigation a{display:block;text-decoration:none;font-weight:400;text-transform:none;font-size:15px}.main-navigation ul{list-style:none;margin:0;padding-left:0}.main-navigation .main-nav ul li a{padding-left:20px;padding-right:20px;line-height:60px}.inside-navigation{position:relative}.main-navigation li{float:left;position:relative}.sf-menu>li.menu-item-float-right{float:right!important}.nav-float-right .inside-header .main-navigation{float:right;clear:right}.nav-float-left .inside-header .main-navigation{float:left;clear:left}.nav-aligned-center .main-navigation:not(.toggled) .menu>li,.nav-aligned-right .main-navigation:not(.toggled) .menu>li{float:none;display:inline-block}.nav-aligned-center .main-navigation:not(.toggled) ul,.nav-aligned-right .main-navigation:not(.toggled) ul{letter-spacing:-.31em;font-size:1em}.nav-aligned-center .main-navigation:not(.toggled) ul li,.nav-aligned-right .main-navigation:not(.toggled) ul li{letter-spacing:normal}.nav-aligned-center .main-navigation{text-align:center}.nav-aligned-right .main-navigation{text-align:right}.main-navigation li.search-item{float:right}.main-navigation .mobile-bar-items a{padding-left:20px;padding-right:20px;line-height:60px}.main-navigation ul ul{display:block;box-shadow:1px 1px 0 rgba(0,0,0,.1);float:left;position:absolute;left:-99999px;opacity:0;z-index:99999;width:200px;text-align:left;top:auto;transition:opacity 80ms linear;transition-delay:0s;pointer-events:none;height:0;overflow:hidden}.main-navigation ul ul a{display:block}.main-navigation ul ul li{width:100%}.main-navigation .main-nav ul ul li a{line-height:normal;padding:10px 20px;font-size:14px}.main-navigation .main-nav ul li.menu-item-has-children>a{padding-right:0;position:relative}.main-navigation.sub-menu-left ul ul{box-shadow:-1px 1px 0 rgba(0,0,0,.1)}.main-navigation.sub-menu-left .sub-menu{right:0}.main-navigation:not(.toggled) ul li.sfHover>ul,.main-navigation:not(.toggled) ul li:hover>ul{left:auto;opacity:1;transition-delay:150ms;pointer-events:auto;height:auto;overflow:visible}.main-navigation:not(.toggled) ul ul li.sfHover>ul,.main-navigation:not(.toggled) ul ul li:hover>ul{left:100%;top:0}.main-navigation.sub-menu-left:not(.toggled) ul ul li.sfHover>ul,.main-navigation.sub-menu-left:not(.toggled) ul ul li:hover>ul{right:100%;left:auto}.nav-float-right .main-navigation ul ul ul{top:0}.menu-item-has-children .dropdown-menu-toggle{display:inline-block;height:100%;clear:both;padding-right:20px;padding-left:10px}.menu-item-has-children ul .dropdown-menu-toggle{padding-top:10px;padding-bottom:10px;margin-top:-10px}.sidebar .menu-item-has-children .dropdown-menu-toggle,nav ul ul .menu-item-has-children .dropdown-menu-toggle{float:right}.widget-area .main-navigation li{float:none;display:block;width:100%;padding:0;margin:0}.sidebar .main-navigation.sub-menu-right ul li.sfHover ul,.sidebar .main-navigation.sub-menu-right ul li:hover ul{top:0;left:100%}.sidebar .main-navigation.sub-menu-left ul li.sfHover ul,.sidebar .main-navigation.sub-menu-left ul li:hover ul{top:0;right:100%}.site-main .comment-navigation,.site-main .post-navigation,.site-main .posts-navigation{margin:0 0 2em;overflow:hidden}.site-main .post-navigation{margin-bottom:0}.paging-navigation .nav-next,.paging-navigation .nav-previous{display:none}.paging-navigation .nav-links>*{padding:0 5px}.paging-navigation .nav-links .current{font-weight:700}.nav-links>:first-child{padding-left:0}.site-header{position:relative}.inside-header{padding:20px 40px}.main-title{margin:0;font-size:25px;line-height:1.2em;word-wrap:break-word;font-weight:700;text-transform:none}.site-description{margin:0;line-height:1.5;font-weight:400;text-transform:none;font-size:15px}.site-logo{display:inline-block;max-width:100%}.site-header .header-image{vertical-align:middle}.header-widget{float:right;overflow:hidden;max-width:50%}.header-widget .widget{padding:0 0 20px;margin-bottom:0}.header-widget .widget:last-child{padding-bottom:0}.header-widget .widget-title{margin-bottom:15px}.nav-float-right .header-widget{position:relative;top:-10px}.nav-float-right .header-widget .widget{padding:0 0 10px}.nav-float-left .inside-header .site-branding,.nav-float-left .inside-header .site-logo{float:right;clear:right}.nav-float-left .inside-header:after{clear:both;content:'';display:table}.nav-float-right .inside-header .site-branding{display:inline-block}.site-branding-container{display:inline-flex;align-items:center;text-align:left}.site-branding-container .site-logo{margin-right:1.5em}.header-aligned-center .site-header{text-align:center}.header-aligned-right .site-header{text-align:right}.header-aligned-right .site-branding-container{text-align:right}.header-aligned-right .site-branding-container .site-logo{order:10;margin-right:0;margin-left:1.5em}.sticky{display:block}.entry-header .gp-icon,.posted-on .updated{display:none}.byline,.entry-header .cat-links,.entry-header .comments-link,.entry-header .tags-links,.group-blog .byline,.single .byline{display:inline}footer.entry-meta .byline,footer.entry-meta .posted-on{display:block}.entry-content:not(:first-child),.entry-summary:not(:first-child),.page-content:not(:first-child){margin-top:2em}.page-links{clear:both;margin:0 0 1.5em}.archive .format-aside .entry-header,.archive .format-status .entry-header,.archive .format-status .entry-meta,.archive .format-status .entry-title,.blog .format-aside .entry-header,.blog .format-status .entry-header,.blog .format-status .entry-meta,.blog .format-status .entry-title{display:none}.archive .format-aside .entry-content,.archive .format-status .entry-content,.blog .format-aside .entry-content,.blog .format-status .entry-content{margin-top:0}.archive .format-status .entry-content p:last-child,.blog .format-status .entry-content p:last-child{margin-bottom:0}.entry-header,.site-content{word-wrap:break-word}.entry-title{margin-bottom:0}.author .page-header .page-title{display:flex;align-items:center}.author .page-header .avatar{margin-right:20px}.page-header .author-info>:last-child,.page-header>:last-child{margin-bottom:0}.entry-meta{font-size:85%;margin-top:.5em;line-height:1.5}footer.entry-meta{margin-top:2em}.cat-links,.comments-link,.tags-links{display:block}.entry-content>p:last-child,.entry-summary>p:last-child,.page-content>p:last-child,.read-more-container,.taxonomy-description p:last-child{margin-bottom:0}.wp-caption{margin-bottom:1.5em;max-width:100%;position:relative}.wp-caption img[class*=wp-image-]{display:block;margin:0 auto 0;max-width:100%}.wp-caption .wp-caption-text{font-size:75%;padding-top:5px;opacity:.8}.wp-caption img{position:relative;vertical-align:bottom}.wp-block-image figcaption{font-size:13px;text-align:center}.wp-block-gallery,ul.blocks-gallery-grid{margin-left:0}.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{background:rgba(255,255,255,.7);color:#000;padding:10px;box-sizing:border-box}.gallery{margin-bottom:1.5em}.gallery-item{display:inline-block;text-align:center;vertical-align:top;width:100%}.gallery-columns-2 .gallery-item{max-width:50%}.gallery-columns-3 .gallery-item{max-width:33.33%}.gallery-columns-4 .gallery-item{max-width:25%}.gallery-columns-5 .gallery-item{max-width:20%}.gallery-columns-6 .gallery-item{max-width:16.66%}.gallery-columns-7 .gallery-item{max-width:14.28%}.gallery-columns-8 .gallery-item{max-width:12.5%}.gallery-columns-9 .gallery-item{max-width:11.11%}.gallery-caption{display:block}.site-main .gallery{margin-bottom:1.5em}.gallery-item img{vertical-align:bottom}.gallery-icon{padding:5px}embed,iframe,object{max-width:100%}.wp-block-post-template{margin-left:0}.comment-content a{word-wrap:break-word}.bypostauthor{display:block}.comment,.comment-list{list-style-type:none;padding:0;margin:0}.comment-author-info{display:inline-block;vertical-align:middle}.comment-meta .avatar{float:left;margin-right:10px;border-radius:50%}.comment-author cite{font-style:normal;font-weight:700}.entry-meta.comment-metadata{margin-top:0}.comment-content{margin-top:1.5em}.comment-respond{margin-top:0}.comment-form>.form-submit{margin-bottom:0}.comment-form input,.comment-form-comment{margin-bottom:10px}.comment-form-comment textarea{resize:vertical}.comment-form #author,.comment-form #email,.comment-form #url{display:block}.comment-metadata .edit-link:before{display:none}.comment-body{padding:30px 0}.comment-content{padding:30px;border:1px solid rgba(0,0,0,.05)}.depth-1.parent>.children{border-bottom:1px solid rgba(0,0,0,.05)}.comment .children{padding-left:30px;margin-top:-30px;border-left:1px solid rgba(0,0,0,.05)}.pingback .comment-body,.trackback .comment-body{border-bottom:1px solid rgba(0,0,0,.05)}.pingback .edit-link{font-size:13px}.comment-content p:last-child{margin-bottom:0}.comment-list>.comment:first-child{padding-top:0;margin-top:0;border-top:0}ol.comment-list{margin-bottom:1.5em}.comment-form-cookies-consent{display:flex;align-items:center}.comment-form-cookies-consent input{margin-right:.5em;margin-bottom:0}.one-container .comments-area{margin-top:1.5em}.comment-content .reply{font-size:85%}#cancel-comment-reply-link{padding-left:10px}.widget-area .widget{padding:40px}.widget select{max-width:100%}.footer-widgets .widget :last-child,.sidebar .widget :last-child{margin-bottom:0}.widget-title{margin-bottom:30px;font-size:20px;line-height:1.5;font-weight:400;text-transform:none}.widget ol,.widget ul{margin:0}.widget .search-field{width:100%}.widget_search .search-submit{display:none}.widget{margin:0 0 30px;box-sizing:border-box}.separate-containers .widget:last-child,.widget:last-child{margin-bottom:0}.footer-widgets .widget,.sidebar .widget{font-size:17px}.widget ul li{list-style-type:none;position:relative;padding-bottom:5px}.widget_categories .children{margin-left:1.5em;padding-top:5px}.widget_categories .children li:last-child{padding-bottom:0}.widget_nav_menu ul ul,.widget_pages ul ul{margin-left:1em;margin-top:5px}.widget ul li.menu-item-has-children,.widget ul li.page_item_has_children{padding-bottom:0}#wp-calendar{table-layout:fixed;font-size:80%}#wp-calendar #prev,#wp-calendar #prev+.pad{border-right:0}.sidebar .grid-container{max-width:100%;width:100%}.post{margin:0 0 2em}.page-header{margin-bottom:30px}.one-container.both-left .inside-left-sidebar,.one-container.both-right .inside-left-sidebar{margin-right:20px}.one-container.both-left .inside-right-sidebar,.one-container.both-right .inside-right-sidebar{margin-left:20px}.one-container:not(.page) .inside-article{padding:0 0 30px 0}.one-container.both-right .site-main,.one-container.right-sidebar .site-main{margin-right:40px}.one-container.both-left .site-main,.one-container.left-sidebar .site-main{margin-left:40px}.one-container.both-sidebars .site-main{margin:0 40px 0 40px}.one-container .site-content{padding:40px}.separate-containers .comments-area,.separate-containers .inside-article,.separate-containers .page-header,.separate-containers .paging-navigation{padding:40px}.separate-containers .page-header,.separate-containers .site-main>*,.separate-containers .widget{margin-bottom:20px}.separate-containers .site-main{margin:20px}.separate-containers.no-sidebar .site-main{margin-left:0;margin-right:0}.separate-containers.both-right .site-main,.separate-containers.right-sidebar .site-main{margin-left:0}.separate-containers.both-left .site-main,.separate-containers.left-sidebar .site-main{margin-right:0}.separate-containers.both-left .inside-left-sidebar,.separate-containers.both-right .inside-left-sidebar{margin-right:10px}.separate-containers.both-left .inside-right-sidebar,.separate-containers.both-right .inside-right-sidebar{margin-left:10px}.separate-containers .inside-left-sidebar,.separate-containers .inside-right-sidebar{margin-top:20px;margin-bottom:20px}.inside-page-header{padding:40px}.widget-area .main-navigation{margin-bottom:20px}.one-container .site-main>:last-child,.separate-containers .site-main>:last-child{margin-bottom:0}.full-width-content .container.grid-container{max-width:100%}.full-width-content.no-sidebar.separate-containers .site-main{margin:0}.full-width-content.one-container .site-content,.full-width-content.separate-containers .inside-article{padding:0}.full-width-content .entry-content .alignwide{margin-left:0;width:auto;max-width:unset}.contained-content.one-container .site-content,.contained-content.separate-containers .inside-article{padding:0}.site-info{text-align:center;font-size:15px}.site-info{padding:20px 40px}.footer-widgets{padding:40px}.site-footer .footer-widgets-container .inner-padding{padding:0 0 0 40px}.site-footer .footer-widgets-container .inside-footer-widgets{margin-left:-40px}.footer-bar-active .footer-bar .widget{padding:0}.footer-bar .widget_nav_menu>div>ul{display:inline-block;vertical-align:top}.footer-bar .widget_nav_menu li{margin:0 10px;float:left;padding:0}.footer-bar .widget_nav_menu li:first-child{margin-left:0}.footer-bar .widget_nav_menu li:last-child{margin-right:0}.footer-bar .widget_nav_menu li ul{display:none}.footer-bar .textwidget p:last-child{margin:0}.footer-bar .widget-title{display:none}.footer-bar-align-right .copyright-bar{float:left}.footer-bar-align-right .footer-bar{float:right;text-align:right}.footer-bar-align-left .copyright-bar{float:right;text-align:right}.footer-bar-align-left .footer-bar{float:left;text-align:left}.footer-bar-align-center .copyright-bar{float:none;text-align:center}.footer-bar-align-center .footer-bar{float:none;text-align:center;margin-bottom:10px}.post-image:not(:first-child){margin-top:2em}.page-header-image,.page-header-image-single{line-height:0}.one-container .inside-article>[class*=page-header-],.separate-containers .inside-article>[class*=page-header-]{margin-bottom:2em;margin-top:0}.inside-article .page-header-image-single.page-header-below-title{margin-top:2em}.separate-containers .page-header-contained,.separate-containers .page-header-content,.separate-containers .page-header-content-single,.separate-containers .page-header-image,.separate-containers .page-header-image-single{margin-top:20px}.top-bar{font-weight:400;text-transform:none;font-size:13px}.top-bar .inside-top-bar .widget{padding:0;display:inline-block;margin:0}.top-bar .inside-top-bar .textwidget p:last-child{margin:0}.top-bar .widget-title{display:none}.top-bar .widget_nav_menu li{margin:0 10px;float:left;padding:0}.top-bar .widget_nav_menu li:first-child{margin-left:0}.top-bar .widget_nav_menu li:last-child{margin-right:0}.top-bar .widget_nav_menu li ul{display:none}.top-bar .widget_nav_menu>div>ul{display:inline-block;vertical-align:top}.inside-top-bar{padding:10px 40px}.top-bar-align-center{text-align:center}.top-bar-align-center .inside-top-bar .widget:not(:first-child){margin-left:10px}.top-bar-align-center .inside-top-bar .widget:first-child:last-child{display:block}.top-bar-align-right{text-align:right}.top-bar-align-right .inside-top-bar>.widget:nth-child(2n){float:left;margin-right:10px}.top-bar-align-right .inside-top-bar>.widget:nth-child(odd){margin-left:10px}.top-bar-align-left .inside-top-bar>.widget:nth-child(odd){float:left;margin-right:10px}.top-bar-align-left .inside-top-bar>.widget:nth-child(2n){margin-left:10px;float:right}.gp-icon{display:inline-flex;align-self:center}.gp-icon svg{height:1em;width:1em;top:.125em;position:relative;fill:currentColor}.close-search .icon-search svg:first-child,.icon-menu-bars svg:nth-child(2),.icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:first-child{display:none}.close-search .icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:nth-child(2){display:block}.entry-meta .gp-icon{margin-right:.6em;opacity:.7}nav.toggled .icon-arrow-left svg{transform:rotate(-90deg)}nav.toggled .icon-arrow-right svg{transform:rotate(90deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon svg{transform:rotate(180deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon.icon-arrow-left svg{transform:rotate(-270deg)}nav.toggled .sfHover>a>.dropdown-menu-toggle .gp-icon.icon-arrow-right svg{transform:rotate(270deg)}.container.grid-container{width:auto}.infinite-scroll .paging-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.so-panel.widget{padding:0}#mc_embed_signup .clear{display:block;height:auto;visibility:visible;width:auto} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/unsemantic-grid.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/unsemantic-grid.css deleted file mode 100644 index ce56f56a..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/unsemantic-grid.css +++ /dev/null @@ -1,1465 +0,0 @@ -/* ================================================================== */ -/* This file has a mobile-to-tablet, and tablet-to-desktop breakpoint */ -/* ================================================================== */ -@-ms-viewport { - width: auto; -} - -.clear { - clear: both; - display: block; - overflow: hidden; - visibility: hidden; - width: 0; - height: 0; -} - -.grid-container:before, .grid-5:before, .grid-10:before, .grid-15:before, .grid-20:before, .grid-25:before, .grid-30:before, .grid-35:before, .grid-40:before, .grid-45:before, .grid-50:before, .grid-55:before, .grid-60:before, .grid-65:before, .grid-70:before, .grid-75:before, .grid-80:before, .grid-85:before, .grid-90:before, .grid-95:before, .grid-100:before, .grid-33:before, .grid-66:before, [class*="mobile-grid-"]:before,[class*="tablet-grid-"]:before, .clearfix:before, -.grid-container:after, -.grid-5:after, -.grid-10:after, -.grid-15:after, -.grid-20:after, -.grid-25:after, -.grid-30:after, -.grid-35:after, -.grid-40:after, -.grid-45:after, -.grid-50:after, -.grid-55:after, -.grid-60:after, -.grid-65:after, -.grid-70:after, -.grid-75:after, -.grid-80:after, -.grid-85:after, -.grid-90:after, -.grid-95:after, -.grid-100:after, -.grid-33:after, -.grid-66:after, -[class*="mobile-grid-"]:after, -[class*="tablet-grid-"]:after, -.clearfix:after { - content: "."; - display: block; - overflow: hidden; - visibility: hidden; - font-size: 0; - line-height: 0; - width: 0; - height: 0; -} - -.grid-container:after, .grid-5:after, .grid-10:after, .grid-15:after, .grid-20:after, .grid-25:after, .grid-30:after, .grid-35:after, .grid-40:after, .grid-45:after, .grid-50:after, .grid-55:after, .grid-60:after, .grid-65:after, .grid-70:after, .grid-75:after, .grid-80:after, .grid-85:after, .grid-90:after, .grid-95:after, .grid-100:after, .grid-33:after, .grid-66:after, [class*="mobile-grid-"]:after, [class*="tablet-grid-"]:after, .clearfix:after { - clear: both; -} - -.grid-container { - margin-left: auto; - margin-right: auto; - max-width: 1200px; - padding-left: 10px; - padding-right: 10px; -} - -.grid-5, .grid-10, .grid-15, .grid-20, .grid-25, .grid-30, .grid-35, .grid-40, .grid-45, .grid-50, .grid-55, .grid-60, .grid-65, .grid-70, .grid-75, .grid-80, .grid-85, .grid-90, .grid-95, .grid-100, .grid-33, .grid-66, [class*="mobile-grid-"], [class*="tablet-grid-"] { - box-sizing: border-box; - padding-left: 10px; - padding-right: 10px; -} - -.grid-parent { - padding-left: 0; - padding-right: 0; -} - -@media (max-width: 767px) { - [class*="mobile-push-"], - [class*="mobile-pull-"] { - position: relative; - } - - .hide-on-mobile { - display: none !important; - } - - .mobile-grid-5 { - float: left; - width: 5%; - } - - .mobile-prefix-5 { - margin-left: 5%; - } - - .mobile-suffix-5 { - margin-right: 5%; - } - - .mobile-push-5 { - left: 5%; - } - - .mobile-pull-5 { - left: -5%; - } - - .mobile-grid-10 { - float: left; - width: 10%; - } - - .mobile-prefix-10 { - margin-left: 10%; - } - - .mobile-suffix-10 { - margin-right: 10%; - } - - .mobile-push-10 { - left: 10%; - } - - .mobile-pull-10 { - left: -10%; - } - - .mobile-grid-15 { - float: left; - width: 15%; - } - - .mobile-prefix-15 { - margin-left: 15%; - } - - .mobile-suffix-15 { - margin-right: 15%; - } - - .mobile-push-15 { - left: 15%; - } - - .mobile-pull-15 { - left: -15%; - } - - .mobile-grid-20 { - float: left; - width: 20%; - } - - .mobile-prefix-20 { - margin-left: 20%; - } - - .mobile-suffix-20 { - margin-right: 20%; - } - - .mobile-push-20 { - left: 20%; - } - - .mobile-pull-20 { - left: -20%; - } - - .mobile-grid-25 { - float: left; - width: 25%; - } - - .mobile-prefix-25 { - margin-left: 25%; - } - - .mobile-suffix-25 { - margin-right: 25%; - } - - .mobile-push-25 { - left: 25%; - } - - .mobile-pull-25 { - left: -25%; - } - - .mobile-grid-30 { - float: left; - width: 30%; - } - - .mobile-prefix-30 { - margin-left: 30%; - } - - .mobile-suffix-30 { - margin-right: 30%; - } - - .mobile-push-30 { - left: 30%; - } - - .mobile-pull-30 { - left: -30%; - } - - .mobile-grid-35 { - float: left; - width: 35%; - } - - .mobile-prefix-35 { - margin-left: 35%; - } - - .mobile-suffix-35 { - margin-right: 35%; - } - - .mobile-push-35 { - left: 35%; - } - - .mobile-pull-35 { - left: -35%; - } - - .mobile-grid-40 { - float: left; - width: 40%; - } - - .mobile-prefix-40 { - margin-left: 40%; - } - - .mobile-suffix-40 { - margin-right: 40%; - } - - .mobile-push-40 { - left: 40%; - } - - .mobile-pull-40 { - left: -40%; - } - - .mobile-grid-45 { - float: left; - width: 45%; - } - - .mobile-prefix-45 { - margin-left: 45%; - } - - .mobile-suffix-45 { - margin-right: 45%; - } - - .mobile-push-45 { - left: 45%; - } - - .mobile-pull-45 { - left: -45%; - } - - .mobile-grid-50 { - float: left; - width: 50%; - } - - .mobile-prefix-50 { - margin-left: 50%; - } - - .mobile-suffix-50 { - margin-right: 50%; - } - - .mobile-push-50 { - left: 50%; - } - - .mobile-pull-50 { - left: -50%; - } - - .mobile-grid-55 { - float: left; - width: 55%; - } - - .mobile-prefix-55 { - margin-left: 55%; - } - - .mobile-suffix-55 { - margin-right: 55%; - } - - .mobile-push-55 { - left: 55%; - } - - .mobile-pull-55 { - left: -55%; - } - - .mobile-grid-60 { - float: left; - width: 60%; - } - - .mobile-prefix-60 { - margin-left: 60%; - } - - .mobile-suffix-60 { - margin-right: 60%; - } - - .mobile-push-60 { - left: 60%; - } - - .mobile-pull-60 { - left: -60%; - } - - .mobile-grid-65 { - float: left; - width: 65%; - } - - .mobile-prefix-65 { - margin-left: 65%; - } - - .mobile-suffix-65 { - margin-right: 65%; - } - - .mobile-push-65 { - left: 65%; - } - - .mobile-pull-65 { - left: -65%; - } - - .mobile-grid-70 { - float: left; - width: 70%; - } - - .mobile-prefix-70 { - margin-left: 70%; - } - - .mobile-suffix-70 { - margin-right: 70%; - } - - .mobile-push-70 { - left: 70%; - } - - .mobile-pull-70 { - left: -70%; - } - - .mobile-grid-75 { - float: left; - width: 75%; - } - - .mobile-prefix-75 { - margin-left: 75%; - } - - .mobile-suffix-75 { - margin-right: 75%; - } - - .mobile-push-75 { - left: 75%; - } - - .mobile-pull-75 { - left: -75%; - } - - .mobile-grid-80 { - float: left; - width: 80%; - } - - .mobile-prefix-80 { - margin-left: 80%; - } - - .mobile-suffix-80 { - margin-right: 80%; - } - - .mobile-push-80 { - left: 80%; - } - - .mobile-pull-80 { - left: -80%; - } - - .mobile-grid-85 { - float: left; - width: 85%; - } - - .mobile-prefix-85 { - margin-left: 85%; - } - - .mobile-suffix-85 { - margin-right: 85%; - } - - .mobile-push-85 { - left: 85%; - } - - .mobile-pull-85 { - left: -85%; - } - - .mobile-grid-90 { - float: left; - width: 90%; - } - - .mobile-prefix-90 { - margin-left: 90%; - } - - .mobile-suffix-90 { - margin-right: 90%; - } - - .mobile-push-90 { - left: 90%; - } - - .mobile-pull-90 { - left: -90%; - } - - .mobile-grid-95 { - float: left; - width: 95%; - } - - .mobile-prefix-95 { - margin-left: 95%; - } - - .mobile-suffix-95 { - margin-right: 95%; - } - - .mobile-push-95 { - left: 95%; - } - - .mobile-pull-95 { - left: -95%; - } - - .mobile-grid-33 { - float: left; - width: 33.33333%; - } - - .mobile-prefix-33 { - margin-left: 33.33333%; - } - - .mobile-suffix-33 { - margin-right: 33.33333%; - } - - .mobile-push-33 { - left: 33.33333%; - } - - .mobile-pull-33 { - left: -33.33333%; - } - - .mobile-grid-66 { - float: left; - width: 66.66667%; - } - - .mobile-prefix-66 { - margin-left: 66.66667%; - } - - .mobile-suffix-66 { - margin-right: 66.66667%; - } - - .mobile-push-66 { - left: 66.66667%; - } - - .mobile-pull-66 { - left: -66.66667%; - } - - .mobile-grid-100 { - clear: both; - width: 100%; - } -} -@media (min-width: 768px) and (max-width: 1024px) { - [class*="tablet-push-"], - [class*="tablet-pull-"] { - position: relative; - } - - .hide-on-tablet { - display: none !important; - } - - .tablet-grid-5 { - float: left; - width: 5%; - } - - .tablet-prefix-5 { - margin-left: 5%; - } - - .tablet-suffix-5 { - margin-right: 5%; - } - - .tablet-push-5 { - left: 5%; - } - - .tablet-pull-5 { - left: -5%; - } - - .tablet-grid-10 { - float: left; - width: 10%; - } - - .tablet-prefix-10 { - margin-left: 10%; - } - - .tablet-suffix-10 { - margin-right: 10%; - } - - .tablet-push-10 { - left: 10%; - } - - .tablet-pull-10 { - left: -10%; - } - - .tablet-grid-15 { - float: left; - width: 15%; - } - - .tablet-prefix-15 { - margin-left: 15%; - } - - .tablet-suffix-15 { - margin-right: 15%; - } - - .tablet-push-15 { - left: 15%; - } - - .tablet-pull-15 { - left: -15%; - } - - .tablet-grid-20 { - float: left; - width: 20%; - } - - .tablet-prefix-20 { - margin-left: 20%; - } - - .tablet-suffix-20 { - margin-right: 20%; - } - - .tablet-push-20 { - left: 20%; - } - - .tablet-pull-20 { - left: -20%; - } - - .tablet-grid-25 { - float: left; - width: 25%; - } - - .tablet-prefix-25 { - margin-left: 25%; - } - - .tablet-suffix-25 { - margin-right: 25%; - } - - .tablet-push-25 { - left: 25%; - } - - .tablet-pull-25 { - left: -25%; - } - - .tablet-grid-30 { - float: left; - width: 30%; - } - - .tablet-prefix-30 { - margin-left: 30%; - } - - .tablet-suffix-30 { - margin-right: 30%; - } - - .tablet-push-30 { - left: 30%; - } - - .tablet-pull-30 { - left: -30%; - } - - .tablet-grid-35 { - float: left; - width: 35%; - } - - .tablet-prefix-35 { - margin-left: 35%; - } - - .tablet-suffix-35 { - margin-right: 35%; - } - - .tablet-push-35 { - left: 35%; - } - - .tablet-pull-35 { - left: -35%; - } - - .tablet-grid-40 { - float: left; - width: 40%; - } - - .tablet-prefix-40 { - margin-left: 40%; - } - - .tablet-suffix-40 { - margin-right: 40%; - } - - .tablet-push-40 { - left: 40%; - } - - .tablet-pull-40 { - left: -40%; - } - - .tablet-grid-45 { - float: left; - width: 45%; - } - - .tablet-prefix-45 { - margin-left: 45%; - } - - .tablet-suffix-45 { - margin-right: 45%; - } - - .tablet-push-45 { - left: 45%; - } - - .tablet-pull-45 { - left: -45%; - } - - .tablet-grid-50 { - float: left; - width: 50%; - } - - .tablet-prefix-50 { - margin-left: 50%; - } - - .tablet-suffix-50 { - margin-right: 50%; - } - - .tablet-push-50 { - left: 50%; - } - - .tablet-pull-50 { - left: -50%; - } - - .tablet-grid-55 { - float: left; - width: 55%; - } - - .tablet-prefix-55 { - margin-left: 55%; - } - - .tablet-suffix-55 { - margin-right: 55%; - } - - .tablet-push-55 { - left: 55%; - } - - .tablet-pull-55 { - left: -55%; - } - - .tablet-grid-60 { - float: left; - width: 60%; - } - - .tablet-prefix-60 { - margin-left: 60%; - } - - .tablet-suffix-60 { - margin-right: 60%; - } - - .tablet-push-60 { - left: 60%; - } - - .tablet-pull-60 { - left: -60%; - } - - .tablet-grid-65 { - float: left; - width: 65%; - } - - .tablet-prefix-65 { - margin-left: 65%; - } - - .tablet-suffix-65 { - margin-right: 65%; - } - - .tablet-push-65 { - left: 65%; - } - - .tablet-pull-65 { - left: -65%; - } - - .tablet-grid-70 { - float: left; - width: 70%; - } - - .tablet-prefix-70 { - margin-left: 70%; - } - - .tablet-suffix-70 { - margin-right: 70%; - } - - .tablet-push-70 { - left: 70%; - } - - .tablet-pull-70 { - left: -70%; - } - - .tablet-grid-75 { - float: left; - width: 75%; - } - - .tablet-prefix-75 { - margin-left: 75%; - } - - .tablet-suffix-75 { - margin-right: 75%; - } - - .tablet-push-75 { - left: 75%; - } - - .tablet-pull-75 { - left: -75%; - } - - .tablet-grid-80 { - float: left; - width: 80%; - } - - .tablet-prefix-80 { - margin-left: 80%; - } - - .tablet-suffix-80 { - margin-right: 80%; - } - - .tablet-push-80 { - left: 80%; - } - - .tablet-pull-80 { - left: -80%; - } - - .tablet-grid-85 { - float: left; - width: 85%; - } - - .tablet-prefix-85 { - margin-left: 85%; - } - - .tablet-suffix-85 { - margin-right: 85%; - } - - .tablet-push-85 { - left: 85%; - } - - .tablet-pull-85 { - left: -85%; - } - - .tablet-grid-90 { - float: left; - width: 90%; - } - - .tablet-prefix-90 { - margin-left: 90%; - } - - .tablet-suffix-90 { - margin-right: 90%; - } - - .tablet-push-90 { - left: 90%; - } - - .tablet-pull-90 { - left: -90%; - } - - .tablet-grid-95 { - float: left; - width: 95%; - } - - .tablet-prefix-95 { - margin-left: 95%; - } - - .tablet-suffix-95 { - margin-right: 95%; - } - - .tablet-push-95 { - left: 95%; - } - - .tablet-pull-95 { - left: -95%; - } - - .tablet-grid-33 { - float: left; - width: 33.33333%; - } - - .tablet-prefix-33 { - margin-left: 33.33333%; - } - - .tablet-suffix-33 { - margin-right: 33.33333%; - } - - .tablet-push-33 { - left: 33.33333%; - } - - .tablet-pull-33 { - left: -33.33333%; - } - - .tablet-grid-66 { - float: left; - width: 66.66667%; - } - - .tablet-prefix-66 { - margin-left: 66.66667%; - } - - .tablet-suffix-66 { - margin-right: 66.66667%; - } - - .tablet-push-66 { - left: 66.66667%; - } - - .tablet-pull-66 { - left: -66.66667%; - } - - .tablet-grid-100 { - clear: both; - width: 100%; - } - - /* GP specific grid */ - .inside-footer-widgets > div { - margin-bottom: 50px; - } - - .inside-footer-widgets > div:nth-child(odd) { - clear: both; - } - - .active-footer-widgets-1 .footer-widget-1, - .active-footer-widgets-3 .footer-widget-3, - .active-footer-widgets-5 .footer-widget-5 { - width: 100%; - margin-bottom: 0; - } - - .active-footer-widgets-2 .inside-footer-widgets > div, - .active-footer-widgets-4 .footer-widget-3, - .active-footer-widgets-4 .footer-widget-4 { - margin-bottom: 0; - } -} -@media (min-width: 1025px) { - .push-5, .pull-5, .push-10, .pull-10, .push-15, .pull-15, .push-20, .pull-20, .push-25, .pull-25, .push-30, .pull-30, .push-35, .pull-35, .push-40, .pull-40, .push-45, .pull-45, .push-50, .pull-50, .push-55, .pull-55, .push-60, .pull-60, .push-65, .pull-65, .push-70, .pull-70, .push-75, .pull-75, .push-80, .pull-80, .push-85, .pull-85, .push-90, .pull-90, .push-95, .pull-95, .push-33, .pull-33, .push-66, .pull-66 { - position: relative; - } - - .hide-on-desktop { - display: none !important; - } - - .grid-5 { - float: left; - width: 5%; - } - - .prefix-5 { - margin-left: 5%; - } - - .suffix-5 { - margin-right: 5%; - } - - .push-5 { - left: 5%; - } - - .pull-5 { - left: -5%; - } - - .grid-10 { - float: left; - width: 10%; - } - - .prefix-10 { - margin-left: 10%; - } - - .suffix-10 { - margin-right: 10%; - } - - .push-10 { - left: 10%; - } - - .pull-10 { - left: -10%; - } - - .grid-15 { - float: left; - width: 15%; - } - - .prefix-15 { - margin-left: 15%; - } - - .suffix-15 { - margin-right: 15%; - } - - .push-15 { - left: 15%; - } - - .pull-15 { - left: -15%; - } - - .grid-20 { - float: left; - width: 20%; - } - - .prefix-20 { - margin-left: 20%; - } - - .suffix-20 { - margin-right: 20%; - } - - .push-20 { - left: 20%; - } - - .pull-20 { - left: -20%; - } - - .grid-25 { - float: left; - width: 25%; - } - - .prefix-25 { - margin-left: 25%; - } - - .suffix-25 { - margin-right: 25%; - } - - .push-25 { - left: 25%; - } - - .pull-25 { - left: -25%; - } - - .grid-30 { - float: left; - width: 30%; - } - - .prefix-30 { - margin-left: 30%; - } - - .suffix-30 { - margin-right: 30%; - } - - .push-30 { - left: 30%; - } - - .pull-30 { - left: -30%; - } - - .grid-35 { - float: left; - width: 35%; - } - - .prefix-35 { - margin-left: 35%; - } - - .suffix-35 { - margin-right: 35%; - } - - .push-35 { - left: 35%; - } - - .pull-35 { - left: -35%; - } - - .grid-40 { - float: left; - width: 40%; - } - - .prefix-40 { - margin-left: 40%; - } - - .suffix-40 { - margin-right: 40%; - } - - .push-40 { - left: 40%; - } - - .pull-40 { - left: -40%; - } - - .grid-45 { - float: left; - width: 45%; - } - - .prefix-45 { - margin-left: 45%; - } - - .suffix-45 { - margin-right: 45%; - } - - .push-45 { - left: 45%; - } - - .pull-45 { - left: -45%; - } - - .grid-50 { - float: left; - width: 50%; - } - - .prefix-50 { - margin-left: 50%; - } - - .suffix-50 { - margin-right: 50%; - } - - .push-50 { - left: 50%; - } - - .pull-50 { - left: -50%; - } - - .grid-55 { - float: left; - width: 55%; - } - - .prefix-55 { - margin-left: 55%; - } - - .suffix-55 { - margin-right: 55%; - } - - .push-55 { - left: 55%; - } - - .pull-55 { - left: -55%; - } - - .grid-60 { - float: left; - width: 60%; - } - - .prefix-60 { - margin-left: 60%; - } - - .suffix-60 { - margin-right: 60%; - } - - .push-60 { - left: 60%; - } - - .pull-60 { - left: -60%; - } - - .grid-65 { - float: left; - width: 65%; - } - - .prefix-65 { - margin-left: 65%; - } - - .suffix-65 { - margin-right: 65%; - } - - .push-65 { - left: 65%; - } - - .pull-65 { - left: -65%; - } - - .grid-70 { - float: left; - width: 70%; - } - - .prefix-70 { - margin-left: 70%; - } - - .suffix-70 { - margin-right: 70%; - } - - .push-70 { - left: 70%; - } - - .pull-70 { - left: -70%; - } - - .grid-75 { - float: left; - width: 75%; - } - - .prefix-75 { - margin-left: 75%; - } - - .suffix-75 { - margin-right: 75%; - } - - .push-75 { - left: 75%; - } - - .pull-75 { - left: -75%; - } - - .grid-80 { - float: left; - width: 80%; - } - - .prefix-80 { - margin-left: 80%; - } - - .suffix-80 { - margin-right: 80%; - } - - .push-80 { - left: 80%; - } - - .pull-80 { - left: -80%; - } - - .grid-85 { - float: left; - width: 85%; - } - - .prefix-85 { - margin-left: 85%; - } - - .suffix-85 { - margin-right: 85%; - } - - .push-85 { - left: 85%; - } - - .pull-85 { - left: -85%; - } - - .grid-90 { - float: left; - width: 90%; - } - - .prefix-90 { - margin-left: 90%; - } - - .suffix-90 { - margin-right: 90%; - } - - .push-90 { - left: 90%; - } - - .pull-90 { - left: -90%; - } - - .grid-95 { - float: left; - width: 95%; - } - - .prefix-95 { - margin-left: 95%; - } - - .suffix-95 { - margin-right: 95%; - } - - .push-95 { - left: 95%; - } - - .pull-95 { - left: -95%; - } - - .grid-33 { - float: left; - width: 33.33333%; - } - - .prefix-33 { - margin-left: 33.33333%; - } - - .suffix-33 { - margin-right: 33.33333%; - } - - .push-33 { - left: 33.33333%; - } - - .pull-33 { - left: -33.33333%; - } - - .grid-66 { - float: left; - width: 66.66667%; - } - - .prefix-66 { - margin-left: 66.66667%; - } - - .suffix-66 { - margin-right: 66.66667%; - } - - .push-66 { - left: 66.66667%; - } - - .pull-66 { - left: -66.66667%; - } - - .grid-100 { - clear: both; - width: 100%; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/unsemantic-grid.min.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/unsemantic-grid.min.css deleted file mode 100644 index 36793277..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/css/unsemantic-grid.min.css +++ /dev/null @@ -1 +0,0 @@ -.clear,.clearfix:after,.grid-100:after,.grid-10:after,.grid-15:after,.grid-20:after,.grid-25:after,.grid-30:after,.grid-33:after,.grid-35:after,.grid-40:after,.grid-45:after,.grid-50:after,.grid-55:after,.grid-5:after,.grid-60:after,.grid-65:after,.grid-66:after,.grid-70:after,.grid-75:after,.grid-80:after,.grid-85:after,.grid-90:after,.grid-95:after,.grid-container:after,[class*=mobile-grid-]:after,[class*=tablet-grid-]:after{clear:both}@-ms-viewport{width:auto}.clear{display:block;overflow:hidden;visibility:hidden;width:0;height:0}.clearfix:after,.clearfix:before,.grid-100:after,.grid-100:before,.grid-10:after,.grid-10:before,.grid-15:after,.grid-15:before,.grid-20:after,.grid-20:before,.grid-25:after,.grid-25:before,.grid-30:after,.grid-30:before,.grid-33:after,.grid-33:before,.grid-35:after,.grid-35:before,.grid-40:after,.grid-40:before,.grid-45:after,.grid-45:before,.grid-50:after,.grid-50:before,.grid-55:after,.grid-55:before,.grid-5:after,.grid-5:before,.grid-60:after,.grid-60:before,.grid-65:after,.grid-65:before,.grid-66:after,.grid-66:before,.grid-70:after,.grid-70:before,.grid-75:after,.grid-75:before,.grid-80:after,.grid-80:before,.grid-85:after,.grid-85:before,.grid-90:after,.grid-90:before,.grid-95:after,.grid-95:before,.grid-container:after,.grid-container:before,[class*=mobile-grid-]:after,[class*=mobile-grid-]:before,[class*=tablet-grid-]:after,[class*=tablet-grid-]:before{content:".";display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0}.grid-container{margin-left:auto;margin-right:auto;max-width:1200px;padding-left:10px;padding-right:10px}.grid-10,.grid-100,.grid-15,.grid-20,.grid-25,.grid-30,.grid-33,.grid-35,.grid-40,.grid-45,.grid-5,.grid-50,.grid-55,.grid-60,.grid-65,.grid-66,.grid-70,.grid-75,.grid-80,.grid-85,.grid-90,.grid-95,[class*=mobile-grid-],[class*=tablet-grid-]{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:10px;padding-right:10px}.grid-parent{padding-left:0;padding-right:0}@media (max-width:767px){[class*=mobile-pull-],[class*=mobile-push-]{position:relative}.hide-on-mobile{display:none!important}.mobile-grid-5{float:left;width:5%}.mobile-prefix-5{margin-left:5%}.mobile-suffix-5{margin-right:5%}.mobile-push-5{left:5%}.mobile-pull-5{left:-5%}.mobile-grid-10{float:left;width:10%}.mobile-prefix-10{margin-left:10%}.mobile-suffix-10{margin-right:10%}.mobile-push-10{left:10%}.mobile-pull-10{left:-10%}.mobile-grid-15{float:left;width:15%}.mobile-prefix-15{margin-left:15%}.mobile-suffix-15{margin-right:15%}.mobile-push-15{left:15%}.mobile-pull-15{left:-15%}.mobile-grid-20{float:left;width:20%}.mobile-prefix-20{margin-left:20%}.mobile-suffix-20{margin-right:20%}.mobile-push-20{left:20%}.mobile-pull-20{left:-20%}.mobile-grid-25{float:left;width:25%}.mobile-prefix-25{margin-left:25%}.mobile-suffix-25{margin-right:25%}.mobile-push-25{left:25%}.mobile-pull-25{left:-25%}.mobile-grid-30{float:left;width:30%}.mobile-prefix-30{margin-left:30%}.mobile-suffix-30{margin-right:30%}.mobile-push-30{left:30%}.mobile-pull-30{left:-30%}.mobile-grid-35{float:left;width:35%}.mobile-prefix-35{margin-left:35%}.mobile-suffix-35{margin-right:35%}.mobile-push-35{left:35%}.mobile-pull-35{left:-35%}.mobile-grid-40{float:left;width:40%}.mobile-prefix-40{margin-left:40%}.mobile-suffix-40{margin-right:40%}.mobile-push-40{left:40%}.mobile-pull-40{left:-40%}.mobile-grid-45{float:left;width:45%}.mobile-prefix-45{margin-left:45%}.mobile-suffix-45{margin-right:45%}.mobile-push-45{left:45%}.mobile-pull-45{left:-45%}.mobile-grid-50{float:left;width:50%}.mobile-prefix-50{margin-left:50%}.mobile-suffix-50{margin-right:50%}.mobile-push-50{left:50%}.mobile-pull-50{left:-50%}.mobile-grid-55{float:left;width:55%}.mobile-prefix-55{margin-left:55%}.mobile-suffix-55{margin-right:55%}.mobile-push-55{left:55%}.mobile-pull-55{left:-55%}.mobile-grid-60{float:left;width:60%}.mobile-prefix-60{margin-left:60%}.mobile-suffix-60{margin-right:60%}.mobile-push-60{left:60%}.mobile-pull-60{left:-60%}.mobile-grid-65{float:left;width:65%}.mobile-prefix-65{margin-left:65%}.mobile-suffix-65{margin-right:65%}.mobile-push-65{left:65%}.mobile-pull-65{left:-65%}.mobile-grid-70{float:left;width:70%}.mobile-prefix-70{margin-left:70%}.mobile-suffix-70{margin-right:70%}.mobile-push-70{left:70%}.mobile-pull-70{left:-70%}.mobile-grid-75{float:left;width:75%}.mobile-prefix-75{margin-left:75%}.mobile-suffix-75{margin-right:75%}.mobile-push-75{left:75%}.mobile-pull-75{left:-75%}.mobile-grid-80{float:left;width:80%}.mobile-prefix-80{margin-left:80%}.mobile-suffix-80{margin-right:80%}.mobile-push-80{left:80%}.mobile-pull-80{left:-80%}.mobile-grid-85{float:left;width:85%}.mobile-prefix-85{margin-left:85%}.mobile-suffix-85{margin-right:85%}.mobile-push-85{left:85%}.mobile-pull-85{left:-85%}.mobile-grid-90{float:left;width:90%}.mobile-prefix-90{margin-left:90%}.mobile-suffix-90{margin-right:90%}.mobile-push-90{left:90%}.mobile-pull-90{left:-90%}.mobile-grid-95{float:left;width:95%}.mobile-prefix-95{margin-left:95%}.mobile-suffix-95{margin-right:95%}.mobile-push-95{left:95%}.mobile-pull-95{left:-95%}.mobile-grid-33{float:left;width:33.33333%}.mobile-prefix-33{margin-left:33.33333%}.mobile-suffix-33{margin-right:33.33333%}.mobile-push-33{left:33.33333%}.mobile-pull-33{left:-33.33333%}.mobile-grid-66{float:left;width:66.66667%}.mobile-prefix-66{margin-left:66.66667%}.mobile-suffix-66{margin-right:66.66667%}.mobile-push-66{left:66.66667%}.mobile-pull-66{left:-66.66667%}.mobile-grid-100{clear:both;width:100%}}@media (min-width:768px) and (max-width:1024px){[class*=tablet-pull-],[class*=tablet-push-]{position:relative}.hide-on-tablet{display:none!important}.tablet-grid-5{float:left;width:5%}.tablet-prefix-5{margin-left:5%}.tablet-suffix-5{margin-right:5%}.tablet-push-5{left:5%}.tablet-pull-5{left:-5%}.tablet-grid-10{float:left;width:10%}.tablet-prefix-10{margin-left:10%}.tablet-suffix-10{margin-right:10%}.tablet-push-10{left:10%}.tablet-pull-10{left:-10%}.tablet-grid-15{float:left;width:15%}.tablet-prefix-15{margin-left:15%}.tablet-suffix-15{margin-right:15%}.tablet-push-15{left:15%}.tablet-pull-15{left:-15%}.tablet-grid-20{float:left;width:20%}.tablet-prefix-20{margin-left:20%}.tablet-suffix-20{margin-right:20%}.tablet-push-20{left:20%}.tablet-pull-20{left:-20%}.tablet-grid-25{float:left;width:25%}.tablet-prefix-25{margin-left:25%}.tablet-suffix-25{margin-right:25%}.tablet-push-25{left:25%}.tablet-pull-25{left:-25%}.tablet-grid-30{float:left;width:30%}.tablet-prefix-30{margin-left:30%}.tablet-suffix-30{margin-right:30%}.tablet-push-30{left:30%}.tablet-pull-30{left:-30%}.tablet-grid-35{float:left;width:35%}.tablet-prefix-35{margin-left:35%}.tablet-suffix-35{margin-right:35%}.tablet-push-35{left:35%}.tablet-pull-35{left:-35%}.tablet-grid-40{float:left;width:40%}.tablet-prefix-40{margin-left:40%}.tablet-suffix-40{margin-right:40%}.tablet-push-40{left:40%}.tablet-pull-40{left:-40%}.tablet-grid-45{float:left;width:45%}.tablet-prefix-45{margin-left:45%}.tablet-suffix-45{margin-right:45%}.tablet-push-45{left:45%}.tablet-pull-45{left:-45%}.tablet-grid-50{float:left;width:50%}.tablet-prefix-50{margin-left:50%}.tablet-suffix-50{margin-right:50%}.tablet-push-50{left:50%}.tablet-pull-50{left:-50%}.tablet-grid-55{float:left;width:55%}.tablet-prefix-55{margin-left:55%}.tablet-suffix-55{margin-right:55%}.tablet-push-55{left:55%}.tablet-pull-55{left:-55%}.tablet-grid-60{float:left;width:60%}.tablet-prefix-60{margin-left:60%}.tablet-suffix-60{margin-right:60%}.tablet-push-60{left:60%}.tablet-pull-60{left:-60%}.tablet-grid-65{float:left;width:65%}.tablet-prefix-65{margin-left:65%}.tablet-suffix-65{margin-right:65%}.tablet-push-65{left:65%}.tablet-pull-65{left:-65%}.tablet-grid-70{float:left;width:70%}.tablet-prefix-70{margin-left:70%}.tablet-suffix-70{margin-right:70%}.tablet-push-70{left:70%}.tablet-pull-70{left:-70%}.tablet-grid-75{float:left;width:75%}.tablet-prefix-75{margin-left:75%}.tablet-suffix-75{margin-right:75%}.tablet-push-75{left:75%}.tablet-pull-75{left:-75%}.tablet-grid-80{float:left;width:80%}.tablet-prefix-80{margin-left:80%}.tablet-suffix-80{margin-right:80%}.tablet-push-80{left:80%}.tablet-pull-80{left:-80%}.tablet-grid-85{float:left;width:85%}.tablet-prefix-85{margin-left:85%}.tablet-suffix-85{margin-right:85%}.tablet-push-85{left:85%}.tablet-pull-85{left:-85%}.tablet-grid-90{float:left;width:90%}.tablet-prefix-90{margin-left:90%}.tablet-suffix-90{margin-right:90%}.tablet-push-90{left:90%}.tablet-pull-90{left:-90%}.tablet-grid-95{float:left;width:95%}.tablet-prefix-95{margin-left:95%}.tablet-suffix-95{margin-right:95%}.tablet-push-95{left:95%}.tablet-pull-95{left:-95%}.tablet-grid-33{float:left;width:33.33333%}.tablet-prefix-33{margin-left:33.33333%}.tablet-suffix-33{margin-right:33.33333%}.tablet-push-33{left:33.33333%}.tablet-pull-33{left:-33.33333%}.tablet-grid-66{float:left;width:66.66667%}.tablet-prefix-66{margin-left:66.66667%}.tablet-suffix-66{margin-right:66.66667%}.tablet-push-66{left:66.66667%}.tablet-pull-66{left:-66.66667%}.tablet-grid-100{clear:both;width:100%}.inside-footer-widgets>div{margin-bottom:50px}.inside-footer-widgets>div:nth-child(odd){clear:both}.active-footer-widgets-1 .footer-widget-1,.active-footer-widgets-3 .footer-widget-3,.active-footer-widgets-5 .footer-widget-5{width:100%;margin-bottom:0}.active-footer-widgets-2 .inside-footer-widgets>div,.active-footer-widgets-4 .footer-widget-3,.active-footer-widgets-4 .footer-widget-4{margin-bottom:0}}@media (min-width:1025px){.grid-10,.grid-15,.grid-20,.grid-25,.grid-30,.grid-33,.grid-35,.grid-40,.grid-45,.grid-5,.grid-50,.grid-60,.grid-65,.grid-66,.grid-70,.grid-75,.grid-80,.grid-85,.grid-90,.grid-95{float:left}.pull-10,.pull-15,.pull-20,.pull-25,.pull-30,.pull-33,.pull-35,.pull-40,.pull-45,.pull-5,.pull-50,.pull-55,.pull-60,.pull-65,.pull-66,.pull-70,.pull-75,.pull-80,.pull-85,.pull-90,.pull-95,.push-10,.push-15,.push-20,.push-25,.push-30,.push-33,.push-35,.push-40,.push-45,.push-5,.push-50,.push-55,.push-60,.push-65,.push-66,.push-70,.push-75,.push-80,.push-85,.push-90,.push-95{position:relative}.hide-on-desktop{display:none!important}.grid-5{width:5%}.prefix-5{margin-left:5%}.suffix-5{margin-right:5%}.push-5{left:5%}.pull-5{left:-5%}.grid-10{width:10%}.prefix-10{margin-left:10%}.suffix-10{margin-right:10%}.push-10{left:10%}.pull-10{left:-10%}.grid-15{width:15%}.prefix-15{margin-left:15%}.suffix-15{margin-right:15%}.push-15{left:15%}.pull-15{left:-15%}.grid-20{width:20%}.prefix-20{margin-left:20%}.suffix-20{margin-right:20%}.push-20{left:20%}.pull-20{left:-20%}.grid-25{width:25%}.prefix-25{margin-left:25%}.suffix-25{margin-right:25%}.push-25{left:25%}.pull-25{left:-25%}.grid-30{width:30%}.prefix-30{margin-left:30%}.suffix-30{margin-right:30%}.push-30{left:30%}.pull-30{left:-30%}.grid-35{width:35%}.prefix-35{margin-left:35%}.suffix-35{margin-right:35%}.push-35{left:35%}.pull-35{left:-35%}.grid-40{width:40%}.prefix-40{margin-left:40%}.suffix-40{margin-right:40%}.push-40{left:40%}.pull-40{left:-40%}.grid-45{width:45%}.prefix-45{margin-left:45%}.suffix-45{margin-right:45%}.push-45{left:45%}.pull-45{left:-45%}.grid-50{width:50%}.prefix-50{margin-left:50%}.suffix-50{margin-right:50%}.push-50{left:50%}.pull-50{left:-50%}.grid-55{float:left;width:55%}.prefix-55{margin-left:55%}.suffix-55{margin-right:55%}.push-55{left:55%}.pull-55{left:-55%}.grid-60{width:60%}.prefix-60{margin-left:60%}.suffix-60{margin-right:60%}.push-60{left:60%}.pull-60{left:-60%}.grid-65{width:65%}.prefix-65{margin-left:65%}.suffix-65{margin-right:65%}.push-65{left:65%}.pull-65{left:-65%}.grid-70{width:70%}.prefix-70{margin-left:70%}.suffix-70{margin-right:70%}.push-70{left:70%}.pull-70{left:-70%}.grid-75{width:75%}.prefix-75{margin-left:75%}.suffix-75{margin-right:75%}.push-75{left:75%}.pull-75{left:-75%}.grid-80{width:80%}.prefix-80{margin-left:80%}.suffix-80{margin-right:80%}.push-80{left:80%}.pull-80{left:-80%}.grid-85{width:85%}.prefix-85{margin-left:85%}.suffix-85{margin-right:85%}.push-85{left:85%}.pull-85{left:-85%}.grid-90{width:90%}.prefix-90{margin-left:90%}.suffix-90{margin-right:90%}.push-90{left:90%}.pull-90{left:-90%}.grid-95{width:95%}.prefix-95{margin-left:95%}.suffix-95{margin-right:95%}.push-95{left:95%}.pull-95{left:-95%}.grid-33{width:33.33333%}.prefix-33{margin-left:33.33333%}.suffix-33{margin-right:33.33333%}.push-33{left:33.33333%}.pull-33{left:-33.33333%}.grid-66{width:66.66667%}.prefix-66{margin-left:66.66667%}.suffix-66{margin-right:66.66667%}.push-66{left:66.66667%}.pull-66{left:-66.66667%}.grid-100{clear:both;width:100%}} \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/block-editor.asset.php b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/block-editor.asset.php deleted file mode 100644 index 4c8d19a5..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/block-editor.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('wp-data', 'wp-dom-ready', 'wp-element', 'wp-plugins'), 'version' => '166c384f313c8f5d9914'); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/block-editor.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/block-editor.js deleted file mode 100644 index dafe1f33..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/block-editor.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var t={n:function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.wp.plugins,r=window.wp.data;function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:"",r="",n="px",a=generatepressBlockEditor.customContentWidth?parseInt(generatepressBlockEditor.customContentWidth):generatepressBlockEditor.containerWidth,i=generatepressBlockEditor.leftSidebarWidth,o=generatepressBlockEditor.rightSidebarWidth;if(r="left-sidebar"===t?a*((100-i)/100):"right-sidebar"===t?a*((100-o)/100):"no-sidebar"===t?a:a*((100-(Number(i)+Number(o)))/100),""===e){var s=parseInt(generatepressBlockEditor.contentPaddingRight)+parseInt(generatepressBlockEditor.contentPaddingLeft);r=Number(r)-s}return"true"!==e||generatepressBlockEditor.customContentWidth||(r=100,n="%"),r+n}(r,u))}),[r,u,JSON.stringify(f)]),s()((function(){var t=document.getElementById("generate-sidebar-layout"),e=document.getElementById("_generate-full-width-content");t&&(t.onchange=function(t){n(t.target.value||generatepressBlockEditor.globalSidebarLayout)}),e&&(e.onchange=function(t){h(t.target.value||generatepressBlockEditor.contentAreaType)})})),null}});var h=/^\s+/,f=/\s+$/;function l(t,e){if(e=e||{},(t=t||"")instanceof l)return t;if(!(this instanceof l))return new l(t,e);var r=function(t){var e,r,n,a={r:0,g:0,b:0},i=1,o=null,s=null,l=null,c=!1,d=!1;return"string"==typeof t&&(t=function(t){t=t.replace(h,"").replace(f,"").toLowerCase();var e,r=!1;if(H[t])t=H[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=z.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=z.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=z.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=z.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=z.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=z.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=z.hex8.exec(t))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:T(e[4]),format:r?"name":"hex8"}:(e=z.hex6.exec(t))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:r?"name":"hex"}:(e=z.hex4.exec(t))?{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:T(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=z.hex3.exec(t))&&{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==u(t)&&(W(t.r)&&W(t.g)&&W(t.b)?(e=t.r,r=t.g,n=t.b,a={r:255*C(e,255),g:255*C(r,255),b:255*C(n,255)},c=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):W(t.h)&&W(t.s)&&W(t.v)?(o=L(t.s),s=L(t.v),a=function(t,e,r){t=6*C(t,360),e=C(e,100),r=C(r,100);var n=Math.floor(t),a=t-n,i=r*(1-e),o=r*(1-a*e),s=r*(1-(1-a)*e),u=n%6;return{r:255*[r,o,i,i,s,r][u],g:255*[s,r,r,o,i,i][u],b:255*[i,i,s,r,r,o][u]}}(t.h,o,s),c=!0,d="hsv"):W(t.h)&&W(t.s)&&W(t.l)&&(o=L(t.s),l=L(t.l),a=function(t,e,r){var n,a,i;function o(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=C(t,360),e=C(e,100),r=C(r,100),0===e)n=a=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),a=o(u,s,t),i=o(u,s,t-1/3)}return{r:255*n,g:255*a,b:255*i}}(t.h,o,l),c=!0,d="hsl"),t.hasOwnProperty("a")&&(i=t.a)),i=F(i),{ok:c,format:t.format||d,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:i}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function c(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,a,i=Math.max(t,e,r),o=Math.min(t,e,r),s=(i+o)/2;if(i==o)n=a=0;else{var u=i-o;switch(a=s>.5?u/(2-i-o):u/(i+o),i){case t:n=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(l(n));return i}function R(t,e){e=e||6;for(var r=l(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(l({h:n,s:a,v:i})),i=(i+s)%1;return o}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=F(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,a){var i=[I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16)),I(q(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*C(this._r,255))+"%",g:Math.round(100*C(this._g,255))+"%",b:Math.round(100*C(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*C(this._r,255))+"%, "+Math.round(100*C(this._g,255))+"%, "+Math.round(100*C(this._b,255))+"%)":"rgba("+Math.round(100*C(this._r,255))+"%, "+Math.round(100*C(this._g,255))+"%, "+Math.round(100*C(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+b(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var a=l(t);r="#"+b(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return l(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,[3])},tetrad:function(){return this._applyCombination(w,[4])}},l.fromRatio=function(t,e){if("object"==u(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:L(t[n]));t=r}return l(t,e)},l.equals=function(t,e){return!(!t||!e)&&l(t).toRgbString()==l(e).toRgbString()},l.random=function(){return l.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},l.mix=function(t,e,r){r=0===r?0:r||50;var n=l(t).toRgb(),a=l(e).toRgb(),i=r/100;return l({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},l.readability=function(t,e){var r=l(t),n=l(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},l.isReadable=function(t,e,r){var n,a,i,o,s,u=l.readability(t,e);switch(a=!1,(i=r,"AA"!==(o=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==o&&(o="AA"),"small"!==(s=(i.size||"small").toLowerCase())&&"large"!==s&&(s="small"),n={level:o,size:s}).level+n.size){case"AAsmall":case"AAAlarge":a=u>=4.5;break;case"AAlarge":a=u>=3;break;case"AAAsmall":a=u>=7}return a},l.mostReadable=function(t,e,r){var n,a,i,o,s=null,u=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var h=0;hu&&(u=n,s=l(e[h]));return l.isReadable(t,s,{level:i,size:o})||!a?s:(r.includeFallbackColors=!1,l.mostReadable(t,["#fff","#000"],r))};var H=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=l.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(H);function F(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function C(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function B(t){return Math.min(1,Math.max(0,t))}function P(t){return parseInt(t,16)}function I(t){return 1==t.length?"0"+t:""+t}function L(t){return t<=1&&(t=100*t+"%"),t}function q(t){return Math.round(255*parseFloat(t)).toString(16)}function T(t){return P(t)/255}var N,O,j,z=(O="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",j="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+O),hsva:new RegExp("hsva"+j),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(t){return!!z.CSS_UNIT.exec(t)}(0,e.registerPlugin)("generatepress-is-dark-theme",{render:function(){return(0,i.useEffect)((function(){if(generatepressBlockEditor.show_editor_styles){var t=generatepressBlockEditor.text_color;if(String(t).startsWith("var(")){var e=t.match(/\(([^)]+)\)/);if(e){var r=document.querySelector(".editor-styles-wrapper");if(r){var n,a=null===(n=getComputedStyle(r))||void 0===n?void 0:n.getPropertyValue(e[1]);a&&(t=a)}}}t=l(t).toHex8(),l(t).isDark()?document.body.classList.remove("is-dark-theme"):document.body.classList.add("is-dark-theme")}}),[]),null}})}(); \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/customizer.asset.php b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/customizer.asset.php deleted file mode 100644 index c89b79fa..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/customizer.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('lodash', 'react', 'react-dom', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '42a74b551d83e1b85238'); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/customizer.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/customizer.js deleted file mode 100644 index e532ac61..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/customizer.js +++ /dev/null @@ -1,3 +0,0 @@ -!function(){var e,t={656:function(e,t,r){"use strict";var a={};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:String(t)}function o(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.r(a),r.d(a,{FILE:function(){return $o},HTML:function(){return Yo},TEXT:function(){return qo},URL:function(){return Wo}});var s=r(280),l=window.wp.element,c=window.wp.components;function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function g(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return wp.customize.Control.extend(Object.assign({},{ready:function(){var e=this;e.setting.bind((function(){e.renderContent()}))},embed:function(){var e=this,t=e.section();t&&wp.customize.section(t,(function(t){t.expanded.bind((function(t){t&&e.actuallyEmbed()}))}))},actuallyEmbed:function(){var e=this;"resolved"!==e.deferred.embedded.state()&&(e.renderContent(),e.deferred.embedded.resolve())},initialize:function(e,t){var r=this;r.setNotificationContainer=r.setNotificationContainer.bind(r),wp.customize.Control.prototype.initialize.call(r,e,t),wp.customize.control.bind("removed",(function e(t){r===t&&(r.destroy(),r.container.remove(),wp.customize.control.unbind("removed",e))}))},setNotificationContainer:function(e){this.notifications.container=jQuery(e),this.notifications.render()},getWrapper:function(){var e=this,t=e.container[0];if(e.params.choices.wrapper){var r=document.getElementById(e.params.choices.wrapper+"--wrapper");r&&(t=r,e.container.hide())}return t},renderContent:function(){var t=this,r=t.setting.get(),a=(0,s.createElement)(c.SlotFillProvider,null,(0,s.createElement)(e,g(g({},t.params),{},{value:r,setNotificationContainer:t.setNotificationContainer,customizerSetting:t.setting,control:t,choices:t.params.choices,default:t.params.defaultValue})),(0,s.createElement)(c.Popover.Slot,null)),n=t.getWrapper();(0,l.render)(a,n)},destroy:function(){(0,l.unmountComponentAtNode)(this.container[0]),wp.customize.Control.prototype.destroy&&wp.customize.Control.prototype.destroy.call(this)}},t))}},f=d,p=window.wp.i18n;function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=0||(n[r]=e[r]);return n}function w(e){var t=(0,s.useRef)(e),r=(0,s.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,r.current}var O=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e0:e.buttons>0)&&n.current?i(D(n.current,e,l.current)):r(!1)},t=function(){return r(!1)};function r(r){var a=c.current,i=E(n.current),o=r?i.addEventListener:i.removeEventListener;o(a?"touchmove":"mousemove",e),o(a?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,a=n.current;if(a&&(N(t),!function(e,t){return t&&!C(e)}(t,c.current)&&a)){if(C(t)){c.current=!0;var o=t.changedTouches||[];o.length&&(l.current=o[0].identifier)}a.focus(),i(D(a,t,l.current)),r(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),o({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},r]}),[o,i]),g=u[0],d=u[1],f=u[2];return(0,s.useEffect)((function(){return f}),[f]),s.createElement("div",b({},a,{onTouchStart:g,onMouseDown:g,className:"react-colorful__interactive",ref:n,onKeyDown:d,tabIndex:0,role:"slider"}))})),T=function(e){return e.filter(Boolean).join(" ")},I=function(e){var t=e.color,r=e.left,a=e.top,n=void 0===a?.5:a,i=T(["react-colorful__pointer",e.className]);return s.createElement("div",{className:i,style:{top:100*n+"%",left:100*r+"%"}},s.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},M=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},k=(Math.PI,function(e){var t=e.s,r=e.v,a=e.a,n=(200-t)*r/100;return{h:M(e.h),s:M(n>0&&n<200?t*r/100/(n<=100?n:200-n)*100:0),l:M(n/2),a:M(a,2)}}),P=function(e){var t=k(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},_=function(e){var t=k(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},R=function(e){var t=e.h,r=e.s,a=e.v,n=e.a;t=t/360*6,r/=100,a/=100;var i=Math.floor(t),o=a*(1-r),s=a*(1-(t-i)*r),l=a*(1-(1-t+i)*r),c=i%6;return{r:M(255*[a,s,o,o,l,a][c]),g:M(255*[l,a,a,s,o,o][c]),b:M(255*[o,o,l,a,a,s][c]),a:M(n,2)}},L=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?j({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},A=L,j=function(e){var t=e.r,r=e.g,a=e.b,n=e.a,i=Math.max(t,r,a),o=i-Math.min(t,r,a),s=o?i===t?(r-a)/o:i===r?2+(a-t)/o:4+(t-r)/o:0;return{h:M(60*(s<0?s+6:s)),s:M(i?o/i*100:0),v:M(i/255*100),a:n}},F=s.memo((function(e){var t=e.hue,r=e.onChange,a=T(["react-colorful__hue",e.className]);return s.createElement("div",{className:a},s.createElement(x,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:O(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":M(t),"aria-valuemax":"360","aria-valuemin":"0"},s.createElement(I,{className:"react-colorful__hue-pointer",left:t/360,color:P({h:t,s:100,v:100,a:1})})))})),B=s.memo((function(e){var t=e.hsva,r=e.onChange,a={backgroundColor:P({h:t.h,s:100,v:100,a:1})};return s.createElement("div",{className:"react-colorful__saturation",style:a},s.createElement(x,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:O(t.s+100*e.left,0,100),v:O(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+M(t.s)+"%, Brightness "+M(t.v)+"%"},s.createElement(I,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:P(t)})))})),V=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function H(e,t,r){var a=w(r),n=(0,s.useState)((function(){return e.toHsva(t)})),i=n[0],o=n[1],l=(0,s.useRef)({color:t,hsva:i});(0,s.useEffect)((function(){if(!e.equal(t,l.current.color)){var r=e.toHsva(t);l.current={hsva:r,color:t},o(r)}}),[t,e]),(0,s.useEffect)((function(){var t;(function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0})(i,l.current.hsva)||e.equal(t=e.fromHsva(i),l.current.color)||(l.current={hsva:i,color:t},a(t))}),[i,e,a]);var c=(0,s.useCallback)((function(e){o((function(t){return Object.assign({},t,e)}))}),[]);return[i,c]}var z="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,G=new Map,U=function(e){z((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!G.has(t)){var a=t.createElement("style");a.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',G.set(t,a);var n=r.nc;n&&a.setAttribute("nonce",n),t.head.appendChild(a)}}),[])},K=function(e){var t=e.className,r=e.colorModel,a=e.color,n=void 0===a?r.defaultColor:a,i=e.onChange,o=S(e,["className","colorModel","color","onChange"]),l=(0,s.useRef)(null);U(l);var c=H(r,n,i),u=c[0],g=c[1],d=T(["react-colorful",t]);return s.createElement("div",b({},o,{ref:l,className:d}),s.createElement(B,{hsva:u,onChange:g}),s.createElement(F,{hue:u.h,onChange:g,className:"react-colorful__last-control"}))},$=function(e){var t=e.className,r=e.hsva,a=e.onChange,n={backgroundImage:"linear-gradient(90deg, "+_(Object.assign({},r,{a:0}))+", "+_(Object.assign({},r,{a:1}))+")"},i=T(["react-colorful__alpha",t]),o=M(100*r.a);return s.createElement("div",{className:i},s.createElement("div",{className:"react-colorful__alpha-gradient",style:n}),s.createElement(x,{onMove:function(e){a({a:e.left})},onKey:function(e){a({a:O(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},s.createElement(I,{className:"react-colorful__alpha-pointer",left:r.a,color:_(r)})))},W=function(e){var t=e.className,r=e.colorModel,a=e.color,n=void 0===a?r.defaultColor:a,i=e.onChange,o=S(e,["className","colorModel","color","onChange"]),l=(0,s.useRef)(null);U(l);var c=H(r,n,i),u=c[0],g=c[1],d=T(["react-colorful",t]);return s.createElement("div",b({},o,{ref:l,className:d}),s.createElement(B,{hsva:u,onChange:g}),s.createElement(F,{hue:u.h,onChange:g}),s.createElement($,{hsva:u,onChange:g,className:"react-colorful__last-control"}))},q={defaultColor:"rgba(0, 0, 0, 1)",toHsva:L,fromHsva:function(e){var t=R(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:V},Y=function(e){return s.createElement(W,b({},e,{colorModel:q}))},J={defaultColor:"rgb(0, 0, 0)",toHsva:A,fromHsva:function(e){var t=R(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:V},X=function(e){return s.createElement(K,b({},e,{colorModel:J}))},Z={grad:.9,turn:360,rad:360/(2*Math.PI)},Q=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ee=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},te=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},re=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ae=function(e){return{r:te(e.r,0,255),g:te(e.g,0,255),b:te(e.b,0,255),a:te(e.a)}},ne=function(e){return{r:ee(e.r),g:ee(e.g),b:ee(e.b),a:ee(e.a,3)}},ie=/^#([0-9a-f]{3,8})$/i,oe=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},se=function(e){var t=e.r,r=e.g,a=e.b,n=e.a,i=Math.max(t,r,a),o=i-Math.min(t,r,a),s=o?i===t?(r-a)/o:i===r?2+(a-t)/o:4+(t-r)/o:0;return{h:60*(s<0?s+6:s),s:i?o/i*100:0,v:i/255*100,a:n}},le=function(e){var t=e.h,r=e.s,a=e.v,n=e.a;t=t/360*6,r/=100,a/=100;var i=Math.floor(t),o=a*(1-r),s=a*(1-(t-i)*r),l=a*(1-(1-t+i)*r),c=i%6;return{r:255*[a,s,o,o,l,a][c],g:255*[l,a,a,s,o,o][c],b:255*[o,o,l,a,a,s][c],a:n}},ce=function(e){return{h:re(e.h),s:te(e.s,0,100),l:te(e.l,0,100),a:te(e.a)}},ue=function(e){return{h:ee(e.h),s:ee(e.s),l:ee(e.l),a:ee(e.a,3)}},ge=function(e){return le((r=(t=e).s,{h:t.h,s:(r*=((a=t.l)<50?a:100-a)/100)>0?2*r/(a+r)*100:0,v:a+r,a:t.a}));var t,r,a},de=function(e){return{h:(t=se(e)).h,s:(n=(200-(r=t.s))*(a=t.v)/100)>0&&n<200?r*a/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,a,n},fe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,pe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ve=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,he=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ye={string:[[function(e){var t=ie.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?ee(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?ee(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ve.exec(e)||he.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ae({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=fe.exec(e)||pe.exec(e);if(!t)return null;var r,a,n=ce({h:(r=t[1],a=t[2],void 0===a&&(a="deg"),Number(r)*(Z[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ge(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,a=e.b,n=e.a,i=void 0===n?1:n;return Q(t)&&Q(r)&&Q(a)?ae({r:Number(t),g:Number(r),b:Number(a),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,a=e.l,n=e.a,i=void 0===n?1:n;if(!Q(t)||!Q(r)||!Q(a))return null;var o=ce({h:Number(t),s:Number(r),l:Number(a),a:Number(i)});return ge(o)},"hsl"],[function(e){var t=e.h,r=e.s,a=e.v,n=e.a,i=void 0===n?1:n;if(!Q(t)||!Q(r)||!Q(a))return null;var o=function(e){return{h:re(e.h),s:te(e.s,0,100),v:te(e.v,0,100),a:te(e.a)}}({h:Number(t),s:Number(r),v:Number(a),a:Number(i)});return le(o)},"hsv"]]},me=function(e,t){for(var r=0;r=.5},e.prototype.toHex=function(){return t=(e=ne(this.rgba)).r,r=e.g,a=e.b,i=(n=e.a)<1?oe(ee(255*n)):"","#"+oe(t)+oe(r)+oe(a)+i;var e,t,r,a,n,i},e.prototype.toRgb=function(){return ne(this.rgba)},e.prototype.toRgbString=function(){return t=(e=ne(this.rgba)).r,r=e.g,a=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+a+", "+n+")":"rgb("+t+", "+r+", "+a+")";var e,t,r,a,n},e.prototype.toHsl=function(){return ue(de(this.rgba))},e.prototype.toHslString=function(){return t=(e=ue(de(this.rgba))).h,r=e.s,a=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+a+"%, "+n+")":"hsl("+t+", "+r+"%, "+a+"%)";var e,t,r,a,n},e.prototype.toHsv=function(){return e=se(this.rgba),{h:ee(e.h),s:ee(e.s),v:ee(e.v),a:ee(e.a,3)};var e},e.prototype.invert=function(){return Ce({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ce(be(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ce(be(this.rgba,-e))},e.prototype.grayscale=function(){return Ce(be(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ce(we(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ce(we(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ce({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ee(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=de(this.rgba);return"number"==typeof e?Ce({h:e,s:t.s,l:t.l,a:t.a}):ee(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ce(e).toHex()},e}(),Ce=function(e){return e instanceof Oe?e:new Oe(e)};function Ee(e,t,r){var a=this,n=(0,s.useRef)(null),i=(0,s.useRef)(0),o=(0,s.useRef)(null),l=(0,s.useRef)([]),c=(0,s.useRef)(),u=(0,s.useRef)(),g=(0,s.useRef)(e),d=(0,s.useRef)(!0);(0,s.useEffect)((function(){g.current=e}),[e]);var f=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(r=r||{}).leading,v=!("trailing"in r)||!!r.trailing,h="maxWait"in r,y=h?Math.max(+r.maxWait||0,t):null;(0,s.useEffect)((function(){return d.current=!0,function(){d.current=!1}}),[]);var m=(0,s.useMemo)((function(){var e=function(e){var t=l.current,r=c.current;return l.current=c.current=null,i.current=e,u.current=g.current.apply(r,t)},r=function(e,t){f&&cancelAnimationFrame(o.current),o.current=f?requestAnimationFrame(e):setTimeout(e,t)},s=function(e){if(!d.current)return!1;var r=e-n.current;return!n.current||r>=t||r<0||h&&e-i.current>=y},m=function(t){return o.current=null,v&&l.current?e(t):(l.current=c.current=null,u.current)},b=function e(){var a=Date.now();if(s(a))return m(a);if(d.current){var o=t-(a-n.current),l=h?Math.min(o,y-(a-i.current)):o;r(e,l)}},S=function(){var g=Date.now(),f=s(g);if(l.current=[].slice.call(arguments),c.current=a,n.current=g,f){if(!o.current&&d.current)return i.current=n.current,r(b,t),p?e(n.current):u.current;if(h)return r(b,t),e(n.current)}return o.current||r(b,t),u.current};return S.cancel=function(){o.current&&(f?cancelAnimationFrame(o.current):clearTimeout(o.current)),i.current=0,l.current=n.current=c.current=o.current=null},S.isPending=function(){return!!o.current},S.flush=function(){return o.current?m(Date.now()):u.current},S}),[p,h,t,y,v,f]);return m}function De(e){var t=e.value,r=e.showAlpha,a=e.onChange,n=r?Y:X,i=(0,l.useMemo)((function(){return function(e){if(String(e).startsWith("var(")){var t=e.match(/\(([^)]+)\)/);if(t){var r=getComputedStyle(document.documentElement).getPropertyValue(t[1]);r&&(e=r)}}return Ce(e).toRgbString()}(t)}),[t]),o=Ee(a,100);return(0,s.createElement)(n,{color:i,onChange:function(e){Ce(e).isValid()&&(e=1===Ce(e).alpha()?Ce(e).toHex():e),o(e)}})}function Ne(e){return"info"===e?(0,s.createElement)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-hidden":"true"},(0,s.createElement)("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),(0,s.createElement)("path",{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"})):"x"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M18 6L6 18M6 6l12 12"})):"ellipsis"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,s.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,s.createElement)("g",null,(0,s.createElement)("path",{d:"M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))):"mobile"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",width:"1em",height:"1em"},(0,s.createElement)("path",{d:"M6 2h8c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm7 12V4H7v10h6zM8 5h4l-4 5V5z",fill:"currentColor"})):"tablet"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",width:"1em",height:"1em"},(0,s.createElement)("path",{d:"M4 2h12c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm11 14V4H5v12h10zM6 5h6l-6 5V5z",fill:"currentColor"})):"desktop"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",width:"1em",height:"1em"},(0,s.createElement)("path",{d:"M3 2h14c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1h-5v2h2c.55 0 1 .45 1 1v1H5v-1c0-.55.45-1 1-1h2v-2H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1zm13 9V4H4v7h12zM5 5h9L5 9V5z",fill:"currentColor"})):"dash"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M4.5 12.75a.75.75 0 01.75-.75h13.5a.75.75 0 010 1.5H5.25a.75.75 0 01-.75-.75z",fill:"currentColor"})):"plus"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M12 5v14M5 12h14"})):"lock"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,s.createElement)("path",{d:"M7 11V7a5 5 0 0110 0v4"})):"unlock"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,s.createElement)("path",{d:"M7 11V7a5 5 0 019.9-1"})):"chevron-down"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M6 9l6 6 6-6"})):"chevron-up"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M18 15l-6-6-6 6"})):"chevron-right"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M9 18l6-6-6-6"})):"trash"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2M10 11v6M14 11v6"})):"reorder"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("path",{d:"m5 9-3 3 3 3M9 5l3-3 3 3M15 19l-3 3-3-3M19 9l3 3-3 3M2 12h20M12 2v20"})):"check"===e?(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,s.createElement)("path",{fill:"none",d:"M20 6 9 17l-5-5"})):void 0}function xe(e){var t=e.value,r=e.onChange,a=e.onBlur,n=e.onEnable,i=e.isDisabled,o=e.helpText;return(0,s.createElement)("div",{className:"generate-color-input--css-var-name-wrapper"},(0,s.createElement)(c.TextControl,{label:(0,p.__)("CSS Variable Name","generatepress"),disabled:i,help:o,type:"text",value:t,onChange:r,onBlur:a}),i&&(0,s.createElement)(c.Tooltip,{text:(0,p.__)("Changing this name will remove its color from elements already using it.","generatepress")},(0,s.createElement)(c.Button,{onClick:function(){window.alert((0,p.__)("Changing this name will break styles that are using it to define its color.","generatepress")),n(),setTimeout((function(){document.querySelector(".generate-color-input--css-var-name-wrapper input").focus()}),10)}},Ne("unlock"))))}var Te=function(e){return/^([0-9A-F]{3}){1,2}$/i.test(e)};function Ie(e){var t=e.value,r=e.onChange,a=e.showReset,n=void 0!==a&&a,i=e.onClickReset;return(0,s.createElement)("div",{className:"generate-color-input-wrapper"},(0,s.createElement)(c.TextControl,{id:"generate-color-input-field",className:"generate-color-input",type:"text",value:t||"",onChange:function(e){!e.startsWith("#")&&Te(e)&&(e="#"+e),r(e)}}),n&&(0,s.createElement)(c.Button,{isSmall:!0,isSecondary:!0,className:"components-color-clear-color",onClick:i},(0,p.__)("Default","generatepress")))}function Me(e){var t=e.value,r=e.onChange,a=generateCustomizerControls.palette,n=window.sessionStorage.getItem("generateGlobalColors");return n&&(a=JSON.parse(n)),(0,s.createElement)(c.BaseControl,{className:"generate-component-color-picker-palette"},(0,s.createElement)(c.ColorPalette,{colors:a,value:t,onChange:function(e){void 0===e&&(e=""),r(e),setTimeout((function(){document.querySelector(".generate-color-input-wrapper input").focus()}),10)},disableCustomColors:!0,clearable:!1}))}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Pe(e){var t=e.value,r=e.variableName,a=e.label,n=e.tooltipText,i=e.tooltipPosition,u=e.showAlpha,g=e.showReset,d=e.showVariableName,f=e.showPalette,p=e.variableNameIsDisabled,v=e.variableNameHelpText,h=e.onChange,b=void 0===h?function(){return!1}:h,S=e.onClosePanel,w=void 0===S?function(){return!1}:S,O=e.onChangeVariableName,C=void 0===O?function(){return!1}:O,E=e.onBlurVariableName,D=void 0===E?function(){return!1}:E,N=e.onEnableVariableName,x=void 0===N?function(){return!1}:N,T=e.onClickReset,I=void 0===T?function(){return!1}:T,M=y((0,l.useState)(!1),2),k=M[0],P=M[1],_=(0,l.useCallback)((function(){P(!0)})),R=Ee((0,l.useCallback)((function(){P(!1),w()})),100),L={};return generateCustomizerControls.colorPickerShouldShift&&(L.shift=!0),(0,s.createElement)("div",{className:"generate-color-picker-area"},(0,s.createElement)(m,{color:t||"transparent",tooltip:n,tooltipPosition:i,ariaExpanded:k,onClick:k?R:_}),k&&(0,s.createElement)(c.Popover,function(e){for(var t=1;t=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Be=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Ze(lt,--ot):0,nt--,10===st&&(nt=1,at--),st}function dt(){return st=ot2||ht(st)>3?"":" "}function wt(e,t){for(;--t&&dt()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return vt(e,pt()+(t<6&&32==ft()&&32==dt()))}function Ot(e){for(;dt();)switch(st){case e:return ot;case 34:case 39:34!==e&&39!==e&&Ot(st);break;case 40:41===e&&Ot(e);break;case 92:dt()}return ot}function Ct(e,t){for(;dt()&&e+st!==57&&(e+st!==84||47!==ft()););return"/*"+vt(t,ot-1)+"*"+We(47===e?e:dt())}function Et(e){for(;!ht(ft());)dt();return vt(e,ot)}var Dt="-ms-",Nt="-moz-",xt="-webkit-",Tt="comm",It="rule",Mt="decl",kt="@keyframes";function Pt(e,t){for(var r="",a=tt(e),n=0;n0&&et(C)-g&&rt(f>32?Ft(C+";",a,r,g-1):Ft(Je(C," ","")+";",a,r,g-2),l);break;case 59:C+=";";default:if(rt(O=At(C,t,r,c,u,n,s,b,S=[],w=[],g),i),123===m)if(0===u)Lt(C,t,O,O,S,i,g,s,w);else switch(99===d&&110===Ze(C,3)?100:d){case 100:case 108:case 109:case 115:Lt(e,O,O,a&&rt(At(e,O,O,0,0,n,s,b,n,S=[],g),w),n,w,g,s,a?S:w);break;default:Lt(C,O,O,O,[""],w,0,s,w)}}c=u=f=0,v=y=1,b=C="",g=o;break;case 58:g=1+et(C),f=p;default:if(v<1)if(123==m)--v;else if(125==m&&0==v++&&125==gt())continue;switch(C+=We(m),m*v){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(et(C)-1)*y,y=1;break;case 64:45===ft()&&(C+=bt(dt())),d=ft(),u=g=et(b=C+=Et(pt())),m++;break;case 45:45===p&&2==et(C)&&(v=0)}}return i}function At(e,t,r,a,n,i,o,s,l,c,u){for(var g=n-1,d=0===n?i:[""],f=tt(d),p=0,v=0,h=0;p0?d[y]+" "+m:Je(m,/&\f/g,d[y])))&&(l[h++]=b);return ct(e,t,r,0===n?It:s,l,c,u)}function jt(e,t,r){return ct(e,t,r,Tt,We(st),Qe(e,2,-2),0)}function Ft(e,t,r,a){return ct(e,t,r,Mt,Qe(e,0,a),Qe(e,a+1,-1),a)}var Bt=function(e,t,r){for(var a=0,n=0;a=n,n=ft(),38===a&&12===n&&(t[r]=1),!ht(n);)dt();return vt(e,ot)},Vt=new WeakMap,Ht=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,a=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Vt.get(r))&&!a){Vt.set(e,!0);for(var n=[],i=function(e,t){return mt(function(e,t){var r=-1,a=44;do{switch(ht(a)){case 0:38===a&&12===ft()&&(t[r]=1),e[r]+=Bt(ot-1,t,r);break;case 2:e[r]+=bt(a);break;case 4:if(44===a){e[++r]=58===ft()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=We(a)}}while(a=dt());return e}(yt(e),t))}(t,n),o=r.props,s=0,l=0;s6)switch(Ze(e,t+1)){case 109:if(45!==Ze(e,t+4))break;case 102:return Je(e,/(.+:)(.+)-([^]+)/,"$1"+xt+"$2-$3$1"+Nt+(108==Ze(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xe(e,"stretch")?Gt(Je(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ze(e,t+1))break;case 6444:switch(Ze(e,et(e)-3-(~Xe(e,"!important")&&10))){case 107:return Je(e,":",":"+xt)+e;case 101:return Je(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xt+(45===Ze(e,14)?"inline-":"")+"box$3$1"+xt+"$2$3$1"+Dt+"$2box$3")+e}break;case 5936:switch(Ze(e,t+11)){case 114:return xt+e+Dt+Je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xt+e+Dt+Je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xt+e+Dt+Je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xt+e+Dt+e+e}return e}var Ut=[function(e,t,r,a){if(e.length>-1&&!e.return)switch(e.type){case Mt:e.return=Gt(e.value,e.length);break;case kt:return Pt([ut(e,{value:Je(e.value,"@","@"+xt)})],a);case It:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Pt([ut(e,{props:[Je(t,/:(read-\w+)/,":-moz-$1")]})],a);case"::placeholder":return Pt([ut(e,{props:[Je(t,/:(plac\w+)/,":"+xt+"input-$1")]}),ut(e,{props:[Je(t,/:(plac\w+)/,":-moz-$1")]}),ut(e,{props:[Je(t,/:(plac\w+)/,Dt+"input-$1")]})],a)}return""}))}}],Kt=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a,n,i=e.stylisPlugins||Ut,o={},s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++a,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(n)+l;return{name:c,styles:n,next:rr}},ir=!!s.useInsertionEffect&&s.useInsertionEffect,or=ir||function(e){return e()},sr=(ir||s.useLayoutEffect,{}.hasOwnProperty),lr=s.createContext("undefined"!=typeof HTMLElement?Kt({key:"css"}):null);lr.Provider;var cr=function(e){return(0,s.forwardRef)((function(t,r){var a=(0,s.useContext)(lr);return e(t,a,r)}))},ur=s.createContext({}),gr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dr=function(e){var t=e.cache,r=e.serialized,a=e.isStringTag;return $t(t,r,a),or((function(){return function(e,t,r){$t(e,t,r);var a=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+a:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(t,r,a)})),null},fr=cr((function(e,t,r){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var n=e[gr],i=[a],o="";"string"==typeof e.className?o=function(e,t,r){var a="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):a+=r+" "})),a}(t.registered,i,e.className):null!=e.className&&(o=e.className+" ");var l=nr(i,void 0,s.useContext(ur));o+=t.key+"-"+l.name;var c={};for(var u in e)sr.call(e,u)&&"css"!==u&&u!==gr&&(c[u]=e[u]);return c.ref=r,c.className=o,s.createElement(s.Fragment,null,s.createElement(dr,{cache:t,serialized:l,isStringTag:"string"==typeof n}),s.createElement(n,c))})),pr=fr,vr=(r(792),function(e,t){var r=arguments;if(null==t||!sr.call(t,"css"))return s.createElement.apply(void 0,r);var a=r.length,n=new Array(a);n[0]=pr,n[1]=function(e,t){var r={};for(var a in t)sr.call(t,a)&&(r[a]=t[a]);return r[gr]=e,r}(e,t);for(var i=2;i({x:e,y:e});function Cr(e){return Nr(e)?(e.nodeName||"").toLowerCase():"#document"}function Er(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Dr(e){var t;return null==(t=(Nr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Nr(e){return e instanceof Node||e instanceof Er(e).Node}function xr(e){return e instanceof Element||e instanceof Er(e).Element}function Tr(e){return e instanceof HTMLElement||e instanceof Er(e).HTMLElement}function Ir(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Er(e).ShadowRoot)}function Mr(e){const{overflow:t,overflowX:r,overflowY:a,display:n}=kr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!["inline","contents"].includes(n)}function kr(e){return Er(e).getComputedStyle(e)}function Pr(e){const t=function(e){if("html"===Cr(e))return e;const t=e.assignedSlot||e.parentNode||Ir(e)&&e.host||Dr(e);return Ir(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Cr(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tr(t)&&Mr(t)?t:Pr(t)}function _r(e,t,r){var a;void 0===t&&(t=[]),void 0===r&&(r=!0);const n=Pr(e),i=n===(null==(a=e.ownerDocument)?void 0:a.body),o=Er(n);return i?t.concat(o,o.visualViewport||[],Mr(n)?n:[],o.frameElement&&r?_r(o.frameElement):[]):t.concat(n,_r(n,[],r))}function Rr(e){return xr(e)?e:e.contextElement}function Lr(e){const t=Rr(e);if(!Tr(t))return Or(1);const r=t.getBoundingClientRect(),{width:a,height:n,$:i}=function(e){const t=kr(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=Tr(e),i=n?e.offsetWidth:r,o=n?e.offsetHeight:a,s=Sr(r)!==i||Sr(a)!==o;return s&&(r=i,a=o),{width:r,height:a,$:s}}(t);let o=(i?Sr(r.width):r.width)/a,s=(i?Sr(r.height):r.height)/n;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const Ar=Or(0);function jr(e){const t=Er(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ar}function Fr(e,t,r,a){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=e.getBoundingClientRect(),i=Rr(e);let o=Or(1);t&&(a?xr(a)&&(o=Lr(a)):o=Lr(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Er(e))&&t}(i,r,a)?jr(i):Or(0);let l=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,u=n.width/o.x,g=n.height/o.y;if(i){const e=Er(i),t=a&&xr(a)?Er(a):a;let r=e.frameElement;for(;r&&a&&t!==e;){const e=Lr(r),t=r.getBoundingClientRect(),a=kr(r),n=t.left+(r.clientLeft+parseFloat(a.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(a.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,g*=e.y,l+=n,c+=i,r=Er(r).frameElement}}return d={width:u,height:g,x:l,y:c},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}var Br=s.useLayoutEffect,Vr=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Hr=function(){};function zr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Gr(e,t){for(var r=arguments.length,a=new Array(r>2?r-2:0),n=2;n-1}function qr(e){return Wr(e)?window.pageYOffset:e.scrollTop}function Yr(e,t){Wr(e)?window.scrollTo(0,t):e.scrollTop=t}function Jr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Hr,n=qr(e),i=t-n,o=0;!function t(){var s=function(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}(o+=10,n,i,r);Yr(e,s),or.bottom?Yr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):a.top-n=p)return{placement:"bottom",maxHeight:t};if(E>=p&&!o)return i&&Jr(l,D,x),{placement:"bottom",maxHeight:t};if(!o&&E>=a||o&&O>=a)return i&&Jr(l,D,x),{placement:"bottom",maxHeight:o?O-b:E-b};if("auto"===n||o){var T=t,I=o?w:C;return I>=a&&(T=Math.min(I-b-s,t)),{placement:"top",maxHeight:T}}if("bottom"===n)return i&&Yr(l,D),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(C>=p&&!o)return i&&Jr(l,N,x),{placement:"top",maxHeight:t};if(!o&&C>=a||o&&w>=a){var M=t;return(!o&&C>=a||o&&w>=a)&&(M=o?w-S:C-S),i&&Jr(l,N,x),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}({maxHeight:a,menuEl:e,minHeight:r,placement:n,shouldScroll:o&&!t,isFixedPosition:t,controlHeight:m});f(s.maxHeight),h(s.placement),null==c||c(s.placement)}}),[a,n,i,o,r,c,m]),t({ref:u,placerProps:je(je({},e),{},{placement:v||ia(n),maxHeight:d})})},la=function(e,t){var r=e.theme,a=r.spacing.baseUnit,n=r.colors;return je({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px")})},ca=la,ua=la,ga=function(e){var t=e.children,r=e.innerProps;return vr("div",Ve({},$r(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),t)};ga.defaultProps={children:"No options"};var da=function(e){var t=e.children,r=e.innerProps;return vr("div",Ve({},$r(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),t)};da.defaultProps={children:"Loading..."};var fa,pa,va,ha=["size"],ya={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ma=function(e){var t=e.size,r=Fe(e,ha);return vr("svg",Ve({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ya},r))},ba=function(e){return vr(ma,Ve({size:20},e),vr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Sa=function(e){return vr(ma,Ve({size:20},e),vr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},wa=function(e,t){var r=e.isFocused,a=e.theme,n=a.spacing.baseUnit,i=a.colors;return je({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?i.neutral60:i.neutral20,padding:2*n,":hover":{color:r?i.neutral80:i.neutral40}})},Oa=wa,Ca=wa,Ea=function(){var e=hr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(fa||(pa=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],va||(va=pa.slice(0)),fa=Object.freeze(Object.defineProperties(pa,{raw:{value:Object.freeze(va)}})))),Da=function(e){var t=e.delay,r=e.offset;return vr("span",{css:hr({animation:"".concat(Ea," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Na=function(e){var t=e.innerProps,r=e.isRtl;return vr("div",Ve({},$r(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),vr(Da,{delay:0,offset:r}),vr(Da,{delay:160,offset:!0}),vr(Da,{delay:320,offset:!r}))};Na.defaultProps={size:4};var xa=["data"],Ta=["innerRef","isDisabled","isHidden","inputClassName"],Ia={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ma={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":je({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ia)},ka=function(e){return je({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ia)},Pa=function(e){var t=e.children,r=e.innerProps;return vr("div",r,t)},_a={ClearIndicator:function(e){var t=e.children,r=e.innerProps;return vr("div",Ve({},$r(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||vr(ba,null))},Control:function(e){var t=e.children,r=e.isDisabled,a=e.isFocused,n=e.innerRef,i=e.innerProps,o=e.menuIsOpen;return vr("div",Ve({ref:n},$r(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":a,"control--menu-is-open":o}),i),t)},DropdownIndicator:function(e){var t=e.children,r=e.innerProps;return vr("div",Ve({},$r(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||vr(Sa,null))},DownChevron:Sa,CrossIcon:ba,Group:function(e){var t=e.children,r=e.cx,a=e.getStyles,n=e.getClassNames,i=e.Heading,o=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return vr("div",Ve({},$r(e,"group",{group:!0}),s),vr(i,Ve({},o,{selectProps:u,theme:c,getStyles:a,getClassNames:n,cx:r}),l),vr("div",null,t))},GroupHeading:function(e){var t=Kr(e);t.data;var r=Fe(t,xa);return vr("div",Ve({},$r(e,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(e){var t=e.children,r=e.innerProps;return vr("div",Ve({},$r(e,"indicatorsContainer",{indicators:!0}),r),t)},IndicatorSeparator:function(e){var t=e.innerProps;return vr("span",Ve({},t,$r(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,r=e.value,a=Kr(e),n=a.innerRef,i=a.isDisabled,o=a.isHidden,s=a.inputClassName,l=Fe(a,Ta);return vr("div",Ve({},$r(e,"input",{"input-container":!0}),{"data-value":r||""}),vr("input",Ve({className:t({input:!0},s),ref:n,style:ka(o),disabled:i},l)))},LoadingIndicator:Na,Menu:function(e){var t=e.children,r=e.innerRef,a=e.innerProps;return vr("div",Ve({},$r(e,"menu",{menu:!0}),{ref:r},a),t)},MenuList:function(e){var t=e.children,r=e.innerProps,a=e.innerRef,n=e.isMulti;return vr("div",Ve({},$r(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:a},r),t)},MenuPortal:function(e){var t=e.appendTo,r=e.children,a=e.controlElement,n=e.innerProps,i=e.menuPlacement,o=e.menuPosition,l=(0,s.useRef)(null),c=(0,s.useRef)(null),u=y((0,s.useState)(ia(i)),2),g=u[0],d=u[1],f=(0,s.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=y((0,s.useState)(null),2),v=p[0],h=p[1],m=(0,s.useCallback)((function(){if(a){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),t="fixed"===o?0:window.pageYOffset,r=e[g]+t;r===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||h({offset:r,rect:e})}}),[a,o,g,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Br((function(){m()}),[m]);var b=(0,s.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),a&&l.current&&(c.current=function(e,t,r,a){void 0===a&&(a={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=a,c=Rr(e),u=n||i?[...c?_r(c):[],..._r(t)]:[];u.forEach((e=>{n&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const g=c&&s?function(e,t){let r,a=null;const n=Dr(e);function i(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}return function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:g,height:d}=e.getBoundingClientRect();if(s||t(),!g||!d)return;const f={rootMargin:-wr(u)+"px "+-wr(n.clientWidth-(c+g))+"px "+-wr(n.clientHeight-(u+d))+"px "+-wr(c)+"px",threshold:br(0,mr(1,l))||1};let p=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return o();t?o(!1,t):r=setTimeout((()=>{o(!1,1e-7)}),100)}p=!1}try{a=new IntersectionObserver(v,{...f,root:n.ownerDocument})}catch(e){a=new IntersectionObserver(v,f)}a.observe(e)}(!0),i}(c,r):null;let d,f=-1,p=null;o&&(p=new ResizeObserver((e=>{let[a]=e;a&&a.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),r()})),c&&!l&&p.observe(c),p.observe(t));let v=l?Fr(e):null;return l&&function t(){const a=Fr(e);!v||a.x===v.x&&a.y===v.y&&a.width===v.width&&a.height===v.height||r(),v=a,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{n&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),null==g||g(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(d)}}(a,l.current,m,{elementResize:"ResizeObserver"in window}))}),[a,m]);Br((function(){b()}),[b]);var S=(0,s.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==o||!v)return null;var w=vr("div",Ve({ref:S},$r(je(je({},e),{},{offset:v.offset,position:o,rect:v.rect}),"menuPortal",{"menu-portal":!0}),n),r);return vr(oa.Provider,{value:f},t?(0,yr.createPortal)(w,t):w)},LoadingMessage:da,NoOptionsMessage:ga,MultiValue:function(e){var t=e.children,r=e.components,a=e.data,n=e.innerProps,i=e.isDisabled,o=e.removeProps,s=e.selectProps,l=r.Container,c=r.Label,u=r.Remove;return vr(l,{data:a,innerProps:je(je({},$r(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),n),selectProps:s},vr(c,{data:a,innerProps:je({},$r(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),vr(u,{data:a,innerProps:je(je({},$r(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:s}))},MultiValueContainer:Pa,MultiValueLabel:Pa,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return vr("div",Ve({role:"button"},r),t||vr(ba,{size:14}))},Option:function(e){var t=e.children,r=e.isDisabled,a=e.isFocused,n=e.isSelected,i=e.innerRef,o=e.innerProps;return vr("div",Ve({},$r(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":a,"option--is-selected":n}),{ref:i,"aria-disabled":r},o),t)},Placeholder:function(e){var t=e.children,r=e.innerProps;return vr("div",Ve({},$r(e,"placeholder",{placeholder:!0}),r),t)},SelectContainer:function(e){var t=e.children,r=e.innerProps,a=e.isDisabled,n=e.isRtl;return vr("div",Ve({},$r(e,"container",{"--is-disabled":a,"--is-rtl":n}),r),t)},SingleValue:function(e){var t=e.children,r=e.isDisabled,a=e.innerProps;return vr("div",Ve({},$r(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),a),t)},ValueContainer:function(e){var t=e.children,r=e.innerProps,a=e.isMulti,n=e.hasValue;return vr("div",Ve({},$r(e,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":n}),r),t)}},Ra=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function La(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(n.join(","),", selected.");case"select-option":return"option ".concat(a,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,a=e.options,n=e.label,i=void 0===n?"":n,o=e.selectValue,s=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(i," focused, ").concat(c(o,r),".");if("menu"===t){var u=s?" disabled":"",g="".concat(l?"selected":"focused").concat(u);return"option ".concat(i," ").concat(g,", ").concat(c(a,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},Ba=function(e){var t=e.ariaSelection,r=e.focusedOption,a=e.focusedValue,n=e.focusableOptions,i=e.isFocused,o=e.selectValue,l=e.selectProps,c=e.id,u=l.ariaLiveMessages,g=l.getOptionLabel,d=l.inputValue,f=l.isMulti,p=l.isOptionDisabled,v=l.isSearchable,h=l.menuIsOpen,y=l.options,m=l.screenReaderStatus,b=l.tabSelectsValue,S=l["aria-label"],w=l["aria-live"],O=(0,s.useMemo)((function(){return je(je({},Fa),u||{})}),[u]),C=(0,s.useMemo)((function(){var e,r="";if(t&&O.onChange){var a=t.option,n=t.options,i=t.removedValue,s=t.removedValues,l=t.value,c=i||a||(e=l,Array.isArray(e)?null:e),u=c?g(c):"",d=n||s||void 0,f=d?d.map(g):[],v=je({isDisabled:c&&p(c,o),label:u,labels:f},t);r=O.onChange(v)}return r}),[t,O,p,o,g]),E=(0,s.useMemo)((function(){var e="",t=r||a,i=!!(r&&o&&o.includes(r));if(t&&O.onFocus){var s={focused:t,label:g(t),isDisabled:p(t,o),isSelected:i,options:n,context:t===r?"menu":"value",selectValue:o};e=O.onFocus(s)}return e}),[r,a,g,p,O,n,o]),D=(0,s.useMemo)((function(){var e="";if(h&&y.length&&O.onFilter){var t=m({count:n.length});e=O.onFilter({inputValue:d,resultsMessage:t})}return e}),[n,d,h,O,y,m]),N=(0,s.useMemo)((function(){var e="";if(O.guidance){var t=a?"value":h?"menu":"input";e=O.guidance({"aria-label":S,context:t,isDisabled:r&&p(r,o),isMulti:f,isSearchable:v,tabSelectsValue:b})}return e}),[S,r,a,f,p,v,h,O,o,b]),x="".concat(E," ").concat(D," ").concat(N),T=vr(s.Fragment,null,vr("span",{id:"aria-selection"},C),vr("span",{id:"aria-context"},x)),I="initial-input-focus"===(null==t?void 0:t.action);return vr(s.Fragment,null,vr(ja,{id:c},I&&T),vr(ja,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},i&&!I&&T))},Va=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ha=new RegExp("["+Va.map((function(e){return e.letters})).join("")+"]","g"),za={},Ga=0;Ga1?t-1:0),a=1;a0,v=g-d-c,h=!1;v>t&&o.current&&(a&&a(e),o.current=!1),p&&l.current&&(i&&i(e),l.current=!1),p&&t>v?(r&&!o.current&&r(e),f.scrollTop=g,h=!0,o.current=!0):!p&&-t>c&&(n&&!l.current&&n(e),f.scrollTop=0,h=!0,l.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,a,n,i]),d=(0,s.useCallback)((function(e){g(e,e.deltaY)}),[g]),f=(0,s.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,s.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;g(e,t)}),[g]),v=(0,s.useCallback)((function(e){if(e){var t=!!ra&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),h=(0,s.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,s.useEffect)((function(){if(t){var e=u.current;return v(e),function(){h(e)}}}),[t,v,h]),function(e){u.current=e}}({isEnabled:void 0===a||a,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,r=e.accountForScrollbars,a=void 0===r||r,n=(0,s.useRef)({}),i=(0,s.useRef)(null),o=(0,s.useCallback)((function(e){if(nn){var t=document.body,r=t&&t.style;if(a&&Za.forEach((function(e){var t=r&&r[e];n.current[e]=t})),a&&on<1){var i=parseInt(n.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+i||0;Object.keys(Qa).forEach((function(e){var t=Qa[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(s,"px"))}t&&an()&&(t.addEventListener("touchmove",en,sn),e&&(e.addEventListener("touchstart",rn,sn),e.addEventListener("touchmove",tn,sn))),on+=1}}),[a]),l=(0,s.useCallback)((function(e){if(nn){var t=document.body,r=t&&t.style;on=Math.max(on-1,0),a&&on<1&&Za.forEach((function(e){var t=n.current[e];r&&(r[e]=t)})),t&&an()&&(t.removeEventListener("touchmove",en,sn),e&&(e.removeEventListener("touchstart",rn,sn),e.removeEventListener("touchmove",tn,sn)))}}),[a]);return(0,s.useEffect)((function(){if(t){var e=i.current;return o(e),function(){l(e)}}}),[t,o,l]),function(e){i.current=e}}({isEnabled:r});return vr(s.Fragment,null,r&&vr("div",{onClick:ln,css:cn}),t((function(e){n(e),i(e)})))}var gn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},dn=function(e){var t=e.name,r=e.onFocus;return vr("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:gn,value:"",onChange:function(){}})},fn={clearIndicator:Ca,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var r=e.isDisabled,a=e.isFocused,n=e.theme,i=n.colors,o=n.borderRadius;return je({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:n.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:r?i.neutral5:i.neutral0,borderColor:r?i.neutral10:a?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:a?i.primary:i.neutral30}})},dropdownIndicator:Oa,group:function(e,t){var r=e.theme.spacing;return t?{}:{paddingBottom:2*r.baseUnit,paddingTop:2*r.baseUnit}},groupHeading:function(e,t){var r=e.theme,a=r.colors,n=r.spacing;return je({label:"group",cursor:"default",display:"block"},t?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*n.baseUnit,paddingRight:3*n.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var r=e.isDisabled,a=e.theme,n=a.spacing.baseUnit,i=a.colors;return je({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?i.neutral10:i.neutral20,marginBottom:2*n,marginTop:2*n})},input:function(e,t){var r=e.isDisabled,a=e.value,n=e.theme,i=n.spacing,o=n.colors;return je(je({visibility:r?"hidden":"visible",transform:a?"translateZ(0)":""},Ma),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:o.neutral80})},loadingIndicator:function(e,t){var r=e.isFocused,a=e.size,n=e.theme,i=n.colors,o=n.spacing.baseUnit;return je({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},t?{}:{color:r?i.neutral60:i.neutral20,padding:2*o})},loadingMessage:ua,menu:function(e,t){var r,a=e.placement,n=e.theme,i=n.borderRadius,s=n.spacing,l=n.colors;return je((o(r={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),o(r,"position","absolute"),o(r,"width","100%"),o(r,"zIndex",1),r),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var r=e.maxHeight,a=e.theme.spacing.baseUnit;return je({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:a,paddingTop:a})},menuPortal:function(e){var t=e.rect,r=e.offset,a=e.position;return{left:t.left,position:a,top:r,width:t.width,zIndex:1}},multiValue:function(e,t){var r=e.theme,a=r.spacing,n=r.borderRadius,i=r.colors;return je({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:n/2,margin:a.baseUnit/2})},multiValueLabel:function(e,t){var r=e.theme,a=r.borderRadius,n=r.colors,i=e.cropWithEllipsis;return je({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:a/2,color:n.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var r=e.theme,a=r.spacing,n=r.borderRadius,i=r.colors,o=e.isFocused;return je({alignItems:"center",display:"flex"},t?{}:{borderRadius:n/2,backgroundColor:o?i.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:ca,option:function(e,t){var r=e.isDisabled,a=e.isFocused,n=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return je({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:n?s.primary:a?s.primary25:"transparent",color:r?s.neutral20:n?s.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:r?void 0:n?s.primary:s.primary50}})},placeholder:function(e,t){var r=e.theme,a=r.spacing,n=r.colors;return je({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:n.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},singleValue:function(e,t){var r=e.isDisabled,a=e.theme,n=a.spacing,i=a.colors;return je({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:r?i.neutral40:i.neutral80,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},valueContainer:function(e,t){var r=e.theme.spacing,a=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return je({alignItems:"center",display:a&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(2*r.baseUnit,"px")})}},pn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},vn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Zr(),captureMenuScroll:!Zr(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=je({ignoreCase:!0,ignoreAccents:!0,stringify:Ya,trim:!0,matchFrom:"any"},undefined),a=r.ignoreCase,n=r.ignoreAccents,i=r.stringify,o=r.trim,s=r.matchFrom,l=o?qa(t):t,c=o?qa(i(e)):i(e);return a&&(l=l.toLowerCase(),c=c.toLowerCase()),n&&(l=Wa(l),c=$a(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function hn(e,t,r,a){return{type:"option",data:t,isDisabled:On(e,t,r),isSelected:Cn(e,t,r),label:Sn(e,t),value:wn(e,t),index:a}}function yn(e,t){return e.options.map((function(r,a){if("options"in r){var n=r.options.map((function(r,a){return hn(e,r,t,a)})).filter((function(t){return bn(e,t)}));return n.length>0?{type:"group",data:r,options:n,index:a}:void 0}var i=hn(e,r,t,a);return bn(e,i)?i:void 0})).filter(aa)}function mn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Re(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function bn(e,t){var r=e.inputValue,a=void 0===r?"":r,n=t.data,i=t.isSelected,o=t.label,s=t.value;return(!Dn(e)||!i)&&En(e,{label:o,value:s,data:n},a)}var Sn=function(e,t){return e.getOptionLabel(t)},wn=function(e,t){return e.getOptionValue(t)};function On(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function Cn(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var a=wn(e,t);return r.some((function(t){return wn(e,t)===a}))}function En(e,t,r){return!e.filterOption||e.filterOption(t,r)}var Dn=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},Nn=1,xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ze(e,t)}(c,e);var t,r,a,i,o,l=(t=c,r=Ue(),function(){var e,a=Ge(t);if(r){var i=Ge(this).constructor;e=Reflect.construct(a,arguments,i)}else e=a.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=l.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,r){var a=t.props,n=a.onChange,i=a.name;r.name=i,t.ariaOnChange(e,r),n(e,r)},t.setValue=function(e,r,a){var n=t.props,i=n.closeMenuOnSelect,o=n.isMulti,s=n.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:r,option:a})},t.selectOption=function(e){var r=t.props,a=r.blurInputOnSelect,n=r.isMulti,i=r.name,o=t.state.selectValue,s=n&&t.isOptionSelected(e,o),l=t.isOptionDisabled(e,o);if(s){var c=t.getOptionValue(e);t.setValue(o.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});n?t.setValue([].concat(Re(o),[e]),"select-option",e):t.setValue(e,"select-option")}a&&t.blurInput()},t.removeValue=function(e){var r=t.props.isMulti,a=t.state.selectValue,n=t.getOptionValue(e),i=a.filter((function(e){return t.getOptionValue(e)!==n})),o=na(r,i,i[0]||null);t.onChange(o,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(na(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,r=t.state.selectValue,a=r[r.length-1],n=r.slice(0,r.length-1),i=na(e,n,n[0]||null);t.onChange(i,{action:"pop-value",removedValue:a})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,r=new Array(e),a=0;a5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var r=t.props.inputValue,a=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(a,{action:"input-change",prevInputValue:r}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var r=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:r}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return Dn(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var r=t.props,a=r.isMulti,n=r.backspaceRemovesValue,i=r.escapeClearsValue,o=r.inputValue,s=r.isClearable,l=r.isDisabled,c=r.menuIsOpen,u=r.onKeyDown,g=r.tabSelectsValue,d=r.openMenuOnFocus,f=t.state,p=f.focusedOption,v=f.focusedValue,h=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!a||o)return;t.focusValue("previous");break;case"ArrowRight":if(!a||o)return;t.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(v)t.removeValue(v);else{if(!n)return;a?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!g||!p||d&&t.isOptionSelected(p,h))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:o}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(o)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Nn),t.state.selectValue=Ur(e.value),e.menuIsOpen&&t.state.selectValue.length){var r=t.buildFocusableOptions(),a=r.indexOf(t.state.selectValue[0]);t.state.focusedOption=r[a]}return t}return a=c,i=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Xr(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isDisabled,a=t.menuIsOpen,n=this.state.isFocused;(n&&!r&&e.isDisabled||n&&a&&!e.menuIsOpen)&&this.focusInput(),n&&r&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):n||r||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Xr(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,r=this.state,a=r.selectValue,n=r.isFocused,i=this.buildFocusableOptions(),o="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(a[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(n&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[o]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,a=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var n=r.indexOf(a);a||(n=-1);var i=r.length-1,o=-1;if(r.length){switch(e){case"previous":o=0===n?0:-1===n?i:n-1;break;case"next":n>-1&&n0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var n=0,i=a.indexOf(r);r||(i=-1),"up"===e?n=i>0?i-1:a.length-1:"down"===e?n=(i+1)%a.length:"pageup"===e?(n=i-t)<0&&(n=0):"pagedown"===e?(n=i+t)>a.length-1&&(n=a.length-1):"last"===e&&(n=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[n],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(pn):je(je({},pn),this.props.theme):pn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,a=this.getClassNames,n=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:r,getClassNames:a,getValue:n,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return On(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Cn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return En(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var r=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:a})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,a=e.inputId,n=e.inputValue,i=e.tabIndex,o=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,g=this.state,d=g.inputIsHidden,f=g.ariaSelection,p=this.commonProps,v=a||this.getElementId("input"),h=je(je(je({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?s.createElement(u,Ve({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:o,type:"text",value:n},h)):s.createElement(Xa,Ve({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Hr,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:o,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,a=t.MultiValueContainer,n=t.MultiValueLabel,i=t.MultiValueRemove,o=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,g=u.controlShouldRenderValue,d=u.isDisabled,f=u.isMulti,p=u.inputValue,v=u.placeholder,h=this.state,y=h.selectValue,m=h.focusedValue,b=h.isFocused;if(!this.hasValue()||!g)return p?null:s.createElement(l,Ve({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),v);if(f)return y.map((function(t,o){var l=t===m,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return s.createElement(r,Ve({},c,{components:{Container:a,Label:n,Remove:i},isFocused:l,isDisabled:d,key:u,index:o,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var S=y[0];return s.createElement(o,Ve({},c,{data:S,isDisabled:d}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,a=r.isDisabled,n=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||a||!this.hasValue()||n)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,Ve({},t,{innerProps:o,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,a=r.isDisabled,n=r.isLoading,i=this.state.isFocused;return e&&n?s.createElement(e,Ve({},t,{innerProps:{"aria-hidden":"true"},isDisabled:a,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var a=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused;return s.createElement(r,Ve({},a,{isDisabled:n,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,a=this.state.isFocused,n={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,Ve({},t,{innerProps:n,isDisabled:r,isFocused:a}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),r=t.Group,a=t.GroupHeading,n=t.Menu,i=t.MenuList,o=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,g=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,v=f.inputValue,h=f.isLoading,y=f.loadingMessage,m=f.minMenuHeight,b=f.maxMenuHeight,S=f.menuIsOpen,w=f.menuPlacement,O=f.menuPosition,C=f.menuPortalTarget,E=f.menuShouldBlockScroll,D=f.menuShouldScrollIntoView,N=f.noOptionsMessage,x=f.onMenuScrollToTop,T=f.onMenuScrollToBottom;if(!S)return null;var I,M=function(t,r){var a=t.type,n=t.data,i=t.isDisabled,o=t.isSelected,l=t.label,c=t.value,f=d===n,p=i?void 0:function(){return e.onOptionHover(n)},v=i?void 0:function(){return e.selectOption(n)},h="".concat(e.getElementId("option"),"-").concat(r),y={id:h,onClick:v,onMouseMove:p,onMouseOver:p,tabIndex:-1};return s.createElement(u,Ve({},g,{innerProps:y,data:n,isDisabled:i,isSelected:o,key:h,label:l,type:a,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var n=t.data,i=t.options,o=t.index,l="".concat(e.getElementId("group"),"-").concat(o),c="".concat(l,"-heading");return s.createElement(r,Ve({},g,{key:l,data:n,options:i,Heading:a,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(o,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(h){var k=y({inputValue:v});if(null===k)return null;I=s.createElement(l,g,k)}else{var P=N({inputValue:v});if(null===P)return null;I=s.createElement(c,g,P)}var _={minMenuHeight:m,maxMenuHeight:b,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:D},R=s.createElement(sa,Ve({},g,_),(function(t){var r=t.ref,a=t.placerProps,o=a.placement,l=a.maxHeight;return s.createElement(n,Ve({},g,_,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:o}),s.createElement(un,{captureEnabled:p,onTopArrive:x,onBottomArrive:T,lockEnabled:E},(function(t){return s.createElement(i,Ve({},g,{innerRef:function(r){e.getMenuListRef(r),t(r)},isLoading:h,maxHeight:l,focusedOption:d}),I)})))}));return C||"fixed"===O?s.createElement(o,Ve({},g,{appendTo:C,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,a=t.isDisabled,n=t.isMulti,i=t.name,o=t.required,l=this.state.selectValue;if(o&&!this.hasValue()&&!a)return s.createElement(dn,{name:i,onFocus:this.onValueInputFocus});if(i&&!a){if(n){if(r){var c=l.map((function(t){return e.getOptionValue(t)})).join(r);return s.createElement("input",{name:i,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,r){return s.createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(t)})})):s.createElement("input",{name:i,type:"hidden",value:""});return s.createElement("div",null,u)}var g=l[0]?this.getOptionValue(l[0]):"";return s.createElement("input",{name:i,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,a=t.focusedOption,n=t.focusedValue,i=t.isFocused,o=t.selectValue,l=this.getFocusableOptions();return s.createElement(Ba,Ve({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:a,focusedValue:n,isFocused:i,selectValue:o,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,a=e.SelectContainer,n=e.ValueContainer,i=this.props,o=i.className,l=i.id,c=i.isDisabled,u=i.menuIsOpen,g=this.state.isFocused,d=this.commonProps=this.getCommonProps();return s.createElement(a,Ve({},d,{className:o,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:g}),this.renderLiveRegion(),s.createElement(t,Ve({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:g,menuIsOpen:u}),s.createElement(n,Ve({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),s.createElement(r,Ve({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,a=t.clearFocusValueOnUpdate,n=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,o=t.isFocused,s=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,g=e.inputValue,d=e.isMulti,f=Ur(c),p={};if(r&&(c!==r.value||l!==r.options||u!==r.menuIsOpen||g!==r.inputValue)){var v=u?function(e,t){return mn(yn(e,t))}(e,f):[],h=a?function(e,t){var r=e.focusedValue,a=e.selectValue.indexOf(r);if(a>-1){if(t.indexOf(r)>-1)return r;if(a-1?r:t[0]}(t,v);p={selectValue:f,focusedOption:y,focusedValue:h,clearFocusValueOnUpdate:!1}}var m=null!=n&&e!==r?{inputIsHidden:n,inputIsHiddenAfterUpdate:void 0}:{},b=i,S=o&&s;return o&&!S&&(b={value:na(d,f,f[0]||null),options:f,action:"initial-input-focus"},S=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(b=null),je(je(je({},p),m),{},{prevProps:e,ariaSelection:b,prevWasFocused:S})}}],i&&He(a.prototype,i),o&&He(a,o),Object.defineProperty(a,"prototype",{writable:!1}),c}(s.Component);xn.defaultProps=vn;var Tn=(0,s.forwardRef)((function(e,t){var r=function(e){var t=e.defaultInputValue,r=void 0===t?"":t,a=e.defaultMenuIsOpen,n=void 0!==a&&a,i=e.defaultValue,o=void 0===i?null:i,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,g=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,v=Fe(e,Be),h=y((0,s.useState)(void 0!==l?l:r),2),m=h[0],b=h[1],S=y((0,s.useState)(void 0!==c?c:n),2),w=S[0],O=S[1],C=y((0,s.useState)(void 0!==p?p:o),2),E=C[0],D=C[1],N=(0,s.useCallback)((function(e,t){"function"==typeof u&&u(e,t),D(e)}),[u]),x=(0,s.useCallback)((function(e,t){var r;"function"==typeof g&&(r=g(e,t)),b(void 0!==r?r:e)}),[g]),T=(0,s.useCallback)((function(){"function"==typeof f&&f(),O(!0)}),[f]),I=(0,s.useCallback)((function(){"function"==typeof d&&d(),O(!1)}),[d]),M=void 0!==l?l:m,k=void 0!==c?c:w,P=void 0!==p?p:E;return je(je({},v),{},{inputValue:M,menuIsOpen:k,onChange:N,onInputChange:x,onMenuClose:I,onMenuOpen:T,value:P})}(e);return s.createElement(xn,Ve({ref:t},r))})),In=Tn;function Mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function kn(e){for(var t=1;t0&&t.forEach((function(e,a){r.push({value:t[a].fontFamily,label:t[a].fontFamily})})),r),onChange:function(e){i("fontFamily",e,a)}})};function Yn(e,t){var r=[{value:"",label:(0,p.__)("Default","generatepress")},{value:"normal",label:(0,p.__)("Normal","generatepress")},{value:"bold",label:(0,p.__)("Bold","generatepress")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}];return void 0!==Le[e]&&"undefined"!==t.googleFontVariants&&(r=[{value:"",label:(0,p.__)("Default","generatepress")},{value:"normal",label:(0,p.__)("Normal","generatepress")},{value:"bold",label:(0,p.__)("Bold","generatepress")}],t.filter((function(t){return t.fontFamily===e})).forEach((function(e){var t=(e.googleFontVariants?e.googleFontVariants:"").replaceAll(" ","");(t=t.split(",")).filter((function(e){var t=e.match(/[a-z]/g),r=e.match(/[0-9]/g);return!(t&&r||"italic"===e||"regular"===e||""===e)})).forEach((function(e){r.push({value:e,label:e})}))}))),r}var Jn=function(e){var t=e.index,r=e.value,a=e.fontFamily,n=e.onChange;return(0,s.createElement)(c.SelectControl,{label:(0,p.__)("Font Weight","generatepress"),value:r,options:Yn(a,zn()),onChange:function(e){n("fontWeight",e,t)}})},Xn=function(e){var t=e.index,r=e.value,a=e.onChange;return(0,s.createElement)(c.SelectControl,{label:(0,p.__)("Text Transform","generatepress"),value:r,options:[{value:"",label:(0,p.__)("Default","generatepress")},{value:"uppercase",label:(0,p.__)("Uppercase","generatepress")},{value:"lowercase",label:(0,p.__)("Lowercase","generatepress")},{value:"capitalize",label:(0,p.__)("Capitalize","generatepress")},{value:"initial",label:(0,p.__)("Normal","generatepress")}],onChange:function(e){a("textTransform",e,t)}})},Zn=function(e){var t=e.index,r=e.value,a=e.onChange;return(0,s.createElement)(c.SelectControl,{label:(0,p.__)("Font Style","generatepress"),value:r,options:[{value:"",label:(0,p.__)("Default","generatepress")},{value:"normal",label:(0,p.__)("Normal","generatepress")},{value:"italic",label:(0,p.__)("Italic","generatepress")},{value:"oblique",label:(0,p.__)("Oblique","generatepress")},{value:"initial",label:(0,p.__)("Initial","generatepress")}],onChange:function(e){a("fontStyle",e,t)}})},Qn=function(e){var t=y((0,l.useState)("desktop"),2),r=(t[0],t[1]),a=e.label,n=e.devices,i=e.onClick,o=void 0===i?function(){return null}:i;return(0,s.createElement)("div",{className:"components-generate-units-control-header__units"},(0,s.createElement)("div",{className:"components-generate-units-control-label__units"},a),(0,s.createElement)("div",{className:"components-generate-control__units"},(0,s.createElement)(c.ButtonGroup,{className:"components-generate-control-buttons__units","aria-label":(0,p.__)("Select Units","generatepress")},n.map((function(e){var t=(0,p.__)("Desktop","generatepress");return"tablet"===e&&(t=(0,p.__)("Tablet","generatepress")),"mobile"===e&&(t=(0,p.__)("Mobile","generatepress")),(0,s.createElement)(c.Tooltip -/* translators: Unit type (px, em, %) */,{text:(0,p.sprintf)((0,p.__)("%s Preview","generatepress"),t),key:e},(0,s.createElement)(c.Button,{key:e,className:"components-generate-control-button__units--"+e,isSmall:!0 -/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":t,onClick:function(){wp.customize.previewedDevice.set(e),r(e),o(e)}},Ne(e)))})))))},ei=r(80),ti=r.n(ei);function ri(e){var t=e.value,r=e.onChange,a=e.units,n=void 0===a?[]:a,i=e.disabled;return n.length?(n.includes(t)||(n[n.length-1]=t),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.DropdownMenu,{className:"gblocks-unit-control-units",label:(0,p.__)("Select a unit","generatepress"),icon:null,toggleProps:{children:t||String.fromCharCode(8212),disabled:i},popoverProps:{className:"gblocks-unit-control-popover",focusOnMount:!0,noArrow:!1}},(function(e){var a=e.onClose;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.MenuGroup,null,n.map((function(e){return(0,s.createElement)(c.MenuItem,{key:e,onClick:function(){r(e),a()},isSelected:e===t,variant:e===t?"primary":""},e||String.fromCharCode(8212))})),(0,s.createElement)(c.MenuItem,{onClick:function(){window.open("https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units","_blank").focus()},label:(0,p.__)("Learn more about units","generatepress"),showTooltip:!0},Ne("info"))))})))):null}var ai=["px","em","%","rem","vw","vh","ch","cm","mm","in","pt","pc","ex","lh","rlh","vmin","vmax","vb","vi","svw","svh","svb","svi","svmax","svmin","lvw","lvh","lvb","lvi","lvmax","lvmin","dvw","dvh","dvb","dvi","dvmax","dvmin","fr"];function ni(e){var t=e.label,r=e.units,a=void 0===r?[]:r,n=e.defaultUnit,i=void 0===n?"":n,o=e.unitCount,u=void 0===o?7:o,g=e.id,d=e.disabled,f=void 0!==d&&d,p=e.overrideValue,v=void 0===p?null:p,h=e.overrideAction,m=void 0===h?function(){return null}:h,b=e.onChange,S=e.value,w=e.placeholder,O=e.help,C=void 0===O?"":O,E=e.focusOnMount,D=void 0!==E&&E,N=e.onFocus,x=void 0===N?function(){return null}:N,T=a.concat(ai).slice(0,u),I=y((0,l.useState)(""),2),M=I[0],k=I[1],P=y((0,l.useState)(""),2),_=P[0],R=P[1],L=y((0,l.useState)(""),2),A=L[0],j=L[1],F=(0,l.useRef)(!1),B=(0,l.useRef)(!1),V=(0,l.useRef)(!1),H=function(e){var t=ai.join("|"),r=new RegExp("(".concat(t,")"));return e?e.toString().toLowerCase().split(r).filter((function(e){return""!==e})):[]},z=function(e){return e.length>0?e[0].trim():""},G=i||T[0],U=function(e){return e.length>1?e[1]:e.length>0?"":e.length?void 0:G},K=function(e){return/^([-]?\d|[-]?\.)/.test(e)},$=function(){if(!S){var e=H(v||w);j(z(e)),k(U(e))}};return(0,l.useEffect)((function(){var e=v&&f?v:S;if(K(e)){var t=H(e);R(z(t)),k(U(t))}else R(e),k("");$()}),[S,v]),(0,l.useEffect)((function(){if(F.current){var e=!!v&&!!f,t=K(_)?_+M:_;t||(M!==U(H(w))?j(""):$()),e||t===S||b(t)}else F.current=!0}),[_,M]),(0,l.useEffect)((function(){D&&null!=V&&V.current&&V.current.focus()}),[t]),(0,s.createElement)(c.BaseControl,{label:t,help:C,id:g,className:ti()({"gblocks-unit-control":!0,"gblocks-unit-control__disabled":!!f})},(0,s.createElement)("div",{className:"gblocks-unit-control__input",ref:B},(0,s.createElement)(c.TextControl,{type:"text",value:_,placeholder:A,id:g,autoComplete:"off",disabled:f,onChange:function(e){return R(e)},onFocus:function(){x()},ref:V}),(0,s.createElement)("div",{className:"gblocks-unit-control__input--action"},!!m&&(0,s.createElement)("div",{className:"gblocks-unit-control__override-action"},m()," "),(K(_)||!_&&(!A||K(A)))&&(0,s.createElement)(ri,{value:M,disabled:f||1===T.length,units:T,onChange:function(e){return k(e)}}))))}var ii=function(e){var t=e.label,r=e.units,a=e.defaultUnit,n=void 0===a?"":a,i=e.desktopValue,o=e.desktopInitial,u=e.desktopOnChange,g=e.tabletValue,d=e.tabletInitial,f=e.tabletOnChange,p=e.mobileInitial,v=e.mobileValue,h=e.mobileOnChange,m=y((0,l.useState)("desktop"),2),b=m[0],S=m[1];return(0,s.createElement)(c.BaseControl,null,(0,s.createElement)(Qn,{label:t,devices:["desktop","tablet","mobile"],onClick:function(e){return S(e)}}),(0,s.createElement)("div",{className:"generate-component-input-with-unit"},(0,s.createElement)("div",{className:"generate-component-device-field","data-device":"desktop"},(0,s.createElement)(ni,{key:b,units:r,value:i,placeholder:o,onChange:u,defaultUnit:n})),(0,s.createElement)("div",{className:"generate-component-device-field","data-device":"tablet"},(0,s.createElement)(ni,{key:b,units:r,value:g,placeholder:d,onChange:f,defaultUnit:n})),(0,s.createElement)("div",{className:"generate-component-device-field","data-device":"mobile"},(0,s.createElement)(ni,{key:b,units:r,value:v,placeholder:p,onChange:h,defaultUnit:n}))))},oi=function(e){var t=e.font,r=e.onChange;return(0,s.createElement)(ii,{label:(0,p.__)("Font size","generatepress"),desktopValue:t.fontSize,desktopInitial:Bn(t,"fontSize"),desktopOnChange:function(e){r("fontSize",e,t.index)},tabletValue:t.fontSizeTablet,tabletInitial:Bn(t,"fontSizeTablet"),tabletOnChange:function(e){r("fontSizeTablet",e,t.index)},mobileValue:t.fontSizeMobile,mobileInitial:Bn(t,"fontSizeMobile"),mobileOnChange:function(e){r("fontSizeMobile",e,t.index)}})},si=function(e){var t=e.font,r=e.onChange;return(0,s.createElement)(ii,{label:(0,p.__)("Line Height","generatepress"),units:[""],defaultUnit:"em",desktopValue:t.lineHeight,desktopInitial:Bn(t,"lineHeight"),desktopOnChange:function(e){r("lineHeight",e,t.index)},tabletValue:t.lineHeightTablet,tabletInitial:Bn(t,"lineHeightTablet"),tabletOnChange:function(e){r("lineHeightTablet",e,t.index)},mobileValue:t.lineHeightMobile,mobileInitial:Bn(t,"lineHeightMobile"),mobileOnChange:function(e){r("lineHeightMobile",e,t.index)}})},li=function(e){var t=e.font,r=e.onChange;return(0,s.createElement)(ii,{label:(0,p.__)("Letter Spacing","generatepress"),defaultUnit:"em",desktopValue:t.letterSpacing,desktopInitial:Bn(t,"letterSpacing"),desktopOnChange:function(e){r("letterSpacing",e,t.index)},tabletValue:t.letterSpacingTablet,tabletInitial:Bn(t,"letterSpacingTablet"),tabletOnChange:function(e){r("letterSpacingTablet",e,t.index)},mobileValue:t.letterSpacingMobile,mobileInitial:Bn(t,"letterSpacingMobile"),mobileOnChange:function(e){r("letterSpacingMobile",e,t.index)}})},ci=function(e){var t=e.font,r=e.onChange;return(0,s.createElement)(ii,{label:"body"===t.selector?(0,p.__)("Paragraph Bottom Margin","generatepress"):(0,p.__)("Bottom Margin","generatepress"),defaultUnit:"em",desktopValue:t.marginBottom,desktopInitial:Bn(t,"marginBottom"),desktopOnChange:function(e){r("marginBottom",e,t.index)},tabletValue:t.marginBottomTablet,tabletInitial:Bn(t,"marginBottomTablet"),tabletOnChange:function(e){r("marginBottomTablet",e,t.index)},mobileValue:t.marginBottomMobile,mobileInitial:Bn(t,"marginBottomMobile"),mobileOnChange:function(e){r("marginBottomMobile",e,t.index)}})},ui=function(e){var t=e.index,r=e.value,a=e.onChange;return(0,s.createElement)(c.SelectControl,{label:(0,p.__)("Text Decoration","generatepress"),value:r,options:[{value:"",label:(0,p.__)("Default","generatepress")},{value:"none",label:(0,p.__)("None","generatepress")},{value:"underline",label:(0,p.__)("Underline","generatepress")}],onChange:function(e){a("textDecoration",e,t)}})},gi=function(e){var t=e.font,r=e.toggleClose,a=e.onChangeFontValue,n=e.onChangeElement;return(0,s.createElement)("div",{className:"generate-customize-control--font-dropdown"},(0,s.createElement)($n,{index:t.index,value:t.selector,onChange:n}),!!t.selector&&(0,s.createElement)(s.Fragment,null,"custom"===t.selector&&(0,s.createElement)(Wn,{index:t.index,value:t.customSelector,onChange:a}),(0,s.createElement)(qn,{index:t.index,value:t.fontFamily,onChange:a}),(0,s.createElement)("div",{className:"components-base-control generate-font-manager--select-options"},(0,s.createElement)(Jn,{index:t.index,value:t.fontWeight,fontFamily:t.fontFamily,onChange:a}),(0,s.createElement)(Xn,{index:t.index,value:t.textTransform,onChange:a}),(0,s.createElement)(Zn,{index:t.index,value:t.fontStyle,onChange:a}),(0,s.createElement)(ui,{index:t.index,value:t.textDecoration,onChange:a})),(0,s.createElement)(oi,{font:t,onChange:a}),(0,s.createElement)(si,{font:t,onChange:a}),(0,s.createElement)(li,{font:t,onChange:a}),Vn(t.selector)&&(0,s.createElement)(ci,{font:t,onChange:a})),(0,s.createElement)("div",{className:"generate-font-manager--footer"},(0,s.createElement)(c.Button,{isSecondary:!0,isSmall:!0,onClick:r},(0,p.__)("Close","generatepress"))))},di=function(e){var t=e.font,r=e.label,a=e.itemId,n=e.setOpen,i=e.isOpen,o=e.deleteFont,l=e.toggleClose,c=e.onChangeFontValue,u=e.onChangeElement;return(0,s.createElement)("div",{className:"generate-font-manager--item"},(0,s.createElement)("div",{className:"generate-font-manager--header"},(0,s.createElement)(Gn,{font:t,itemId:a,setOpen:n,isOpen:i,label:r}),(0,s.createElement)(Un,{itemId:a,setOpen:n,isOpen:i}),(0,s.createElement)(Kn,{onClick:o.bind(null,t.index),isOpen:i,itemId:a})),a===i&&(0,s.createElement)(gi,{font:t,toggleClose:l,onChangeFontValue:c,onChangeElement:u}))};function fi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}var pi=function(e){var t,r,a=e.fontList,n=("group","other",a.reduce((function(e,t,r){var a=t.group||"other";return t.index=r,e[a]=e[a]||[],e[a].push(t),e}),{}));return t=Hn(),r=function(t,r){var a,i=null!==(a=n[r])&&void 0!==a?a:[];if(0!==i.length)return(0,s.createElement)("div",{className:"generate-font-manager-group",key:r},(0,s.createElement)("h4",{className:"generate-font-manager-group__label"},t),i.map((function(t){return(0,s.createElement)(di,function(e){for(var t=1;t0&&v.push({label:(0,p.__)("Google Fonts","generatepress"),options:Object.keys(Le).map((function(e){return{value:e,label:e}}))}),g.forEach((function(e){var t=e.googleFont&&generateCustomizerControls.showGoogleFonts&&f.length>0?1:0;v[t].options=v[t].options.filter((function(t){return t.value!==e.fontFamily}))})),(0,s.createElement)("div",null,(0,s.createElement)("div",{className:"customize-control-notifications-container",ref:e.setNotificationContainer}),!!g.length>0&&g.map((function(t,n){var l=n+1,d=function(e){var t=Re(g),r=t[n];t[n]=An(An({},t[n]),{},{fontFamily:e}),i(t),void 0!==Le[e]&&generateCustomizerControls.showGoogleFonts?(t[n]=An(An({},t[n]),{},{googleFont:!0,googleFontCategory:Le[e].category,googleFontVariants:Le[e].variants.join(", ")}),i(t)):(t[n]=An(An({},t[n]),{},{googleFont:!1,googleFontCategory:"",googleFontVariants:""}),i(t)),o(t[n].fontFamily,r.fontFamily)},f=g[n].fontFamily||"";return(0,s.createElement)("div",{className:"generate-font-manager--item",key:n},(0,s.createElement)("div",{className:"generate-font-manager--header"},(0,s.createElement)(c.Button,{className:"generate-font-manager--label",onClick:function(){a(l!==r&&l)}},g[n].fontFamily?g[n].fontFamily:e.label),(0,s.createElement)(c.Tooltip,{text:(0,p.__)("Open Font Family Settings","generatepress")},(0,s.createElement)(c.Button,{className:"generate-font-manager--open",onClick:function(){a(l!==r&&l)}},Ne(l===r?"chevron-up":"chevron-down"))),(0,s.createElement)(c.Tooltip,{text:(0,p.__)("Delete Font Family","generatepress")},(0,s.createElement)(c.Button,{className:"generate-font-manager--delete-font",onClick:function(){if(window.confirm((0,p.__)("This will permanently delete this font family. Doing so will stop elements from displaying it as their font.","generatepress"))){var e=Re(g),t=e[n];o("",t.fontFamily),e.splice(n,1),i(e)}}},Ne("trash")))),l===r&&(0,s.createElement)("div",{className:"generate-customize-control--font-dropdown"},(0,s.createElement)(c.BaseControl,{className:"generate-component-font-family-picker-wrapper",id:"generate-font-manager-family-name--input"},(0,s.createElement)(Pn,{options:v,placeholder:(0,p.__)("Search fonts…","generatepress"),onChange:function(e){return d(e.value)}}),(0,s.createElement)(c.TextControl,{id:"generate-font-manager-family-name--input",className:"generate-font-manager-family-name--input",label:(0,p.__)("Font family name","generatepress"),value:f,onChange:function(e){var t;t=e,g.filter((function(e){return e.fontFamily===t})).length>0&&(alert((0,p.__)("Font already selected","generatepress")),e=""),d(e)}}),!!g[n].fontFamily&&!!generateCustomizerControls.showGoogleFonts&&(0,s.createElement)("div",{className:"generate-font-manager--options"},(0,s.createElement)(c.ToggleControl,{className:"generate-font-manager-google-font--field",label:(0,p.__)("Use Google Fonts API","generatepress"),checked:!!g[n].googleFont,onChange:function(e){var t=Re(g);t[n]=An(An({},t[n]),{},{googleFont:e}),i(t)}}),!!g[n].googleFont&&(0,s.createElement)("div",{className:"generate-font-manager--google-font-options"},(0,s.createElement)(c.TextControl,{label:(0,p.__)("Category","generatepress"),value:g[n].googleFontCategory||"",onChange:function(e){var t=Re(g);t[n]=An(An({},t[n]),{},{googleFontCategory:e}),i(t)}}),(0,s.createElement)(c.TextControl,{label:(0,p.__)("Variants","generatepress"),value:g[n].googleFontVariants||"",onChange:function(e){var t=Re(g);t[n]=An(An({},t[n]),{},{googleFontVariants:e}),i(t)}}))),(0,s.createElement)("div",{className:"generate-font-manager--footer"},(0,s.createElement)(c.Button,{isSecondary:!0,isSmall:!0,onClick:u},(0,p.__)("Close","generatepress"))))))})),(0,s.createElement)(c.Button,{isPrimary:!0,onClick:function(){var t=Re(e.value);t.push({fontFamily:"",googleFont:!1,googleFontApi:1,googleFontCategory:"",googleFontVariants:""}),i(t);var r=wp.customize.control(e.customizerSetting.id).setting.get().length;a(r)}},(0,p.__)("Add Font","generatepress")))})),bi=f.extend((function(e){var t=e.value,r=y((0,l.useState)([]),2),a=r[0],i=r[1],o=y((0,l.useState)(0),2),u=o[0],g=o[1],d=y((0,l.useState)(!1),2),f=d[0],v=d[1];(0,l.useEffect)((function(){var e=[];Array.isArray(t)?e=t:"object"===n(t)&&(e=Object.values(t)),i(e),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!1;e.forEach((function(r,a){var n=function(e){var t={};return["fontSize","lineHeight","letterSpacing","marginBottom"].forEach((function(r){var a=e[r+"Unit"]||"";["","Tablet","Mobile"].forEach((function(n){var i=r+n;"number"==typeof e[i]&&(t[i]=String(e[i]+a))})),a&&(t[r+"Unit"]="")})),t}(r);(0,vi.isEmpty)(n)||(e[a]=yi(yi({},e[a]),n),t=!0)})),t&&i(e)}(e)}),[]),(0,l.useEffect)((function(){var t=f?"refresh":"postMessage";wp.customize.control(e.customizerSetting.id).setting.transport=t,wp.customize.control(e.customizerSetting.id).setting.set(a)}),[a]);var h=function(e){v(!0),i(e)};return(0,s.createElement)("div",null,(0,s.createElement)("div",{className:"customize-control-notifications-container",ref:e.setNotificationContainer}),(0,s.createElement)(pi,{fontList:a,setOpen:g,isOpen:u,label:e.label,deleteFont:function(e){var t=Re(a);t.splice(e,1),h(t)},toggleClose:function(){return g(0)},onChangeFontValue:function(e,t,r){var n=Re(a);n[r]=yi({},n[r]),n[r][e]=t,h(n)},onChangeElement:function(e,t){var r=e.value,n=e.group,i=e.module,o=Re(a);o[t]=yi(yi({},o[t]),{},{selector:r,module:i,group:n}),Vn(r)||(o[t]=yi(yi({},o[t]),{},{marginBottom:"",marginBottomTablet:"",marginBottomMobile:"",marginBottomUnit:""})),h(o)}}),(0,s.createElement)(c.Button,{isPrimary:!0,onClick:function(){var t=Re(e.value);t.push({selector:"",customSelector:"",fontFamily:"",fontWeight:"",textTransform:"",textDecoration:"",fontStyle:"",fontSize:"",fontSizeTablet:"",fontSizeMobile:"",lineHeight:"",lineHeightTablet:"",lineHeightMobile:"",letterSpacing:"",letterSpacingTablet:"",letterSpacingMobile:""}),h(t),g(t.length)}},(0,p.__)("Add Typography","generatepress")))}));function Si(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function wi(e){for(var t=1;t=0;a--)if(t.canDragSource(e[a])){r=e[a];break}return r}(t,o);if(null==l)return void e.dispatch(Ki);let c=null;if(n){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Ai("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(l)}e.dispatch(Ui(n,c));const u=s.getSource(l).beginDrag(o,l);if(null==u)return;!function(e){Ai(ji(e),"Item must be an object.")}(u),s.pinSource(l);const g=s.getSourceType(l);return{type:Bi,payload:{itemType:g,item:u,sourceId:l,clientOffset:n||null,sourceClientOffset:c||null,isSourcePublic:!!a}}}}function Wi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qi(e){for(var t=1;t{const o=function(e,t,r,a){const n=r.getTarget(e);let i=n?n.drop(a,e):void 0;return function(e){Ai(void 0===e||ji(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:a.getDropResult()),i}(n,i,a,r),s={type:zi,payload:{dropResult:qi({},t,o)}};e.dispatch(s)}))}}function Ji(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){Ai(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const a=t.getSourceId();return null!=a&&(r.getSource(a,!0).endDrag(t,a),r.unpinSource()),{type:Gi}}}function Xi(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function Zi(e){return function(t,{clientOffset:r}={}){!function(e){Ai(Array.isArray(e),"Expected targetIds to be an array.")}(t);const a=t.slice(0),n=e.getMonitor(),i=e.getRegistry();return function(e,t,r){for(let a=e.length-1;a>=0;a--){const n=e[a];Xi(t.getTargetType(n),r)||e.splice(a,1)}}(a,i,n.getItemType()),function(e,t,r){Ai(t.isDragging(),"Cannot call hover while not dragging."),Ai(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t{const i=r[n];var o;return a[n]=(o=i,(...r)=>{const a=o.apply(e,r);void 0!==a&&t(a)}),a}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function to(e,t){return{x:e.x-t.x,y:e.y-t.y}}const ro=[],ao=[];ro.__IS_NONE__=!0,ao.__IS_ALL__=!0;class no{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;Ai("function"==typeof e,"listener must be a function."),Ai(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),n=t.stateId;try{const i=n===a||n===a+1&&!function(e,t){if(e===ro)return!1;if(e===ao||void 0===t)return!0;const r=(a=e,t.filter((e=>a.indexOf(e)>-1)));var a;return r.length>0}(t.dirtyHandlerIds,r);i||e()}finally{a=n}}))}subscribeToOffsetChange(e){Ai("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Ai(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return Ai(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(Xi(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return Ai(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const a=this.registry.getTargetType(e),n=this.getItemType();if(n&&!Xi(a,n))return!1;const i=this.getTargetIds();if(!i.length)return!1;const o=i.indexOf(e);return r?o===i.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:a}=e;return t&&r&&a?to(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,a),r):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?to(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const io="undefined"!=typeof global?global:self,oo=io.MutationObserver||io.WebKitMutationObserver;function so(e){return function(){const t=setTimeout(a,0),r=setInterval(a,50);function a(){clearTimeout(t),clearInterval(r),e()}}}const lo="function"==typeof oo?function(e){let t=1;const r=new oo(e),a=document.createTextNode("");return r.observe(a,{characterData:!0}),function(){t=-t,a.data=t}}:so;class co{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const uo=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let t=0,r=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=lo(this.flush),this.requestErrorThrow=so((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},go=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new co(this.onError,(e=>t[t.length]=e));return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(uo.registerPendingError),fo="dnd-core/ADD_SOURCE",po="dnd-core/ADD_TARGET",vo="dnd-core/REMOVE_SOURCE",ho="dnd-core/REMOVE_TARGET";function yo(e,t){t&&Array.isArray(e)?e.forEach((e=>yo(e,!1))):Ai("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var mo;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(mo||(mo={}));let bo=0;function So(e){switch(e[0]){case"S":return mo.SOURCE;case"T":return mo.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function wo(e,t){const r=e.entries();let a=!1;do{const{done:e,value:[,n]}=r.next();if(n===t)return!0;a=!!e}while(!a);return!1}class Oo{addSource(e,t){yo(e),function(e){Ai("function"==typeof e.canDrag,"Expected canDrag to be a function."),Ai("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Ai("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(mo.SOURCE,e,t);return this.store.dispatch(function(e){return{type:fo,payload:{sourceId:e}}}(r)),r}addTarget(e,t){yo(e,!0),function(e){Ai("function"==typeof e.canDrop,"Expected canDrop to be a function."),Ai("function"==typeof e.hover,"Expected hover to be a function."),Ai("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(mo.TARGET,e,t);return this.store.dispatch(function(e){return{type:po,payload:{targetId:e}}}(r)),r}containsHandler(e){return wo(this.dragSources,e)||wo(this.dropTargets,e)}getSource(e,t=!1){return Ai(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ai(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ai(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ai(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return So(e)===mo.SOURCE}isTargetId(e){return So(e)===mo.TARGET}removeSource(e){var t;Ai(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:vo,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},uo.enqueueTask(go.create(t))}removeTarget(e){Ai(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:ho,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ai(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ai(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const a=function(e){const t=(bo++).toString();switch(e){case mo.SOURCE:return`S${t}`;case mo.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(a,t),e===mo.SOURCE?this.dragSources.set(a,r):e===mo.TARGET&&this.dropTargets.set(a,r),a}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Co=(e,t)=>e===t;function Eo(e=ro,t){switch(t.type){case Hi:break;case fo:case po:case ho:case vo:return ro;default:return ao}const{targetIds:r=[],prevTargetIds:a=[]}=t.payload,n=function(e,t){const r=new Map,a=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(a),t.forEach(a);const n=[];return r.forEach(((e,t)=>{1===e&&n.push(t)})),n}(r,a),i=n.length>0||!function(e,t,r=Co){if(e.length!==t.length)return!1;for(let a=0;ae!==n)))});case zi:return Io({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Gi:return Io({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var a,n}function Po(e=0,t){switch(t.type){case fo:case po:return e+1;case vo:case ho:return e-1;default:return e}}function _o(e=0){return e+1}function Ro(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lo(e){for(var t=1;te&&e[t]?e[t]:a||null),r))})}),dragOffset:xo(e.dragOffset,t),refCount:Po(e.refCount,t),dragOperation:ko(e.dragOperation,t),stateId:_o(e.stateId)};var r,a}function jo(e,t=void 0,r={},a=!1){const n=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Li(Ao,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(a),i=new no(n,new Oo(n)),o=new eo(n,i),s=e(o,t,r);return o.receiveBackend(s),o}const Fo=(0,s.createContext)({dragDropManager:void 0});let Bo=0;const Vo=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Ho=(0,s.memo)((function(e){var{children:t}=e,r=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},i=Object.keys(e);for(a=0;a=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["children"]);const[a,n]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=function(e,t=zo(),r,a){const n=t;return n[Vo]||(n[Vo]={dragDropManager:jo(e,t,r,a)}),n[Vo]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(r);return(0,s.useEffect)((()=>{if(n){const e=zo();return++Bo,()=>{0==--Bo&&(e[Vo]=null)}}}),[]),(0,Mi.jsx)(Fo.Provider,{value:a,children:t})}));function zo(){return"undefined"!=typeof global?global:window}function Go(e){let t=null;return()=>(null==t&&(t=e()),t)}class Uo{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,a=e=>r.add(e);e.forEach(a),t.forEach(a);const n=[];return r.forEach((e=>n.push(e))),n}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,a;return this.entered=(r=this.entered.filter(this.isNodeInDocument),a=e,r.filter((e=>e!==a))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Ko{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((r=>{const a=this.config.exposeProperties[r];null!=a&&(t[r]={value:a(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const $o="__NATIVE_FILE__",Wo="__NATIVE_URL__",qo="__NATIVE_TEXT__",Yo="__NATIVE_HTML__";function Jo(e,t,r){const a=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=a?a:r}const Xo={[$o]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Yo]:{exposeProperties:{html:(e,t)=>Jo(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Wo]:{exposeProperties:{urls:(e,t)=>Jo(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[qo]:{exposeProperties:{text:(e,t)=>Jo(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Zo(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Xo).filter((e=>{const r=Xo[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const Qo=Go((()=>/firefox/i.test(navigator.userAgent))),es=Go((()=>Boolean(window.safari)));class ts{interpolate(e){const{xs:t,ys:r,c1s:a,c2s:n,c3s:i}=this;let o=t.length-1;if(e===t[o])return r[o];let s,l=0,c=i.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const a=t[s];if(ae))return r[s];c=s-1}}o=Math.max(0,c);const u=e-t[o],g=u*u;return r[o]+a[o]*u+n[o]*g+i[o]*u*g}constructor(e,t){const{length:r}=e,a=[];for(let e=0;ee[t]{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const a=t=>this.handleDragStart(t,e),n=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",a),t.addEventListener("selectstart",n),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",a),t.removeEventListener("selectstart",n),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),a=t=>this.handleDragOver(t,e),n=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",a),t.addEventListener("drop",n),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",a),t.removeEventListener("drop",n)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return ss({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return ss({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(a).some((t=>a[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=Xo[e];if(!r)throw new Error(`native type ${e} has no configuration`);const a=new Ko(r);return a.loadDataTransfer(t),a}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&as(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=ns(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:a}=e,n=Zo(a);if(this.monitor.isDragging()){if(a&&"function"==typeof a.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),n=this.sourcePreviewNodes.get(e)||t;if(n){const{anchorX:e,anchorY:i,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,r,a,n){const i=function(e){var t;return"IMG"===e.nodeName&&(Qo()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),o=as(i?e:t),s={x:r.x-o.x,y:r.y-o.y},{offsetWidth:l,offsetHeight:c}=e,{anchorX:u,anchorY:g}=a,{dragPreviewWidth:d,dragPreviewHeight:f}=function(e,t,r,a){let n=e?t.width:r,i=e?t.height:a;return es()&&e&&(i/=window.devicePixelRatio,n/=window.devicePixelRatio),{dragPreviewWidth:n,dragPreviewHeight:i}}(i,t,l,c),{offsetX:p,offsetY:v}=n,h=0===v||v;return{x:0===p||p?p:new ts([0,.5,1],[s.x,s.x/l*d,s.x+d-l]).interpolate(u),y:h?v:(()=>{let e=new ts([0,.5,1],[s.y,s.y/c*f,s.y+f-c]).interpolate(g);return es()&&i&&(e+=(window.devicePixelRatio-1)*f),e})()}}(t,n,r,{anchorX:e,anchorY:i},{offsetX:o,offsetY:s});a.setDragImage(n,l.x,l.y)}}try{null==a||a.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(n)this.beginDragNativeItem(n);else{if(a&&!a.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,a=Zo(r);a&&this.beginDragNativeItem(a,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:ns(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=ns(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Zo(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:ns(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new is(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Uo(this.isNodeInDocument)}}const cs=function(e,t,r){return new ls(e,t,r)};var us=r(144);const gs="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;function ds(e,t,r){return function(e,t,r){const[a,n]=function(e,t,r){const[a,n]=(0,s.useState)((()=>t(e))),i=(0,s.useCallback)((()=>{const i=t(e);us(a,i)||(n(i),r&&r())}),[a,e,r]);return gs(i),[a,i]}(e,t,r);return gs((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(n,{handlerIds:[t]})}),[e,n]),a}(t,e||(()=>({})),(()=>r.reconnect()))}function fs(e,t){const r=[...t||[]];return null==t&&"function"!=typeof e&&r.push(e),(0,s.useMemo)((()=>"function"==typeof e?e():e),r)}function ps(e){return(0,s.useMemo)((()=>e.hooks.dropTarget()),[e])}function vs(e,t,r,a){let n=r?r.call(a,e,t):void 0;if(void 0!==n)return!!n;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o{const a=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=function(e){return(t=null,r=null)=>{if(!(0,s.isValidElement)(t)){const a=t;return e(a,r),a}const a=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a
, or turn it into a drag source or a drop target itself.`)}(a);const n=r?t=>e(t,r):e;return function(e,t){const r=e.ref;return Ai("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,s.cloneElement)(e,{ref:e=>{ms(r,e),ms(t,e)}}):(0,s.cloneElement)(e,{ref:t})}(a,n)}}(a);t[r]=()=>e}})),t}function ms(e,t){"function"==typeof e?e(t):e.current=t}class bs{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!vs(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=ys({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,hs(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Ss(){const{dragDropManager:e}=(0,s.useContext)(Fo);return Ai(null!=e,"Expected drag drop context"),e}let ws=!1;class Os{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ai(!ws,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return ws=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ws=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}class Cs{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function Es(e,t){const r=fs(e,t),a=function(){const e=Ss();return(0,s.useMemo)((()=>new Os(e)),[e])}(),n=function(e){const t=Ss(),r=(0,s.useMemo)((()=>new bs(t.getBackend())),[t]);return gs((()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget())),[e]),r}(r.options);return function(e,t,r){const a=Ss(),n=function(e,t){const r=(0,s.useMemo)((()=>new Cs(e,t)),[t]);return(0,s.useEffect)((()=>{r.spec=e}),[e]),r}(e,t),i=function(e){const{accept:t}=e;return(0,s.useMemo)((()=>(Ai(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);gs((function(){const[e,o]=function(e,t,r){const a=r.getRegistry(),n=a.addTarget(e,t);return[n,()=>a.removeTarget(n)]}(i,n,a);return t.receiveHandlerId(e),r.receiveHandlerId(e),o}),[a,t,n,r,i.map((e=>e.toString())).join("|")])}(r,a,n),[ds(r.collect,a,n),ps(n)]}function Ds(e){return(0,s.useMemo)((()=>e.hooks.dragSource()),[e])}function Ns(e){return(0,s.useMemo)((()=>e.hooks.dragPreview()),[e])}class xs{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!vs(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!vs(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=ys({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,hs(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,hs(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}let Ts=!1,Is=!1;class Ms{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ai(!Ts,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ts=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ts=!1}}isDragging(){if(!this.sourceId)return!1;Ai(!Is,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Is=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Is=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}class ks{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,a=this.monitor,{isDragging:n}=r;return n?n(a):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:a}=e;a&&a(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function Ps(e,t){const r=fs(e,t);Ai(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const a=function(){const e=Ss();return(0,s.useMemo)((()=>new Ms(e)),[e])}(),n=function(e,t){const r=Ss(),a=(0,s.useMemo)((()=>new xs(r.getBackend())),[r]);return gs((()=>(a.dragSourceOptions=e||null,a.reconnect(),()=>a.disconnectDragSource())),[a,e]),gs((()=>(a.dragPreviewOptions=t||null,a.reconnect(),()=>a.disconnectDragPreview())),[a,t]),a}(r.options,r.previewOptions);return function(e,t,r){const a=Ss(),n=function(e,t,r){const a=(0,s.useMemo)((()=>new ks(e,t,r)),[t,r]);return(0,s.useEffect)((()=>{a.spec=e}),[e]),a}(e,t,r),i=function(e){return(0,s.useMemo)((()=>{const t=e.type;return Ai(null!=t,"spec.type must be defined"),t}),[e])}(e);gs((function(){if(null!=i){const[e,o]=function(e,t,r){const a=r.getRegistry(),n=a.addSource(e,t);return[n,()=>a.removeSource(n)]}(i,n,a);return t.receiveHandlerId(e),r.receiveHandlerId(e),o}}),[a,t,r,n,i])}(r,a,n),[ds(r.collect,a,n),Ds(n),Ns(n)]}function _s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Rs(e){var t=e.id,r=e.itemType,a=e.onDrop,n=e.getIndex,i=e.className,l=e.innerComponentProps,c=e.InnerComponent,u=y(Ps((function(){return{type:r,item:{id:t},collect:function(e){return{isDragging:e.isDragging()}}}}),[t]),2),g=u[0].isDragging,d=u[1],f=Es((function(){return{accept:r,hover:function(e){var r=e.id;if(r!==t){var i=n(t);a(r,i)}}}}),[n,a]),p=y(f,2)[1],v=g?"0.2":1;return(0,s.createElement)("div",{ref:function(e){return d(p(e))},className:i,style:{opacity:v}},c&&(0,s.createElement)(c,function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return r({type:"ADD_COLOR",payload:Object.assign({},Oi,{slug:e,color:t})})},deleteColor:function(e){return r({type:"DELETE_COLOR",payload:e})},updateColorValue:function(e,t){return r({type:"UPDATE_COLOR_VALUE",payload:{slug:e,value:t}})},updateColorSlug:function(e,t){return r({type:"UPDATE_COLOR_SLUG",payload:{slug:e,value:t}})}}}(),r=t.colors,a=t.setColors,n=t.addColor,i=t.deleteColor,o=t.updateColorValue,c=t.updateColorSlug,u=y((0,l.useState)(!1),2),g=u[0],d=u[1],f=y((0,l.useState)(!1),2),v=f[0],h=f[1],m=y((0,l.useState)([]),2),b=m[0],S=m[1];(0,l.useEffect)((function(){var t=(0,vi.isObject)(e.value)?Object.values(e.value):e.value;a(t),d(!0)}),[]),(0,l.useEffect)((function(){var t,a;g&&(a=[],(t=r).length>0&&t.forEach((function(e){a.push({name:e.slug,slug:e.slug,color:"var(--"+e.slug+")"})})),window.sessionStorage.setItem("generateGlobalColors",JSON.stringify(a)),function(t){wp.customize.control(e.customizerSetting.id).setting.set(t);var r=":root {";t.length>0&&t.forEach((function(e){var t=e.slug.replace(" ","-").toLowerCase();r+="--"+t+": "+e.color+";"})),r+="}";var a=document.getElementById("generate-global-color-styles");a?a.innerHTML=r:document.body.insertAdjacentHTML("beforeend",'")}(r))}),[JSON.stringify(r),g]);var w=(0,l.useCallback)((function(){n(function e(t){var a="global-color-".concat(t+1);return-1===(0,vi.findIndex)(r,{slug:a})?a:e(t+1)}(r.length))}),[r.length]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"customize-control-notifications-container",ref:e.setNotificationContainer}),(0,s.createElement)("div",{className:"generate-color-manager-wrapper"},(0,s.createElement)("div",{className:"generate-color-manager--item"},(0,s.createElement)(xi,{onClick:w,disabled:v})),(0,s.createElement)("div",{className:"generate-color-manager--item"},(0,s.createElement)(Di,{id:"add-color",icon:v?"check":"reorder",text:v?(0,p.__)("Finish re-ordering","generatepress"):(0,p.__)("Re-order colors","generatepress"),onClick:function(e){e.preventDefault(),v&&(a(b),window.sessionStorage.setItem("generateGlobalColors",JSON.stringify(b))),h(!v)}}))),v?(0,s.createElement)(As,{listData:r,idKey:"slug",listClassName:"generate-color-manager-dnd-list",itemClassName:"generate-color-manager-dnd-list-item",InnerComponent:js,onChangeData:S}):(0,s.createElement)(Ii,{colors:r,onChangeColor:o,onChangeSlug:c,onClickDeleteColor:i}))}));wp.customize.controlConstructor["generate-color-manager-control"]=Fs;var Bs=function(e){var t=y((0,l.useState)(!1),2),r=t[0],a=t[1],n=function(){e.choices.sectionRedirect?wp.customize.section(e.choices.toggleId).focus():document.querySelectorAll('[data-toggleId="'+e.choices.toggleId+'"]').forEach((function(e){r?(e.style.display="",a(!1)):(e.style.display="block",a(!0))}))},i=e.choices.tooltipText?e.choices.tooltipText:(0,p.sprintf)((0,p.__)("Open %s Settings","generatepress"),e.choices.title),o=e.choices.sectionRedirect?"chevron-right":"chevron-down";return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"generate-customize-control-title"},!!e.choices.toggleId&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.Tooltip,{text:i},(0,s.createElement)(c.Button,{className:"generate-customize-control-title--label",onClick:n},e.choices.title)),(0,s.createElement)(c.Tooltip,{text:i},(0,s.createElement)(c.Button,{className:"generate-customize-control-title--toggle",onClick:n},Ne(r?"chevron-up":o)))),!e.choices.toggleId&&(0,s.createElement)("h3",null,e.choices.title)))};function Vs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Hs(e){for(var t=1;t=i)&&Object.keys(a.O).every((function(e){return a.O[e](r[l])}))?r.splice(l--,1):(s=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,n,i]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={652:0,32:0};a.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,i,o=r[0],s=r[1],l=r[2],c=0;if(o.some((function(t){return 0!==e[t]}))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(l)var u=l(a)}for(t&&t(r);c array('react', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'dbc22cbe57941af36094'); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/dashboard.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/dashboard.js deleted file mode 100644 index cb641405..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/dashboard.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var e,t={336:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t,r){return a=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==n(a)?a:String(a))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var a}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"generatepress-dashboard__section-title"},(0,i.createElement)("h2",null,(0,l.__)("Start Customizing","generatepress"))),(0,i.createElement)("div",{className:"generatepress-dashboard__section"},Object.keys(n).map((function(e,t){return(0,i.createElement)("div",{className:"generatepress-dashboard__section-item",key:t},(0,i.createElement)("div",{className:"generatepress-dashboard__section-item-content"},!!n[e].title&&(0,i.createElement)("div",{className:"generatepress-dashboard__section-item-title"},n[e].title),!!n[e].description&&(0,i.createElement)("div",{className:"generatepress-dashboard__section-item-description"},n[e].description)),(0,i.createElement)("div",{className:"generatepress-dashboard__section-item-action"},(0,p.applyFilters)("generate_dashboard_customize_item_action",function(e){var t={className:"components-button is-primary",href:n[e].action.url,target:n[e].action.external?"_blank":null,rel:n[e].action.external?"noreferrer noopener":null};return(0,i.createElement)(i.Fragment,null,!!n[e].action&&(0,i.createElement)("a",function(e){for(var t=1;t0&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"generatepress-dashboard__section-title"},(0,i.createElement)("h2",null,(0,l.__)("GeneratePress Premium","generatepress"))),(0,i.createElement)("div",{className:"generatepress-dashboard__section-description"},(0,i.createElement)("p",null,(0,l.__)("Take GeneratePress to the next level with more options, professionally designed starter sites, and block-based theme building.","generatepress"))),(0,i.createElement)("div",{className:"generatepress-dashboard__section generatepress-dashboard__premium"},Object.keys(h).map((function(e,t){var r={className:"components-button is-primary",href:h[e].action.url,target:h[e].action.external?"_blank":null,rel:h[e].action.external?"noreferrer noopener":null};return(0,i.createElement)("div",{className:"generatepress-dashboard__premium-item",key:t},(0,i.createElement)("div",{className:"generatepress-dashboard__premium-item-content"},!!h[e].icon&&(0,i.createElement)("div",{className:"generatepress-dashboard__premium-item-icon"},h[e].icon),!!h[e].title&&(0,i.createElement)("div",{className:"generatepress-dashboard__premium-item-title"},h[e].title),!!h[e].description&&(0,i.createElement)("div",{className:"generatepress-dashboard__premium-item-description"},h[e].description)),(0,i.createElement)("div",{className:"generatepress-dashboard__premium-item-action"},!!h[e].action&&(0,i.createElement)("a",function(e){for(var t=1;t=o)&&Object.keys(n.O).every((function(e){return n.O[e](r[l])}))?r.splice(l--,1):(i=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,a,o]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={972:0,280:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var a,o,s=r[0],i=r[1],l=r[2],c=0;if(s.some((function(t){return 0!==e[t]}))){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(l)var u=l(n)}for(t&&t(r);c array(), 'version' => 'b4d4871691423abff87b'); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/modal.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/modal.js deleted file mode 100644 index aeab7f9c..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/modal.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&t[0].focus(),0===t.length&&e[0].focus()}}(),setTimeout((function(){return i.classList.remove("gp-modal--transition")}),100)}function d(){i.classList.add("gp-modal--transition"),i.removeEventListener("touchstart",f),i.removeEventListener("click",f),document.removeEventListener("keydown",g),u("enable"),l&&l.focus&&l.focus(),i.classList.remove(s.openClass),setTimeout((function(){return i.classList.remove("gp-modal--transition")}),500)}function u(e){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}function f(e){(e.target.hasAttribute(s.closeTrigger)||e.target.parentNode.hasAttribute(s.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),d())}function g(e){27===e.keyCode&&d(),9===e.keyCode&&function(e){var t=v();if(0!==t.length){var n=(t=t.filter((function(e){return null!==e.offsetParent}))).indexOf(document.activeElement);e.shiftKey&&0===n&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&n===t.length-1&&(t[0].focus(),e.preventDefault())}}(e)}function v(){var e=i.querySelectorAll(["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])']);return Array.apply(void 0,t(e))}},r=Object.assign({},{openTrigger:"data-gpmodal-trigger"}),o=t(document.querySelectorAll("[".concat(r.openTrigger,"]"))).reduce((function(e,t){var n=t.attributes[r.openTrigger].value;return e[n]=e[n]||[],e[n].push(t),e}),[]);for(var a in o){var i=o[a];r.targetModal=a,r.triggers=t(i),new n(r)}}(); \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/style-customizer.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/style-customizer.css deleted file mode 100644 index eff84e84..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/style-customizer.css +++ /dev/null @@ -1,9 +0,0 @@ -.components-base-control__help{margin-bottom:0;margin-top:2px}.components-base-control__label{display:block;margin-bottom:10px}.generate-customize-control-wrapper{display:flex}.generate-customize-control-wrapper[data-wrapper-type=color]>div:first-child{flex-grow:1}.generate-customize-control-wrapper[data-wrapper-type=color]>div:not(:first-child):not(:empty){margin-left:5px}.generate-customize-control-wrapper[data-wrapper-type=two-col]>div{flex-basis:calc(50% - 5px)}.generate-customize-control-wrapper[data-wrapper-type=two-col]>div:nth-child(odd){margin-right:5px}.generate-customize-control-wrapper[data-wrapper-type=two-col]>div:nth-child(2n){margin-left:5px}.generate-customize-control--popover>.components-popover__content{box-sizing:border-box;padding:15px;width:280px}.generate-customize-control--popover .components-base-control:not(:last-child){margin-bottom:15px}.customize-control[data-toggleid]{display:none}#customize-control-generate_settings-google_font_display{display:flex;flex-direction:column;margin-top:10px}#customize-control-generate_settings-google_font_display .description{margin-bottom:0;margin-top:5px;order:10} -.generate-component-color-picker{padding:5px 15px 5px 5px} -.generate-component-color-picker .components-color-picker{box-sizing:border-box}.generate-component-color-picker .components-color-picker__inputs-wrapper{display:none}.generate-component-color-picker .react-colorful{width:100%!important}.generate-component-color-picker .react-colorful .react-colorful__pointer{height:20px;width:20px}.generate-component-color-picker .react-colorful .react-colorful__saturation{height:150px}.generate-component-color-picker .generate-color-input-wrapper{display:flex;padding:0}.generate-component-color-picker .generate-color-input-wrapper .generate-color-input{flex-grow:1}.generate-component-color-picker .generate-color-input-wrapper .components-color-clear-color{margin-left:5px}.generate-component-color-picker .generate-color-input-wrapper input{margin-right:5px}.generate-component-color-picker .generate-color-input-wrapper .components-base-control__field,.generate-component-color-picker>.components-base-control:first-child{margin-bottom:0}.generate-component-color-picker .components-color-picker__inputs-wrapper{min-width:auto}.generate-component-color-picker .generate-component-color-picker-palette{padding:16px 0 0}.generate-component-color-picker .generate-component-color-picker-palette .components-circular-option-picker{display:flex;flex-wrap:wrap}.generate-component-color-picker .generate-component-color-picker-palette .components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:6px}.generate-component-color-picker .components-color-palette,.generate-component-color-picker .generate-component-color-picker-palette .components-circular-option-picker .components-circular-option-picker__swatches .components-circular-option-picker__option-wrapper{margin:0}.generate-component-color-picker .components-color-picker{padding:5px;width:100%}.generate-component-color-picker .components-color-picker__body{padding-bottom:0}.generate-component-color-picker .components-popover__content{box-sizing:border-box;padding:10px;width:295px}.generate-component-color-picker .components-color-clear-color{height:auto}.generate-component-color-picker .components-circular-option-picker__option.is-pressed+svg{fill:#fff;background:#000;transform:scale(.6)}@media screen and (max-width:1666px){.generate-component-color-picker .components-popover__content{width:265px}}.generate-customize-control-wrapper{display:flex}.generate-customize-control-wrapper.generate-customize-color-control-wrapper>div:first-child{flex-grow:1}.generate-customize-control-wrapper.generate-customize-color-control-wrapper>div:not(:last-child){margin-right:5px}.generate-component-color-picker-wrapper>.components-base-control__field{align-items:center;display:flex;justify-content:space-between;position:relative}.generate-component-color-picker-wrapper>.components-base-control__field .components-color-palette__item-wrapper{margin:0}.generate-color-picker-area button,.generate-component-color-picker-palette button{height:28px;position:relative;width:28px}.generate-color-picker-area button:hover,.generate-component-color-picker-palette button:hover{background-color:inherit}.generate-color-picker-area button:focus:after,.generate-component-color-picker-palette button:focus:after{border:0;box-shadow:inset 0 0 0 2px #757575;height:28px;left:0;top:0;transform:none;width:28px}.generate-customize-control--popover .components-color-picker{box-sizing:border-box}.generate-customize-control--popover .components-color-picker__inputs-wrapper{display:none}.generate-customize-control--popover>.components-base-control:first-child{margin-bottom:0}.generate-customize-control--popover .components-color-picker__inputs-wrapper{min-width:auto}.generate-customize-control--popover .components-color-picker{padding:5px}.generate-customize-control--popover .components-color-picker__body{padding-bottom:0}.generate-customize-control--popover .components-color-clear-color{height:auto}.generate-component-color-picker[data-x-axis=left] .components-popover__content{margin-right:-35px!important}.generate-color-input--icon{align-items:center;border:1px solid;border-bottom-left-radius:3px;border-right:0;border-top-left-radius:3px;display:flex;justify-content:center;padding:5px}.generate-color-input--icon svg{height:1em;transform:scale(1.3);width:1em}.generate-color-option-area{padding:16px 0 0}.generate-color-input--css-var-name-wrapper{position:relative}.generate-color-input--css-var-name-wrapper button{bottom:0;height:auto;min-height:30px;padding:0 8px;position:absolute;right:0}.generate-color-input--css-var-name-wrapper button svg{fill:none;height:1em;width:1em} -.generate-font-manager--item{margin-bottom:10px}.generate-font-manager--item .generate-font-manager--header{align-items:center;display:flex}.generate-font-manager--item .generate-font-manager--header .generate-font-manager--label{flex-grow:1;overflow:hidden;padding-left:0;text-overflow:ellipsis;white-space:nowrap}.generate-font-manager--item .generate-font-manager--header .components-button:not(.generate-font-manager--label){align-items:center;background:#fff;border:1px solid #777;border-radius:100%;display:flex;flex-shrink:0;height:30px;justify-content:center;margin-left:5px;min-width:30px;padding:0;width:30px}.generate-font-manager--item .generate-font-manager--header .components-button:not(.generate-font-manager--label) svg{height:1em;margin-right:0;width:1em}.generate-font-manager--item .generate-font-manager--header .components-button:not(.generate-font-manager--label).generate-font-manager--open svg{fill:none}.generate-font-manager--item .generate-font-manager--options{margin-top:15px}.generate-font-manager--item .generate-font-manager--footer{border-top:1px solid #ddd;margin-top:15px;padding-top:15px}.generate-font-manager--item .generate-font-manager-google-font--field{margin-top:10px}.generate-font-manager--item .generate-font-manager--google-font-options{display:flex;flex-wrap:wrap;margin-top:15px}.generate-font-manager--item .generate-font-manager--google-font-options>div{flex-basis:calc(50% - 10px);margin-bottom:0}.generate-font-manager--item .generate-font-manager--google-font-options>div:nth-child(2n){margin-left:5px}.generate-font-manager--item .generate-font-manager--google-font-options>div:nth-child(odd){margin-right:5px}.generate-font-manager--item .generate-font-manager--google-font-options .components-base-control__field{margin-bottom:0!important}.generate-font-manager--item .generate-font-manager--select-options{display:flex;flex-wrap:wrap}.generate-font-manager--item .generate-font-manager--select-options>div{flex-basis:calc(50% - 5px)}.generate-font-manager--item .generate-font-manager--select-options>div:nth-child(2n){margin-left:5px}.generate-font-manager--item .generate-font-manager--select-options>div:nth-child(odd){margin-right:5px}.generate-font-manager--item .components-select-control__input--generate-fontfamily{margin-bottom:3px}.generate-font-manager--item .generate-advanced-select__menu{position:relative!important}.generate-font-manager-group{margin-bottom:20px;margin-top:10px}.generate-font-manager-group__label{color:#000;font-size:11px;margin-bottom:10px;margin-top:0;text-transform:uppercase}.generate-font-manager-group .generate-font-manager--item:last-child{margin-bottom:0}.generate-customize-control--font-dropdown{background:#fff;margin-top:10px;padding:15px;position:relative}.generate-customize-control--font-dropdown:before{border-color:transparent transparent #fff;border-style:solid;border-width:0 10px 10px;content:"";height:0;left:11px;position:absolute;top:-10px;width:0;z-index:10}.generate-customize-control--font-dropdown>.components-base-control:not(:last-child){margin-bottom:15px}.generate-customize-control--font-dropdown>.components-base-control:last-child .components-base-control__field{margin-bottom:0} -.generate-advanced-select__control{margin-bottom:12px}.generate-advanced-select__value-container{padding:0 6px!important}.generate-advanced-select__value-container>div{margin:0;padding:0}.generate-advanced-select__input input[type=text]:focus{box-shadow:none}.generate-advanced-select__option--is-selected{color:hsla(0,0%,100%,.5)!important} -.components-generate-units-control-header__units{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.components-generate-control__units .components-generate-control-buttons__units button.components-button{background:#fff;border:0;border-radius:0!important;box-shadow:none!important;color:#929da7;font-size:10px;height:auto;line-height:20px;padding:0 5px;position:relative;text-align:center;text-shadow:none}.components-generate-control__units .components-generate-control-buttons__units button.components-button.is-primary{background:#fff!important;color:#000!important;cursor:default;font-weight:700;z-index:1}.generate-component-device-field[data-device=desktop],.generate-component-device-field[data-device=mobile],.generate-component-device-field[data-device=tablet]{display:none}.preview-desktop .generate-component-device-field[data-device=desktop]{display:block}.preview-desktop .components-generate-control__units button.components-generate-control-button__units--desktop{color:#000}.preview-tablet .generate-component-device-field[data-device=tablet]{display:block}.preview-tablet .components-generate-control__units button.components-generate-control-button__units--tablet{color:#000}.preview-mobile .generate-component-device-field[data-device=mobile]{display:block}.preview-mobile .components-generate-control__units button.components-generate-control-button__units--mobile{color:#000} -.gblocks-unit-control__disabled .gblocks-unit-control__input>.components-base-control{opacity:.5}.gblocks-unit-control__override-action{align-items:center;display:flex}.gblocks-unit-control__override-action button.components-button{height:20px;justify-content:center!important;min-width:20px;padding:0;width:20px}.gblocks-unit-control__override-action button.components-button.is-primary:focus:not(.disabled){box-shadow:0 0 0}.gblocks-unit-control__override-action button.components-button svg{margin:0!important;width:15px}.gblocks-unit-control__input{align-items:flex-start;display:flex;position:relative}.gblocks-unit-control__input .components-base-control:first-child{flex-grow:1}.gblocks-unit-control__input .components-base-control,.gblocks-unit-control__input .components-base-control__field{margin-bottom:0}.gblocks-unit-control__input--action{bottom:0;display:flex;gap:3px;position:absolute;right:5px;top:0}.gblocks-unit-control__input .gblocks-unit-control-units{align-items:center;display:flex;justify-content:center}.gblocks-unit-control__input .gblocks-unit-control-units button{align-items:center;border:1px solid rgba(0,0,0,.1);display:flex;font-size:10px;height:20px;justify-content:center;min-width:20px;padding:0 3px;width:auto}.gblocks-unit-control__input .gblocks-unit-control-units button:disabled{pointer-events:none}.gblocks-unit-control__input .gblocks-unit-control-units button.is-opened,.gblocks-unit-control__input .gblocks-unit-control-units button:hover{border-color:currentColor}.gblocks-unit-control__input .gblocks-unit-control-units button.is-opened{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));color:var(--wp-components-color-accent-inverted,#fff)}.gblocks-unit-control-popover .components-menu-group>div[role=group]{-ms-grid-columns:(1fr)[4];display:-ms-grid;display:grid;grid-template-columns:repeat(4,1fr)}.gblocks-unit-control-popover .components-menu-group>div[role=group] button{display:flex;justify-content:center;min-height:auto}.gblocks-unit-control-popover .components-menu-group>div[role=group] button .components-menu-item__item{font-size:11px;margin:0;min-width:auto} -.generate-color-manager-dnd-list{border:1px dashed #959595;display:flex;flex-wrap:wrap;padding:10px 5px 5px}.generate-color-manager-dnd-list .generate-color-manager-dnd-list-item{border-radius:50%;cursor:grab;display:inline-block;height:28px;margin:0 5px 5px 0;position:relative;vertical-align:top;width:28px}.generate-color-manager-dnd-list .generate-color-manager-dnd-list-item:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2728%27 height=%2728%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z%27 fill=%27%23555D65%27/%3E%3Cpath fill-rule=%27evenodd%27 clip-rule=%27evenodd%27 d=%27M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z%27 fill=%27%23555D65%27/%3E%3Cpath d=%27M18 18v2h-2v-2h2z%27 fill=%27%23555D65%27/%3E%3Cpath fill-rule=%27evenodd%27 clip-rule=%27evenodd%27 d=%27M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z%27 fill=%27%23555D65%27/%3E%3Cpath fill-rule=%27evenodd%27 clip-rule=%27evenodd%27 d=%27M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z%27 fill=%27%23555D65%27/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.generate-color-manager-dnd-list .generate-color-manager-dnd-list-item span{border-radius:50%;display:block;height:28px;position:relative;width:28px}.generate-color-manager-dnd-list .generate-color-manager-dnd-list-item span:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);content:"";left:-1px;position:absolute;right:-1px;top:-1px}.generate-color-manager-wrapper{display:flex;flex-wrap:wrap}.generate-color-manager-wrapper .generate-color-manager--item{margin-bottom:5px;margin-right:5px;position:relative}.generate-color-manager-wrapper .generate-color-manager--item:last-child{margin-right:0}.generate-color-manager-wrapper .generate-color-manager--item .components-button.generate-color-manager--delete-color{background:rgba(0,0,0,.7);border-radius:100%;color:#fff;height:auto;min-width:0;opacity:0;padding:2px;pointer-events:none;position:absolute;right:-10px;top:-10px;transition:opacity .5s ease}.generate-color-manager-wrapper .generate-color-manager--item .components-button.generate-color-manager--delete-color svg{height:15px;margin-right:0!important;width:15px}.generate-color-manager-wrapper .generate-color-manager--item .components-button.generate-color-manager--delete-color:focus,.generate-color-manager-wrapper .generate-color-manager--item:hover .components-button.generate-color-manager--delete-color{opacity:1;pointer-events:auto}.generate-color-manager-wrapper .generate-color-manager--item .components-circular-option-picker__option-wrapper{margin:0}.generate-color-manager-wrapper .generate-color-manager--item .components-button.generate-color-manager--add-color{align-items:center;background:#fff;border:1px solid #777;border-radius:100%;display:flex;height:28px;justify-content:center;padding:0;width:28px}.generate-color-manager-wrapper .generate-color-manager--item .components-button.generate-color-manager--add-color svg{width:20px} -.generate-customize-control-title{display:flex;justify-content:space-between}.generate-customize-control-title button.generate-customize-control-title--label{font-size:14px;font-weight:500;height:auto;padding:0}.generate-customize-control-title button.generate-customize-control-title--toggle{align-items:center;background:#fff;border:1px solid #777;border-radius:100%;display:flex;height:28px;justify-content:center;padding:0;width:28px}.generate-customize-control-title button.generate-customize-control-title--toggle svg{fill:none;height:1em;width:1em}.generate-customize-control-title h3{font-size:14px!important;font-weight:500;margin-bottom:0} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/style-dashboard.css b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/style-dashboard.css deleted file mode 100644 index db71c117..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/style-dashboard.css +++ /dev/null @@ -1,4 +0,0 @@ -.generate-dashboard-page .wrap{margin-right:0}.generate-dashboard-page #wpcontent{padding-left:0}.generate-dashboard-page .update-nag{margin-bottom:20px;margin-left:22px}.generate-dashboard-page.edit-php #wpbody-content .wrap{margin:0;padding:0 20px}.generatepress-dashboard-header{align-items:center;background:#fff;border-bottom:1px solid #e2e4e7;display:flex;justify-content:space-between;padding:0 20px;text-align:center}.generatepress-dashboard-header h1{align-items:center;display:flex;font-size:17px;font-weight:600;padding-bottom:0}.generatepress-dashboard-header h1 svg{fill:#006eb7;height:1em;padding-right:10px;width:1em}.generatepress-dashboard-header__navigation{background:#fff;display:flex}.generatepress-dashboard-header__navigation a{align-items:center;color:inherit;display:flex;padding:1rem;text-decoration:none}.generatepress-dashboard-header__navigation a.active{box-shadow:inset 0 -3px #007cba;font-weight:600}.generatepress-dashboard{font-size:15px;margin:40px auto;max-width:1000px}.generatepress-dashboard h2{font-size:25px;line-height:1.2em;margin:0}.generatepress-dashboard__placeholder.components-placeholder{background:none;box-shadow:none;margin-bottom:50px;outline:none;padding:0}.generatepress-dashboard__section-title{align-items:center;display:flex;margin-bottom:15px}.generatepress-dashboard__section-title>h2:first-child:not(:last-child){margin-right:10px}.generatepress-dashboard__section-description{margin-bottom:20px;margin-top:-10px}.generatepress-dashboard__section-description p{font-size:15px;margin:0}.generatepress-dashboard__section{color:#555;margin-bottom:50px}.generatepress-dashboard__section-item{align-items:center;background:#fff;display:flex;justify-content:space-between;padding:20px}.generatepress-dashboard__section-item:not(:last-child){border-bottom:1px solid #ddd}.generatepress-dashboard__section-item-title{font-weight:600}.generatepress-dashboard__section-item-action{align-items:center;display:flex;padding-left:20px}.generatepress-dashboard__section-item-action>:not(:last-child){margin-right:10px}.generatepress-dashboard__section-item-action .is-primary .components-spinner{background:rgba(0,0,0,.1);border-radius:100%;margin-top:0}.generatepress-dashboard__section-item-description{color:#80879a;font-size:13px;margin-top:3px}.generatepress-dashboard__section-item-message{background:#fafafa;border-radius:3px;box-shadow:1px 1px 1px rgba(0,0,0,.05);color:#555;display:none;font-size:12px;padding:5px 10px}.generatepress-dashboard__section-item-message__show{color:green;display:inline}.generatepress-dashboard__section-item-message__error{color:red}.generatepress-dashboard__reset-button.is-primary{background-color:#e02a2a}.generatepress-dashboard__reset-button.is-primary:hover:not(:disabled){background-color:darkred}@media(max-width:768px){.generatepress-dashboard-header{flex-direction:column}.generatepress-dashboard{padding-left:20px;padding-right:20px}} -.generatepress-start-customizing{color:#555;display:flex;flex-wrap:wrap;margin-left:-30px}.generatepress-start-customizing__item{background:#fff;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;margin-bottom:30px;margin-left:30px;padding:30px;width:calc(50% - 30px)}.generatepress-start-customizing__icon{align-items:center;background:#1e72bd;border-radius:100%;color:#fff;display:flex;height:50px;justify-content:center;margin-bottom:25px;width:50px}.generatepress-start-customizing__title{font-weight:500;margin-bottom:1em}.generatepress-start-customizing__description{font-weight:300;line-height:1.5em;margin-bottom:1em}.generatepress-start-customizing__action{margin-top:auto}.generatepress-start-customizing__pro{background:#f0544f;border-radius:2px;color:#fff;display:inline-block;font-size:11px;margin-left:5px;padding:0 5px} -.generatepress-dashboard__premium{color:#555;display:flex;flex-wrap:wrap;margin-left:-30px}.generatepress-dashboard__premium-item{background:#fff;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;flex-grow:1;margin-bottom:30px;margin-left:30px;padding:30px;width:calc(50% - 30px)}.generatepress-dashboard__premium-item-icon{align-items:center;background:#1e72bd;border-radius:100%;color:#fff;display:flex;height:50px;justify-content:center;margin-bottom:25px;width:50px}.generatepress-dashboard__premium-item-icon svg{height:25px;width:25px}.generatepress-dashboard__premium-item-title{align-items:center;display:flex;font-size:17px;font-weight:500;margin-bottom:10px}.generatepress-dashboard__premium-item-description{font-weight:300;line-height:1.5em;margin-bottom:1em}.generatepress-dashboard__premium-item-action{margin-top:auto}.generatepress-dashboard__premium-item-pro{background:#f0544f;border-radius:2px;color:#fff;display:inline-block;font-size:11px;margin-left:5px;padding:0 5px} -.generatepress-dashboard__section-item-modules{margin-top:20px} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/FontAwesome.otf b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/FontAwesome.otf deleted file mode 100644 index 401ec0f3..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/FontAwesome.otf and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.eot b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.eot deleted file mode 100644 index e9f60ca9..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.eot and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.svg b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.svg deleted file mode 100644 index 855c845e..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.svg +++ /dev/null @@ -1,2671 +0,0 @@ - - - - -Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 - By ,,, -Copyright Dave Gandy 2016. All rights reserved. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.ttf b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.ttf deleted file mode 100644 index 35acda2f..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.ttf and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.woff b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.woff deleted file mode 100644 index 400014a4..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.woff and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.woff2 b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.woff2 deleted file mode 100644 index 4d13fc60..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/fontawesome-webfont.woff2 and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.eot b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.eot deleted file mode 100644 index 194bb2ec..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.eot and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.svg b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.svg deleted file mode 100644 index fc31923e..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - -Generated by IcoMoon - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.ttf b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.ttf deleted file mode 100644 index 1735c3ca..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.ttf and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.woff b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.woff deleted file mode 100644 index 546bdaa8..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.woff and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.woff2 b/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.woff2 deleted file mode 100644 index 49c14594..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/assets/fonts/generatepress.woff2 and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/back-to-top.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/back-to-top.js deleted file mode 100644 index 32ff6076..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/back-to-top.js +++ /dev/null @@ -1,65 +0,0 @@ -( function() { - 'use strict'; - - // Feature Test - if ( 'querySelector' in document && 'addEventListener' in window ) { - var goTopBtn = document.querySelector( '.generate-back-to-top' ); - - var trackScroll = function() { - var scrolled = window.pageYOffset; - var coords = goTopBtn.getAttribute( 'data-start-scroll' ); - - if ( scrolled > coords ) { - goTopBtn.classList.add( 'generate-back-to-top__show' ); - } - - if ( scrolled < coords ) { - goTopBtn.classList.remove( 'generate-back-to-top__show' ); - } - }; - - // Function to animate the scroll - var smoothScroll = function( anchor, duration ) { - // Calculate how far and how fast to scroll - var startLocation = window.pageYOffset; - var endLocation = document.body.offsetTop; - var distance = endLocation - startLocation; - var increments = distance / ( duration / 16 ); - var stopAnimation; - - // Scroll the page by an increment, and check if it's time to stop - var animateScroll = function() { - window.scrollBy( 0, increments ); - stopAnimation(); - }; - - // Stop animation when you reach the anchor OR the top of the page - stopAnimation = function() { - var travelled = window.pageYOffset; - if ( travelled <= ( endLocation || 0 ) ) { - clearInterval( runAnimation ); - document.activeElement.blur(); - } - }; - - // Loop the animation function - var runAnimation = setInterval( animateScroll, 16 ); - }; - - if ( goTopBtn ) { - // Show the button when scrolling down. - window.addEventListener( 'scroll', trackScroll ); - - // Scroll back to top when clicked. - goTopBtn.addEventListener( 'click', function( e ) { - e.preventDefault(); - - if ( generatepressBackToTop.smooth ) { - smoothScroll( document.body, goTopBtn.getAttribute( 'data-scroll-speed' ) || 400 ); - } else { - window.scrollTo( 0, 0 ); - } - }, false ); - } - } -}() ); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/back-to-top.min.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/back-to-top.min.js deleted file mode 100644 index 72543cc6..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/back-to-top.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var c;"querySelector"in document&&"addEventListener"in window&&(c=document.querySelector(".generate-back-to-top"),c)&&(window.addEventListener("scroll",function(){var e=window.pageYOffset,t=c.getAttribute("data-start-scroll");te;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},c=function(t,e){if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return o.call(t,e)},l=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,s=n.length;s>i;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",""+this)}},u=l[n]=[],h=function(){return new l(this)};if(a[n]=Error[n],u.item=function(t){return this[t]||null},u.contains=function(t){return t+="",-1!==c(this,t)},u.add=function(){var t,e=arguments,n=0,i=e.length,s=!1;do t=e[n]+"",-1===c(this,t)&&(this.push(t),s=!0);while(++nn;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}()); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/dropdown-click.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/dropdown-click.js deleted file mode 100644 index b730202b..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/dropdown-click.js +++ /dev/null @@ -1,123 +0,0 @@ -( function() { - 'use strict'; - - if ( 'querySelector' in document && 'addEventListener' in window ) { - var body = document.body, - i; - /** - * Dropdown click - * - * @param {Object} e The event. - * @param {Object} _this The clicked item. - */ - var dropdownClick = function( e, _this ) { - e.preventDefault(); - e.stopPropagation(); - - if ( ! _this ) { - _this = this; - } - - var closestLi = _this.closest( 'li' ); - - // Close other sub-menus - var openedSubMenus = _this.closest( 'nav' ).querySelectorAll( 'ul.toggled-on' ); - if ( openedSubMenus && ! _this.closest( 'ul' ).classList.contains( 'toggled-on' ) && ! _this.closest( 'li' ).classList.contains( 'sfHover' ) ) { - for ( var o = 0; o < openedSubMenus.length; o++ ) { - openedSubMenus[ o ].classList.remove( 'toggled-on' ); - openedSubMenus[ o ].closest( 'li' ).classList.remove( 'sfHover' ); - } - } - - // Add sfHover class to parent li - closestLi.classList.toggle( 'sfHover' ); - - // Set aria-expanded on arrow - var dropdownToggle = closestLi.querySelector( '.dropdown-menu-toggle' ); - if ( 'false' === dropdownToggle.getAttribute( 'aria-expanded' ) || ! dropdownToggle.getAttribute( 'aria-expanded' ) ) { - dropdownToggle.setAttribute( 'aria-expanded', 'true' ); - } else { - dropdownToggle.setAttribute( 'aria-expanded', 'false' ); - } - - if ( closestLi.querySelector( '.sub-menu' ) ) { - var subMenuSelector = '.sub-menu'; - } else { - subMenuSelector = '.children'; - } - - // Open the sub-menu - if ( body.classList.contains( 'dropdown-click-menu-item' ) ) { - _this.parentNode.querySelector( subMenuSelector ).classList.toggle( 'toggled-on' ); - } else if ( body.classList.contains( 'dropdown-click-arrow' ) ) { - closestLi.querySelector( subMenuSelector ).classList.toggle( 'toggled-on' ); - } - }; - - // Do stuff if click dropdown if enabled - var parentElementLinks = document.querySelectorAll( '.main-nav .menu-item-has-children > a' ); - - // Open the sub-menu by clicking on the entire link element - if ( body.classList.contains( 'dropdown-click-menu-item' ) ) { - for ( i = 0; i < parentElementLinks.length; i++ ) { - parentElementLinks[ i ].addEventListener( 'click', dropdownClick, true ); - } - } - - // Open the sub-menu by clicking on a dropdown arrow - if ( body.classList.contains( 'dropdown-click-arrow' ) ) { - // Add a class to sub-menu items that are set to # - for ( i = 0; i < document.querySelectorAll( '.main-nav .menu-item-has-children > a' ).length; i++ ) { - if ( '#' === document.querySelectorAll( '.main-nav .menu-item-has-children > a' )[ i ].getAttribute( 'href' ) ) { - document.querySelectorAll( '.main-nav .menu-item-has-children > a' )[ i ].classList.add( 'menu-item-dropdown-click' ); - } - } - - var dropdownToggleLinks = document.querySelectorAll( '.main-nav .menu-item-has-children > a .dropdown-menu-toggle' ); - for ( i = 0; i < dropdownToggleLinks.length; i++ ) { - dropdownToggleLinks[ i ].addEventListener( 'click', dropdownClick, false ); - - dropdownToggleLinks[ i ].addEventListener( 'keydown', function( e ) { - var _this = this; - - if ( 'Enter' === e.key ) { - dropdownClick( e, _this ); - } - }, false ); - } - - for ( i = 0; i < document.querySelectorAll( '.main-nav .menu-item-has-children > a.menu-item-dropdown-click' ).length; i++ ) { - document.querySelectorAll( '.main-nav .menu-item-has-children > a.menu-item-dropdown-click' )[ i ].addEventListener( 'click', dropdownClick, false ); - } - } - - var closeSubMenus = function() { - if ( document.querySelector( 'nav ul .toggled-on' ) ) { - var activeSubMenus = document.querySelectorAll( 'nav ul .toggled-on' ); - var activeDropdownToggles = document.querySelectorAll( 'nav .dropdown-menu-toggle' ); - for ( i = 0; i < activeSubMenus.length; i++ ) { - activeSubMenus[ i ].classList.remove( 'toggled-on' ); - activeSubMenus[ i ].closest( '.sfHover' ).classList.remove( 'sfHover' ); - } - - for ( i = 0; i < activeDropdownToggles.length; i++ ) { - activeDropdownToggles[ i ].setAttribute( 'aria-expanded', 'false' ); - } - } - }; - - // Close sub-menus when clicking elsewhere - document.addEventListener( 'click', function( event ) { - if ( ! event.target.closest( '.sfHover' ) ) { - closeSubMenus(); - } - }, false ); - - // Close sub-menus on escape key - document.addEventListener( 'keydown', function( e ) { - if ( 'Escape' === e.key ) { // 27 is esc - closeSubMenus(); - } - }, false ); - } -}() ); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/dropdown-click.min.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/dropdown-click.min.js deleted file mode 100644 index b7c7aded..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/dropdown-click.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";if("querySelector"in document&&"addEventListener"in window){var r=document.body,t=function(e,t){e.preventDefault(),e.stopPropagation();var e=(t=t||this).closest("li"),n=t.closest("nav").querySelectorAll("ul.toggled-on");if(n&&!t.closest("ul").classList.contains("toggled-on")&&!t.closest("li").classList.contains("sfHover"))for(var o=0;o a");if(r.classList.contains("dropdown-click-menu-item"))for(o=0;o a").length;o++)"#"===document.querySelectorAll(".main-nav .menu-item-has-children > a")[o].getAttribute("href")&&document.querySelectorAll(".main-nav .menu-item-has-children > a")[o].classList.add("menu-item-dropdown-click");for(var n=document.querySelectorAll(".main-nav .menu-item-has-children > a .dropdown-menu-toggle"),o=0;o a.menu-item-dropdown-click").length;o++)document.querySelectorAll(".main-nav .menu-item-has-children > a.menu-item-dropdown-click")[o].addEventListener("click",t,!1)}var l=function(){if(document.querySelector("nav ul .toggled-on")){var e=document.querySelectorAll("nav ul .toggled-on"),t=document.querySelectorAll("nav .dropdown-menu-toggle");for(o=0;o a' ); - - /** - * Make menu items tab accessible when using the hover dropdown type - */ - var toggleFocus = function() { - if ( this.closest( 'nav' ).classList.contains( 'toggled' ) || this.closest( 'nav' ).classList.contains( 'slideout-navigation' ) ) { - return; - } - - var self = this; - - while ( -1 === self.className.indexOf( 'main-nav' ) ) { - if ( 'li' === self.tagName.toLowerCase() ) { - self.classList.toggle( 'sfHover' ); - } - - self = self.parentElement; - } - }; - - /** - * Make our menu bar items tab accessible. - */ - var toggleMenuBarItemFocus = function() { - if ( this.closest( 'nav' ).classList.contains( 'toggled' ) || this.closest( 'nav' ).classList.contains( 'slideout-navigation' ) ) { - return; - } - - var self = this; - - while ( -1 === self.className.indexOf( 'menu-bar-items' ) ) { - if ( self.classList.contains( 'menu-bar-item' ) ) { - self.classList.toggle( 'sfHover' ); - } - - self = self.parentElement; - } - }; - - for ( i = 0; i < navLinks.length; i++ ) { - navLinks[ i ].addEventListener( 'focus', toggleFocus ); - navLinks[ i ].addEventListener( 'blur', toggleFocus ); - } - - for ( i = 0; i < menuBarItems.length; i++ ) { - menuBarItems[ i ].addEventListener( 'focus', toggleMenuBarItemFocus ); - menuBarItems[ i ].addEventListener( 'blur', toggleMenuBarItemFocus ); - } - } - - /** - * Make hover dropdown touch-friendly. - */ - if ( 'ontouchend' in document.documentElement && document.body.classList.contains( 'dropdown-hover' ) ) { - var parentElements = document.querySelectorAll( '.sf-menu .menu-item-has-children' ); - - for ( i = 0; i < parentElements.length; i++ ) { - parentElements[ i ].addEventListener( 'touchend', function( e ) { - // Bail on mobile - if ( this.closest( 'nav' ).classList.contains( 'toggled' ) ) { - return; - } - - if ( e.touches.length === 1 || e.touches.length === 0 ) { - // Prevent touch events within dropdown bubbling down to document - e.stopPropagation(); - - // Toggle hover - if ( ! this.classList.contains( 'sfHover' ) ) { - // Prevent link on first touch - if ( e.target === this || e.target.parentNode === this || e.target.parentNode.parentNode ) { - e.preventDefault(); - } - - // Close other sub-menus. - var closestLi = this.closest( 'li' ), - siblings = getSiblings( closestLi ); - - for ( i = 0; i < siblings.length; i++ ) { - if ( siblings[ i ].classList.contains( 'sfHover' ) ) { - siblings[ i ].classList.remove( 'sfHover' ); - } - } - - this.classList.add( 'sfHover' ); - - // Hide dropdown on touch outside - var closeDropdown, - thisItem = this; - - document.addEventListener( 'touchend', closeDropdown = function( event ) { - event.stopPropagation(); - - thisItem.classList.remove( 'sfHover' ); - document.removeEventListener( 'touchend', closeDropdown ); - } ); - } - } - } ); - } - } - } -}() ); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/menu.min.js b/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/menu.min.js deleted file mode 100644 index 66c9fa1e..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/js/menu.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";if("querySelector"in document&&"addEventListener"in window){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(document.documentElement.contains(this))do{if(t.matches(e))return t}while(null!==(t=t.parentElement));return null});var o=function(t){return Array.prototype.filter.call(t.parentNode.children,function(e){return e!==t})},e=document.querySelectorAll(".menu-toggle"),t=document.querySelectorAll("nav .dropdown-menu-toggle"),n=document.querySelectorAll("nav .main-nav ul a"),l=document.querySelector(".mobile-menu-control-wrapper"),a=document.body,c=document.documentElement,u=function(e){if(e&&a.classList.contains("dropdown-hover")){var t=e.querySelectorAll("li.menu-item-has-children");for(f=0;f a"),m=function(){if(!this.closest("nav").classList.contains("toggled")&&!this.closest("nav").classList.contains("slideout-navigation"))for(var e=this;-1===e.className.indexOf("main-nav");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("sfHover"),e=e.parentElement},v=function(){if(!this.closest("nav").classList.contains("toggled")&&!this.closest("nav").classList.contains("slideout-navigation"))for(var e=this;-1===e.className.indexOf("menu-bar-items");)e.classList.contains("menu-bar-item")&&e.classList.toggle("sfHover"),e=e.parentElement},f=0;f -
- - %s', - esc_html( $comments_title ) - ), - $comments_title, - $comments_number - ); - - /** - * generate_below_comments_title hook. - * - * @since 0.1 - */ - do_action( 'generate_below_comments_title' ); - - if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : - ?> - - - -
    - 'generate_comment', - ) - ); - ?> -
- - 1 && get_option( 'page_comments' ) ) : - ?> - - -

- - -
diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/content-404.php b/wp-content/upgrade-temp-backup/themes/generatepress/content-404.php deleted file mode 100644 index 84abe5d5..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/content-404.php +++ /dev/null @@ -1,67 +0,0 @@ - -
- - - -
> - -

-
- - - -
> - %s

', - apply_filters( 'generate_404_text', __( 'It looks like nothing was found at this location. Maybe try searching?', 'generatepress' ) ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- HTML is allowed in filter here. - ); - - get_search_form(); - ?> -
- - - -
diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/content-link.php b/wp-content/upgrade-temp-backup/themes/generatepress/content-link.php deleted file mode 100644 index c9874b8d..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/content-link.php +++ /dev/null @@ -1,111 +0,0 @@ - -
> -
- -
> - -
- - -
> - -
- - - -
> - '', - ) - ); - ?> -
- - -
-
diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/content-page.php b/wp-content/upgrade-temp-backup/themes/generatepress/content-page.php deleted file mode 100644 index 20403bed..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/content-page.php +++ /dev/null @@ -1,93 +0,0 @@ - - -
> -
- - -
> - -
- - - -
> - '', - ) - ); - ?> -
- - -
-
diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/content-single.php b/wp-content/upgrade-temp-backup/themes/generatepress/content-single.php deleted file mode 100644 index cf90f744..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/content-single.php +++ /dev/null @@ -1,102 +0,0 @@ - - -
> -
- -
> - -
- - -
> - '', - ) - ); - ?> -
- - -
-
diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/content.php b/wp-content/upgrade-temp-backup/themes/generatepress/content.php deleted file mode 100644 index f82ed9f5..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/content.php +++ /dev/null @@ -1,111 +0,0 @@ - -
> -
- -
> - -
- - -
> - -
- - - -
> - '', - ) - ); - ?> -
- - -
-
diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/footer.php b/wp-content/upgrade-temp-backup/themes/generatepress/footer.php deleted file mode 100644 index d1375f13..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/footer.php +++ /dev/null @@ -1,65 +0,0 @@ - - -
-
- - - -
> - -
- - - - - diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/functions.php b/wp-content/upgrade-temp-backup/themes/generatepress/functions.php deleted file mode 100644 index 26fe85d7..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/functions.php +++ /dev/null @@ -1,123 +0,0 @@ - 70, - 'width' => 350, - 'flex-height' => true, - 'flex-width' => true, - ) - ); - - // Register primary menu. - register_nav_menus( - array( - 'primary' => __( 'Primary Menu', 'generatepress' ), - ) - ); - - /** - * Set the content width to something large - * We set a more accurate width in generate_smart_content_width() - */ - global $content_width; - if ( ! isset( $content_width ) ) { - $content_width = 1200; /* pixels */ - } - - // Add editor styles to the block editor. - add_theme_support( 'editor-styles' ); - - $editor_styles = apply_filters( - 'generate_editor_styles', - array( - 'assets/css/admin/block-editor.css', - ) - ); - - add_editor_style( $editor_styles ); - } -} - -/** - * Get all necessary theme files - */ -$theme_dir = get_template_directory(); - -require $theme_dir . '/inc/theme-functions.php'; -require $theme_dir . '/inc/defaults.php'; -require $theme_dir . '/inc/class-css.php'; -require $theme_dir . '/inc/css-output.php'; -require $theme_dir . '/inc/general.php'; -require $theme_dir . '/inc/customizer.php'; -require $theme_dir . '/inc/markup.php'; -require $theme_dir . '/inc/typography.php'; -require $theme_dir . '/inc/plugin-compat.php'; -require $theme_dir . '/inc/block-editor.php'; -require $theme_dir . '/inc/class-typography.php'; -require $theme_dir . '/inc/class-typography-migration.php'; -require $theme_dir . '/inc/class-html-attributes.php'; -require $theme_dir . '/inc/class-theme-update.php'; -require $theme_dir . '/inc/class-rest.php'; -require $theme_dir . '/inc/deprecated.php'; - -if ( is_admin() ) { - require $theme_dir . '/inc/meta-box.php'; - require $theme_dir . '/inc/class-dashboard.php'; -} - -/** - * Load our theme structure - */ -require $theme_dir . '/inc/structure/archives.php'; -require $theme_dir . '/inc/structure/comments.php'; -require $theme_dir . '/inc/structure/featured-images.php'; -require $theme_dir . '/inc/structure/footer.php'; -require $theme_dir . '/inc/structure/header.php'; -require $theme_dir . '/inc/structure/navigation.php'; -require $theme_dir . '/inc/structure/post-meta.php'; -require $theme_dir . '/inc/structure/sidebars.php'; -require $theme_dir . '/inc/structure/search-modal.php'; diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/header.php b/wp-content/upgrade-temp-backup/themes/generatepress/header.php deleted file mode 100644 index 237e1798..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/header.php +++ /dev/null @@ -1,74 +0,0 @@ - -> - - - - - - > - - -
> - -
> - post_type ) { - $layout = generate_get_option( 'single_layout_setting' ); - } - } - - // Add in our default filter in case people have adjusted it. - $layout = apply_filters( 'generate_sidebar_layout', $layout ); - - if ( $meta ) { - $layout_meta = get_post_meta( get_the_ID(), '_generate-sidebar-layout-meta', true ); - - if ( $layout_meta ) { - $layout = $layout_meta; - } - } - - return apply_filters( 'generate_block_editor_sidebar_layout', $layout ); -} - -/** - * Check whether we're disabling the content title or not. - * We need this function as the post meta in generate_show_title() only runs - * on is_singular() - * - * @since 2.2 - */ -function generate_get_block_editor_show_content_title() { - $title = generate_show_title(); - - $disable_title = get_post_meta( get_the_ID(), '_generate-disable-headline', true ); - - if ( $disable_title ) { - $title = false; - } - - return apply_filters( 'generate_block_editor_show_content_title', $title ); -} - -/** - * Get the content width for this post. - * - * @since 2.2 - */ -function generate_get_block_editor_content_width() { - $container_width = generate_get_option( 'container_width' ); - - $content_width = $container_width; - - $right_sidebar_width = apply_filters( 'generate_right_sidebar_width', '25' ); - - $left_sidebar_width = apply_filters( 'generate_left_sidebar_width', '25' ); - - $layout = generate_get_block_editor_sidebar_layout(); - - if ( 'left-sidebar' === $layout ) { - $content_width = $container_width * ( ( 100 - $left_sidebar_width ) / 100 ); - } elseif ( 'right-sidebar' === $layout ) { - $content_width = $container_width * ( ( 100 - $right_sidebar_width ) / 100 ); - } elseif ( 'no-sidebar' === $layout ) { - $content_width = $container_width; - } else { - $content_width = $container_width * ( ( 100 - ( $left_sidebar_width + $right_sidebar_width ) ) / 100 ); - } - - return apply_filters( 'generate_block_editor_content_width', $content_width ); -} - -add_filter( 'block_editor_settings_all', 'generate_add_inline_block_editor_styles' ); -/** - * Add dynamic inline styles to the block editor content. - * - * @param array $editor_settings The existing editor settings. - */ -function generate_add_inline_block_editor_styles( $editor_settings ) { - $show_editor_styles = apply_filters( 'generate_show_block_editor_styles', true ); - - if ( $show_editor_styles ) { - if ( generate_is_using_dynamic_typography() ) { - $google_fonts_uri = GeneratePress_Typography::get_google_fonts_uri(); - - if ( $google_fonts_uri ) { - // Need to use @import for now until this is ready: https://github.com/WordPress/gutenberg/pull/35950. - $google_fonts_import = sprintf( - '@import "%s";', - $google_fonts_uri - ); - - $editor_settings['styles'][] = array( 'css' => $google_fonts_import ); - } - } - - $editor_settings['styles'][] = array( 'css' => wp_strip_all_tags( generate_do_inline_block_editor_css() ) ); - - if ( generate_is_using_dynamic_typography() ) { - $editor_settings['styles'][] = array( 'css' => wp_strip_all_tags( GeneratePress_Typography::get_css( 'core' ) ) ); - } - } - - return $editor_settings; -} - -add_action( 'enqueue_block_editor_assets', 'generate_enqueue_google_fonts' ); -add_action( 'enqueue_block_editor_assets', 'generate_enqueue_backend_block_editor_assets' ); -/** - * Add CSS to the admin side of the block editor. - * - * @since 2.2 - */ -function generate_enqueue_backend_block_editor_assets() { - wp_enqueue_script( - 'generate-block-editor', - trailingslashit( get_template_directory_uri() ) . 'assets/dist/block-editor.js', - array( 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-plugins', 'wp-polyfill' ), - GENERATE_VERSION, - true - ); - - $color_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_color_defaults() - ); - - $spacing_settings = wp_parse_args( - get_option( 'generate_spacing_settings', array() ), - generate_spacing_get_defaults() - ); - - $text_color = generate_get_option( 'text_color' ); - - if ( $color_settings['content_text_color'] ) { - $text_color = $color_settings['content_text_color']; - } - - $sidebar_layout = get_post_meta( get_the_ID(), '_generate_sidebar_layout', true ); - $content_area_type = get_post_meta( get_the_ID(), '_generate-full-width-content', true ); - - wp_localize_script( - 'generate-block-editor', - 'generatepressBlockEditor', - array( - 'sidebarLayout' => $sidebar_layout ? $sidebar_layout : generate_get_block_editor_sidebar_layout( false ), - 'containerWidth' => generate_get_option( 'container_width' ), - 'contentPaddingRight' => absint( $spacing_settings['content_right'] ) . 'px', - 'contentPaddingLeft' => absint( $spacing_settings['content_left'] ) . 'px', - 'rightSidebarWidth' => apply_filters( 'generate_right_sidebar_width', '25' ), - 'leftSidebarWidth' => apply_filters( 'generate_left_sidebar_width', '25' ), - 'text_color' => $text_color, - 'show_editor_styles' => apply_filters( 'generate_show_block_editor_styles', true ), - 'contentAreaType' => $content_area_type ? $content_area_type : apply_filters( 'generate_block_editor_content_area_type', '' ), - 'customContentWidth' => apply_filters( 'generate_block_editor_container_width', '' ), - ) - ); - - wp_register_style( 'generate-block-editor', false, array(), true, true ); - wp_add_inline_style( 'generate-block-editor', generate_do_inline_block_editor_css( 'block-editor' ) ); - wp_enqueue_style( 'generate-block-editor' ); -} - -/** - * Write our CSS for the block editor. - * - * @since 2.2 - * @param string $for Define whether this CSS for the block content or the block editor. - */ -function generate_do_inline_block_editor_css( $for = 'block-content' ) { - $css = new GeneratePress_CSS(); - - $css->set_selector( ':root' ); - - $global_colors = generate_get_global_colors(); - - if ( ! empty( $global_colors ) ) { - foreach ( (array) $global_colors as $key => $data ) { - if ( ! empty( $data['slug'] ) && ! empty( $data['color'] ) ) { - $css->add_property( '--' . $data['slug'], $data['color'] ); - } - } - - foreach ( (array) $global_colors as $key => $data ) { - if ( ! empty( $data['slug'] ) && ! empty( $data['color'] ) ) { - $css->set_selector( '.has-' . $data['slug'] . '-color' ); - $css->add_property( 'color', 'var(--' . $data['slug'] . ')' ); - - $css->set_selector( '.has-' . $data['slug'] . '-background-color' ); - $css->add_property( 'background-color', 'var(--' . $data['slug'] . ')' ); - } - } - } - - // If this CSS is for the editor only (not the block content), we can return here. - if ( 'block-editor' === $for ) { - return $css->css_output(); - } - - $color_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_color_defaults() - ); - - $font_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_default_fonts() - ); - - $content_width = generate_get_block_editor_content_width(); - - $spacing_settings = wp_parse_args( - get_option( 'generate_spacing_settings', array() ), - generate_spacing_get_defaults() - ); - - $content_width_calc = sprintf( - 'calc(%1$s - %2$s - %3$s)', - absint( $content_width ) . 'px', - absint( $spacing_settings['content_left'] ) . 'px', - absint( $spacing_settings['content_right'] ) . 'px' - ); - - $css->set_selector( 'body' ); - $css->add_property( - '--content-width', - 'true' === get_post_meta( get_the_ID(), '_generate-full-width-content', true ) - ? '100%' - : $content_width_calc - ); - - $css->set_selector( 'body .wp-block' ); - $css->add_property( 'max-width', 'var(--content-width)' ); - - $css->set_selector( '.wp-block[data-align="full"]' ); - $css->add_property( 'max-width', 'none' ); - - $css->set_selector( '.wp-block[data-align="wide"]' ); - $css->add_property( 'max-width', absint( $content_width ), false, 'px' ); - - $underline_links = generate_get_option( 'underline_links' ); - - if ( 'never' !== $underline_links ) { - if ( 'always' === $underline_links ) { - $css->set_selector( '.wp-block a' ); - $css->add_property( 'text-decoration', 'underline' ); - } - - if ( 'hover' === $underline_links ) { - $css->set_selector( '.wp-block a' ); - $css->add_property( 'text-decoration', 'none' ); - - $css->set_selector( '.wp-block a:hover, .wp-block a:focus' ); - $css->add_property( 'text-decoration', 'underline' ); - } - - if ( 'not-hover' === $underline_links ) { - $css->set_selector( '.wp-block a' ); - $css->add_property( 'text-decoration', 'underline' ); - - $css->set_selector( '.wp-block a:hover, .wp-block a:focus' ); - $css->add_property( 'text-decoration', 'none' ); - } - - $css->set_selector( 'a.button, .wp-block-button__link' ); - $css->add_property( 'text-decoration', 'none' ); - } else { - $css->set_selector( '.wp-block a' ); - $css->add_property( 'text-decoration', 'none' ); - } - - if ( apply_filters( 'generate_do_group_inner_container_style', true ) ) { - $css->set_selector( '.wp-block-group__inner-container' ); - $css->add_property( 'max-width', absint( $content_width ), false, 'px' ); - $css->add_property( 'margin-left', 'auto' ); - $css->add_property( 'margin-right', 'auto' ); - $css->add_property( 'padding', generate_padding_css( $spacing_settings['content_top'], $spacing_settings['content_right'], $spacing_settings['content_bottom'], $spacing_settings['content_left'] ) ); - } - - $css->set_selector( 'a.button, a.button:visited, .wp-block-button__link:not(.has-background)' ); - $css->add_property( 'color', $color_settings['form_button_text_color'] ); - $css->add_property( 'background-color', $color_settings['form_button_background_color'] ); - $css->add_property( 'padding', '10px 20px' ); - $css->add_property( 'border', '0' ); - $css->add_property( 'border-radius', '0' ); - - $css->set_selector( 'a.button:hover, a.button:active, a.button:focus, .wp-block-button__link:not(.has-background):active, .wp-block-button__link:not(.has-background):focus, .wp-block-button__link:not(.has-background):hover' ); - $css->add_property( 'color', $color_settings['form_button_text_color_hover'] ); - $css->add_property( 'background-color', $color_settings['form_button_background_color_hover'] ); - - if ( ! generate_is_using_dynamic_typography() ) { - $body_family = generate_get_font_family_css( 'font_body', 'generate_settings', generate_get_default_fonts() ); - $h1_family = generate_get_font_family_css( 'font_heading_1', 'generate_settings', generate_get_default_fonts() ); - $h2_family = generate_get_font_family_css( 'font_heading_2', 'generate_settings', generate_get_default_fonts() ); - $h3_family = generate_get_font_family_css( 'font_heading_3', 'generate_settings', generate_get_default_fonts() ); - $h4_family = generate_get_font_family_css( 'font_heading_4', 'generate_settings', generate_get_default_fonts() ); - $h5_family = generate_get_font_family_css( 'font_heading_5', 'generate_settings', generate_get_default_fonts() ); - $h6_family = generate_get_font_family_css( 'font_heading_6', 'generate_settings', generate_get_default_fonts() ); - $buttons_family = generate_get_font_family_css( 'font_buttons', 'generate_settings', generate_get_default_fonts() ); - } - - $css->set_selector( 'body' ); - - if ( ! generate_is_using_dynamic_typography() ) { - $css->add_property( 'font-family', $body_family ); - $css->add_property( 'font-size', absint( $font_settings['body_font_size'] ), false, 'px' ); - } - - if ( $color_settings['content_text_color'] ) { - $css->add_property( 'color', $color_settings['content_text_color'] ); - } else { - $css->add_property( 'color', generate_get_option( 'text_color' ) ); - } - - $css->set_selector( '.content-title-visibility' ); - - if ( $color_settings['content_text_color'] ) { - $css->add_property( 'color', $color_settings['content_text_color'] ); - } else { - $css->add_property( 'color', generate_get_option( 'text_color' ) ); - } - - if ( ! generate_is_using_dynamic_typography() ) { - $css->set_selector( 'body, p' ); - $css->add_property( 'line-height', floatval( $font_settings['body_line_height'] ) ); - - $css->set_selector( 'p' ); - $css->add_property( 'margin-top', '0px' ); - $css->add_property( 'margin-bottom', $font_settings['paragraph_margin'], false, 'em' ); - } - - $css->set_selector( 'h1' ); - - if ( ! generate_is_using_dynamic_typography() ) { - $css->add_property( 'font-family', 'inherit' === $h1_family || '' === $h1_family ? $body_family : $h1_family ); - $css->add_property( 'font-weight', $font_settings['heading_1_weight'] ); - $css->add_property( 'text-transform', $font_settings['heading_1_transform'] ); - $css->add_property( 'font-size', absint( $font_settings['heading_1_font_size'] ), false, 'px' ); - $css->add_property( 'line-height', floatval( $font_settings['heading_1_line_height'] ), false, 'em' ); - $css->add_property( 'margin-bottom', floatval( $font_settings['heading_1_margin_bottom'] ), false, 'px' ); - $css->add_property( 'margin-top', '0' ); - } - - $css->add_property( 'color', $color_settings['h1_color'] ); - - if ( $color_settings['content_title_color'] ) { - $css->set_selector( '.edit-post-visual-editor__post-title-wrapper h1' ); - $css->add_property( 'color', $color_settings['content_title_color'] ); - } - - $css->set_selector( 'h2' ); - - if ( ! generate_is_using_dynamic_typography() ) { - $css->add_property( 'font-family', $h2_family ); - $css->add_property( 'font-weight', $font_settings['heading_2_weight'] ); - $css->add_property( 'text-transform', $font_settings['heading_2_transform'] ); - $css->add_property( 'font-size', absint( $font_settings['heading_2_font_size'] ), false, 'px' ); - $css->add_property( 'line-height', floatval( $font_settings['heading_2_line_height'] ), false, 'em' ); - $css->add_property( 'margin-bottom', floatval( $font_settings['heading_2_margin_bottom'] ), false, 'px' ); - $css->add_property( 'margin-top', '0' ); - } - - $css->add_property( 'color', $color_settings['h2_color'] ); - - $css->set_selector( 'h3' ); - - if ( ! generate_is_using_dynamic_typography() ) { - $css->add_property( 'font-family', $h3_family ); - $css->add_property( 'font-weight', $font_settings['heading_3_weight'] ); - $css->add_property( 'text-transform', $font_settings['heading_3_transform'] ); - $css->add_property( 'font-size', absint( $font_settings['heading_3_font_size'] ), false, 'px' ); - $css->add_property( 'line-height', floatval( $font_settings['heading_3_line_height'] ), false, 'em' ); - $css->add_property( 'margin-bottom', floatval( $font_settings['heading_3_margin_bottom'] ), false, 'px' ); - $css->add_property( 'margin-top', '0' ); - } - - $css->add_property( 'color', $color_settings['h3_color'] ); - - $css->set_selector( 'h4' ); - - if ( ! generate_is_using_dynamic_typography() ) { - $css->add_property( 'font-family', $h4_family ); - $css->add_property( 'font-weight', $font_settings['heading_4_weight'] ); - $css->add_property( 'text-transform', $font_settings['heading_4_transform'] ); - $css->add_property( 'margin-bottom', '20px' ); - $css->add_property( 'margin-top', '0' ); - - if ( '' !== $font_settings['heading_4_font_size'] ) { - $css->add_property( 'font-size', absint( $font_settings['heading_4_font_size'] ), false, 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - if ( '' !== $font_settings['heading_4_line_height'] ) { - $css->add_property( 'line-height', floatval( $font_settings['heading_4_line_height'] ), false, 'em' ); - } - } - - $css->add_property( 'color', $color_settings['h4_color'] ); - - $css->set_selector( 'h5' ); - - if ( ! generate_is_using_dynamic_typography() ) { - $css->add_property( 'font-family', $h5_family ); - $css->add_property( 'font-weight', $font_settings['heading_5_weight'] ); - $css->add_property( 'text-transform', $font_settings['heading_5_transform'] ); - $css->add_property( 'margin-bottom', '20px' ); - $css->add_property( 'margin-top', '0' ); - - if ( '' !== $font_settings['heading_5_font_size'] ) { - $css->add_property( 'font-size', absint( $font_settings['heading_5_font_size'] ), false, 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - if ( '' !== $font_settings['heading_5_line_height'] ) { - $css->add_property( 'line-height', floatval( $font_settings['heading_5_line_height'] ), false, 'em' ); - } - } - - $css->add_property( 'color', $color_settings['h5_color'] ); - - $css->set_selector( 'h6' ); - - if ( ! generate_is_using_dynamic_typography() ) { - $css->add_property( 'font-family', $h6_family ); - $css->add_property( 'font-weight', $font_settings['heading_6_weight'] ); - $css->add_property( 'text-transform', $font_settings['heading_6_transform'] ); - $css->add_property( 'margin-bottom', '20px' ); - $css->add_property( 'margin-top', '0' ); - - if ( '' !== $font_settings['heading_6_font_size'] ) { - $css->add_property( 'font-size', absint( $font_settings['heading_6_font_size'] ), false, 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - if ( '' !== $font_settings['heading_6_line_height'] ) { - $css->add_property( 'line-height', floatval( $font_settings['heading_6_line_height'] ), false, 'em' ); - } - } - - $css->add_property( 'color', $color_settings['h6_color'] ); - - $css->set_selector( 'a.button, .block-editor-block-list__layout .wp-block-button .wp-block-button__link' ); - - if ( ! generate_is_using_dynamic_typography() ) { - $css->add_property( 'font-family', $buttons_family ); - $css->add_property( 'font-weight', $font_settings['buttons_font_weight'] ); - $css->add_property( 'text-transform', $font_settings['buttons_font_transform'] ); - - if ( '' !== $font_settings['buttons_font_size'] ) { - $css->add_property( 'font-size', absint( $font_settings['buttons_font_size'] ), false, 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - } - - if ( version_compare( $GLOBALS['wp_version'], '5.7-alpha.1', '>' ) ) { - $css->set_selector( '.block-editor__container .edit-post-visual-editor' ); - $css->add_property( 'background-color', generate_get_option( 'background_color' ) ); - - $css->set_selector( 'body' ); - - if ( $color_settings['content_background_color'] ) { - $css->add_property( 'background-color', $color_settings['content_background_color'] ); - } else { - $css->add_property( 'background-color', generate_get_option( 'background_color' ) ); - } - } else { - $css->set_selector( 'body' ); - $css->add_property( 'background-color', generate_get_option( 'background_color' ) ); - - if ( $color_settings['content_background_color'] ) { - $body_background = generate_get_option( 'background_color' ); - $content_background = $color_settings['content_background_color']; - - $css->add_property( 'background', 'linear-gradient(' . $content_background . ',' . $content_background . '), linear-gradient(' . $body_background . ',' . $body_background . ')' ); - } - } - - $css->set_selector( 'a, a:visited' ); - - if ( $color_settings['content_link_color'] ) { - $css->add_property( 'color', $color_settings['content_link_color'] ); - } else { - $css->add_property( 'color', generate_get_option( 'link_color' ) ); - } - - $css->set_selector( 'a:hover, a:focus, a:active' ); - - if ( $color_settings['content_link_hover_color'] ) { - $css->add_property( 'color', $color_settings['content_link_hover_color'] ); - } else { - $css->add_property( 'color', generate_get_option( 'link_color_hover' ) ); - } - - return $css->css_output(); -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-css.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-css.php deleted file mode 100644 index a0aa5e53..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-css.php +++ /dev/null @@ -1,217 +0,0 @@ -_selector ) { - $this->add_selector_rules_to_output(); - } - - $this->_selector = $selector; - return $this; - } - - /** - * Adds a css property with value to the css output - * - * @access public - * @since 1.0 - * - * @param string $property The css property. - * @param string $value The value to be placed with the property. - * @param string $og_default Check to see if the value matches the default. - * @param string $unit The unit for the value (px). - * @return $this - */ - public function add_property( $property, $value, $og_default = false, $unit = false ) { - // Setting font-size to 0 is rarely ever a good thing. - if ( 'font-size' === $property && 0 === $value ) { - return false; - } - - // Add our unit to our value if it exists. - if ( $unit && '' !== $unit && is_numeric( $value ) ) { - $value = $value . $unit; - if ( '' !== $og_default ) { - $og_default = $og_default . $unit; - } - } - - // If we don't have a value or our value is the same as our og default, bail. - if ( ( empty( $value ) && ! is_numeric( $value ) ) || $og_default === $value ) { - return false; - } - - $this->_css .= $property . ':' . $value . ';'; - return $this; - } - - /** - * Sets a media query in the class - * - * @since 1.1 - * @param string $value The media query. - * @return $this - */ - public function start_media_query( $value ) { - // Add the current rules to the output. - $this->add_selector_rules_to_output(); - - // Add any previous media queries to the output. - if ( ! empty( $this->_media_query ) ) { - $this->add_media_query_rules_to_output(); - } - - // Set the new media query. - $this->_media_query = $value; - return $this; - } - - /** - * Stops using a media query. - * - * @see start_media_query() - * - * @since 1.1 - * @return $this - */ - public function stop_media_query() { - return $this->start_media_query( null ); - } - - /** - * Adds the current media query's rules to the class' output variable - * - * @since 1.1 - * @return $this - */ - private function add_media_query_rules_to_output() { - if ( ! empty( $this->_media_query_output ) ) { - $this->_output .= sprintf( '@media %1$s{%2$s}', $this->_media_query, $this->_media_query_output ); - - // Reset the media query output string. - $this->_media_query_output = ''; - } - - return $this; - } - - /** - * Adds the current selector rules to the output variable - * - * @access private - * @since 1.0 - * - * @return $this - */ - private function add_selector_rules_to_output() { - if ( ! empty( $this->_css ) ) { - $this->_selector_output = $this->_selector; - $selector_output = sprintf( '%1$s{%2$s}', $this->_selector_output, $this->_css ); - - // Add our CSS to the output. - if ( ! empty( $this->_media_query ) ) { - $this->_media_query_output .= $selector_output; - $this->_css = ''; - } else { - $this->_output .= $selector_output; - } - - // Reset the css. - $this->_css = ''; - } - - return $this; - } - - /** - * Returns the minified css in the $_output variable - * - * @access public - * @since 1.0 - * - * @return string - */ - public function css_output() { - // Add current selector's rules to output. - $this->add_selector_rules_to_output(); - - // Output minified css. - return $this->_output; - } - - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-dashboard.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-dashboard.php deleted file mode 100644 index d8c47d69..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-dashboard.php +++ /dev/null @@ -1,266 +0,0 @@ -id, $dashboard_pages ) ) { - $classes .= ' generate-dashboard-page'; - } - - return $classes; - } - - /** - * Build our Dashboard header. - */ - public static function header() { - ?> -
-
-

- - -

-
- - -
- array( - 'name' => __( 'Dashboard', 'generatepress' ), - 'url' => admin_url( 'themes.php?page=generate-options' ), - 'class' => 'appearance_page_generate-options' === $screen->id ? 'active' : '', - ), - ) - ); - - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { - $tabs['premium'] = array( - 'name' => __( 'Premium', 'generatepress' ), - 'url' => 'https://generatepress.com/premium', - 'class' => '', - 'external' => true, - ); - } - - $tabs['support'] = array( - 'name' => __( 'Support', 'generatepress' ), - 'url' => 'https://generatepress.com/support', - 'class' => '', - 'external' => true, - ); - - $tabs['documentation'] = array( - 'name' => __( 'Documentation', 'generatepress' ), - 'url' => 'https://docs.generatepress.com', - 'class' => '', - 'external' => true, - ); - ?> -
- %3$s', - esc_url( $tab['url'] ), - esc_attr( $tab['class'] ), - esc_html( $tab['name'] ), - ! empty( $tab['external'] ) ? 'target="_blank" rel="noreferrer noopener"' : '' - ); - } - ?> -
- id, $dashboard_pages ) ) { - self::header(); - - /** - * generate_dashboard_after_header hook. - * - * @since 2.0 - */ - do_action( 'generate_dashboard_after_header' ); - } - } - - /** - * Add our scripts to the page. - */ - public function enqueue_scripts() { - $dashboard_pages = self::get_pages(); - $current_screen = get_current_screen(); - - if ( in_array( $current_screen->id, $dashboard_pages ) ) { - wp_enqueue_style( - 'generate-dashboard', - get_template_directory_uri() . '/assets/dist/style-dashboard.css', - array( 'wp-components' ), - GENERATE_VERSION - ); - - if ( 'appearance_page_generate-options' === $current_screen->id ) { - wp_enqueue_script( - 'generate-dashboard', - get_template_directory_uri() . '/assets/dist/dashboard.js', - array( 'wp-api', 'wp-i18n', 'wp-components', 'wp-element', 'wp-api-fetch', 'wp-hooks', 'wp-polyfill' ), - GENERATE_VERSION, - true - ); - - wp_set_script_translations( 'generate-dashboard', 'generatepress' ); - - wp_localize_script( - 'generate-dashboard', - 'generateDashboard', - array( - 'hasPremium' => defined( 'GP_PREMIUM_VERSION' ), - 'customizeSectionUrls' => array( - 'siteIdentitySection' => add_query_arg( rawurlencode( 'autofocus[section]' ), 'title_tagline', wp_customize_url() ), - 'colorsSection' => add_query_arg( rawurlencode( 'autofocus[section]' ), 'generate_colors_section', wp_customize_url() ), - 'typographySection' => add_query_arg( rawurlencode( 'autofocus[section]' ), 'generate_typography_section', wp_customize_url() ), - 'layoutSection' => add_query_arg( rawurlencode( 'autofocus[panel]' ), 'generate_layout_panel', wp_customize_url() ), - ), - ) - ); - } - } - } - - /** - * Add the HTML for our page. - */ - public function page() { - ?> -
-
- -
-
-
'; - } - - /** - * Add the container for our start customizing app. - */ - public function go_pro() { - echo '
'; - } - - /** - * Add the container for our reset app. - */ - public function reset() { - echo '
'; - } -} - -GeneratePress_Dashboard::get_instance(); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-html-attributes.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-html-attributes.php deleted file mode 100644 index 0afa0b0c..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-html-attributes.php +++ /dev/null @@ -1,495 +0,0 @@ -top_bar( $attributes ); - - case 'inside-top-bar': - return $this->inside_top_bar( $attributes ); - - case 'header': - return $this->site_header( $attributes ); - - case 'inside-header': - return $this->inside_site_header( $attributes ); - - case 'menu-toggle': - return $this->menu_toggle( $attributes ); - - case 'navigation': - return $this->primary_navigation( $attributes ); - - case 'inside-navigation': - return $this->primary_inner_navigation( $attributes ); - - case 'mobile-menu-control-wrapper': - return $this->mobile_menu_control_wrapper( $attributes ); - - case 'site-info': - return $this->site_info( $attributes ); - - case 'inside-site-info': - return $this->inside_site_info( $attributes ); - - case 'entry-header': - return $this->entry_header( $attributes ); - - case 'page-header': - return $this->page_header( $attributes ); - - case 'site-content': - return $this->site_content( $attributes ); - - case 'page': - return $this->page( $attributes ); - - case 'content': - return $this->content( $attributes ); - - case 'main': - return $this->main( $attributes ); - - case 'post-navigation': - return $this->post_navigation( $attributes ); - - case 'left-sidebar': - return $this->left_sidebar( $attributes ); - - case 'right-sidebar': - return $this->right_sidebar( $attributes ); - - case 'footer-widgets-container': - return $this->footer_widgets_container( $attributes ); - - case 'comment-body': - return $this->comment_body( $attributes, $settings ); - - case 'comment-meta': - return $this->comment_meta( $attributes ); - - case 'footer-entry-meta': - return $this->footer_entry_meta( $attributes ); - - case 'woocommerce-content': - return $this->woocommerce_content( $attributes ); - } - - return $attributes; - } - - /** - * Add attributes to our top bar. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function top_bar( $attributes ) { - $classes = generate_get_element_classes( 'top_bar' ); - - if ( $classes ) { - $attributes['class'] .= ' ' . join( ' ', $classes ); - } - - return $attributes; - } - - /** - * Add attributes to our inside top bar container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function inside_top_bar( $attributes ) { - $attributes['class'] .= ' inside-top-bar'; - - if ( 'contained' === generate_get_option( 'top_bar_inner_width' ) ) { - $attributes['class'] .= ' grid-container'; - - if ( ! generate_is_using_flexbox() ) { - $attributes['class'] .= ' grid-parent'; - } - } - - return $attributes; - } - - /** - * Add attributes to our site header. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function site_header( $attributes ) { - $attributes['id'] = 'masthead'; - $attributes['aria-label'] = esc_attr__( 'Site', 'generatepress' ); - - return $attributes; - } - - /** - * Add attributes to our inside site header container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function inside_site_header( $attributes ) { - $classes = generate_get_element_classes( 'inside_header' ); - - if ( $classes ) { - $attributes['class'] .= ' ' . join( ' ', $classes ); - } - - return $attributes; - } - - /** - * Add attributes to our menu toggle. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function menu_toggle( $attributes ) { - $attributes['class'] .= ' menu-toggle'; - $attributes['aria-controls'] = 'primary-menu'; - $attributes['aria-expanded'] = 'false'; - - return $attributes; - } - - /** - * Add attributes to our main navigation. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function primary_navigation( $attributes ) { - $attributes['id'] = 'site-navigation'; - $attributes['aria-label'] = esc_attr__( 'Primary', 'generatepress' ); - - return $attributes; - } - - /** - * Add attributes to our main navigation. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function primary_inner_navigation( $attributes ) { - $classes = generate_get_element_classes( 'inside_navigation' ); - - if ( $classes ) { - $attributes['class'] .= ' ' . join( ' ', $classes ); - } - - return $attributes; - } - - /** - * Add attributes to our main navigation. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function mobile_menu_control_wrapper( $attributes ) { - $attributes['id'] = 'mobile-menu-control-wrapper'; - $attributes['class'] .= ' main-navigation mobile-menu-control-wrapper'; - $attributes['aria-label'] = esc_attr__( 'Mobile Toggle', 'generatepress' ); - - return $attributes; - } - - /** - * Add attributes to our footer element. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function site_info( $attributes ) { - $attributes['class'] .= ' site-info'; - $attributes['aria-label'] = esc_attr__( 'Site', 'generatepress' ); - - return $attributes; - } - - /** - * Add attributes to our inside site info container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function inside_site_info( $attributes ) { - $attributes['class'] .= ' inside-site-info'; - - if ( 'full-width' !== generate_get_option( 'footer_inner_width' ) ) { - $attributes['class'] .= ' grid-container'; - - if ( ! generate_is_using_flexbox() ) { - $attributes['class'] .= ' grid-parent'; - } - } - - return $attributes; - } - - /** - * Add attributes to our entry headers. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function entry_header( $attributes ) { - $attributes['class'] .= ' entry-header'; - - return $attributes; - } - - /** - * Add attributes to our page headers. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function page_header( $attributes ) { - $attributes['class'] .= ' page-header'; - $attributes['aria-label'] = esc_attr__( 'Page', 'generatepress' ); - - return $attributes; - } - - /** - * Add attributes to our entry headers. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function post_navigation( $attributes ) { - if ( is_single() ) { - $attributes['class'] .= ' post-navigation'; - $attributes['aria-label'] = esc_attr__( 'Posts', 'generatepress' ); - } else { - $attributes['class'] .= ' paging-navigation'; - $attributes['aria-label'] = esc_attr__( 'Archive Page', 'generatepress' ); - } - - return $attributes; - } - - /** - * Add attributes to our page container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function page( $attributes ) { - $attributes['id'] = 'page'; - - return $attributes; - } - - /** - * Add attributes to our site content container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function site_content( $attributes ) { - $attributes['id'] = 'content'; - $attributes['class'] .= ' site-content'; - - return $attributes; - } - - /** - * Add attributes to our primary content container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function content( $attributes ) { - $attributes['id'] = 'primary'; - - return $attributes; - } - - /** - * Add attributes to our primary content container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function main( $attributes ) { - $attributes['id'] = 'main'; - - return $attributes; - } - - /** - * Add attributes to our left sidebar. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function left_sidebar( $attributes ) { - $classes = generate_get_element_classes( 'left_sidebar' ); - - if ( $classes ) { - $attributes['class'] .= ' ' . join( ' ', $classes ); - } - - $attributes['id'] = 'left-sidebar'; - - return $attributes; - } - - /** - * Add attributes to our right sidebar. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function right_sidebar( $attributes ) { - $classes = generate_get_element_classes( 'right_sidebar' ); - - if ( $classes ) { - $attributes['class'] .= ' ' . join( ' ', $classes ); - } - - $attributes['id'] = 'right-sidebar'; - - return $attributes; - } - - /** - * Add attributes to our footer widget inner container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function footer_widgets_container( $attributes ) { - $classes = generate_get_element_classes( 'inside_footer' ); - - if ( $classes ) { - $attributes['class'] .= ' ' . join( ' ', $classes ); - } - - return $attributes; - } - - /** - * Add attributes to our footer widget inner container. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - * @param array $settings Settings passed through the function. - */ - public function comment_body( $attributes, $settings ) { - $attributes['class'] .= ' comment-body'; - $attributes['id'] = 'div-comment-' . $settings['comment-id']; - - return $attributes; - } - - /** - * Add attributes to our comment meta. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function comment_meta( $attributes ) { - $attributes['class'] .= ' comment-meta'; - $attributes['aria-label'] = esc_attr__( 'Comment meta', 'generatepress' ); - - return $attributes; - } - - /** - * Add attributes to our footer entry meta. - * - * @since 3.1.0 - * @param array $attributes The existing attributes. - */ - public function footer_entry_meta( $attributes ) { - $attributes['class'] .= ' entry-meta'; - $attributes['aria-label'] = esc_attr__( 'Entry meta', 'generatepress' ); - - return $attributes; - } - - /** - * Add attributes to our WooCommerce content container. - * - * @since 3.2.0 - * @param array $attributes The existing attributes. - */ - public function woocommerce_content( $attributes ) { - if ( is_singular() ) { - $attributes['id'] = 'post-' . get_the_ID(); - $attributes['class'] = esc_attr( implode( ' ', get_post_class( '', get_the_ID() ) ) ); - - if ( 'microdata' === generate_get_schema_type() ) { - $type = apply_filters( 'generate_article_itemtype', 'CreativeWork' ); - - $attributes['itemtype'] = sprintf( - 'https://schema.org/%s', - $type - ); - - $attributes['itemscope'] = true; - } - } else { - $attributes['class'] = 'woocommerce-archive-wrapper'; - } - - return $attributes; - } -} - -GeneratePress_HTML_Attributes::get_instance(); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-rest.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-rest.php deleted file mode 100644 index 6ecc3a03..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-rest.php +++ /dev/null @@ -1,151 +0,0 @@ -namespace . $this->version; - - register_rest_route( - $namespace, - '/reset/', - array( - 'methods' => WP_REST_Server::EDITABLE, - 'callback' => array( $this, 'reset' ), - 'permission_callback' => array( $this, 'update_settings_permission' ), - ) - ); - } - - /** - * Get edit options permissions. - * - * @return bool - */ - public function update_settings_permission() { - return current_user_can( 'manage_options' ); - } - - /** - * Reset settings. - * - * @param WP_REST_Request $request request object. - * - * @return mixed - */ - public function reset( WP_REST_Request $request ) { - delete_option( 'generate_settings' ); - delete_option( 'generate_dynamic_css_output' ); - delete_option( 'generate_dynamic_css_cached_version' ); - - return $this->success( __( 'Settings reset.', 'generatepress' ) ); - } - - /** - * Success rest. - * - * @param mixed $response response data. - * @return mixed - */ - public function success( $response ) { - return new WP_REST_Response( - array( - 'success' => true, - 'response' => $response, - ), - 200 - ); - } - - /** - * Failed rest. - * - * @param mixed $response response data. - * @return mixed - */ - public function failed( $response ) { - return new WP_REST_Response( - array( - 'success' => false, - 'response' => $response, - ), - 200 - ); - } - - /** - * Error rest. - * - * @param mixed $code error code. - * @param mixed $response response data. - * @return mixed - */ - public function error( $code, $response ) { - return new WP_REST_Response( - array( - 'error' => true, - 'success' => false, - 'error_code' => $code, - 'response' => $response, - ), - 401 - ); - } -} - -GeneratePress_Rest::get_instance(); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-theme-update.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-theme-update.php deleted file mode 100644 index d6326326..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-theme-update.php +++ /dev/null @@ -1,408 +0,0 @@ - 'font', - 'structure' => 'floats', - 'hide_tagline' => '', - 'container_width' => '1100', - 'nav_position_setting' => 'nav-below-header', - 'container_alignment' => 'boxes', - 'background_color' => '#efefef', - 'text_color' => '#3a3a3a', - 'header_text_color' => '#3a3a3a', - 'header_link_color' => '#3a3a3a', - 'navigation_background_color' => '#222222', - 'navigation_text_color' => '#ffffff', - 'navigation_background_hover_color' => '#3f3f3f', - 'navigation_text_hover_color' => '#ffffff', - 'navigation_background_current_color' => '#3f3f3f', - 'navigation_text_current_color' => '#ffffff', - 'subnavigation_background_color' => '#3f3f3f', - 'subnavigation_text_color' => '#ffffff', - 'subnavigation_background_hover_color' => '#4f4f4f', - 'subnavigation_text_hover_color' => '#ffffff', - 'subnavigation_background_current_color' => '#4f4f4f', - 'subnavigation_text_current_color' => '#ffffff', - 'sidebar_widget_title_color' => '#000000', - 'site_title_font_size' => '45', - 'mobile_site_title_font_size' => '30', - 'form_button_background_color' => '#666666', - 'form_button_background_color_hover' => '#3f3f3f', - 'footer_background_color' => '#222222', - 'footer_link_hover_color' => '#606060', - 'entry_meta_link_color' => '#595959', - 'entry_meta_link_color_hover' => '#1e73be', - 'blog_post_title_color' => '', - 'blog_post_title_hover_color' => '', - 'heading_1_font_size' => '40', - 'mobile_heading_1_font_size' => '30', - 'heading_1_weight' => '300', - 'heading_2_font_size' => '30', - 'mobile_heading_2_font_size' => '25', - 'heading_2_weight' => '300', - 'heading_3_font_size' => '20', - 'mobile_heading_3_font_size' => '', - 'heading_4_font_size' => '', - 'mobile_heading_4_font_size' => '', - 'heading_5_font_size' => '', - 'mobile_heading_5_font_size' => '', - ); - - foreach ( $old_defaults as $key => $value ) { - if ( ! isset( $settings[ $key ] ) ) { - $settings[ $key ] = $value; - $update_options = true; - } - } - - if ( $update_options ) { - update_option( 'generate_settings', $settings ); - } - - $spacing_settings = get_option( 'generate_spacing_settings', array() ); - $update_spacing_options = false; - - $old_spacing_defaults = array( - 'left_sidebar_width' => '25', - 'right_sidebar_width' => '25', - 'top_bar_right' => '10', - 'top_bar_left' => '10', - 'mobile_top_bar_right' => '', - 'mobile_top_bar_left' => '', - 'header_top' => '40', - 'header_bottom' => '40', - 'mobile_header_right' => '', - 'mobile_header_left' => '', - 'mobile_widget_top' => '', - 'mobile_widget_right' => '', - 'mobile_widget_bottom' => '', - 'mobile_widget_left' => '', - 'mobile_footer_widget_container_top' => '', - 'mobile_footer_widget_container_right' => '', - 'mobile_footer_widget_container_bottom' => '', - 'mobile_footer_widget_container_left' => '', - 'footer_right' => '20', - 'footer_left' => '20', - 'mobile_footer_right' => '10', - 'mobile_footer_left' => '10', - ); - - foreach ( $old_spacing_defaults as $key => $value ) { - if ( ! isset( $spacing_settings[ $key ] ) ) { - $spacing_settings[ $key ] = $value; - $update_spacing_options = true; - } - } - - if ( $update_spacing_options ) { - update_option( 'generate_spacing_settings', $spacing_settings ); - } - - if ( $update_options || $update_spacing_options ) { - delete_option( 'generate_dynamic_css_output' ); - delete_option( 'generate_dynamic_css_cached_version' ); - - // Reset our dynamic CSS file updated time so it regenerates. - $dynamic_css_data = get_option( 'generatepress_dynamic_css_data', array() ); - - if ( ! empty( $dynamic_css_data ) ) { - if ( isset( $dynamic_css_data['updated_time'] ) ) { - unset( $dynamic_css_data['updated_time'] ); - } - - update_option( 'generatepress_dynamic_css_data', $dynamic_css_data ); - } - } - } - - /** - * Update sites using old defaults. - * - * @since 3.1.0 - */ - public static function v_3_1_0() { - $settings = get_option( 'generate_settings', array() ); - $update_options = false; - - $old_defaults = array( - 'underline_links' => 'never', - 'use_dynamic_typography' => false, - 'background_color' => '#f7f8f9', - 'text_color' => '#222222', - 'link_color' => '#1e73be', - 'link_color_hover' => '#000000', - 'header_background_color' => '#ffffff', - 'site_title_color' => '#222222', - 'site_tagline_color' => '#757575', - 'navigation_background_color' => '#ffffff', - 'navigation_background_hover_color' => '#ffffff', - 'navigation_background_current_color' => '#ffffff', - 'navigation_text_color' => '#515151', - 'navigation_text_hover_color' => '#7a8896', - 'navigation_text_current_color' => '#7a8896', - 'subnavigation_background_color' => '#eaeaea', - 'subnavigation_background_hover_color' => '#eaeaea', - 'subnavigation_background_current_color' => '#eaeaea', - 'subnavigation_text_color' => '#515151', - 'subnavigation_text_hover_color' => '#7a8896', - 'subnavigation_text_current_color' => '#7a8896', - 'content_background_color' => '#ffffff', - 'blog_post_title_color' => '#222222', - 'blog_post_title_hover_color' => '#55555e', - 'entry_meta_text_color' => '#595959', - 'sidebar_widget_background_color' => '#ffffff', - 'footer_widget_background_color' => '#ffffff', - 'footer_widget_title_color' => '#000000', - 'footer_background_color' => '#55555e', - 'footer_text_color' => '#ffffff', - 'footer_link_color' => '#ffffff', - 'footer_link_hover_color' => '#d3d3d3', - 'form_background_color' => '#fafafa', - 'form_text_color' => '#666666', - 'form_background_color_focus' => '#ffffff', - 'form_text_color_focus' => '#666666', - 'form_border_color' => '#cccccc', - 'form_border_color_focus' => '#bfbfbf', - ); - - foreach ( $old_defaults as $key => $value ) { - if ( ! isset( $settings[ $key ] ) ) { - $settings[ $key ] = $value; - $update_options = true; - } - } - - if ( $update_options ) { - update_option( 'generate_settings', $settings ); - } - } -} - -GeneratePress_Theme_Update::get_instance(); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-typography-migration.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-typography-migration.php deleted file mode 100644 index dff7b7be..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-typography-migration.php +++ /dev/null @@ -1,306 +0,0 @@ - 'body', - 'legacy_prefix' => 'body', - 'group' => 'base', - 'module' => 'core', - ), - array( - 'selector' => 'top-bar', - 'legacy_prefix' => 'top_bar', - 'group' => 'widgets', - 'module' => 'core', - ), - array( - 'selector' => 'main-title', - 'legacy_prefix' => 'site_title', - 'group' => 'header', - 'module' => 'core', - ), - array( - 'selector' => 'site-description', - 'legacy_prefix' => 'site_tagline', - 'group' => 'header', - 'module' => 'core', - ), - array( - 'selector' => 'primary-menu-items', - 'legacy_prefix' => 'navigation', - 'group' => 'primaryNavigation', - 'module' => 'core', - ), - array( - 'selector' => 'widget-titles', - 'legacy_prefix' => 'widget_title', - 'group' => 'widgets', - 'module' => 'core', - ), - array( - 'selector' => 'buttons', - 'legacy_prefix' => 'buttons', - 'group' => 'content', - 'module' => 'core', - ), - array( - 'selector' => 'single-content-title', - 'legacy_prefix' => 'single_post_title', - 'group' => 'content', - 'module' => 'core', - ), - array( - 'selector' => 'archive-content-title', - 'legacy_prefix' => 'archive_post_title', - 'group' => 'content', - 'module' => 'core', - ), - array( - 'selector' => 'footer', - 'legacy_prefix' => 'footer', - 'group' => 'footer', - 'module' => 'core', - ), - ); - - $headings = array( - 'h1' => 'heading_1', - 'h2' => 'heading_2', - 'h3' => 'heading_3', - 'h4' => 'heading_4', - 'h5' => 'heading_5', - 'h6' => 'heading_6', - ); - - foreach ( $headings as $selector => $legacy_prefix ) { - $data[] = array( - 'selector' => $selector, - 'legacy_prefix' => $legacy_prefix, - 'group' => 'content', - 'module' => 'core', - ); - } - - if ( function_exists( 'generate_secondary_nav_typography_selectors' ) ) { - $data[] = array( - 'selector' => 'secondary-nav-menu-items', - 'legacy_prefix' => 'secondary_navigation', - 'group' => 'secondaryNavigation', - 'module' => 'secondary-nav', - ); - } - - if ( function_exists( 'generate_menu_plus_typography_selectors' ) ) { - $data[] = array( - 'selector' => 'off-canvas-panel-menu-items', - 'legacy_prefix' => 'slideout', - 'group' => 'offCanvasPanel', - 'module' => 'off-canvas-panel', - ); - } - - if ( function_exists( 'generate_woocommerce_typography_selectors' ) ) { - $data[] = array( - 'selector' => 'woocommerce-catalog-product-titles', - 'legacy_prefix' => 'wc_product_title', - 'group' => 'wooCommerce', - 'module' => 'woocommerce', - ); - - $data[] = array( - 'selector' => 'woocommerce-related-product-titles', - 'legacy_prefix' => 'wc_related_product_title', - 'group' => 'wooCommerce', - 'module' => 'woocommerce', - ); - } - - return $data; - } - - /** - * Check if we have a saved value. - * - * @param string $id The option ID. - * @param array $settings The saved settings. - * @param array $defaults The defaults. - */ - public static function has_saved_value( $id, $settings, $defaults ) { - return isset( $settings[ $id ] ) - && isset( $defaults[ $id ] ) - && $defaults[ $id ] !== $settings[ $id ] // Need this because the Customizer treats defaults as saved values. - && ( - ! empty( $settings[ $id ] ) - || 0 === $settings[ $id ] - ); - } - - /** - * Get all of our mapped typography data. - */ - public static function get_mapped_typography_data() { - $settings = get_option( 'generate_settings', array() ); - $defaults = generate_get_default_fonts(); - $typography_mapping = array(); - - // These options don't have "font" in their IDs. - $no_font_in_ids = array( - 'single_post_title', - 'archive_post_title', - ); - - for ( $headings = 1; $headings < 7; $headings++ ) { - $no_font_in_ids[] = 'heading_' . $headings; - } - - foreach ( self::get_option_prefixes() as $key => $data ) { - $legacy_setting_ids = array( - 'fontFamily' => 'font_' . $data['legacy_prefix'], - 'fontWeight' => $data['legacy_prefix'] . '_font_weight', - 'textTransform' => $data['legacy_prefix'] . '_font_transform', - 'fontSize' => $data['legacy_prefix'] . '_font_size', - 'fontSizeMobile' => 'mobile_' . $data['legacy_prefix'] . 'font_size', - 'lineHeight' => $data['legacy_prefix'] . '_line_height', - ); - - if ( 'slideout' === $data['legacy_prefix'] ) { - $legacy_setting_ids['fontSizeMobile'] = $data['legacy_prefix'] . '_mobile_font_size'; - } - - if ( in_array( $data['legacy_prefix'], $no_font_in_ids ) ) { - $legacy_setting_ids['fontWeight'] = $data['legacy_prefix'] . '_weight'; - $legacy_setting_ids['textTransform'] = $data['legacy_prefix'] . '_transform'; - } - - foreach ( $legacy_setting_ids as $name => $id ) { - if ( self::has_saved_value( $id, $settings, $defaults ) ) { - $typography_mapping[ $key ][ $name ] = $settings[ $id ]; - } - - if ( 'secondary_navigation' === $data['legacy_prefix'] && function_exists( 'generate_secondary_nav_get_defaults' ) ) { - $secondary_nav_settings = get_option( 'generate_secondary_nav_settings', array() ); - $secondary_nav_defaults = generate_secondary_nav_get_defaults(); - - if ( self::has_saved_value( $id, $secondary_nav_settings, $secondary_nav_defaults ) ) { - $typography_mapping[ $key ][ $name ] = $secondary_nav_settings[ $id ]; - } - } - } - - if ( 'body' === $key ) { - if ( self::has_saved_value( 'body_line_height', $settings, $defaults ) ) { - $typography_mapping[ $key ]['lineHeightUnit'] = ''; - } - - if ( self::has_saved_value( 'paragraph_margin', $settings, $defaults ) ) { - $typography_mapping[ $key ]['marginBottom'] = $settings['paragraph_margin']; - $typography_mapping[ $key ]['marginBottomUnit'] = 'em'; - } - } - - if ( 'widget-titles' === $key && self::has_saved_value( 'widget_title_separator', $settings, $defaults ) ) { - $typography_mapping[ $key ]['marginBottom'] = $settings['widget_title_separator']; - $typography_mapping[ $key ]['marginBottomUnit'] = 'px'; - } - - if ( 'h1' === $key || 'h2' === $key || 'h3' === $key ) { - if ( self::has_saved_value( $data['legacy_prefix'] . '_margin_bottom', $settings, $defaults ) ) { - $typography_mapping[ $key ]['marginBottom'] = $settings[ $data['legacy_prefix'] . '_margin_bottom' ]; - $typography_mapping[ $key ]['marginBottomUnit'] = 'px'; - } - } - - if ( isset( $typography_mapping[ $key ]['fontSize'] ) ) { - $typography_mapping[ $key ]['fontSizeUnit'] = 'px'; - } - - if ( isset( $typography_mapping[ $key ] ) ) { - $typography_mapping[ $key ]['selector'] = $data['selector']; - $typography_mapping[ $key ]['module'] = $data['module']; - $typography_mapping[ $key ]['group'] = $data['group']; - } - } - - // Reset array keys starting at 0. - $typography_mapping = array_values( $typography_mapping ); - - return $typography_mapping; - } - - /** - * Get all of our mapped font data. - */ - public static function get_mapped_font_data() { - $font_mapping = array(); - - foreach ( self::get_option_prefixes() as $key => $data ) { - $settings = get_option( 'generate_settings', array() ); - $defaults = generate_get_default_fonts(); - - if ( 'secondary_navigation' === $data['legacy_prefix'] && function_exists( 'generate_secondary_nav_get_defaults' ) ) { - $settings = get_option( 'generate_secondary_nav_settings', array() ); - $defaults = generate_secondary_nav_get_defaults(); - } - - if ( self::has_saved_value( 'font_' . $data['legacy_prefix'], $settings, $defaults ) ) { - $has_font = array_search( $settings[ 'font_' . $data['legacy_prefix'] ], array_column( $font_mapping, 'fontFamily' ) ); - - if ( false !== $has_font ) { - continue; - } - - $font_mapping[ $key ]['fontFamily'] = $settings[ 'font_' . $data['legacy_prefix'] ]; - - $local_fonts = generate_typography_default_fonts(); - - if ( ! in_array( $settings[ 'font_' . $data['legacy_prefix'] ], $local_fonts ) ) { - $font_mapping[ $key ]['googleFont'] = true; - $font_mapping[ $key ]['googleFontCategory'] = get_theme_mod( 'font_' . $data['legacy_prefix'] . '_category' ); - $font_mapping[ $key ]['googleFontVariants'] = get_theme_mod( 'font_' . $data['legacy_prefix'] . '_variants' ); - } - } - } - - // Reset array keys starting at 0. - $font_mapping = array_values( $font_mapping ); - - return $font_mapping; - } -} - -GeneratePress_Typography_Migration::get_instance(); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-typography.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-typography.php deleted file mode 100644 index 6514095e..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-typography.php +++ /dev/null @@ -1,395 +0,0 @@ - implode( '|', $data ), - 'subset' => null, - 'display' => generate_get_option( 'google_font_display' ), - ) - ); - - $google_fonts_uri = add_query_arg( $font_args, 'https://fonts.googleapis.com/css' ); - } - - return $google_fonts_uri; - } - - /** - * Enqueue Google Fonts if they're set. - */ - public function enqueue_google_fonts() { - if ( ! generate_is_using_dynamic_typography() ) { - return; - } - - $google_fonts_uri = self::get_google_fonts_uri(); - - if ( $google_fonts_uri ) { - wp_enqueue_style( 'generate-google-fonts', $google_fonts_uri, array(), GENERATE_VERSION ); - } - } - - /** - * Build our typography CSS. - * - * @param string $module The name of the module we're generating CSS for. - * @param string $specific_selector Target a specific selector to get the CSS for. - */ - public static function get_css( $module = 'core', $specific_selector = '' ) { - $typography = generate_get_option( 'typography' ); - - // Get data for a specific module so CSS can be compiled separately. - $typography = array_filter( - (array) $typography, - function( $data ) use ( $module ) { - return ( isset( $data['module'] ) && $data['module'] === $module ); - } - ); - - if ( empty( $typography ) ) { - return ''; - } - - $css = new GeneratePress_CSS(); - - $body_selector = 'body'; - $paragraph_selector = 'p'; - - foreach ( $typography as $key => $data ) { - $options = wp_parse_args( - $data, - self::get_defaults() - ); - - $selector = self::get_css_selector( $options['selector'] ); - - if ( 'custom' === $selector ) { - $selector = $options['customSelector']; - } - - if ( - $specific_selector && - $options['selector'] !== $specific_selector && - $options['customSelector'] !== $specific_selector - ) { - continue; - } - - $font_family = self::get_font_family( $options['fontFamily'] ); - - $css->set_selector( $selector ); - $css->add_property( 'font-family', $font_family ); - $css->add_property( 'font-weight', $options['fontWeight'] ); - $css->add_property( 'text-transform', $options['textTransform'] ); - $css->add_property( 'font-style', $options['fontStyle'] ); - $css->add_property( 'text-decoration', $options['textDecoration'] ); - $css->add_property( 'font-size', $options['fontSize'], false, $options['fontSizeUnit'] ); - $css->add_property( 'letter-spacing', $options['letterSpacing'], false, $options['letterSpacingUnit'] ); - - if ( 'body' !== $options['selector'] ) { - $css->add_property( 'line-height', $options['lineHeight'], false, $options['lineHeightUnit'] ); - $css->add_property( 'margin-bottom', $options['marginBottom'], false, $options['marginBottomUnit'] ); - } else { - $css->set_selector( $body_selector ); - $css->add_property( 'line-height', $options['lineHeight'], false, $options['lineHeightUnit'] ); - - $css->set_selector( $paragraph_selector ); - $css->add_property( 'margin-bottom', $options['marginBottom'], false, $options['marginBottomUnit'] ); - } - - $css->start_media_query( generate_get_media_query( 'tablet' ) ); - - $css->set_selector( $selector ); - $css->add_property( 'font-size', $options['fontSizeTablet'], false, $options['fontSizeUnit'] ); - $css->add_property( 'letter-spacing', $options['letterSpacingTablet'], false, $options['letterSpacingUnit'] ); - - if ( 'body' !== $options['selector'] ) { - $css->add_property( 'line-height', $options['lineHeightTablet'], false, $options['lineHeightUnit'] ); - $css->add_property( 'margin-bottom', $options['marginBottomTablet'], false, $options['marginBottomUnit'] ); - } else { - $css->set_selector( $body_selector ); - $css->add_property( 'line-height', $options['lineHeightTablet'], false, $options['lineHeightUnit'] ); - - $css->set_selector( $paragraph_selector ); - $css->add_property( 'margin-bottom', $options['marginBottomTablet'], false, $options['marginBottomUnit'] ); - } - - $css->stop_media_query(); - - $css->start_media_query( generate_get_media_query( 'mobile' ) ); - - $css->set_selector( $selector ); - $css->add_property( 'font-size', $options['fontSizeMobile'], false, $options['fontSizeUnit'] ); - $css->add_property( 'letter-spacing', $options['letterSpacingMobile'], false, $options['letterSpacingUnit'] ); - - if ( 'body' !== $options['selector'] ) { - $css->add_property( 'line-height', $options['lineHeightMobile'], false, $options['lineHeightUnit'] ); - $css->add_property( 'margin-bottom', $options['marginBottomMobile'], false, $options['marginBottomUnit'] ); - } else { - $css->set_selector( $body_selector ); - $css->add_property( 'line-height', $options['lineHeightMobile'], false, $options['lineHeightUnit'] ); - - $css->set_selector( $paragraph_selector ); - $css->add_property( 'margin-bottom', $options['marginBottomMobile'], false, $options['marginBottomUnit'] ); - } - - $css->stop_media_query(); - } - - return $css->css_output(); - } - - /** - * Get the CSS selector. - * - * @param string $selector The saved selector to look up. - */ - public static function get_css_selector( $selector ) { - switch ( $selector ) { - case 'body': - $selector = 'body, button, input, select, textarea'; - break; - - case 'main-title': - $selector = '.main-title'; - break; - - case 'site-description': - $selector = '.site-description'; - break; - - case 'primary-menu-items': - $selector = '.main-navigation a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items'; - break; - - case 'primary-sub-menu-items': - $selector = '.main-navigation .main-nav ul ul li a'; - break; - - case 'primary-menu-toggle': - $selector = '.main-navigation .menu-toggle'; - break; - - case 'buttons': - $selector = 'button:not(.menu-toggle),html input[type="button"],input[type="reset"],input[type="submit"],.button,.wp-block-button .wp-block-button__link'; - break; - - case 'all-headings': - $selector = 'h1, h2, h3, h4, h5, h6'; - break; - - case 'single-content-title': - $selector = 'h1.entry-title'; - break; - - case 'archive-content-title': - $selector = 'h2.entry-title'; - break; - - case 'top-bar': - $selector = '.top-bar'; - break; - - case 'widget-titles': - $selector = '.widget-title'; - break; - - case 'footer': - $selector = '.site-info'; - break; - } - - return apply_filters( 'generate_typography_css_selector', $selector ); - } - - /** - * Get our full font family value. - * - * @param string $font_family The font family name. - */ - public static function get_font_family( $font_family ) { - if ( ! $font_family ) { - return $font_family; - } - - $font_manager = generate_get_option( 'font_manager' ); - - $font_families = array(); - foreach ( (array) $font_manager as $key => $data ) { - $font_families[ $data['fontFamily'] ] = $data; - } - - $font_family_args = array(); - if ( ! empty( $font_families[ $font_family ] ) ) { - $font_family_args = $font_families[ $font_family ]; - } - - if ( ! empty( $font_family_args['googleFont'] ) && ! empty( $font_family_args['googleFontCategory'] ) ) { - // Add quotations around font names with standalone numbers. - if ( preg_match( '/(? '', - 'customSelector' => '', - 'fontFamily' => '', - 'fontWeight' => '', - 'textTransform' => '', - 'textDecoration' => '', - 'fontStyle' => '', - 'fontSize' => '', - 'fontSizeTablet' => '', - 'fontSizeMobile' => '', - 'fontSizeUnit' => 'px', - 'lineHeight' => '', - 'lineHeightTablet' => '', - 'lineHeightMobile' => '', - 'lineHeightUnit' => '', - 'letterSpacing' => '', - 'letterSpacingTablet' => '', - 'letterSpacingMobile' => '', - 'letterSpacingUnit' => 'px', - 'marginBottom' => '', - 'marginBottomTablet' => '', - 'marginBottomMobile' => '', - 'marginBottomUnit' => 'px', - ); - } - - /** - * Add editor styles to the block editor. - * - * @param array $editor_styles Existing styles. - */ - public function add_editor_styles( $editor_styles ) { - if ( generate_is_using_dynamic_typography() ) { - $editor_styles[] = 'assets/css/admin/editor-typography.css'; - } - - return $editor_styles; - } - - /** - * Add scripts to the block editor. - */ - public function enqueue_editor_scripts() { - $html_typography = self::get_css( 'core', 'html' ); - - if ( $html_typography ) { - wp_add_inline_style( - /** - * `wp-edit-blocks` is enqueued in the editor, including the iframes. - * This is not ideal, as we should use the `block_editor_settings_all` filter to add editor CSS. - * However, that filter prepends all selectors with `.editor-styles-wrapper`, which breaks the above - * selector, as it appears above that element in the DOM. - * - * Related: https://github.com/tomusborne/generatepress/issues/472 - */ - 'wp-edit-blocks', - $html_typography - ); - } - } -} - -GeneratePress_Typography::get_instance(); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/css-output.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/css-output.php deleted file mode 100644 index 20982310..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/css-output.php +++ /dev/null @@ -1,1335 +0,0 @@ - section using the Theme Customizer. - * - * @since 0.1 - */ - function generate_base_css() { - $settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_defaults() - ); - - $css = new GeneratePress_CSS(); - - $css->set_selector( 'body' ); - $css->add_property( 'background-color', $settings['background_color'] ); - $css->add_property( 'color', $settings['text_color'] ); - - $css->set_selector( 'a' ); - $css->add_property( 'color', $settings['link_color'] ); - - $css->set_selector( 'a:visited' )->add_property( 'color', $settings['link_color_visited'] ); - - $underline_links = generate_get_option( 'underline_links' ); - - if ( 'never' !== $underline_links ) { - if ( 'always' === $underline_links ) { - $css->set_selector( 'a' ); - $css->add_property( 'text-decoration', 'underline' ); - } - - if ( 'hover' === $underline_links ) { - $css->set_selector( 'a:hover, a:focus' ); - $css->add_property( 'text-decoration', 'underline' ); - } - - if ( 'not-hover' === $underline_links ) { - $css->set_selector( 'a' ); - $css->add_property( 'text-decoration', 'underline' ); - - $css->set_selector( 'a:hover, a:focus' ); - $css->add_property( 'text-decoration', 'none' ); - } - - $css->set_selector( '.entry-title a, .site-branding a, a.button, .wp-block-button__link, .main-navigation a' ); - $css->add_property( 'text-decoration', 'none' ); - } - - $css->set_selector( 'a:hover, a:focus, a:active' ); - $css->add_property( 'color', $settings['link_color_hover'] ); - - if ( generate_is_using_flexbox() ) { - if ( 1200 !== (int) $settings['container_width'] ) { - $css->set_selector( '.grid-container' )->add_property( 'max-width', absint( $settings['container_width'] ), false, 'px' ); - } - } else { - $css->set_selector( 'body .grid-container' )->add_property( 'max-width', absint( $settings['container_width'] ), false, 'px' ); - } - - if ( apply_filters( 'generate_do_group_inner_container_style', true ) ) { - $css->set_selector( '.wp-block-group__inner-container' ); - $css->add_property( 'max-width', absint( $settings['container_width'] ), false, 'px' ); - $css->add_property( 'margin-left', 'auto' ); - $css->add_property( 'margin-right', 'auto' ); - } - - $nav_drop_point = generate_get_option( 'nav_drop_point' ); - $nav_location = generate_get_navigation_location(); - - if ( ( 'nav-float-right' === $nav_location || 'nav-float-left' === $nav_location ) && $nav_drop_point ) { - $media_query = sprintf( - '(max-width: %1$s) and %2$s', - absint( $nav_drop_point ) . 'px', - apply_filters( 'generate_not_mobile_menu_media_query', '(min-width: 769px)' ) - ); - - $css->start_media_query( $media_query ); - $css->set_selector( '.inside-header' ); - $css->add_property( 'display', 'flex' ); - $css->add_property( 'flex-direction', 'column' ); - $css->add_property( 'align-items', 'center' ); - - $css->set_selector( '.site-logo, .site-branding' ); - $css->add_property( 'margin-bottom', '1.5em' ); - - $css->set_selector( '#site-navigation' ); - $css->add_property( 'margin', '0 auto' ); - - $css->set_selector( '.header-widget' ); - $css->add_property( 'margin-top', '1.5em' ); - - // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact -- Indented inside media query. - if ( 'nav-float-left' === generate_get_option( 'nav_position_setting' ) ) { - $css->set_selector( '.nav-float-left .site-logo,.nav-float-left .site-branding,.nav-float-left .header-widget' ); - $css->add_property( 'order', 'initial' ); - } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact -- Indented inside media query. - $css->stop_media_query(); - } - - if ( generate_get_option( 'logo_width' ) ) { - $css->set_selector( '.site-header .header-image' ); - $css->add_property( 'width', absint( generate_get_option( 'logo_width' ) ), false, 'px' ); - } - - if ( generate_get_option( 'back_to_top' ) ) { - $css->set_selector( '.generate-back-to-top' ); - $css->add_property( 'font-size', '20px' ); - $css->add_property( 'border-radius', '3px' ); - $css->add_property( 'position', 'fixed' ); - $css->add_property( 'bottom', '30px' ); - $css->add_property( 'right', '30px' ); - $css->add_property( 'line-height', '40px' ); - $css->add_property( 'width', '40px' ); - $css->add_property( 'text-align', 'center' ); - $css->add_property( 'z-index', '10' ); - $css->add_property( 'transition', 'opacity 300ms ease-in-out' ); - $css->add_property( 'opacity', '0.1' ); // Can't be 0 or we face double-tap issues on iOS. - $css->add_property( 'transform', 'translateY(1000px)' ); // Can't use visibility or we face the same issue as above. - - $css->set_selector( '.generate-back-to-top__show' ); - $css->add_property( 'opacity', '1' ); - $css->add_property( 'transform', 'translateY(0)' ); - } - - if ( 'enable' === generate_get_option( 'nav_search' ) ) { - $css->set_selector( '.navigation-search' ); - $css->add_property( 'position', 'absolute' ); - $css->add_property( 'left', '-99999px' ); - $css->add_property( 'pointer-events', 'none' ); - $css->add_property( 'visibility', 'hidden' ); - $css->add_property( 'z-index', '20' ); - $css->add_property( 'width', '100%' ); - $css->add_property( 'top', '0' ); - $css->add_property( 'transition', 'opacity 100ms ease-in-out' ); - $css->add_property( 'opacity', '0' ); - - $css->set_selector( '.navigation-search.nav-search-active' ); - $css->add_property( 'left', '0' ); - $css->add_property( 'right', '0' ); - $css->add_property( 'pointer-events', 'auto' ); - $css->add_property( 'visibility', 'visible' ); - $css->add_property( 'opacity', '1' ); - - $css->set_selector( '.navigation-search input[type="search"]' ); - $css->add_property( 'outline', '0' ); - $css->add_property( 'border', '0' ); - $css->add_property( 'vertical-align', 'bottom' ); - $css->add_property( 'line-height', '1' ); - $css->add_property( 'opacity', '0.9' ); - $css->add_property( 'width', '100%' ); - $css->add_property( 'z-index', '20' ); - $css->add_property( 'border-radius', '0' ); - $css->add_property( '-webkit-appearance', 'none' ); - $css->add_property( 'height', '60px' ); - - $css->set_selector( '.navigation-search input::-ms-clear' ); - $css->add_property( 'display', 'none' ); - $css->add_property( 'width', '0' ); - $css->add_property( 'height', '0' ); - - $css->set_selector( '.navigation-search input::-ms-reveal' ); - $css->add_property( 'display', 'none' ); - $css->add_property( 'width', '0' ); - $css->add_property( 'height', '0' ); - - $css->set_selector( '.navigation-search input::-webkit-search-decoration, .navigation-search input::-webkit-search-cancel-button, .navigation-search input::-webkit-search-results-button, .navigation-search input::-webkit-search-results-decoration' ); - $css->add_property( 'display', 'none' ); - - if ( ! generate_is_using_flexbox() ) { - $css->set_selector( '.main-navigation li.search-item' ); - $css->add_property( 'z-index', '21' ); - - $css->set_selector( 'li.search-item.active' ); - $css->add_property( 'transition', 'opacity 100ms ease-in-out' ); - - $css->set_selector( '.nav-left-sidebar .main-navigation li.search-item.active,.nav-right-sidebar .main-navigation li.search-item.active' ); - $css->add_property( 'width', 'auto' ); - $css->add_property( 'display', 'inline-block' ); - $css->add_property( 'float', 'right' ); - } - - $css->set_selector( '.gen-sidebar-nav .navigation-search' ); - $css->add_property( 'top', 'auto' ); - $css->add_property( 'bottom', '0' ); - } - - if ( 'click' === generate_get_option( 'nav_dropdown_type' ) || 'click-arrow' === generate_get_option( 'nav_dropdown_type' ) ) { - $css->set_selector( '.dropdown-click .main-navigation ul ul' ); - $css->add_property( 'display', 'none' ); - $css->add_property( 'visibility', 'hidden' ); - - $css->set_selector( '.dropdown-click .main-navigation ul ul ul.toggled-on' ); - $css->add_property( 'left', '0' ); - $css->add_property( 'top', 'auto' ); - $css->add_property( 'position', 'relative' ); - $css->add_property( 'box-shadow', 'none' ); - $css->add_property( 'border-bottom', '1px solid rgba(0,0,0,0.05)' ); - - $css->set_selector( '.dropdown-click .main-navigation ul ul li:last-child > ul.toggled-on' ); - $css->add_property( 'border-bottom', '0' ); - - $css->set_selector( '.dropdown-click .main-navigation ul.toggled-on, .dropdown-click .main-navigation ul li.sfHover > ul.toggled-on' ); - $css->add_property( 'display', 'block' ); - $css->add_property( 'left', 'auto' ); - $css->add_property( 'right', 'auto' ); - $css->add_property( 'opacity', '1' ); - $css->add_property( 'visibility', 'visible' ); - $css->add_property( 'pointer-events', 'auto' ); - $css->add_property( 'height', 'auto' ); - $css->add_property( 'overflow', 'visible' ); - $css->add_property( 'float', 'none' ); - - $css->set_selector( '.dropdown-click .main-navigation.sub-menu-left .sub-menu.toggled-on, .dropdown-click .main-navigation.sub-menu-left ul li.sfHover > ul.toggled-on' ); - $css->add_property( 'right', '0' ); - - $css->set_selector( '.dropdown-click nav ul ul ul' ); - $css->add_property( 'background-color', 'transparent' ); - - $css->set_selector( '.dropdown-click .widget-area .main-navigation ul ul' ); - $css->add_property( 'top', 'auto' ); - $css->add_property( 'position', 'absolute' ); - $css->add_property( 'float', 'none' ); - $css->add_property( 'width', '100%' ); - $css->add_property( 'left', '-99999px' ); - - $css->set_selector( '.dropdown-click .widget-area .main-navigation ul ul.toggled-on' ); - $css->add_property( 'position', 'relative' ); - $css->add_property( 'left', '0' ); - $css->add_property( 'right', '0' ); - - $css->set_selector( '.dropdown-click .widget-area.sidebar .main-navigation ul li.sfHover ul, .dropdown-click .widget-area.sidebar .main-navigation ul li:hover ul' ); - $css->add_property( 'right', '0' ); - $css->add_property( 'left', '0' ); - - $css->set_selector( '.dropdown-click .sfHover > a > .dropdown-menu-toggle > .gp-icon svg' ); - $css->add_property( 'transform', 'rotate(180deg)' ); - } - - $css->set_selector( ':root' ); - - $global_colors = generate_get_global_colors(); - - if ( ! empty( $global_colors ) ) { - foreach ( (array) $global_colors as $key => $data ) { - if ( ! empty( $data['slug'] ) && ! empty( $data['color'] ) ) { - $css->add_property( '--' . $data['slug'], $data['color'] ); - } - } - - foreach ( (array) $global_colors as $key => $data ) { - if ( ! empty( $data['slug'] ) && ! empty( $data['color'] ) ) { - $css->set_selector( ':root .has-' . $data['slug'] . '-color' ); - $css->add_property( 'color', 'var(--' . $data['slug'] . ')' ); - - $css->set_selector( ':root .has-' . $data['slug'] . '-background-color' ); - $css->add_property( 'background-color', 'var(--' . $data['slug'] . ')' ); - } - } - } - - do_action( 'generate_base_css', $css ); - - return apply_filters( 'generate_base_css_output', $css->css_output() ); - } -} - -if ( ! function_exists( 'generate_advanced_css' ) ) { - /** - * Generate the CSS in the section using the Theme Customizer. - * - * @since 0.1 - */ - function generate_advanced_css() { - $settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_color_defaults() - ); - - $css = new GeneratePress_CSS(); - - $css->set_selector( '.top-bar' ); - $css->add_property( 'background-color', $settings['top_bar_background_color'] ); - $css->add_property( 'color', $settings['top_bar_text_color'] ); - - $css->set_selector( '.top-bar a' ); - $css->add_property( 'color', $settings['top_bar_link_color'] ); - - $css->set_selector( '.top-bar a:hover' ); - $css->add_property( 'color', $settings['top_bar_link_color_hover'] ); - - $css->set_selector( '.site-header' ); - $css->add_property( 'background-color', $settings['header_background_color'] ); - $css->add_property( 'color', $settings['header_text_color'] ); - - $css->set_selector( '.site-header a' ); - $css->add_property( 'color', $settings['header_link_color'] ); - - $css->set_selector( '.site-header a:hover' ); - $css->add_property( 'color', $settings['header_link_hover_color'] ); - - $css->set_selector( '.main-title a,.main-title a:hover' ); - $css->add_property( 'color', $settings['site_title_color'] ); - - $css->set_selector( '.site-description' ); - $css->add_property( 'color', $settings['site_tagline_color'] ); - - if ( $settings['navigation_background_color'] === $settings['header_background_color'] ) { - $css->set_selector( '.mobile-menu-control-wrapper .menu-toggle,.mobile-menu-control-wrapper .menu-toggle:hover,.mobile-menu-control-wrapper .menu-toggle:focus,.has-inline-mobile-toggle #site-navigation.toggled' ); - $css->add_property( 'background-color', 'rgba(0, 0, 0, 0.02)' ); - } - - $css->set_selector( '.main-navigation,.main-navigation ul ul' ); - $css->add_property( 'background-color', $settings['navigation_background_color'] ); - - $css->set_selector( '.main-navigation .main-nav ul li a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items' ); - $css->add_property( 'color', $settings['navigation_text_color'] ); - - $css->set_selector( '.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a, .main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a, .main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a, .main-navigation .menu-bar-item:hover > a, .main-navigation .menu-bar-item.sfHover > a' ); - $css->add_property( 'color', $settings['navigation_text_hover_color'] ); - $css->add_property( 'background-color', $settings['navigation_background_hover_color'] ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( 'button.menu-toggle:hover,button.menu-toggle:focus' ); - } else { - $css->set_selector( 'button.menu-toggle:hover,button.menu-toggle:focus,.main-navigation .mobile-bar-items a,.main-navigation .mobile-bar-items a:hover,.main-navigation .mobile-bar-items a:focus' ); - } - - $css->add_property( 'color', $settings['navigation_text_color'] ); - - $css->set_selector( '.main-navigation .main-nav ul li[class*="current-menu-"] > a' ); - $css->add_property( 'color', $settings['navigation_text_current_color'] ); - $css->add_property( 'background-color', $settings['navigation_background_current_color'] ); - - $navigation_search_background = $settings['navigation_background_hover_color']; - $navigation_search_text = $settings['navigation_text_hover_color']; - - if ( '' !== $settings['navigation_search_background_color'] ) { - $navigation_search_background = $settings['navigation_search_background_color']; - } - - if ( '' !== $settings['navigation_search_text_color'] ) { - $navigation_search_text = $settings['navigation_search_text_color']; - } - - $css->set_selector( '.navigation-search input[type="search"],.navigation-search input[type="search"]:active, .navigation-search input[type="search"]:focus, .main-navigation .main-nav ul li.search-item.active > a, .main-navigation .menu-bar-items .search-item.active > a' ); - $css->add_property( 'color', $navigation_search_text ); - $css->add_property( 'background-color', $navigation_search_background ); - - if ( '' !== $settings['navigation_search_background_color'] ) { - $css->add_property( 'opacity', '1' ); - } - - $css->set_selector( '.main-navigation ul ul' ); - $css->add_property( 'background-color', $settings['subnavigation_background_color'] ); - - $css->set_selector( '.main-navigation .main-nav ul ul li a' ); - $css->add_property( 'color', $settings['subnavigation_text_color'] ); - - $css->set_selector( '.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a,.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):focus > a, .main-navigation .main-nav ul ul li.sfHover:not([class*="current-menu-"]) > a' ); - $css->add_property( 'color', $settings['subnavigation_text_hover_color'] ); - $css->add_property( 'background-color', $settings['subnavigation_background_hover_color'] ); - - $css->set_selector( '.main-navigation .main-nav ul ul li[class*="current-menu-"] > a' ); - $css->add_property( 'color', $settings['subnavigation_text_current_color'] ); - $css->add_property( 'background-color', $settings['subnavigation_background_current_color'] ); - - $css->set_selector( '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header' ); - $css->add_property( 'color', $settings['content_text_color'] ); - $css->add_property( 'background-color', $settings['content_background_color'] ); - - $css->set_selector( '.inside-article a,.paging-navigation a,.comments-area a,.page-header a' ); - $css->add_property( 'color', $settings['content_link_color'] ); - - $css->set_selector( '.inside-article a:hover,.paging-navigation a:hover,.comments-area a:hover,.page-header a:hover' ); - $css->add_property( 'color', $settings['content_link_hover_color'] ); - - $css->set_selector( '.entry-header h1,.page-header h1' ); - $css->add_property( 'color', $settings['content_title_color'] ); - - $css->set_selector( '.entry-title a' ); - $css->add_property( 'color', $settings['blog_post_title_color'] ); - - $css->set_selector( '.entry-title a:hover' ); - $css->add_property( 'color', $settings['blog_post_title_hover_color'] ); - - $css->set_selector( '.entry-meta' ); - $css->add_property( 'color', $settings['entry_meta_text_color'] ); - - $css->set_selector( '.entry-meta a' ); - $css->add_property( 'color', $settings['entry_meta_link_color'] ); - - $css->set_selector( '.entry-meta a:hover' ); - $css->add_property( 'color', $settings['entry_meta_link_color_hover'] ); - - $css->set_selector( 'h1' ); - $css->add_property( 'color', $settings['h1_color'] ); - - $css->set_selector( 'h2' ); - $css->add_property( 'color', $settings['h2_color'] ); - - $css->set_selector( 'h3' ); - $css->add_property( 'color', $settings['h3_color'] ); - - $css->set_selector( 'h4' ); - $css->add_property( 'color', $settings['h4_color'] ); - - $css->set_selector( 'h5' ); - $css->add_property( 'color', $settings['h5_color'] ); - - $css->set_selector( 'h6' ); - $css->add_property( 'color', $settings['h6_color'] ); - - $css->set_selector( '.sidebar .widget' ); - $css->add_property( 'color', $settings['sidebar_widget_text_color'] ); - $css->add_property( 'background-color', $settings['sidebar_widget_background_color'] ); - - $css->set_selector( '.sidebar .widget a' ); - $css->add_property( 'color', $settings['sidebar_widget_link_color'] ); - - $css->set_selector( '.sidebar .widget a:hover' ); - $css->add_property( 'color', $settings['sidebar_widget_link_hover_color'] ); - - $css->set_selector( '.sidebar .widget .widget-title' ); - $css->add_property( 'color', $settings['sidebar_widget_title_color'] ); - - $css->set_selector( '.footer-widgets' ); - $css->add_property( 'color', $settings['footer_widget_text_color'] ); - $css->add_property( 'background-color', $settings['footer_widget_background_color'] ); - - $css->set_selector( '.footer-widgets a' ); - $css->add_property( 'color', $settings['footer_widget_link_color'] ); - - $css->set_selector( '.footer-widgets a:hover' ); - $css->add_property( 'color', $settings['footer_widget_link_hover_color'] ); - - $css->set_selector( '.footer-widgets .widget-title' ); - $css->add_property( 'color', $settings['footer_widget_title_color'] ); - - $css->set_selector( '.site-info' ); - $css->add_property( 'color', $settings['footer_text_color'] ); - $css->add_property( 'background-color', $settings['footer_background_color'] ); - - $css->set_selector( '.site-info a' ); - $css->add_property( 'color', $settings['footer_link_color'] ); - - $css->set_selector( '.site-info a:hover' ); - $css->add_property( 'color', $settings['footer_link_hover_color'] ); - - $css->set_selector( '.footer-bar .widget_nav_menu .current-menu-item a' ); - $css->add_property( 'color', $settings['footer_link_hover_color'] ); - - $css->set_selector( 'input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="tel"],input[type="number"],textarea,select' ); - $css->add_property( 'color', $settings['form_text_color'] ); - $css->add_property( 'background-color', $settings['form_background_color'] ); - $css->add_property( 'border-color', $settings['form_border_color'] ); - - $css->set_selector( 'input[type="text"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="password"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="number"]:focus,textarea:focus,select:focus' ); - $css->add_property( 'color', $settings['form_text_color_focus'] ); - $css->add_property( 'background-color', $settings['form_background_color_focus'] ); - $css->add_property( 'border-color', $settings['form_border_color_focus'] ); - - $css->set_selector( 'button,html input[type="button"],input[type="reset"],input[type="submit"],a.button,a.wp-block-button__link:not(.has-background)' ); - $css->add_property( 'color', $settings['form_button_text_color'] ); - $css->add_property( 'background-color', $settings['form_button_background_color'] ); - - $css->set_selector( 'button:hover,html input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover,a.button:hover,button:focus,html input[type="button"]:focus,input[type="reset"]:focus,input[type="submit"]:focus,a.button:focus,a.wp-block-button__link:not(.has-background):active,a.wp-block-button__link:not(.has-background):focus,a.wp-block-button__link:not(.has-background):hover' ); - $css->add_property( 'color', $settings['form_button_text_color_hover'] ); - $css->add_property( 'background-color', $settings['form_button_background_color_hover'] ); - - $css->set_selector( 'a.generate-back-to-top' ); - $css->add_property( 'background-color', $settings['back_to_top_background_color'] ); - $css->add_property( 'color', $settings['back_to_top_text_color'] ); - - $css->set_selector( 'a.generate-back-to-top:hover,a.generate-back-to-top:focus' ); - $css->add_property( 'background-color', $settings['back_to_top_background_color_hover'] ); - $css->add_property( 'color', $settings['back_to_top_text_color_hover'] ); - - $css->set_selector( ':root' ); - $css->add_property( '--gp-search-modal-bg-color', $settings['search_modal_bg_color'] ); - $css->add_property( '--gp-search-modal-text-color', $settings['search_modal_text_color'] ); - $css->add_property( '--gp-search-modal-overlay-bg-color', $settings['search_modal_overlay_bg_color'] ); - - $css->start_media_query( generate_get_media_query( 'mobile-menu' ) ); - $css->set_selector( '.main-navigation .menu-bar-item:hover > a, .main-navigation .menu-bar-item.sfHover > a' ); - $css->add_property( 'background', 'none' ); - $css->add_property( 'color', $settings['navigation_text_color'] ); - $css->stop_media_query(); - - do_action( 'generate_colors_css', $css ); - - return apply_filters( 'generate_colors_css_output', $css->css_output() ); - } -} - -if ( ! function_exists( 'generate_font_css' ) ) { - /** - * Generate the CSS in the section using the Theme Customizer. - * - * @since 0.1 - */ - function generate_font_css() { - - $settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_default_fonts() - ); - - $defaults = generate_get_default_fonts( false ); - - $css = new GeneratePress_CSS(); - - $body_family = generate_get_font_family_css( 'font_body', 'generate_settings', generate_get_default_fonts() ); - $top_bar_family = generate_get_font_family_css( 'font_top_bar', 'generate_settings', generate_get_default_fonts() ); - $site_title_family = generate_get_font_family_css( 'font_site_title', 'generate_settings', generate_get_default_fonts() ); - $site_tagline_family = generate_get_font_family_css( 'font_site_tagline', 'generate_settings', generate_get_default_fonts() ); - $navigation_family = generate_get_font_family_css( 'font_navigation', 'generate_settings', generate_get_default_fonts() ); - $widget_family = generate_get_font_family_css( 'font_widget_title', 'generate_settings', generate_get_default_fonts() ); - $h1_family = generate_get_font_family_css( 'font_heading_1', 'generate_settings', generate_get_default_fonts() ); - $h2_family = generate_get_font_family_css( 'font_heading_2', 'generate_settings', generate_get_default_fonts() ); - $h3_family = generate_get_font_family_css( 'font_heading_3', 'generate_settings', generate_get_default_fonts() ); - $h4_family = generate_get_font_family_css( 'font_heading_4', 'generate_settings', generate_get_default_fonts() ); - $h5_family = generate_get_font_family_css( 'font_heading_5', 'generate_settings', generate_get_default_fonts() ); - $h6_family = generate_get_font_family_css( 'font_heading_6', 'generate_settings', generate_get_default_fonts() ); - $footer_family = generate_get_font_family_css( 'font_footer', 'generate_settings', generate_get_default_fonts() ); - $buttons_family = generate_get_font_family_css( 'font_buttons', 'generate_settings', generate_get_default_fonts() ); - - $css->set_selector( 'body, button, input, select, textarea' ); - $css->add_property( 'font-family', $body_family ); - $css->add_property( 'font-weight', $settings['body_font_weight'], $defaults['body_font_weight'] ); - $css->add_property( 'text-transform', $settings['body_font_transform'], $defaults['body_font_transform'] ); - $css->add_property( 'font-size', $settings['body_font_size'], $defaults['body_font_size'], 'px' ); - - $css->set_selector( 'body' ); - $css->add_property( 'line-height', floatval( $settings['body_line_height'] ), $defaults['body_line_height'] ); - - $css->set_selector( 'p' ); - $css->add_property( 'margin-bottom', floatval( $settings['paragraph_margin'] ), $defaults['paragraph_margin'], 'em' ); - - if ( apply_filters( 'generate_do_wp_block_margin_bottom', true ) ) { - $css->set_selector( '.entry-content > [class*="wp-block-"]:not(:last-child):not(.wp-block-heading)' ); - $css->add_property( 'margin-bottom', floatval( $settings['paragraph_margin'] ), false, 'em' ); - } - - $css->set_selector( '.top-bar' ); - $css->add_property( 'font-family', $defaults['font_top_bar'] !== $settings['font_top_bar'] ? $top_bar_family : null ); - $css->add_property( 'font-weight', $settings['top_bar_font_weight'], $defaults['top_bar_font_weight'] ); - $css->add_property( 'text-transform', $settings['top_bar_font_transform'], $defaults['top_bar_font_transform'] ); - $css->add_property( 'font-size', absint( $settings['top_bar_font_size'] ), absint( $defaults['top_bar_font_size'] ), 'px' ); - - $css->set_selector( '.main-title' ); - $css->add_property( 'font-family', $defaults['font_site_title'] !== $settings['font_site_title'] ? $site_title_family : null ); - $css->add_property( 'font-weight', $settings['site_title_font_weight'], $defaults['site_title_font_weight'] ); - $css->add_property( 'text-transform', $settings['site_title_font_transform'], $defaults['site_title_font_transform'] ); - $css->add_property( 'font-size', absint( $settings['site_title_font_size'] ), $defaults['site_title_font_size'], 'px' ); - - $css->set_selector( '.site-description' ); - $css->add_property( 'font-family', $defaults['font_site_tagline'] !== $settings['font_site_tagline'] ? $site_tagline_family : null ); - $css->add_property( 'font-weight', $settings['site_tagline_font_weight'], $defaults['site_tagline_font_weight'] ); - $css->add_property( 'text-transform', $settings['site_tagline_font_transform'], $defaults['site_tagline_font_transform'] ); - - if ( ! empty( $settings['site_tagline_font_size'] ) ) { - $css->add_property( 'font-size', absint( $settings['site_tagline_font_size'] ), $defaults['site_tagline_font_size'], 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - $css->set_selector( '.main-navigation a, .menu-toggle' ); - $css->add_property( 'font-family', $defaults['font_navigation'] !== $settings['font_navigation'] ? $navigation_family : null ); - $css->add_property( 'font-weight', $settings['navigation_font_weight'], $defaults['navigation_font_weight'] ); - $css->add_property( 'text-transform', $settings['navigation_font_transform'], $defaults['navigation_font_transform'] ); - - if ( ! empty( $settings['navigation_font_size'] ) ) { - $css->add_property( 'font-size', absint( $settings['navigation_font_size'] ), $defaults['navigation_font_size'], 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.main-navigation .menu-bar-items' ); - - if ( ! empty( $settings['navigation_font_size'] ) ) { - $css->add_property( 'font-size', absint( $settings['navigation_font_size'] ), $defaults['navigation_font_size'], 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - } - - $css->set_selector( '.main-navigation .main-nav ul ul li a' ); - - if ( ! empty( $settings['navigation_font_size'] ) ) { - $subnav_font_size = $settings['navigation_font_size'] >= 17 ? $settings['navigation_font_size'] - 3 : $settings['navigation_font_size'] - 1; - $css->add_property( 'font-size', absint( $subnav_font_size ), false, 'px' ); - } - - $css->set_selector( '.widget-title' ); - $css->add_property( 'font-family', $defaults['font_widget_title'] !== $settings['font_widget_title'] ? $widget_family : null ); - $css->add_property( 'font-weight', $settings['widget_title_font_weight'], $defaults['widget_title_font_weight'] ); - $css->add_property( 'text-transform', $settings['widget_title_font_transform'], $defaults['widget_title_font_transform'] ); - - if ( ! empty( $settings['widget_title_font_size'] ) ) { - $css->add_property( 'font-size', $settings['widget_title_font_size'], $defaults['widget_title_font_size'], 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - $css->add_property( 'margin-bottom', absint( $settings['widget_title_separator'] ), absint( $defaults['widget_title_separator'] ), 'px' ); - - $css->set_selector( '.sidebar .widget, .footer-widgets .widget' ); - - if ( ! empty( $settings['widget_content_font_size'] ) ) { - $css->add_property( 'font-size', absint( $settings['widget_content_font_size'] ), false, 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - $css->set_selector( 'button:not(.menu-toggle),html input[type="button"],input[type="reset"],input[type="submit"],.button,.wp-block-button .wp-block-button__link' ); - $css->add_property( 'font-family', $defaults['font_buttons'] !== $settings['font_buttons'] ? $buttons_family : null ); - $css->add_property( 'font-weight', $settings['buttons_font_weight'], $defaults['buttons_font_weight'] ); - $css->add_property( 'text-transform', $settings['buttons_font_transform'], $defaults['buttons_font_transform'] ); - $css->add_property( 'font-size', absint( $settings['buttons_font_size'] ), $defaults['buttons_font_size'], 'px' ); - - $css->set_selector( 'h1' ); - $css->add_property( 'font-family', $defaults['font_heading_1'] !== $settings['font_heading_1'] ? $h1_family : null ); - $css->add_property( 'font-weight', $settings['heading_1_weight'], $defaults['heading_1_weight'] ); - $css->add_property( 'text-transform', $settings['heading_1_transform'], $defaults['heading_1_transform'] ); - $css->add_property( 'font-size', absint( $settings['heading_1_font_size'] ), $defaults['heading_1_font_size'], 'px' ); - $css->add_property( 'line-height', floatval( $settings['heading_1_line_height'] ), $defaults['heading_1_line_height'], 'em' ); - $css->add_property( 'margin-bottom', floatval( $settings['heading_1_margin_bottom'] ), $defaults['heading_1_margin_bottom'], 'px' ); - - $css->set_selector( 'h2' ); - $css->add_property( 'font-family', $defaults['font_heading_2'] !== $settings['font_heading_2'] ? $h2_family : null ); - $css->add_property( 'font-weight', $settings['heading_2_weight'], $defaults['heading_2_weight'] ); - $css->add_property( 'text-transform', $settings['heading_2_transform'], $defaults['heading_2_transform'] ); - $css->add_property( 'font-size', absint( $settings['heading_2_font_size'] ), $defaults['heading_2_font_size'], 'px' ); - $css->add_property( 'line-height', floatval( $settings['heading_2_line_height'] ), $defaults['heading_2_line_height'], 'em' ); - $css->add_property( 'margin-bottom', floatval( $settings['heading_2_margin_bottom'] ), $defaults['heading_2_margin_bottom'], 'px' ); - - $css->set_selector( 'h3' ); - $css->add_property( 'font-family', $defaults['font_heading_3'] !== $settings['font_heading_3'] ? $h3_family : null ); - $css->add_property( 'font-weight', $settings['heading_3_weight'], $defaults['heading_3_weight'] ); - $css->add_property( 'text-transform', $settings['heading_3_transform'], $defaults['heading_3_transform'] ); - $css->add_property( 'font-size', absint( $settings['heading_3_font_size'] ), $defaults['heading_3_font_size'], 'px' ); - $css->add_property( 'line-height', floatval( $settings['heading_3_line_height'] ), $defaults['heading_3_line_height'], 'em' ); - $css->add_property( 'margin-bottom', floatval( $settings['heading_3_margin_bottom'] ), $defaults['heading_3_margin_bottom'], 'px' ); - - $css->set_selector( 'h4' ); - $css->add_property( 'font-family', $defaults['font_heading_4'] !== $settings['font_heading_4'] ? $h4_family : null ); - $css->add_property( 'font-weight', $settings['heading_4_weight'], $defaults['heading_4_weight'] ); - $css->add_property( 'text-transform', $settings['heading_4_transform'], $defaults['heading_4_transform'] ); - - if ( ! empty( $settings['heading_4_font_size'] ) ) { - $css->add_property( 'font-size', absint( $settings['heading_4_font_size'] ), $defaults['heading_4_font_size'], 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - if ( '' !== $settings['heading_4_line_height'] ) { - $css->add_property( 'line-height', floatval( $settings['heading_4_line_height'] ), $defaults['heading_4_line_height'], 'em' ); - } - - $css->set_selector( 'h5' ); - $css->add_property( 'font-family', $defaults['font_heading_5'] !== $settings['font_heading_5'] ? $h5_family : null ); - $css->add_property( 'font-weight', $settings['heading_5_weight'], $defaults['heading_5_weight'] ); - $css->add_property( 'text-transform', $settings['heading_5_transform'], $defaults['heading_5_transform'] ); - - if ( ! empty( $settings['heading_5_font_size'] ) ) { - $css->add_property( 'font-size', absint( $settings['heading_5_font_size'] ), $defaults['heading_5_font_size'], 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - if ( '' !== $settings['heading_5_line_height'] ) { - $css->add_property( 'line-height', floatval( $settings['heading_5_line_height'] ), $defaults['heading_5_line_height'], 'em' ); - } - - $css->set_selector( 'h6' ); - $css->add_property( 'font-family', $defaults['font_heading_6'] !== $settings['font_heading_6'] ? $h6_family : null ); - $css->add_property( 'font-weight', $settings['heading_6_weight'], $defaults['heading_6_weight'] ); - $css->add_property( 'text-transform', $settings['heading_6_transform'], $defaults['heading_6_transform'] ); - $css->add_property( 'font-size', absint( $settings['heading_6_font_size'] ), $defaults['heading_6_font_size'], 'px' ); - - if ( '' !== $settings['heading_6_line_height'] ) { - $css->add_property( 'line-height', floatval( $settings['heading_6_line_height'] ), $defaults['heading_6_line_height'], 'em' ); - } - - $css->set_selector( '.site-info' ); - $css->add_property( 'font-family', $defaults['font_footer'] !== $settings['font_footer'] ? $footer_family : null ); - $css->add_property( 'font-weight', $settings['footer_weight'], $defaults['footer_weight'] ); - $css->add_property( 'text-transform', $settings['footer_transform'], $defaults['footer_transform'] ); - - if ( ! empty( $settings['footer_font_size'] ) ) { - $css->add_property( 'font-size', absint( $settings['footer_font_size'] ), $defaults['footer_font_size'], 'px' ); - } else { - $css->add_property( 'font-size', 'inherit' ); - } - - $css->start_media_query( generate_get_media_query( 'mobile' ) ); - $css->set_selector( '.main-title' ); - $css->add_property( 'font-size', absint( $settings['mobile_site_title_font_size'] ), false, 'px' ); - - $css->set_selector( 'h1' ); - $css->add_property( 'font-size', absint( $settings['mobile_heading_1_font_size'] ), false, 'px' ); - - $css->set_selector( 'h2' ); - $css->add_property( 'font-size', absint( $settings['mobile_heading_2_font_size'] ), false, 'px' ); - - $css->set_selector( 'h3' ); - $css->add_property( 'font-size', absint( $settings['mobile_heading_3_font_size'] ), false, 'px' ); - - $css->set_selector( 'h4' ); - $css->add_property( 'font-size', absint( $settings['mobile_heading_4_font_size'] ), false, 'px' ); - - $css->set_selector( 'h5' ); - $css->add_property( 'font-size', absint( $settings['mobile_heading_5_font_size'] ), false, 'px' ); - $css->stop_media_query(); - - do_action( 'generate_typography_css', $css ); - - return apply_filters( 'generate_typography_css_output', $css->css_output() ); - } -} - -if ( ! function_exists( 'generate_spacing_css' ) ) { - /** - * Write our dynamic CSS. - * - * @since 0.1 - */ - function generate_spacing_css() { - $settings = wp_parse_args( - get_option( 'generate_spacing_settings', array() ), - generate_spacing_get_defaults() - ); - - $defaults = generate_spacing_get_defaults( false ); - $sidebar_layout = generate_get_layout(); - - $css = new GeneratePress_CSS(); - - $css->set_selector( '.inside-top-bar' ); - $css->add_property( 'padding', generate_padding_css( $settings['top_bar_top'], $settings['top_bar_right'], $settings['top_bar_bottom'], $settings['top_bar_left'] ), generate_padding_css( $defaults['top_bar_top'], $defaults['top_bar_right'], $defaults['top_bar_bottom'], $defaults['top_bar_left'] ) ); - - if ( generate_is_using_flexbox() && 'boxes' === generate_get_option( 'container_alignment' ) ) { - $top_bar_padding = absint( $settings['top_bar_right'] ) + absint( $settings['top_bar_left'] ); - - $css->set_selector( '.inside-top-bar.grid-container' ); - $css->add_property( 'max-width', generate_get_option( 'container_width' ) + $top_bar_padding, false, 'px' ); - } - - $css->set_selector( '.inside-header' ); - $css->add_property( 'padding', generate_padding_css( $settings['header_top'], $settings['header_right'], $settings['header_bottom'], $settings['header_left'] ), generate_padding_css( $defaults['header_top'], $defaults['header_right'], $defaults['header_bottom'], $defaults['header_left'] ) ); - - if ( generate_is_using_flexbox() ) { - if ( 'boxes' === generate_get_option( 'container_alignment' ) ) { - $header_padding = absint( $settings['header_right'] ) + absint( $settings['header_left'] ); - - $css->set_selector( '.inside-header.grid-container' ); - $css->add_property( 'max-width', generate_get_option( 'container_width' ) + $header_padding, false, 'px' ); - } - - if ( 'text' === generate_get_option( 'container_alignment' ) ) { - $navigation_left_padding = absint( $settings['header_left'] ) - absint( $settings['menu_item'] ); - $navigation_right_padding = absint( $settings['header_right'] ) - absint( $settings['menu_item'] ); - - $css->set_selector( '.nav-below-header .main-navigation .inside-navigation.grid-container, .nav-above-header .main-navigation .inside-navigation.grid-container' ); - $css->add_property( 'padding', generate_padding_css( 0, $navigation_right_padding, 0, $navigation_left_padding ) ); - } - } - - $css->set_selector( '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation, .one-container .site-content, .inside-page-header' ); - $css->add_property( 'padding', generate_padding_css( $settings['content_top'], $settings['content_right'], $settings['content_bottom'], $settings['content_left'] ), generate_padding_css( $defaults['content_top'], $defaults['content_right'], $defaults['content_bottom'], $defaults['content_left'] ) ); - - if ( apply_filters( 'generate_do_group_inner_container_style', true ) ) { - $css->set_selector( '.site-main .wp-block-group__inner-container' ); - $css->add_property( 'padding', generate_padding_css( $settings['content_top'], $settings['content_right'], $settings['content_bottom'], $settings['content_left'] ) ); - } - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.separate-containers .paging-navigation' ); - $css->add_property( 'padding-top', '20px' ); - $css->add_property( 'padding-bottom', '20px' ); - } - - $content_padding = absint( $settings['content_right'] ) + absint( $settings['content_left'] ); - $css->set_selector( '.entry-content .alignwide, body:not(.no-sidebar) .entry-content .alignfull' ); - $css->add_property( 'margin-left', '-' . absint( $settings['content_left'] ) . 'px' ); - $css->add_property( 'width', 'calc(100% + ' . absint( $content_padding ) . 'px)' ); - $css->add_property( 'max-width', 'calc(100% + ' . absint( $content_padding ) . 'px)' ); - - if ( ! generate_is_using_flexbox() && 'text' === generate_get_option( 'container_alignment' ) ) { - $css->set_selector( '.container.grid-container' ); - $css->add_property( 'max-width', generate_get_option( 'container_width' ) + $content_padding, false, 'px' ); - } - - $css->set_selector( '.one-container.right-sidebar .site-main,.one-container.both-right .site-main' ); - $css->add_property( 'margin-right', absint( $settings['content_right'] ), absint( $defaults['content_right'] ), 'px' ); - - $css->set_selector( '.one-container.left-sidebar .site-main,.one-container.both-left .site-main' ); - $css->add_property( 'margin-left', absint( $settings['content_left'] ), absint( $defaults['content_left'] ), 'px' ); - - $css->set_selector( '.one-container.both-sidebars .site-main' ); - $css->add_property( 'margin', generate_padding_css( '0', $settings['content_right'], '0', $settings['content_left'] ), generate_padding_css( '0', $defaults['content_right'], '0', $defaults['content_left'] ) ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.sidebar .widget, .page-header, .widget-area .main-navigation, .site-main > *' ); - } else { - $css->set_selector( '.separate-containers .widget, .separate-containers .site-main > *, .separate-containers .page-header, .widget-area .main-navigation' ); - } - - $css->add_property( 'margin-bottom', absint( $settings['separator'] ), absint( $defaults['separator'] ), 'px' ); - - $css->set_selector( '.separate-containers .site-main' ); - $css->add_property( 'margin', absint( $settings['separator'] ), $defaults['separator'], 'px' ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.both-right .inside-left-sidebar,.both-left .inside-left-sidebar' ); - $css->add_property( 'margin-right', absint( $settings['separator'] / 2 ), absint( $defaults['separator'] / 2 ), 'px' ); - - $css->set_selector( '.both-right .inside-right-sidebar,.both-left .inside-right-sidebar' ); - $css->add_property( 'margin-left', absint( $settings['separator'] / 2 ), absint( $defaults['separator'] / 2 ), 'px' ); - - $css->set_selector( '.one-container.archive .post:not(:last-child):not(.is-loop-template-item), .one-container.blog .post:not(:last-child):not(.is-loop-template-item)' ); - $css->add_property( 'padding-bottom', absint( $settings['content_bottom'] ), absint( $defaults['content_bottom'] ), 'px' ); - } else { - $css->set_selector( '.both-right.separate-containers .inside-left-sidebar' ); - $css->add_property( 'margin-right', absint( $settings['separator'] / 2 ), absint( $defaults['separator'] / 2 ), 'px' ); - - $css->set_selector( '.both-right.separate-containers .inside-right-sidebar' ); - $css->add_property( 'margin-left', absint( $settings['separator'] / 2 ), absint( $defaults['separator'] / 2 ), 'px' ); - - $css->set_selector( '.both-left.separate-containers .inside-left-sidebar' ); - $css->add_property( 'margin-right', absint( $settings['separator'] / 2 ), absint( $defaults['separator'] / 2 ), 'px' ); - - $css->set_selector( '.both-left.separate-containers .inside-right-sidebar' ); - $css->add_property( 'margin-left', absint( $settings['separator'] / 2 ), absint( $defaults['separator'] / 2 ), 'px' ); - } - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.separate-containers .featured-image' ); - } else { - $css->set_selector( '.separate-containers .page-header-image, .separate-containers .page-header-contained, .separate-containers .page-header-image-single, .separate-containers .page-header-content-single' ); - } - - $css->add_property( 'margin-top', absint( $settings['separator'] ), absint( $defaults['separator'] ), 'px' ); - - $css->set_selector( '.separate-containers .inside-right-sidebar, .separate-containers .inside-left-sidebar' ); - $css->add_property( 'margin-top', absint( $settings['separator'] ), absint( $defaults['separator'] ), 'px' ); - $css->add_property( 'margin-bottom', absint( $settings['separator'] ), absint( $defaults['separator'] ), 'px' ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.main-navigation .main-nav ul li a,.menu-toggle,.main-navigation .menu-bar-item > a' ); - } else { - $css->set_selector( '.main-navigation .main-nav ul li a,.menu-toggle,.main-navigation .mobile-bar-items a' ); - } - - $css->add_property( 'padding-left', absint( $settings['menu_item'] ), absint( $defaults['menu_item'] ), 'px' ); - $css->add_property( 'padding-right', absint( $settings['menu_item'] ), absint( $defaults['menu_item'] ), 'px' ); - $css->add_property( 'line-height', absint( $settings['menu_item_height'] ), absint( $defaults['menu_item_height'] ), 'px' ); - - $css->set_selector( '.main-navigation .main-nav ul ul li a' ); - $css->add_property( 'padding', generate_padding_css( $settings['sub_menu_item_height'], $settings['menu_item'], $settings['sub_menu_item_height'], $settings['menu_item'] ), generate_padding_css( $defaults['sub_menu_item_height'], $defaults['menu_item'], $defaults['sub_menu_item_height'], $defaults['menu_item'] ) ); - - $css->set_selector( '.main-navigation ul ul' ); - $css->add_property( 'width', absint( $settings['sub_menu_width'] ), absint( $defaults['sub_menu_width'] ), 'px' ); - - $css->set_selector( '.navigation-search input[type="search"]' ); - $css->add_property( 'height', absint( $settings['menu_item_height'] ), absint( $defaults['menu_item_height'] ), 'px' ); - - $css->set_selector( '.rtl .menu-item-has-children .dropdown-menu-toggle' ); - $css->add_property( 'padding-left', absint( $settings['menu_item'] ), false, 'px' ); - - $css->set_selector( '.menu-item-has-children .dropdown-menu-toggle' ); - $css->add_property( 'padding-right', absint( $settings['menu_item'] ), absint( $defaults['menu_item'] ), 'px' ); - - $css->set_selector( '.menu-item-has-children ul .dropdown-menu-toggle' ); - $css->add_property( 'padding-top', absint( $settings['sub_menu_item_height'] ), absint( $defaults['sub_menu_item_height'] ), 'px' ); - $css->add_property( 'padding-bottom', absint( $settings['sub_menu_item_height'] ), absint( $defaults['sub_menu_item_height'] ), 'px' ); - $css->add_property( 'margin-top', '-' . absint( $settings['sub_menu_item_height'] ), '-' . absint( $defaults['sub_menu_item_height'] ), 'px' ); - - $css->set_selector( '.rtl .main-navigation .main-nav ul li.menu-item-has-children > a' ); - $css->add_property( 'padding-right', absint( $settings['menu_item'] ), false, 'px' ); - - $css->set_selector( '.widget-area .widget' ); - $css->add_property( 'padding', generate_padding_css( $settings['widget_top'], $settings['widget_right'], $settings['widget_bottom'], $settings['widget_left'] ), generate_padding_css( $defaults['widget_top'], $defaults['widget_right'], $defaults['widget_bottom'], $defaults['widget_left'] ) ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.footer-widgets-container' ); - $css->add_property( 'padding', generate_padding_css( $settings['footer_widget_container_top'], $settings['footer_widget_container_right'], $settings['footer_widget_container_bottom'], $settings['footer_widget_container_left'] ), generate_padding_css( $defaults['footer_widget_container_top'], $defaults['footer_widget_container_right'], $defaults['footer_widget_container_bottom'], $defaults['footer_widget_container_left'] ) ); - - if ( 'boxes' === generate_get_option( 'container_alignment' ) ) { - $footer_widgets_padding = absint( $settings['footer_widget_container_right'] ) + absint( $settings['footer_widget_container_left'] ); - - $css->set_selector( '.footer-widgets-container.grid-container' ); - $css->add_property( 'max-width', generate_get_option( 'container_width' ) + $footer_widgets_padding, false, 'px' ); - } - } else { - $css->set_selector( '.footer-widgets' ); - $css->add_property( 'padding', generate_padding_css( $settings['footer_widget_container_top'], $settings['footer_widget_container_right'], $settings['footer_widget_container_bottom'], $settings['footer_widget_container_left'] ), generate_padding_css( $defaults['footer_widget_container_top'], $defaults['footer_widget_container_right'], $defaults['footer_widget_container_bottom'], $defaults['footer_widget_container_left'] ) ); - } - - $css->set_selector( '.site-footer .footer-widgets-container .inner-padding' ); - $css->add_property( 'padding', generate_padding_css( '0', '0', '0', $settings['footer_widget_separator'] ), generate_padding_css( '0', '0', '0', $defaults['footer_widget_separator'] ) ); - - $css->set_selector( '.site-footer .footer-widgets-container .inside-footer-widgets' ); - $css->add_property( 'margin-left', '-' . absint( $settings['footer_widget_separator'] ), '-' . absint( $defaults['footer_widget_separator'] ), 'px' ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.inside-site-info' ); - $css->add_property( 'padding', generate_padding_css( $settings['footer_top'], $settings['footer_right'], $settings['footer_bottom'], $settings['footer_left'] ), generate_padding_css( $defaults['footer_top'], $defaults['footer_right'], $defaults['footer_bottom'], $defaults['footer_left'] ) ); - - if ( 'boxes' === generate_get_option( 'container_alignment' ) ) { - $site_info_padding = absint( $settings['footer_right'] ) + absint( $settings['footer_left'] ); - - $css->set_selector( '.inside-site-info.grid-container' ); - $css->add_property( 'max-width', generate_get_option( 'container_width' ) + $site_info_padding, false, 'px' ); - } - } else { - $css->set_selector( '.site-info' ); - $css->add_property( 'padding', generate_padding_css( $settings['footer_top'], $settings['footer_right'], $settings['footer_bottom'], $settings['footer_left'] ), generate_padding_css( $defaults['footer_top'], $defaults['footer_right'], $defaults['footer_bottom'], $defaults['footer_left'] ) ); - } - - $css->start_media_query( generate_get_media_query( 'mobile' ) ); - $css->set_selector( '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation, .one-container .site-content, .inside-page-header' ); - $css->add_property( 'padding', generate_padding_css( $settings['mobile_content_top'], $settings['mobile_content_right'], $settings['mobile_content_bottom'], $settings['mobile_content_left'] ) ); - - if ( apply_filters( 'generate_do_group_inner_container_style', true ) ) { - $css->set_selector( '.site-main .wp-block-group__inner-container' ); - $css->add_property( 'padding', generate_padding_css( $settings['mobile_content_top'], $settings['mobile_content_right'], $settings['mobile_content_bottom'], $settings['mobile_content_left'] ) ); - } - - $css->set_selector( '.inside-top-bar' ); - - if ( '' !== $settings['mobile_top_bar_top'] ) { - $css->add_property( 'padding-top', absint( $settings['mobile_top_bar_top'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_top_bar_right'] ) { - $css->add_property( 'padding-right', absint( $settings['mobile_top_bar_right'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_top_bar_bottom'] ) { - $css->add_property( 'padding-bottom', absint( $settings['mobile_top_bar_bottom'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_top_bar_left'] ) { - $css->add_property( 'padding-left', absint( $settings['mobile_top_bar_left'] ), false, 'px' ); - } - - $css->set_selector( '.inside-header' ); - - if ( '' !== $settings['mobile_header_top'] ) { - $css->add_property( 'padding-top', absint( $settings['mobile_header_top'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_header_right'] ) { - $css->add_property( 'padding-right', absint( $settings['mobile_header_right'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_header_bottom'] ) { - $css->add_property( 'padding-bottom', absint( $settings['mobile_header_bottom'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_header_left'] ) { - $css->add_property( 'padding-left', absint( $settings['mobile_header_left'] ), false, 'px' ); - } - - $css->set_selector( '.widget-area .widget' ); - if ( '' !== $settings['mobile_widget_top'] ) { - $css->add_property( 'padding-top', absint( $settings['mobile_widget_top'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_widget_right'] ) { - $css->add_property( 'padding-right', absint( $settings['mobile_widget_right'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_widget_bottom'] ) { - $css->add_property( 'padding-bottom', absint( $settings['mobile_widget_bottom'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_widget_left'] ) { - $css->add_property( 'padding-left', absint( $settings['mobile_widget_left'] ), false, 'px' ); - } - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.footer-widgets-container' ); - } else { - $css->set_selector( '.footer-widgets' ); - } - - if ( '' !== $settings['mobile_footer_widget_container_top'] ) { - $css->add_property( 'padding-top', absint( $settings['mobile_footer_widget_container_top'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_footer_widget_container_right'] ) { - $css->add_property( 'padding-right', absint( $settings['mobile_footer_widget_container_right'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_footer_widget_container_bottom'] ) { - $css->add_property( 'padding-bottom', absint( $settings['mobile_footer_widget_container_bottom'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_footer_widget_container_left'] ) { - $css->add_property( 'padding-left', absint( $settings['mobile_footer_widget_container_left'] ), false, 'px' ); - } - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.inside-site-info' ); - } else { - $css->set_selector( '.site-info' ); - } - - if ( '' !== $settings['mobile_footer_top'] ) { - $css->add_property( 'padding-top', absint( $settings['mobile_footer_top'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_footer_right'] ) { - $css->add_property( 'padding-right', absint( $settings['mobile_footer_right'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_footer_bottom'] ) { - $css->add_property( 'padding-bottom', absint( $settings['mobile_footer_bottom'] ), false, 'px' ); - } - - if ( '' !== $settings['mobile_footer_left'] ) { - $css->add_property( 'padding-left', absint( $settings['mobile_footer_left'] ), false, 'px' ); - } - - $mobile_content_padding = absint( $settings['mobile_content_right'] ) + absint( $settings['mobile_content_left'] ); - $css->set_selector( '.entry-content .alignwide, body:not(.no-sidebar) .entry-content .alignfull' ); - $css->add_property( 'margin-left', '-' . absint( $settings['mobile_content_left'] ) . 'px' ); - $css->add_property( 'width', 'calc(100% + ' . absint( $mobile_content_padding ) . 'px)' ); - $css->add_property( 'max-width', 'calc(100% + ' . absint( $mobile_content_padding ) . 'px)' ); - - if ( '' !== $settings['mobile_separator'] ) { - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.sidebar .widget, .page-header, .widget-area .main-navigation, .site-main > *' ); - } else { - $css->set_selector( '.separate-containers .widget, .separate-containers .site-main > *, .separate-containers .page-header' ); - } - - $css->add_property( 'margin-bottom', absint( $settings['mobile_separator'] ), false, 'px' ); - - $css->set_selector( '.separate-containers .site-main' ); - $css->add_property( 'margin', absint( $settings['mobile_separator'] ), false, 'px' ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.separate-containers .featured-image' ); - } else { - $css->set_selector( '.separate-containers .page-header-image, .separate-containers .page-header-image-single' ); - } - - $css->add_property( 'margin-top', absint( $settings['mobile_separator'] ), false, 'px' ); - - $css->set_selector( '.separate-containers .inside-right-sidebar, .separate-containers .inside-left-sidebar' ); - $css->add_property( 'margin-top', absint( $settings['mobile_separator'] ), false, 'px' ); - $css->add_property( 'margin-bottom', absint( $settings['mobile_separator'] ), false, 'px' ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.one-container .site-main .paging-navigation' ); - $css->add_property( 'margin-bottom', absint( $settings['mobile_separator'] ), false, 'px' ); - } - } else { - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.one-container .site-main .paging-navigation' ); - $css->add_property( 'margin-bottom', absint( $settings['separator'] ), false, 'px' ); - } - } - $css->stop_media_query(); - - // Add spacing back where dropdown arrow should be. - // Old versions of WP don't get nice things. - if ( version_compare( $GLOBALS['wp_version'], '4.4', '<' ) ) { - $css->set_selector( '.main-navigation .main-nav ul li.menu-item-has-children>a, .secondary-navigation .main-nav ul li.menu-item-has-children>a' ); - $css->add_property( 'padding-right', absint( $settings['menu_item'] ), absint( $defaults['menu_item'] ), 'px' ); - } - - $output = ''; - - if ( ! generate_is_using_flexbox() ) { - $generate_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_color_defaults() - ); - - // Find out if the content background color and sidebar widget background color is the same. - $sidebar = strtoupper( $generate_settings['sidebar_widget_background_color'] ); - $content = strtoupper( $generate_settings['content_background_color'] ); - - // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison - $colors_match = ( ( $sidebar == $content ) || '' == $sidebar ) ? true : false; - - // If they're all 40 (default), remove the padding when one container is set. - // This way, the user can still adjust the padding and it will work (unless they want 40px padding). - // We'll also remove the padding if there's no color difference between the widgets and content background color. - // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison - if ( ( '40' == $settings['widget_top'] && '40' == $settings['widget_right'] && '40' == $settings['widget_bottom'] && '40' == $settings['widget_left'] ) && $colors_match ) { - $output .= '.one-container .sidebar .widget{padding:0px;}'; - } - } - - do_action( 'generate_spacing_css', $css ); - - return apply_filters( 'generate_spacing_css_output', $css->css_output() . $output ); - } -} - -/** - * Generates any CSS that can't be cached (can change from page to page). - * - * @since 2.0 - */ -function generate_no_cache_dynamic_css() { - $css = new GeneratePress_CSS(); - - if ( generate_is_using_flexbox() ) { - $right_sidebar_width = apply_filters( 'generate_right_sidebar_width', '30' ); - $left_sidebar_width = apply_filters( 'generate_left_sidebar_width', '30' ); - - $css->set_selector( '.is-right-sidebar' ); - $css->add_property( 'width', absint( $right_sidebar_width ) . '%' ); - - $css->set_selector( '.is-left-sidebar' ); - $css->add_property( 'width', absint( $left_sidebar_width ) . '%' ); - - $content_width = 100; - $sidebar_layout = generate_get_layout(); - - switch ( $sidebar_layout ) { - case 'right-sidebar': - $content_width = $content_width - absint( $right_sidebar_width ); - break; - - case 'left-sidebar': - $content_width = $content_width - absint( $left_sidebar_width ); - break; - - case 'both-sidebars': - case 'both-right': - case 'both-left': - $content_width = $content_width - absint( $right_sidebar_width ) - absint( $left_sidebar_width ); - break; - } - - $css->set_selector( '.site-content .content-area' ); - $css->add_property( 'width', absint( $content_width ) . '%' ); - } - - $css->start_media_query( generate_get_media_query( 'mobile-menu' ) ); - - if ( generate_is_using_flexbox() ) { - $css->set_selector( '.main-navigation .menu-toggle,.sidebar-nav-mobile:not(#sticky-placeholder)' ); - $css->add_property( 'display', 'block' ); - - $css->set_selector( '.main-navigation ul,.gen-sidebar-nav,.main-navigation:not(.slideout-navigation):not(.toggled) .main-nav > ul,.has-inline-mobile-toggle #site-navigation .inside-navigation > *:not(.navigation-search):not(.main-nav)' ); - $css->add_property( 'display', 'none' ); - - $css->set_selector( '.nav-align-right .inside-navigation,.nav-align-center .inside-navigation' ); - $css->add_property( 'justify-content', 'space-between' ); - - if ( is_rtl() ) { - $css->set_selector( '.rtl .nav-align-right .inside-navigation,.rtl .nav-align-center .inside-navigation, .rtl .nav-align-left .inside-navigation' ); - $css->add_property( 'justify-content', 'space-between' ); - } - - if ( generate_has_inline_mobile_toggle() ) { - $css->set_selector( '.has-inline-mobile-toggle .mobile-menu-control-wrapper' ); - $css->add_property( 'display', 'flex' ); - $css->add_property( 'flex-wrap', 'wrap' ); - - $css->set_selector( '.has-inline-mobile-toggle .inside-header' ); - $css->add_property( 'flex-direction', 'row' ); - $css->add_property( 'text-align', 'left' ); - $css->add_property( 'flex-wrap', 'wrap' ); - - $css->set_selector( '.has-inline-mobile-toggle .header-widget,.has-inline-mobile-toggle #site-navigation' ); - $css->add_property( 'flex-basis', '100%' ); - - $css->set_selector( '.nav-float-left .has-inline-mobile-toggle #site-navigation' ); - $css->add_property( 'order', '10' ); - } - } else { - $css->set_selector( '.main-navigation .menu-toggle,.main-navigation .mobile-bar-items,.sidebar-nav-mobile:not(#sticky-placeholder)' ); - $css->add_property( 'display', 'block' ); - - $css->set_selector( '.main-navigation ul,.gen-sidebar-nav' ); - $css->add_property( 'display', 'none' ); - - $css->set_selector( '[class*="nav-float-"] .site-header .inside-header > *' ); - $css->add_property( 'float', 'none' ); - $css->add_property( 'clear', 'both' ); - } - - $css->stop_media_query(); - - return $css->css_output(); -} - -/** - * Get all of our dynamic CSS to be cached/added to a file. - * - * @since 3.0.0 - */ -function generate_get_dynamic_css() { - if ( generate_is_using_dynamic_typography() ) { - $typography_css = GeneratePress_Typography::get_css(); - } else { - $typography_css = generate_font_css(); - } - - $css = generate_base_css() . $typography_css . generate_advanced_css() . generate_spacing_css(); - - return apply_filters( 'generate_dynamic_css', $css ); -} - -add_action( 'wp_enqueue_scripts', 'generate_enqueue_dynamic_css', 50 ); -/** - * Enqueue our dynamic CSS. - * - * @since 2.0 - */ -function generate_enqueue_dynamic_css() { - if ( apply_filters( 'generate_using_dynamic_css_external_file', false ) ) { - $css = ''; - } elseif ( ! get_option( 'generate_dynamic_css_output', false ) || is_customize_preview() || apply_filters( 'generate_dynamic_css_skip_cache', false ) ) { - $css = generate_get_dynamic_css(); - } else { - $css = get_option( 'generate_dynamic_css_output' ) . '/* End cached CSS */'; - } - - $css = $css . generate_no_cache_dynamic_css(); - - wp_add_inline_style( 'generate-style', wp_strip_all_tags( $css ) ); -} - -add_action( 'init', 'generate_set_dynamic_css_cache' ); -/** - * Sets our dynamic CSS cache if it doesn't exist. - * - * If the theme version changed, bust the cache. - * - * @since 2.0 - */ -function generate_set_dynamic_css_cache() { - if ( apply_filters( 'generate_dynamic_css_skip_cache', false ) ) { - return; - } - - $cached_css = get_option( 'generate_dynamic_css_output', false ); - $cached_version = get_option( 'generate_dynamic_css_cached_version', '' ); - - if ( ! $cached_css || GENERATE_VERSION !== $cached_version ) { - $css = generate_get_dynamic_css(); - - update_option( 'generate_dynamic_css_output', wp_strip_all_tags( $css ) ); - update_option( 'generate_dynamic_css_cached_version', esc_html( GENERATE_VERSION ) ); - } -} - -add_action( 'customize_save_after', 'generate_update_dynamic_css_cache' ); -/** - * Update our CSS cache when done saving Customizer options. - * - * @since 2.0 - */ -function generate_update_dynamic_css_cache() { - if ( apply_filters( 'generate_dynamic_css_skip_cache', false ) ) { - return; - } - - $css = generate_get_dynamic_css(); - update_option( 'generate_dynamic_css_output', wp_strip_all_tags( $css ) ); -} - -add_action( 'generate_base_css', 'generate_do_modal_css' ); -/** - * Do the modal CSS. - * - * @param Object $css The existing CSS object. - */ -function generate_do_modal_css( $css ) { - if ( ! apply_filters( 'generate_enable_modal_script', false ) ) { - return; - } - - $css->set_selector( '.gp-modal:not(.gp-modal--open):not(.gp-modal--transition)' ); - $css->add_property( 'display', 'none' ); - - $css->set_selector( '.gp-modal--transition:not(.gp-modal--open)' ); - $css->add_property( 'pointer-events', 'none' ); - - $css->set_selector( '.gp-modal-overlay:not(.gp-modal-overlay--open):not(.gp-modal--transition)' ); - $css->add_property( 'display', 'none' ); - - $css->set_selector( '.gp-modal__overlay' ); - $css->add_property( 'display', 'none' ); - $css->add_property( 'position', 'fixed' ); - $css->add_property( 'top', '0' ); - $css->add_property( 'left', '0' ); - $css->add_property( 'right', '0' ); - $css->add_property( 'bottom', '0' ); - $css->add_property( 'background', 'rgba(0,0,0,0.2)' ); - $css->add_property( 'display', 'flex' ); - $css->add_property( 'justify-content', 'center' ); - $css->add_property( 'align-items', 'center' ); - $css->add_property( 'z-index', '10000' ); - $css->add_property( 'backdrop-filter', 'blur(3px)' ); - $css->add_property( 'transition', 'opacity 500ms ease' ); - $css->add_property( 'opacity', 0 ); - - $css->set_selector( '.gp-modal--open:not(.gp-modal--transition) .gp-modal__overlay' ); - $css->add_property( 'opacity', 1 ); - - $css->set_selector( '.gp-modal__container' ); - $css->add_property( 'max-width', '100%' ); - $css->add_property( 'max-height', '100vh' ); - $css->add_property( 'transform', 'scale(0.9)' ); - $css->add_property( 'transition', 'transform 500ms ease' ); - $css->add_property( 'padding', '0 10px' ); - - $css->set_selector( '.gp-modal--open:not(.gp-modal--transition) .gp-modal__container' ); - $css->add_property( 'transform', 'scale(1)' ); - - return $css; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer.php deleted file mode 100644 index 0f152a06..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer.php +++ /dev/null @@ -1,1573 +0,0 @@ -get_control( 'blogdescription' ) ) { - $wp_customize->get_control( 'blogdescription' )->priority = 3; - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; - } - - if ( $wp_customize->get_control( 'blogname' ) ) { - $wp_customize->get_control( 'blogname' )->priority = 1; - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; - } - - if ( $wp_customize->get_control( 'custom_logo' ) ) { - $wp_customize->get_setting( 'custom_logo' )->transport = 'refresh'; - } - - if ( method_exists( $wp_customize, 'register_control_type' ) ) { - $wp_customize->register_control_type( 'Generate_Customize_Misc_Control' ); - $wp_customize->register_control_type( 'Generate_Range_Slider_Control' ); - } - - if ( method_exists( $wp_customize, 'register_section_type' ) ) { - $wp_customize->register_section_type( 'GeneratePress_Upsell_Section' ); - } - - if ( isset( $wp_customize->selective_refresh ) ) { - $wp_customize->selective_refresh->add_partial( - 'blogname', - array( - 'selector' => '.main-title a', - 'render_callback' => 'generate_customize_partial_blogname', - ) - ); - - $wp_customize->selective_refresh->add_partial( - 'blogdescription', - array( - 'selector' => '.site-description', - 'render_callback' => 'generate_customize_partial_blogdescription', - ) - ); - } - - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { - $wp_customize->add_section( - new GeneratePress_Upsell_Section( - $wp_customize, - 'generatepress_upsell_section', - array( - 'pro_text' => __( 'Premium Modules Available', 'generatepress' ), - 'pro_url' => generate_get_premium_url( 'https://generatepress.com/premium' ), - 'capability' => 'edit_theme_options', - 'priority' => 0, - 'type' => 'gp-upsell-section', - ) - ) - ); - } - - $wp_customize->add_setting( - 'generate_settings[hide_title]', - array( - 'default' => $defaults['hide_title'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_checkbox', - ) - ); - - $wp_customize->add_control( - 'generate_settings[hide_title]', - array( - 'type' => 'checkbox', - 'label' => __( 'Hide site title', 'generatepress' ), - 'section' => 'title_tagline', - 'priority' => 2, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[hide_tagline]', - array( - 'default' => $defaults['hide_tagline'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_checkbox', - ) - ); - - $wp_customize->add_control( - 'generate_settings[hide_tagline]', - array( - 'type' => 'checkbox', - 'label' => __( 'Hide site tagline', 'generatepress' ), - 'section' => 'title_tagline', - 'priority' => 4, - ) - ); - - if ( ! function_exists( 'the_custom_logo' ) ) { - $wp_customize->add_setting( - 'generate_settings[logo]', - array( - 'default' => $defaults['logo'], - 'type' => 'option', - 'sanitize_callback' => 'esc_url_raw', - ) - ); - - $wp_customize->add_control( - new WP_Customize_Image_Control( - $wp_customize, - 'generate_settings[logo]', - array( - 'label' => __( 'Logo', 'generatepress' ), - 'section' => 'title_tagline', - 'settings' => 'generate_settings[logo]', - ) - ) - ); - } - - $wp_customize->add_setting( - 'generate_settings[retina_logo]', - array( - 'default' => $defaults['retina_logo'], - 'type' => 'option', - 'sanitize_callback' => 'esc_url_raw', - ) - ); - - $wp_customize->add_control( - new WP_Customize_Image_Control( - $wp_customize, - 'generate_settings[retina_logo]', - array( - 'label' => __( 'Retina Logo', 'generatepress' ), - 'section' => 'title_tagline', - 'settings' => 'generate_settings[retina_logo]', - 'active_callback' => 'generate_has_custom_logo_callback', - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[logo_width]', - array( - 'default' => $defaults['logo_width'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_empty_absint', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[logo_width]', - array( - 'label' => __( 'Logo Width', 'generatepress' ), - 'section' => 'title_tagline', - 'settings' => array( - 'desktop' => 'generate_settings[logo_width]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 20, - 'max' => 1200, - 'step' => 10, - 'edit' => true, - 'unit' => 'px', - ), - ), - 'active_callback' => 'generate_has_custom_logo_callback', - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[inline_logo_site_branding]', - array( - 'default' => $defaults['inline_logo_site_branding'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_checkbox', - ) - ); - - $wp_customize->add_control( - 'generate_settings[inline_logo_site_branding]', - array( - 'type' => 'checkbox', - 'label' => esc_html__( 'Place logo next to title', 'generatepress' ), - 'section' => 'title_tagline', - 'active_callback' => 'generate_show_inline_logo_callback', - ) - ); - - $wp_customize->add_section( - 'generate_colors_section', - array( - 'title' => esc_attr__( 'Colors', 'generatepress' ), - 'priority' => 30, - ) - ); - - GeneratePress_Customize_Field::add_title( - 'generate_color_manager_title', - array( - 'section' => 'generate_colors_section', - 'title' => __( 'Global Colors', 'generatepress' ), - ) - ); - - GeneratePress_Customize_Field::add_field( - 'generate_settings[global_colors]', - 'GeneratePress_Customize_React_Control', - array( - 'default' => $defaults['global_colors'], - 'sanitize_callback' => function( $colors ) { - if ( ! is_array( $colors ) ) { - return; - } - - $new_settings = array(); - - foreach ( (array) $colors as $key => $data ) { - if ( empty( $data['slug'] ) || empty( $data['color'] ) ) { - continue; - } - - $slug = preg_replace( '/[^a-z0-9-\s]+/i', '', $data['slug'] ); - $slug = strtolower( $slug ); - $new_settings[ $key ]['name'] = sanitize_text_field( $slug ); - $new_settings[ $key ]['slug'] = sanitize_text_field( $slug ); - $new_settings[ $key ]['color'] = generate_sanitize_rgba_color( $data['color'] ); - } - - // Reset array keys starting at 0. - $new_settings = array_values( $new_settings ); - - return $new_settings; - }, - 'transport' => 'postMessage', - ), - array( - 'type' => 'generate-color-manager-control', - 'label' => __( 'Choose Color', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'showPalette' => false, - 'showReset' => false, - 'showVarName' => true, - ), - ) - ); - - $fields_dir = trailingslashit( get_template_directory() ) . 'inc/customizer/fields'; - require_once $fields_dir . '/body.php'; - require_once $fields_dir . '/top-bar.php'; - require_once $fields_dir . '/header.php'; - require_once $fields_dir . '/primary-navigation.php'; - - do_action( 'generate_customize_after_primary_navigation', $wp_customize ); - - require_once $fields_dir . '/buttons.php'; - require_once $fields_dir . '/content.php'; - require_once $fields_dir . '/forms.php'; - require_once $fields_dir . '/sidebar-widgets.php'; - require_once $fields_dir . '/footer-widgets.php'; - require_once $fields_dir . '/footer-bar.php'; - require_once $fields_dir . '/back-to-top.php'; - require_once $fields_dir . '/search-modal.php'; - - do_action( 'generate_customize_after_controls', $wp_customize ); - - $wp_customize->add_section( - 'generate_typography_section', - array( - 'title' => esc_attr__( 'Typography', 'generatepress' ), - 'priority' => 35, - 'active_callback' => function() { - if ( ! generate_is_using_dynamic_typography() ) { - return false; - } - - return true; - }, - ) - ); - - GeneratePress_Customize_Field::add_title( - 'generate_font_manager_title', - array( - 'section' => 'generate_typography_section', - 'title' => __( 'Font Manager', 'generatepress' ), - ) - ); - - GeneratePress_Customize_Field::add_field( - 'generate_settings[font_manager]', - 'GeneratePress_Customize_React_Control', - array( - 'default' => $defaults['font_manager'], - 'sanitize_callback' => function( $fonts ) { - if ( ! is_array( $fonts ) ) { - return; - } - - $options = array( - 'fontFamily' => 'sanitize_text_field', - 'googleFont' => 'rest_sanitize_boolean', - 'googleFontApi' => 'absint', - 'googleFontCategory' => 'sanitize_text_field', - 'googleFontVariants' => 'sanitize_text_field', - ); - - $new_settings = array(); - - foreach ( (array) $fonts as $key => $data ) { - if ( empty( $data['fontFamily'] ) ) { - continue; - } - - foreach ( $options as $option => $sanitize ) { - if ( array_key_exists( $option, $data ) ) { - $new_settings[ $key ][ $option ] = $sanitize( $data[ $option ] ); - } - } - } - - // Reset array keys starting at 0. - $new_settings = array_values( $new_settings ); - - return $new_settings; - }, - 'transport' => 'refresh', - ), - array( - 'type' => 'generate-font-manager-control', - 'label' => __( 'Choose Font', 'generatepress' ), - 'section' => 'generate_typography_section', - ) - ); - - GeneratePress_Customize_Field::add_field( - 'generate_settings[google_font_display]', - '', - array( - 'default' => $defaults['google_font_display'], - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'refresh', - ), - array( - 'type' => 'select', - 'label' => __( 'Google font-display', 'generatepress' ), - 'description' => sprintf( - '%s', - 'https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display', - esc_html__( 'Learn about font-display', 'generatepress' ) - ), - 'section' => 'generate_typography_section', - 'choices' => array( - 'auto' => esc_html__( 'Auto', 'generatepress' ), - 'block' => esc_html__( 'Block', 'generatepress' ), - 'swap' => esc_html__( 'Swap', 'generatepress' ), - 'fallback' => esc_html__( 'Fallback', 'generatepress' ), - 'optional' => esc_html__( 'Optional', 'generatepress' ), - ), - 'active_callback' => function() { - $font_manager = generate_get_option( 'font_manager' ); - $has_google_font = false; - - foreach ( (array) $font_manager as $key => $data ) { - if ( ! empty( $data['googleFont'] ) ) { - $has_google_font = true; - break; - } - } - - return $has_google_font; - }, - ) - ); - - GeneratePress_Customize_Field::add_title( - 'generate_typography_manager_title', - array( - 'section' => 'generate_typography_section', - 'title' => __( 'Typography Manager', 'generatepress' ), - ) - ); - - GeneratePress_Customize_Field::add_field( - 'generate_settings[typography]', - 'GeneratePress_Customize_React_Control', - array( - 'default' => $defaults['typography'], - 'sanitize_callback' => function( $settings ) { - if ( ! is_array( $settings ) ) { - return; - } - - $options = array( - 'selector' => 'sanitize_text_field', - 'customSelector' => 'sanitize_text_field', - 'fontFamily' => 'sanitize_text_field', - 'fontWeight' => 'sanitize_text_field', - 'textTransform' => 'sanitize_text_field', - 'textDecoration' => 'sanitize_text_field', - 'fontStyle' => 'sanitize_text_field', - 'fontSize' => 'sanitize_text_field', - 'fontSizeTablet' => 'sanitize_text_field', - 'fontSizeMobile' => 'sanitize_text_field', - 'fontSizeUnit' => 'sanitize_text_field', - 'lineHeight' => 'sanitize_text_field', - 'lineHeightTablet' => 'sanitize_text_field', - 'lineHeightMobile' => 'sanitize_text_field', - 'lineHeightUnit' => 'sanitize_text_field', - 'letterSpacing' => 'sanitize_text_field', - 'letterSpacingTablet' => 'sanitize_text_field', - 'letterSpacingMobile' => 'sanitize_text_field', - 'letterSpacingUnit' => 'sanitize_text_field', - 'marginBottom' => 'sanitize_text_field', - 'marginBottomTablet' => 'sanitize_text_field', - 'marginBottomMobile' => 'sanitize_text_field', - 'marginBottomUnit' => 'sanitize_text_field', - 'module' => 'sanitize_text_field', - 'group' => 'sanitize_text_field', - ); - - $new_settings = array(); - - foreach ( (array) $settings as $key => $data ) { - if ( empty( $data['selector'] ) ) { - continue; - } - - foreach ( $options as $option => $sanitize ) { - if ( array_key_exists( $option, $data ) ) { - $new_settings[ $key ][ $option ] = $sanitize( $data[ $option ] ); - } - } - } - - // Reset array keys starting at 0. - $new_settings = array_values( $new_settings ); - - return $new_settings; - }, - 'transport' => 'refresh', - ), - array( - 'type' => 'generate-typography-control', - 'label' => __( 'Configure', 'generatepress' ), - 'section' => 'generate_typography_section', - ) - ); - - if ( ! $wp_customize->get_panel( 'generate_layout_panel' ) ) { - $wp_customize->add_panel( - 'generate_layout_panel', - array( - 'priority' => 25, - 'title' => __( 'Layout', 'generatepress' ), - ) - ); - } - - $wp_customize->add_section( - 'generate_layout_container', - array( - 'title' => __( 'Container', 'generatepress' ), - 'priority' => 10, - 'panel' => 'generate_layout_panel', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[container_width]', - array( - 'default' => $defaults['container_width'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_integer', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[container_width]', - array( - 'type' => 'generatepress-range-slider', - 'label' => __( 'Container Width', 'generatepress' ), - 'section' => 'generate_layout_container', - 'settings' => array( - 'desktop' => 'generate_settings[container_width]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 700, - 'max' => 2000, - 'step' => 5, - 'edit' => true, - 'unit' => 'px', - ), - ), - 'priority' => 0, - ) - ) - ); - - $wp_customize->add_section( - 'generate_top_bar', - array( - 'title' => __( 'Top Bar', 'generatepress' ), - 'priority' => 15, - 'panel' => 'generate_layout_panel', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[top_bar_width]', - array( - 'default' => $defaults['top_bar_width'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[top_bar_width]', - array( - 'type' => 'select', - 'label' => __( 'Top Bar Width', 'generatepress' ), - 'section' => 'generate_top_bar', - 'choices' => array( - 'full' => __( 'Full', 'generatepress' ), - 'contained' => __( 'Contained', 'generatepress' ), - ), - 'settings' => 'generate_settings[top_bar_width]', - 'priority' => 5, - 'active_callback' => 'generate_is_top_bar_active', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[top_bar_inner_width]', - array( - 'default' => $defaults['top_bar_inner_width'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[top_bar_inner_width]', - array( - 'type' => 'select', - 'label' => __( 'Top Bar Inner Width', 'generatepress' ), - 'section' => 'generate_top_bar', - 'choices' => array( - 'full' => __( 'Full', 'generatepress' ), - 'contained' => __( 'Contained', 'generatepress' ), - ), - 'settings' => 'generate_settings[top_bar_inner_width]', - 'priority' => 10, - 'active_callback' => 'generate_is_top_bar_active', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[top_bar_alignment]', - array( - 'default' => $defaults['top_bar_alignment'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[top_bar_alignment]', - array( - 'type' => 'select', - 'label' => __( 'Top Bar Alignment', 'generatepress' ), - 'section' => 'generate_top_bar', - 'choices' => array( - 'left' => __( 'Left', 'generatepress' ), - 'center' => __( 'Center', 'generatepress' ), - 'right' => __( 'Right', 'generatepress' ), - ), - 'settings' => 'generate_settings[top_bar_alignment]', - 'priority' => 15, - 'active_callback' => 'generate_is_top_bar_active', - ) - ); - - $wp_customize->add_section( - 'generate_layout_header', - array( - 'title' => __( 'Header', 'generatepress' ), - 'priority' => 20, - 'panel' => 'generate_layout_panel', - ) - ); - - $wp_customize->add_setting( - 'generate_header_helper', - array( - 'default' => 'current', - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_preset_layout', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_header_helper', - array( - 'type' => 'select', - 'label' => __( 'Header Presets', 'generatepress' ), - 'section' => 'generate_layout_header', - 'choices' => array( - 'current' => __( 'Current', 'generatepress' ), - 'default' => __( 'Default', 'generatepress' ), - 'classic' => __( 'Classic', 'generatepress' ), - 'nav-before' => __( 'Navigation Before', 'generatepress' ), - 'nav-after' => __( 'Navigation After', 'generatepress' ), - 'nav-before-centered' => __( 'Navigation Before - Centered', 'generatepress' ), - 'nav-after-centered' => __( 'Navigation After - Centered', 'generatepress' ), - 'nav-left' => __( 'Navigation Left', 'generatepress' ), - ), - 'settings' => 'generate_header_helper', - 'priority' => 4, - ) - ); - - if ( ! $wp_customize->get_setting( 'generate_settings[site_title_font_size]' ) ) { - $typography_defaults = generate_get_default_fonts(); - - $wp_customize->add_setting( - 'generate_settings[site_title_font_size]', - array( - 'default' => $typography_defaults['site_title_font_size'], - 'type' => 'option', - 'sanitize_callback' => 'absint', - 'transport' => 'postMessage', - ) - ); - } - - if ( ! $wp_customize->get_setting( 'generate_spacing_settings[header_top]' ) ) { - $spacing_defaults = generate_spacing_get_defaults(); - - $wp_customize->add_setting( - 'generate_spacing_settings[header_top]', - array( - 'default' => $spacing_defaults['header_top'], - 'type' => 'option', - 'sanitize_callback' => 'absint', - 'transport' => 'postMessage', - ) - ); - } - - if ( ! $wp_customize->get_setting( 'generate_spacing_settings[header_bottom]' ) ) { - $spacing_defaults = generate_spacing_get_defaults(); - - $wp_customize->add_setting( - 'generate_spacing_settings[header_bottom]', - array( - 'default' => $spacing_defaults['header_bottom'], - 'type' => 'option', - 'sanitize_callback' => 'absint', - 'transport' => 'postMessage', - ) - ); - } - - $wp_customize->add_setting( - 'generate_settings[header_layout_setting]', - array( - 'default' => $defaults['header_layout_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[header_layout_setting]', - array( - 'type' => 'select', - 'label' => __( 'Header Width', 'generatepress' ), - 'section' => 'generate_layout_header', - 'choices' => array( - 'fluid-header' => __( 'Full', 'generatepress' ), - 'contained-header' => __( 'Contained', 'generatepress' ), - ), - 'settings' => 'generate_settings[header_layout_setting]', - 'priority' => 5, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[header_inner_width]', - array( - 'default' => $defaults['header_inner_width'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[header_inner_width]', - array( - 'type' => 'select', - 'label' => __( 'Inner Header Width', 'generatepress' ), - 'section' => 'generate_layout_header', - 'choices' => array( - 'contained' => __( 'Contained', 'generatepress' ), - 'full-width' => __( 'Full', 'generatepress' ), - ), - 'settings' => 'generate_settings[header_inner_width]', - 'priority' => 6, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[header_alignment_setting]', - array( - 'default' => $defaults['header_alignment_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[header_alignment_setting]', - array( - 'type' => 'select', - 'label' => __( 'Header Alignment', 'generatepress' ), - 'section' => 'generate_layout_header', - 'choices' => array( - 'left' => __( 'Left', 'generatepress' ), - 'center' => __( 'Center', 'generatepress' ), - 'right' => __( 'Right', 'generatepress' ), - ), - 'settings' => 'generate_settings[header_alignment_setting]', - 'priority' => 10, - ) - ); - - $wp_customize->add_section( - 'generate_layout_navigation', - array( - 'title' => __( 'Primary Navigation', 'generatepress' ), - 'priority' => 30, - 'panel' => 'generate_layout_panel', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_layout_setting]', - array( - 'default' => $defaults['nav_layout_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[nav_layout_setting]', - array( - 'type' => 'select', - 'label' => __( 'Navigation Width', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'choices' => array( - 'fluid-nav' => __( 'Full', 'generatepress' ), - 'contained-nav' => __( 'Contained', 'generatepress' ), - ), - 'settings' => 'generate_settings[nav_layout_setting]', - 'priority' => 15, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_inner_width]', - array( - 'default' => $defaults['nav_inner_width'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[nav_inner_width]', - array( - 'type' => 'select', - 'label' => __( 'Inner Navigation Width', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'choices' => array( - 'contained' => __( 'Contained', 'generatepress' ), - 'full-width' => __( 'Full', 'generatepress' ), - ), - 'settings' => 'generate_settings[nav_inner_width]', - 'priority' => 16, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_alignment_setting]', - array( - 'default' => $defaults['nav_alignment_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[nav_alignment_setting]', - array( - 'type' => 'select', - 'label' => __( 'Navigation Alignment', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'choices' => array( - 'left' => __( 'Left', 'generatepress' ), - 'center' => __( 'Center', 'generatepress' ), - 'right' => __( 'Right', 'generatepress' ), - ), - 'settings' => 'generate_settings[nav_alignment_setting]', - 'priority' => 20, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_position_setting]', - array( - 'default' => $defaults['nav_position_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'refresh', - ) - ); - - $wp_customize->add_control( - 'generate_settings[nav_position_setting]', - array( - 'type' => 'select', - 'label' => __( 'Navigation Location', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'choices' => array( - 'nav-below-header' => __( 'Below Header', 'generatepress' ), - 'nav-above-header' => __( 'Above Header', 'generatepress' ), - 'nav-float-right' => __( 'Float Right', 'generatepress' ), - 'nav-float-left' => __( 'Float Left', 'generatepress' ), - 'nav-left-sidebar' => __( 'Left Sidebar', 'generatepress' ), - 'nav-right-sidebar' => __( 'Right Sidebar', 'generatepress' ), - '' => __( 'No Navigation', 'generatepress' ), - ), - 'settings' => 'generate_settings[nav_position_setting]', - 'priority' => 22, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_drop_point]', - array( - 'default' => $defaults['nav_drop_point'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_empty_absint', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[nav_drop_point]', - array( - 'label' => __( 'Navigation Drop Point', 'generatepress' ), - 'sub_description' => __( 'The width when the navigation ceases to float and drops below your logo.', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'settings' => array( - 'desktop' => 'generate_settings[nav_drop_point]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 500, - 'max' => 2000, - 'step' => 10, - 'edit' => true, - 'unit' => 'px', - ), - ), - 'priority' => 22, - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_dropdown_type]', - array( - 'default' => $defaults['nav_dropdown_type'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[nav_dropdown_type]', - array( - 'type' => 'select', - 'label' => __( 'Navigation Dropdown', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'choices' => array( - 'hover' => __( 'Hover', 'generatepress' ), - 'click' => __( 'Click - Menu Item', 'generatepress' ), - 'click-arrow' => __( 'Click - Arrow', 'generatepress' ), - ), - 'settings' => 'generate_settings[nav_dropdown_type]', - 'priority' => 22, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_dropdown_direction]', - array( - 'default' => $defaults['nav_dropdown_direction'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[nav_dropdown_direction]', - array( - 'type' => 'select', - 'label' => __( 'Dropdown Direction', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'choices' => array( - 'right' => __( 'Right', 'generatepress' ), - 'left' => __( 'Left', 'generatepress' ), - ), - 'settings' => 'generate_settings[nav_dropdown_direction]', - 'priority' => 22, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_search]', - array( - 'default' => $defaults['nav_search'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[nav_search]', - array( - 'type' => 'select', - 'label' => __( 'Navigation Search', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'choices' => array( - 'enable' => __( 'Enable', 'generatepress' ), - 'disable' => __( 'Disable', 'generatepress' ), - ), - 'settings' => 'generate_settings[nav_search]', - 'priority' => 23, - 'active_callback' => function() { - return 'enable' === generate_get_option( 'nav_search' ) || 'floats' === generate_get_option( 'structure' ) || 'font' === generate_get_option( 'icons' ); - }, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[nav_search_modal]', - array( - 'default' => $defaults['nav_search_modal'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_checkbox', - ) - ); - - $wp_customize->add_control( - 'generate_settings[nav_search_modal]', - array( - 'type' => 'checkbox', - 'label' => esc_html__( 'Enable navigation search modal', 'generatepress' ), - 'section' => 'generate_layout_navigation', - 'priority' => 23, - 'active_callback' => function() { - return 'disable' === generate_get_option( 'nav_search' ) && 'flexbox' === generate_get_option( 'structure' ) && 'svg' === generate_get_option( 'icons' ); - }, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[content_layout_setting]', - array( - 'default' => $defaults['content_layout_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[content_layout_setting]', - array( - 'type' => 'select', - 'label' => __( 'Content Layout', 'generatepress' ), - 'section' => 'generate_layout_container', - 'choices' => array( - 'separate-containers' => __( 'Separate Containers', 'generatepress' ), - 'one-container' => __( 'One Container', 'generatepress' ), - ), - 'settings' => 'generate_settings[content_layout_setting]', - 'priority' => 25, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[container_alignment]', - array( - 'default' => $defaults['container_alignment'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[container_alignment]', - array( - 'type' => 'select', - 'label' => __( 'Container Alignment', 'generatepress' ), - 'section' => 'generate_layout_container', - 'choices' => array( - 'boxes' => __( 'Boxes', 'generatepress' ), - 'text' => __( 'Text', 'generatepress' ), - ), - 'settings' => 'generate_settings[container_alignment]', - 'priority' => 30, - ) - ); - - $wp_customize->add_section( - 'generate_layout_sidebars', - array( - 'title' => __( 'Sidebars', 'generatepress' ), - 'priority' => 40, - 'panel' => 'generate_layout_panel', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[layout_setting]', - array( - 'default' => $defaults['layout_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[layout_setting]', - array( - 'type' => 'select', - 'label' => __( 'Sidebar Layout', 'generatepress' ), - 'section' => 'generate_layout_sidebars', - 'choices' => array( - 'left-sidebar' => __( 'Sidebar / Content', 'generatepress' ), - 'right-sidebar' => __( 'Content / Sidebar', 'generatepress' ), - 'no-sidebar' => __( 'Content (no sidebars)', 'generatepress' ), - 'both-sidebars' => __( 'Sidebar / Content / Sidebar', 'generatepress' ), - 'both-left' => __( 'Sidebar / Sidebar / Content', 'generatepress' ), - 'both-right' => __( 'Content / Sidebar / Sidebar', 'generatepress' ), - ), - 'settings' => 'generate_settings[layout_setting]', - 'priority' => 30, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[blog_layout_setting]', - array( - 'default' => $defaults['blog_layout_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[blog_layout_setting]', - array( - 'type' => 'select', - 'label' => __( 'Blog Sidebar Layout', 'generatepress' ), - 'section' => 'generate_layout_sidebars', - 'choices' => array( - 'left-sidebar' => __( 'Sidebar / Content', 'generatepress' ), - 'right-sidebar' => __( 'Content / Sidebar', 'generatepress' ), - 'no-sidebar' => __( 'Content (no sidebars)', 'generatepress' ), - 'both-sidebars' => __( 'Sidebar / Content / Sidebar', 'generatepress' ), - 'both-left' => __( 'Sidebar / Sidebar / Content', 'generatepress' ), - 'both-right' => __( 'Content / Sidebar / Sidebar', 'generatepress' ), - ), - 'settings' => 'generate_settings[blog_layout_setting]', - 'priority' => 35, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[single_layout_setting]', - array( - 'default' => $defaults['single_layout_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[single_layout_setting]', - array( - 'type' => 'select', - 'label' => __( 'Single Post Sidebar Layout', 'generatepress' ), - 'section' => 'generate_layout_sidebars', - 'choices' => array( - 'left-sidebar' => __( 'Sidebar / Content', 'generatepress' ), - 'right-sidebar' => __( 'Content / Sidebar', 'generatepress' ), - 'no-sidebar' => __( 'Content (no sidebars)', 'generatepress' ), - 'both-sidebars' => __( 'Sidebar / Content / Sidebar', 'generatepress' ), - 'both-left' => __( 'Sidebar / Sidebar / Content', 'generatepress' ), - 'both-right' => __( 'Content / Sidebar / Sidebar', 'generatepress' ), - ), - 'settings' => 'generate_settings[single_layout_setting]', - 'priority' => 36, - ) - ); - - $wp_customize->add_section( - 'generate_layout_footer', - array( - 'title' => __( 'Footer', 'generatepress' ), - 'priority' => 50, - 'panel' => 'generate_layout_panel', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[footer_layout_setting]', - array( - 'default' => $defaults['footer_layout_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[footer_layout_setting]', - array( - 'type' => 'select', - 'label' => __( 'Footer Width', 'generatepress' ), - 'section' => 'generate_layout_footer', - 'choices' => array( - 'fluid-footer' => __( 'Full', 'generatepress' ), - 'contained-footer' => __( 'Contained', 'generatepress' ), - ), - 'settings' => 'generate_settings[footer_layout_setting]', - 'priority' => 40, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[footer_inner_width]', - array( - 'default' => $defaults['footer_inner_width'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[footer_inner_width]', - array( - 'type' => 'select', - 'label' => __( 'Inner Footer Width', 'generatepress' ), - 'section' => 'generate_layout_footer', - 'choices' => array( - 'contained' => __( 'Contained', 'generatepress' ), - 'full-width' => __( 'Full', 'generatepress' ), - ), - 'settings' => 'generate_settings[footer_inner_width]', - 'priority' => 41, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[footer_widget_setting]', - array( - 'default' => $defaults['footer_widget_setting'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[footer_widget_setting]', - array( - 'type' => 'select', - 'label' => __( 'Footer Widgets', 'generatepress' ), - 'section' => 'generate_layout_footer', - 'choices' => array( - '0' => '0', - '1' => '1', - '2' => '2', - '3' => '3', - '4' => '4', - '5' => '5', - ), - 'settings' => 'generate_settings[footer_widget_setting]', - 'priority' => 45, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[footer_bar_alignment]', - array( - 'default' => $defaults['footer_bar_alignment'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - 'generate_settings[footer_bar_alignment]', - array( - 'type' => 'select', - 'label' => __( 'Footer Bar Alignment', 'generatepress' ), - 'section' => 'generate_layout_footer', - 'choices' => array( - 'left' => __( 'Left', 'generatepress' ), - 'center' => __( 'Center', 'generatepress' ), - 'right' => __( 'Right', 'generatepress' ), - ), - 'settings' => 'generate_settings[footer_bar_alignment]', - 'priority' => 47, - 'active_callback' => 'generate_is_footer_bar_active', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[back_to_top]', - array( - 'default' => $defaults['back_to_top'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[back_to_top]', - array( - 'type' => 'select', - 'label' => __( 'Back to Top Button', 'generatepress' ), - 'section' => 'generate_layout_footer', - 'choices' => array( - 'enable' => __( 'Enable', 'generatepress' ), - '' => __( 'Disable', 'generatepress' ), - ), - 'settings' => 'generate_settings[back_to_top]', - 'priority' => 50, - ) - ); - - $wp_customize->add_section( - 'generate_blog_section', - array( - 'title' => __( 'Blog', 'generatepress' ), - 'priority' => 55, - 'panel' => 'generate_layout_panel', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[post_content]', - array( - 'default' => $defaults['post_content'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_blog_excerpt', - ) - ); - - $wp_customize->add_control( - 'blog_content_control', - array( - 'type' => 'select', - 'label' => __( 'Content Type', 'generatepress' ), - 'section' => 'generate_blog_section', - 'choices' => array( - 'full' => __( 'Full Content', 'generatepress' ), - 'excerpt' => __( 'Excerpt', 'generatepress' ), - ), - 'settings' => 'generate_settings[post_content]', - 'priority' => 10, - ) - ); - - if ( ! function_exists( 'generate_blog_customize_register' ) && ! defined( 'GP_PREMIUM_VERSION' ) ) { - $wp_customize->add_control( - new Generate_Customize_Misc_Control( - $wp_customize, - 'blog_get_addon_desc', - array( - 'section' => 'generate_blog_section', - 'type' => 'addon', - 'label' => __( 'Learn more', 'generatepress' ), - 'description' => __( 'More options are available for this section in our premium version.', 'generatepress' ), - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#blog', false ), - 'priority' => 30, - 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', - ) - ) - ); - } - - $wp_customize->add_section( - 'generate_general_section', - array( - 'title' => __( 'General', 'generatepress' ), - 'priority' => 99, - ) - ); - - if ( ! apply_filters( 'generate_fontawesome_essentials', false ) ) { - $wp_customize->add_setting( - 'generate_settings[font_awesome_essentials]', - array( - 'default' => $defaults['font_awesome_essentials'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_checkbox', - ) - ); - - $wp_customize->add_control( - 'generate_settings[font_awesome_essentials]', - array( - 'type' => 'checkbox', - 'label' => __( 'Load essential icons only', 'generatepress' ), - 'description' => __( 'Load essential Font Awesome icons instead of the full library.', 'generatepress' ), - 'section' => 'generate_general_section', - 'settings' => 'generate_settings[font_awesome_essentials]', - ) - ); - } - - $show_flexbox_option = true; - - if ( defined( 'GP_PREMIUM_VERSION' ) && version_compare( GP_PREMIUM_VERSION, '1.11.0-alpha.1', '<' ) ) { - $show_flexbox_option = false; - } - - if ( generate_is_using_flexbox() ) { - $show_flexbox_option = false; - } - - $show_flexbox_option = apply_filters( 'generate_show_flexbox_customizer_option', $show_flexbox_option ); - - if ( $show_flexbox_option ) { - $wp_customize->add_setting( - 'generate_settings[structure]', - array( - 'default' => $defaults['structure'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[structure]', - array( - 'type' => 'select', - 'label' => __( 'Structure', 'generatepress' ), - 'section' => 'generate_general_section', - 'choices' => array( - 'flexbox' => __( 'Flexbox', 'generatepress' ), - 'floats' => __( 'Floats', 'generatepress' ), - ), - 'description' => sprintf( - '%1$s %2$s', - __( 'Caution:', 'generatepress' ), - sprintf( - /* translators: Learn more here */ - __( 'Switching your structure can change how your website displays. Review your website thoroughly before publishing this change, or use a staging site to review the potential changes. Learn more %s.', 'generatepress' ), - '' . __( 'here', 'generatepress' ) . '' - ) - ), - 'settings' => 'generate_settings[structure]', - ) - ); - } - - $wp_customize->add_setting( - 'generate_settings[icons]', - array( - 'default' => $defaults['icons'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[icons]', - array( - 'type' => 'select', - 'label' => __( 'Icon Type', 'generatepress' ), - 'section' => 'generate_general_section', - 'choices' => array( - 'svg' => __( 'SVG', 'generatepress' ), - 'font' => __( 'Font', 'generatepress' ), - ), - 'settings' => 'generate_settings[icons]', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[underline_links]', - array( - 'default' => $defaults['underline_links'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_choices', - ) - ); - - $wp_customize->add_control( - 'generate_settings[underline_links]', - array( - 'type' => 'select', - 'label' => __( 'Underline Links', 'generatepress' ), - 'description' => __( 'Add underlines to your links in your main content areas.', 'generatepress' ), - 'section' => 'generate_general_section', - 'choices' => array( - 'always' => __( 'Always', 'generatepress' ), - 'hover' => __( 'On hover', 'generatepress' ), - 'not-hover' => __( 'Not on hover', 'generatepress' ), - 'never' => __( 'Never', 'generatepress' ), - ), - 'settings' => 'generate_settings[underline_links]', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[combine_css]', - array( - 'default' => $defaults['combine_css'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_checkbox', - ) - ); - - $wp_customize->add_control( - 'generate_settings[combine_css]', - array( - 'type' => 'checkbox', - 'label' => __( 'Combine CSS', 'generatepress' ), - 'description' => __( 'Reduce the number of CSS file requests and use a lite version of our grid system.', 'generatepress' ), - 'section' => 'generate_general_section', - 'active_callback' => 'generate_is_using_floats_callback', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[dynamic_css_cache]', - array( - 'default' => $defaults['dynamic_css_cache'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_checkbox', - ) - ); - - $wp_customize->add_control( - 'generate_settings[dynamic_css_cache]', - array( - 'type' => 'checkbox', - 'label' => __( 'Cache dynamic CSS', 'generatepress' ), - 'description' => __( 'Cache CSS generated by your options to boost performance.', 'generatepress' ), - 'section' => 'generate_general_section', - ) - ); - - $show_legacy_typography_option = true; - - if ( defined( 'GP_PREMIUM_VERSION' ) && version_compare( GP_PREMIUM_VERSION, '2.1.0-alpha.1', '<' ) ) { - $show_legacy_typography_option = false; - } - - if ( generate_is_using_dynamic_typography() ) { - $show_legacy_typography_option = false; - } - - $show_legacy_typography_option = apply_filters( 'generate_show_legacy_typography_customizer_option', $show_legacy_typography_option ); - - if ( $show_legacy_typography_option ) { - $wp_customize->add_setting( - 'generate_settings[use_dynamic_typography]', - array( - 'default' => $defaults['use_dynamic_typography'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_checkbox', - ) - ); - - $wp_customize->add_control( - 'generate_settings[use_dynamic_typography]', - array( - 'type' => 'checkbox', - 'label' => __( 'Use dynamic typography system', 'generatepress' ), - 'description' => sprintf( - /* translators: Learn more here */ - __( 'Switching to our dynamic typography system can change how your fonts display. Review your website thoroughly before publishing this change. Learn more %s.', 'generatepress' ), - '' . __( 'here', 'generatepress' ) . '' - ), - 'section' => 'generate_general_section', - 'settings' => 'generate_settings[use_dynamic_typography]', - ) - ); - } - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/class-customize-field.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/class-customize-field.php deleted file mode 100644 index 21cc432a..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/class-customize-field.php +++ /dev/null @@ -1,217 +0,0 @@ -selective_refresh ) ? array() : 'blogname'; - $control_args['choices']['id'] = str_replace( '_', '-', $id ); - $control_args['type'] = 'generate-wrapper-control'; - - $wp_customize->add_control( - new GeneratePress_Customize_React_Control( - $wp_customize, - $id, - $control_args - ) - ); - } - - /** - * Add a title. - * - * @param string $id The settings ID for this field. - * @param array $control_args The args for add_control(). - */ - public static function add_title( $id, $control_args = array() ) { - global $wp_customize; - - if ( ! $id ) { - return; - } - - $control_args['settings'] = isset( $wp_customize->selective_refresh ) ? array() : 'blogname'; - $control_args['type'] = 'generate-title-control'; - $control_args['choices']['title'] = $control_args['title']; - unset( $control_args['title'] ); - - $wp_customize->add_control( - new GeneratePress_Customize_React_Control( - $wp_customize, - $id, - $control_args - ) - ); - } - - /** - * Add a Customizer field. - * - * @param string $id The settings ID for this field. - * @param object $control_class A custom control classes if we want one. - * @param array $setting_args The args for add_setting(). - * @param array $control_args The args for add_control(). - */ - public static function add_field( $id, $control_class, $setting_args = array(), $control_args = array() ) { - global $wp_customize; - - if ( ! $id ) { - return; - } - - $settings = wp_parse_args( - $setting_args, - array( - 'type' => 'option', - 'capability' => 'edit_theme_options', - 'default' => '', - 'transport' => 'refresh', - 'validate_callback' => '', - 'sanitize_callback' => '', - ) - ); - - $wp_customize->add_setting( - $id, - array( - 'type' => $settings['type'], - 'capability' => $settings['capability'], - 'default' => $settings['default'], - 'transport' => $settings['transport'], - 'validate_callback' => $settings['validate_callback'], - 'sanitize_callback' => $settings['sanitize_callback'], - ) - ); - - $control_args['settings'] = $id; - - if ( ! isset( $control_args['type'] ) ) { - unset( $control_args['type'] ); - } - - if ( ! isset( $control_args['defaultValue'] ) && isset( $setting_args['default'] ) ) { - $control_args['defaultValue'] = $setting_args['default']; - } - - if ( isset( $control_args['output'] ) ) { - global $generate_customize_fields; - - $generate_customize_fields[] = array( - 'js_vars' => $control_args['output'], - 'settings' => $id, - ); - } - - if ( $control_class ) { - $wp_customize->add_control( - new $control_class( - $wp_customize, - $id, - $control_args - ) - ); - - return; - } - - $wp_customize->add_control( - $id, - $control_args - ); - } - - /** - * Add color field group. - * - * @param string $id The ID for the group wrapper. - * @param string $section_id The section ID. - * @param string $toggle_id The Toggle ID. - * @param array $fields The color fields. - */ - public static function add_color_field_group( $id, $section_id, $toggle_id, $fields ) { - self::add_wrapper( - "generate_{$id}_wrapper", - array( - 'section' => $section_id, - 'choices' => array( - 'type' => 'color', - 'toggleId' => $toggle_id, - 'items' => array_keys( $fields ), - ), - ) - ); - - foreach ( $fields as $key => $field ) { - self::add_field( - $key, - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $field['default_value'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => $field['label'], - 'section' => $section_id, - 'choices' => array( - 'alpha' => isset( $field['alpha'] ) ? $field['alpha'] : true, - 'toggleId' => $toggle_id, - 'wrapper' => $key, - 'tooltip' => $field['tooltip'], - 'hideLabel' => isset( $field['hide_label'] ) ? $field['hide_label'] : false, - ), - 'output' => array( - array( - 'element' => $field['element'], - 'property' => $field['property'], - ), - ), - ) - ); - } - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-color-control.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-color-control.php deleted file mode 100644 index e4561a48..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-color-control.php +++ /dev/null @@ -1,44 +0,0 @@ -json['choices'] = $this->choices; - } - - /** - * Empty JS template. - * - * @access public - * @since 1.0.0 - * @return void - */ - public function content_template() {} -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-deprecated.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-deprecated.php deleted file mode 100644 index 4dcc7412..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-deprecated.php +++ /dev/null @@ -1,303 +0,0 @@ - wp_create_nonce( 'gp_customize_nonce' ) ) ); - } - - /** - * Send variables to json. - */ - public function to_json() { - parent::to_json(); - - $number_of_fonts = apply_filters( 'generate_number_of_fonts', 200 ); - $this->json['link'] = $this->get_link(); - $this->json['value'] = $this->value(); - $this->json['default_fonts_title'] = __( 'Default fonts', 'generatepress' ); - $this->json['google_fonts_title'] = __( 'Google fonts', 'generatepress' ); - $this->json['description'] = __( 'Font family', 'generatepress' ); - $this->json['google_fonts'] = apply_filters( 'generate_typography_customize_list', generate_get_all_google_fonts( $number_of_fonts ) ); - $this->json['default_fonts'] = generate_typography_default_fonts(); - } - - /** - * Render content. - */ - public function content_template() { - ?> - - choices as $name => $choice ) { - $this->choices[ $name ] = $choice; - } - - $this->json['choices'] = $this->choices; - $this->json['link'] = $this->get_link(); - $this->json['value'] = $this->value(); - - } - - /** - * Render content. - */ - public function content_template() { - ?> - <# if ( ! data.choices ) - return; - #> - - json['link'] = $this->get_link(); - $this->json['value'] = $this->value(); - $this->json['id'] = $this->id; - } - - /** - * Render content. - */ - public function content_template() { - ?> - - - - - - json['choices'][ $device ]['min'] = ( isset( $this->choices[ $device ]['min'] ) ) ? $this->choices[ $device ]['min'] : '0'; - $this->json['choices'][ $device ]['max'] = ( isset( $this->choices[ $device ]['max'] ) ) ? $this->choices[ $device ]['max'] : '100'; - $this->json['choices'][ $device ]['step'] = ( isset( $this->choices[ $device ]['step'] ) ) ? $this->choices[ $device ]['step'] : '1'; - $this->json['choices'][ $device ]['edit'] = ( isset( $this->choices[ $device ]['edit'] ) ) ? $this->choices[ $device ]['edit'] : false; - $this->json['choices'][ $device ]['unit'] = ( isset( $this->choices[ $device ]['unit'] ) ) ? $this->choices[ $device ]['unit'] : false; - } - - foreach ( $this->settings as $setting_key => $setting_id ) { - $this->json[ $setting_key ] = array( - 'link' => $this->get_link( $setting_key ), - 'value' => $this->value( $setting_key ), - 'default' => isset( $setting_id->default ) ? $setting_id->default : '', - ); - } - - $this->json['desktop_label'] = __( 'Desktop', 'generatepress' ); - $this->json['tablet_label'] = __( 'Tablet', 'generatepress' ); - $this->json['mobile_label'] = __( 'Mobile', 'generatepress' ); - $this->json['reset_label'] = __( 'Reset', 'generatepress' ); - - $this->json['description'] = $this->description; - $this->json['sub_description'] = $this->sub_description; - } - - /** - * Enqueue control related scripts/styles. - * - * @access public - */ - public function enqueue() { - wp_enqueue_script( - 'generatepress-range-slider', - trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/js/slider-control.js', - array( - 'jquery', - 'customize-base', - 'jquery-ui-slider', - ), - GENERATE_VERSION, - true - ); - - wp_enqueue_style( - 'generatepress-range-slider-css', - trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/css/slider-customizer.css', - array(), - GENERATE_VERSION - ); - } - - /** - * An Underscore (JS) template for this control's content (but not its container). - * - * Class variables for this control class are available in the `data` JS object; - * export custom variables by overriding {@see WP_Customize_Control::to_json()}. - * - * @see WP_Customize_Control::print_template() - * - * @access protected - */ - protected function content_template() { - ?> -
-
- <# if ( data.label || data.description ) { #> -
- <# if ( data.label ) { #> - {{{ data.label }}} - <# } #> - - <# if ( data.description ) { #> -

{{{ data.description }}}

- <# } #> -
- <# } #> - -
- - <# if ( 'undefined' !== typeof ( data.desktop ) ) { #> - - <# } #> - - <# if ( 'undefined' !== typeof (data.tablet) ) { #> - - <# } #> - - <# if ( 'undefined' !== typeof (data.mobile) ) { #> - - <# } #> - - - -
-
- -
- <# if ( 'undefined' !== typeof ( data.desktop ) ) { #> - - <# } #> - - <# if ( 'undefined' !== typeof ( data.tablet ) ) { #> - - <# } #> - - <# if ( 'undefined' !== typeof ( data.mobile ) ) { #> - - <# } #> -
- - <# if ( data.sub_description ) { #> -

{{{ data.sub_description }}}

- <# } #> -
- json['choices'] = $this->choices; - } - - /** - * Empty JS template. - * - * @access public - * @since 1.0.0 - * @return void - */ - public function content_template() {} - - /** - * Empty PHP template. - * - * @access public - * @since 1.0.0 - * @return void - */ - public function render_content() {} -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-typography-control.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-typography-control.php deleted file mode 100644 index 4d7ad77c..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-typography-control.php +++ /dev/null @@ -1,243 +0,0 @@ -json['default_fonts_title'] = __( 'System fonts', 'generatepress' ); - $this->json['google_fonts_title'] = __( 'Google fonts', 'generatepress' ); - $this->json['default_fonts'] = generate_typography_default_fonts(); - $this->json['family_title'] = esc_html__( 'Font family', 'generatepress' ); - $this->json['weight_title'] = esc_html__( 'Font weight', 'generatepress' ); - $this->json['transform_title'] = esc_html__( 'Text transform', 'generatepress' ); - $this->json['category_title'] = ''; - $this->json['variant_title'] = esc_html__( 'Variants', 'generatepress' ); - - foreach ( $this->settings as $setting_key => $setting_id ) { - $this->json[ $setting_key ] = array( - 'link' => $this->get_link( $setting_key ), - 'value' => $this->value( $setting_key ), - 'default' => isset( $setting_id->default ) ? $setting_id->default : '', - 'id' => isset( $setting_id->id ) ? $setting_id->id : '', - ); - - if ( 'weight' === $setting_key ) { - $this->json[ $setting_key ]['choices'] = $this->get_font_weight_choices(); - } - - if ( 'transform' === $setting_key ) { - $this->json[ $setting_key ]['choices'] = $this->get_font_transform_choices(); - } - } - } - - /** - * Render content. - */ - public function content_template() { - ?> - <# if ( '' !== data.label ) { #> - {{ data.label }} - <# } #> - <# if ( 'undefined' !== typeof ( data.family ) ) { #> -
- -
- <# } #> - - <# if ( 'undefined' !== typeof ( data.variant ) ) { #> - <# - var id = data.family.value.split(' ').join('_').toLowerCase(); - var font_data = generatePressTypography.googleFonts[id]; - var variants = ''; - if ( typeof font_data !== 'undefined' ) { - variants = font_data.variants; - } - - if ( null === data.variant.value ) { - data.variant.value = data.variant.default; - } - #> -
- -
- <# } #> - - <# if ( 'undefined' !== typeof ( data.category ) ) { #> -
- -
- <# } #> - -
- <# if ( 'undefined' !== typeof ( data.weight ) ) { #> -
- -
- <# } #> - - <# if ( 'undefined' !== typeof ( data.transform ) ) { #> -
- -
- <# } #> -
- esc_html( 'normal' ), - 'bold' => esc_html( 'bold' ), - '100' => esc_html( '100' ), - '200' => esc_html( '200' ), - '300' => esc_html( '300' ), - '400' => esc_html( '400' ), - '500' => esc_html( '500' ), - '600' => esc_html( '600' ), - '700' => esc_html( '700' ), - '800' => esc_html( '800' ), - '900' => esc_html( '900' ), - ); - } - - /** - * Build text transform choices. - */ - public function get_font_transform_choices() { - return array( - 'none' => esc_html( 'none' ), - 'capitalize' => esc_html( 'capitalize' ), - 'uppercase' => esc_html( 'uppercase' ), - 'lowercase' => esc_html( 'lowercase' ), - ); - } - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-upsell-control.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-upsell-control.php deleted file mode 100644 index 541091a2..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/class-upsell-control.php +++ /dev/null @@ -1,80 +0,0 @@ -json['url'] = esc_url( $this->url ); - } - - /** - * Render content. - */ - public function content_template() { - ?> -

{{{ data.description }}}

- - {{ data.label }} - - pro_text; - $json['pro_url'] = esc_url( $this->pro_url ); - $json['id'] = $this->id; - return $json; - } - - /** - * Render content. - */ - protected function render_template() { - ?> -
  • -

    {{ data.pro_text }}

    -
  • - .select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/slider-customizer.css b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/slider-customizer.css deleted file mode 100644 index 427d3207..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/slider-customizer.css +++ /dev/null @@ -1,142 +0,0 @@ -.customize-control-generatepress-range-slider .generatepress-slider { - position: relative; - width: calc(100% - 60px); - height: 6px; - background-color: rgba(0,0,0,.10); - cursor: pointer; - -webkit-transition: background .5s; - -moz-transition: background .5s; - transition: background .5s; -} - -.customize-control-generatepress-range-slider .has-unit .generatepress-slider { - width: calc(100% - 90px); -} - -.customize-control-generatepress-range-slider .gp_range_value.hide-value { - display: none; -} - -.customize-control-generatepress-range-slider .gp_range_value.hide-value + .generatepress-slider { - width: 100%; -} - -.customize-control-generatepress-range-slider .generatepress-slider .ui-slider-handle { - height: 16px; - width: 16px; - background-color: #3498D9; - display: inline-block; - position: absolute; - top: 50%; - -webkit-transform: translateY(-50%) translateX(-4px); - transform: translateY(-50%) translateX(-4px); - border-radius: 50%; - cursor: pointer; -} - -.gp-range-title-area { - display: flex; -} - -.gp-range-slider-controls { - margin-left: auto; -} - -.customize-control-generatepress-range-slider .wrapper { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.customize-control-generatepress-range-slider .gp_range_value { - font-size: 14px; - padding: 0; - font-weight: 400; - width: 50px; - display: -webkit-box; - display: -ms-flexbox; - display: flex; -} - -.customize-control-generatepress-range-slider .has-unit .gp_range_value { - width: 80px; -} - -.customize-control-generatepress-range-slider .gp_range_value span.value { - font-size: 12px; - width: calc(100% - 2px); - text-align: center; - min-height: 30px; - background: #FFF; - line-height: 30px; - border: 1px solid #DDD; -} - -.customize-control-generatepress-range-slider .has-unit .gp_range_value span.value { - width: calc(100% - 32px); - display: block; -} - -.customize-control-generatepress-range-slider .gp_range_value .unit { - width: 29px; - text-align: center; - font-size: 12px; - line-height: 30px; - background: #fff; - border: 1px solid #ddd; - margin-left: 1px; -} - -.customize-control-generatepress-range-slider .generatepress-range-slider-reset span { - font-size: 16px; - line-height: 22px; -} - -.customize-control-generatepress-range-slider .gp_range_value input { - font-size: 12px; - padding: 0px; - text-align: center; - min-height: 30px; - height: auto; - border-radius: 0; - border-color: #ddd; -} - -.customize-control-generatepress-range-slider .has-unit .gp_range_value input { - width: calc(100% - 30px); -} - -.customize-control-generatepress-range-slider .gp-range-title-area .dashicons { - cursor: pointer; - font-size: 11px; - width: 20px; - height: 20px; - line-height: 20px; - color: #222; - text-align: center; - position: relative; - top: 2px; -} - -.customize-control-generatepress-range-slider .gp-range-title-area .dashicons:hover { - background: #fafafa; -} - -.customize-control-generatepress-range-slider .gp-range-title-area .dashicons.selected { - background: #fff; - color: #222; -} - -.customize-control-generatepress-range-slider .gp-device-controls > span:first-child:last-child { - display: none; -} - -.customize-control-generatepress-range-slider .sub-description { - margin-top: 10px; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/typography-customizer.css b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/typography-customizer.css deleted file mode 100644 index c6ed6516..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/typography-customizer.css +++ /dev/null @@ -1,47 +0,0 @@ -.generatepress-font-family { - margin-bottom: 12px; -} - -.generatepress-weight-transform-wrapper { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; -} - -.generatepress-font-weight, -.generatepress-font-transform { - width: calc(50% - 5px); -} - -span.select2-container.select2-container--default.select2-container--open li.select2-results__option { - margin:0; -} - -span.select2-container.select2-container--default.select2-container--open{ - z-index:999999; -} - -.select2-selection__rendered li { - margin-bottom: 0; -} - -.select2-container--default .select2-selection--single, -.select2-container--default.select2-container .select2-selection--multiple, -.select2-dropdown, -.select2-container--default .select2-selection--multiple .select2-selection__choice { - border-color: #ddd; - border-radius: 0; -} - -.select2-container--default .select2-results__option[aria-selected=true] { - color: rgba(0,0,0,0.4); -} - -#customize-control-font_heading_1_control, -#customize-control-font_heading_2_control, -#customize-control-font_heading_3_control { - margin-top: 20px; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/upsell-customizer.css b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/upsell-customizer.css deleted file mode 100644 index c80f5fa1..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/css/upsell-customizer.css +++ /dev/null @@ -1,54 +0,0 @@ -.customize-control-addon:before { - content: ""; - height: 1px; - width: 50px; - background: rgba(0,0,0,.10); - display: block; - margin-bottom: 10px; -} - -.customize-control-addon { - margin-top: 10px; -} - -li#accordion-section-generatepress_upsell_section { - border-top: 1px solid #D54E21; - border-bottom: 1px solid #D54E21; -} -.generate-upsell-accordion-section a { - background: #FFF; - display: block; - padding: 10px 10px 11px 14px; - line-height: 21px; - color: #D54E21; - text-decoration: none; -} - -.generate-upsell-accordion-section a:hover { - background:#FAFAFA; -} - -.generate-upsell-accordion-section h3 { - margin: 0; - position: relative; -} - -.generate-upsell-accordion-section h3 a:after { - content: "\f345"; - color: #D54E21; - position: absolute; - top: 11px; - right: 10px; - z-index: 1; - float: right; - border: none; - background: none; - font: normal 20px/1 dashicons; - speak: never; - display: block; - padding: 0; - text-indent: 0; - text-align: center; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/customizer-controls.js b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/customizer-controls.js deleted file mode 100644 index 2fecebbe..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/customizer-controls.js +++ /dev/null @@ -1,297 +0,0 @@ -( function( api ) { - 'use strict'; - - // Add callback for when the header_textcolor setting exists. - api( 'generate_settings[nav_position_setting]', function( setting ) { - var isNavFloated, isNavAlignable, setNavDropPointActiveState, setNavAlignmentsActiveState; - - /** - * Determine whether the navigation is floating. - * - * @returns {boolean} Is floating? - */ - isNavFloated = function() { - if ( 'nav-float-right' === setting.get() || 'nav-float-left' === setting.get() ) { - return true; - } - - return false; - }; - - /** - * Determine whether the navigation is align-able. - * - * @returns {boolean} Is floating? - */ - isNavAlignable = function() { - if ( 'nav-float-right' === setting.get() || 'nav-float-left' === setting.get() ) { - var navAsHeader = api.instance( 'generate_menu_plus_settings[navigation_as_header]' ); - - if ( navAsHeader && navAsHeader.get() ) { - return true; - } - - return false; - } - - return true; - }; - - /** - * Update a control's active state according to the navigation location setting's value. - * - * @param {wp.customize.Control} control - */ - setNavDropPointActiveState = function( control ) { - var setActiveState = function() { - control.active.set( isNavFloated() ); - }; - - // FYI: With the following we can eliminate all of our PHP active_callback code. - control.active.validate = isNavFloated; - - // Set initial active state. - setActiveState(); - - /* - * Update activate state whenever the setting is changed. - * Even when the setting does have a refresh transport where the - * server-side active callback will manage the active state upon - * refresh, having this JS management of the active state will - * ensure that controls will have their visibility toggled - * immediately instead of waiting for the preview to load. - * This is especially important if the setting has a postMessage - * transport where changing the setting wouldn't normally cause - * the preview to refresh and thus the server-side active_callbacks - * would not get invoked. - */ - setting.bind( setActiveState ); - }; - - /** - * Update a control's active state according to the navigation location setting's value. - * - * @param {wp.customize.Control} control - */ - setNavAlignmentsActiveState = function( control ) { - var setActiveState = function() { - control.active.set( isNavAlignable() ); - }; - - // FYI: With the following we can eliminate all of our PHP active_callback code. - control.active.validate = isNavAlignable; - - // Set initial active state. - setActiveState(); - - /* - * Update activate state whenever the setting is changed. - * Even when the setting does have a refresh transport where the - * server-side active callback will manage the active state upon - * refresh, having this JS management of the active state will - * ensure that controls will have their visibility toggled - * immediately instead of waiting for the preview to load. - * This is especially important if the setting has a postMessage - * transport where changing the setting wouldn't normally cause - * the preview to refresh and thus the server-side active_callbacks - * would not get invoked. - */ - setting.bind( setActiveState ); - }; - - api.control( 'generate_settings[nav_drop_point]', setNavDropPointActiveState ); - api.control( 'generate_settings[nav_layout_setting]', setNavAlignmentsActiveState ); - api.control( 'generate_settings[nav_inner_width]', setNavAlignmentsActiveState ); - api.control( 'generate_settings[nav_alignment_setting]', setNavAlignmentsActiveState ); - } ); - - var setOption = function( options ) { - if ( options.headerAlignment ) { - api.instance( 'generate_settings[header_alignment_setting]' ).set( options.headerAlignment ); - } - - if ( options.navLocation ) { - api.instance( 'generate_settings[nav_position_setting]' ).set( options.navLocation ); - } - - if ( options.navAlignment ) { - api.instance( 'generate_settings[nav_alignment_setting]' ).set( options.navAlignment ); - } - - if ( options.boxAlignment ) { - api.instance( 'generate_settings[container_alignment]' ).set( options.boxAlignment ); - } - - if ( options.siteTitleFontSize ) { - api.instance( 'generate_settings[site_title_font_size]' ).set( options.siteTitleFontSize ); - } - - if ( 'undefined' !== typeof options.hideSiteTagline ) { - api.instance( 'generate_settings[hide_tagline]' ).set( options.hideSiteTagline ); - } - - if ( options.headerPaddingTop ) { - api.instance( 'generate_spacing_settings[header_top]' ).set( options.headerPaddingTop ); - } - - if ( options.headerPaddingBottom ) { - api.instance( 'generate_spacing_settings[header_bottom]' ).set( options.headerPaddingBottom ); - } - }; - - api( 'generate_header_helper', function( value ) { - var headerAlignment = false, - navLocation = false, - navAlignment = false, - boxAlignment = false, - siteTitleFontSize = false, - hideSiteTagline = false, - headerPaddingTop = false, - headerPaddingBottom = false; - - value.bind( function( newval ) { - var headerAlignmentSetting = api.instance( 'generate_settings[header_alignment_setting]' ); - var navLocationSetting = api.instance( 'generate_settings[nav_position_setting]' ); - var navAlignmentSetting = api.instance( 'generate_settings[nav_alignment_setting]' ); - var boxAlignmentSetting = api.instance( 'generate_settings[container_alignment]' ); - var siteTitleFontSizeSetting = api.instance( 'generate_settings[site_title_font_size]' ); - var hideSiteTaglineSetting = api.instance( 'generate_settings[hide_tagline]' ); - var headerPaddingTopSetting = api.instance( 'generate_spacing_settings[header_top]' ); - var headerPaddingBottomSetting = api.instance( 'generate_spacing_settings[header_bottom]' ); - - if ( ! headerAlignmentSetting._dirty ) { - headerAlignment = headerAlignmentSetting.get(); - } - - if ( ! navLocationSetting._dirty ) { - navLocation = navLocationSetting.get(); - } - - if ( ! navAlignmentSetting._dirty ) { - navAlignment = navAlignmentSetting.get(); - } - - if ( ! boxAlignmentSetting._dirty ) { - boxAlignment = boxAlignmentSetting.get(); - } - - if ( ! siteTitleFontSizeSetting._dirty ) { - siteTitleFontSize = siteTitleFontSizeSetting.get(); - } - - if ( ! hideSiteTaglineSetting._dirty ) { - hideSiteTagline = hideSiteTaglineSetting.get(); - } - - if ( ! headerPaddingTopSetting._dirty ) { - headerPaddingTop = headerPaddingTopSetting.get(); - } - - if ( ! headerPaddingBottomSetting._dirty ) { - headerPaddingBottom = headerPaddingBottomSetting.get(); - } - - var options = { - headerAlignment: generatepress_defaults.header_alignment_setting, - navLocation: generatepress_defaults.nav_position_setting, - navAlignment: generatepress_defaults.nav_alignment_setting, - boxAlignment: generatepress_defaults.container_alignment, - siteTitleFontSize: generatepress_typography_defaults.site_title_font_size, - hideSiteTagline: generatepress_defaults.hide_tagline, - headerPaddingTop: generatepress_spacing_defaults.header_top, - headerPaddingBottom: generatepress_spacing_defaults.header_bottom, - }; - - if ( 'current' === newval ) { - options = { - headerAlignment: headerAlignment, - navLocation: navLocation, - navAlignment: navAlignment, - boxAlignment: boxAlignment, - siteTitleFontSize: siteTitleFontSize, - hideSiteTagline: hideSiteTagline, - headerPaddingTop: headerPaddingTop, - headerPaddingBottom: headerPaddingBottom, - }; - - setOption( options ); - } - - if ( 'default' === newval ) { - setOption( options ); - } - - if ( 'classic' === newval ) { - var options = { - headerAlignment: 'left', - navLocation: 'nav-below-header', - navAlignment: 'left', - boxAlignment: 'boxes', - siteTitleFontSize: '45', - hideSiteTagline: '', - headerPaddingTop: '40', - headerPaddingBottom: '40', - }; - - setOption( options ); - } - - if ( 'nav-before' === newval ) { - options['headerAlignment'] = 'left'; - options['navLocation'] = 'nav-above-header'; - options['navAlignment'] = 'left'; - - setOption( options ); - } - - if ( 'nav-after' === newval ) { - options['headerAlignment'] = 'left'; - options['navLocation'] = 'nav-below-header'; - options['navAlignment'] = 'left'; - - setOption( options ); - } - - if ( 'nav-before-centered' === newval ) { - options['headerAlignment'] = 'center'; - options['navLocation'] = 'nav-above-header'; - options['navAlignment'] = 'center'; - - setOption( options ); - } - - if ( 'nav-after-centered' === newval ) { - options['headerAlignment'] = 'center'; - options['navLocation'] = 'nav-below-header'; - options['navAlignment'] = 'center'; - - setOption( options ); - } - - if ( 'nav-left' === newval ) { - options['headerAlignment'] = 'left'; - options['navLocation'] = 'nav-float-left'; - options['navAlignment'] = 'right'; - - setOption( options ); - } - } ); - } ); - - api( 'generate_settings[use_dynamic_typography]', function( value ) { - var fontManager = api.control( 'generate_settings[font_manager]' ); - var typographyManager = api.control( 'generate_settings[typography]' ); - - value.bind( function( newval ) { - if ( newval ) { - if ( fontManager.setting.get().length === 0 ) { - fontManager.setting.set( generatepressCustomizeControls.mappedTypographyData.fonts ); - } - - if ( typographyManager.setting.get().length === 0 ) { - typographyManager.setting.set( generatepressCustomizeControls.mappedTypographyData.typography ); - } - } - } ); - } ); -}( wp.customize ) ); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/customizer-live-preview.js b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/customizer-live-preview.js deleted file mode 100644 index ff3d71ce..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/customizer-live-preview.js +++ /dev/null @@ -1,522 +0,0 @@ -/** - * Theme Customizer enhancements for a better user experience. - * - * Contains handlers to make Theme Customizer preview reload changes asynchronously. - * - * @param id - * @param selector - * @param property - * @param default_value - * @param get_value - */ -function generatepress_colors_live_update( id, selector, property, default_value, get_value ) { - default_value = typeof default_value !== 'undefined' ? default_value : 'initial'; - get_value = typeof get_value !== 'undefined' ? get_value : ''; - - wp.customize( 'generate_settings[' + id + ']', function( value ) { - value.bind( function( newval ) { - default_value = ( '' !== get_value ) ? wp.customize.value( 'generate_settings[' + get_value + ']' )() : default_value; - newval = ( '' !== newval ) ? newval : default_value; - - if ( jQuery( 'style#' + id ).length ) { - jQuery( 'style#' + id ).html( selector + '{' + property + ':' + newval + ';}' ); - } else { - jQuery( 'head' ).append( '' ); - setTimeout( function() { - jQuery( 'style#' + id ).not( ':last' ).remove(); - }, 1000 ); - } - } ); - } ); -} - -function generatepress_classes_live_update( id, classes, selector, prefix ) { - classes = typeof classes !== 'undefined' ? classes : ''; - prefix = typeof prefix !== 'undefined' ? prefix : ''; - wp.customize( 'generate_settings[' + id + ']', function( value ) { - value.bind( function( newval ) { - jQuery.each( classes, function( i, v ) { - jQuery( selector ).removeClass( prefix + v ); - } ); - jQuery( selector ).addClass( prefix + newval ); - } ); - } ); -} - -function generatepress_typography_live_update( id, selector, property, unit, media, settings ) { - settings = typeof settings !== 'undefined' ? settings : 'generate_settings'; - wp.customize( settings + '[' + id + ']', function( value ) { - value.bind( function( newval ) { - // Get our unit if applicable - unit = typeof unit !== 'undefined' ? unit : ''; - - var isTablet = ( 'tablet' == id.substring( 0, 6 ) ) ? true : false, - isMobile = ( 'mobile' == id.substring( 0, 6 ) ) ? true : false; - - if ( isTablet ) { - if ( '' == wp.customize( settings + '[' + id + ']' ).get() ) { - var desktopID = id.replace( 'tablet_', '' ); - newval = wp.customize( settings + '[' + desktopID + ']' ).get(); - } - } - - if ( isMobile ) { - if ( '' == wp.customize( settings + '[' + id + ']' ).get() ) { - var desktopID = id.replace( 'mobile_', '' ); - newval = wp.customize( settings + '[' + desktopID + ']' ).get(); - } - } - - if ( 'buttons_font_size' == id && '' == wp.customize( 'generate_settings[buttons_font_size]' ).get() ) { - newval = wp.customize( 'generate_settings[body_font_size]' ).get(); - } - - // We're using a desktop value - if ( ! isTablet && ! isMobile ) { - var tabletValue = ( typeof wp.customize( settings + '[tablet_' + id + ']' ) !== 'undefined' ) ? wp.customize( settings + '[tablet_' + id + ']' ).get() : '', - mobileValue = ( typeof wp.customize( settings + '[mobile_' + id + ']' ) !== 'undefined' ) ? wp.customize( settings + '[mobile_' + id + ']' ).get() : ''; - - // The tablet setting exists, mobile doesn't - if ( '' !== tabletValue && '' == mobileValue ) { - media = generatepress_live_preview.desktop + ', ' + generatepress_live_preview.mobile; - } - - // The tablet setting doesn't exist, mobile does - if ( '' == tabletValue && '' !== mobileValue ) { - media = generatepress_live_preview.desktop + ', ' + generatepress_live_preview.tablet; - } - - // The tablet setting doesn't exist, neither does mobile - if ( '' == tabletValue && '' == mobileValue ) { - media = generatepress_live_preview.desktop + ', ' + generatepress_live_preview.tablet + ', ' + generatepress_live_preview.mobile; - } - } - - // Check if media query - media_query = typeof media !== 'undefined' ? 'media="' + media + '"' : ''; - - jQuery( 'head' ).append( '' ); - setTimeout( function() { - jQuery( 'style#' + id ).not( ':last' ).remove(); - }, 1000 ); - - setTimeout( "jQuery('body').trigger('generate_spacing_updated');", 1000 ); - } ); - } ); -} - -( function( $ ) { - // Update the site title in real time... - wp.customize( 'blogname', function( value ) { - value.bind( function( newval ) { - $( '.main-title a' ).html( newval ); - } ); - } ); - - //Update the site description in real time... - wp.customize( 'blogdescription', function( value ) { - value.bind( function( newval ) { - $( '.site-description' ).html( newval ); - } ); - } ); - - wp.customize( 'generate_settings[logo_width]', function( value ) { - value.bind( function( newval ) { - $( '.site-header .header-image' ).css( 'width', newval + 'px' ); - - if ( '' == newval ) { - $( '.site-header .header-image' ).css( 'width', '' ); - } - } ); - } ); - - /** - * Container width - */ - wp.customize( 'generate_settings[container_width]', function( value ) { - value.bind( function( newval ) { - if ( jQuery( 'style#container_width' ).length ) { - jQuery( 'style#container_width' ).html( 'body .grid-container, .wp-block-group__inner-container{max-width:' + newval + 'px;}' ); - } else { - jQuery( 'head' ).append( '' ); - setTimeout( function() { - jQuery( 'style#container_width' ).not( ':last' ).remove(); - }, 100 ); - } - jQuery( 'body' ).trigger( 'generate_spacing_updated' ); - } ); - } ); - - /** - * Live update for typography options. - * We only want to run this if GP Premium isn't already doing it. - */ - if ( 'undefined' === typeof gp_premium_typography_live_update ) { - /** - * Body font size, weight and transform - */ - generatepress_typography_live_update( 'body_font_size', 'body, button, input, select, textarea', 'font-size', 'px' ); - generatepress_typography_live_update( 'body_line_height', 'body', 'line-height', '' ); - generatepress_typography_live_update( 'paragraph_margin', 'p, .entry-content > [class*="wp-block-"]:not(:last-child)', 'margin-bottom', 'em' ); - generatepress_typography_live_update( 'body_font_weight', 'body, button, input, select, textarea', 'font-weight' ); - generatepress_typography_live_update( 'body_font_transform', 'body, button, input, select, textarea', 'text-transform' ); - - /** - * H1 font size, weight and transform - */ - generatepress_typography_live_update( 'heading_1_font_size', 'h1', 'font-size', 'px', generatepress_live_preview.desktop ); - generatepress_typography_live_update( 'mobile_heading_1_font_size', 'h1', 'font-size', 'px', generatepress_live_preview.mobile ); - generatepress_typography_live_update( 'heading_1_weight', 'h1', 'font-weight' ); - generatepress_typography_live_update( 'heading_1_transform', 'h1', 'text-transform' ); - generatepress_typography_live_update( 'heading_1_line_height', 'h1', 'line-height', 'em' ); - - /** - * H2 font size, weight and transform - */ - generatepress_typography_live_update( 'heading_2_font_size', 'h2', 'font-size', 'px', generatepress_live_preview.desktop ); - generatepress_typography_live_update( 'mobile_heading_2_font_size', 'h2', 'font-size', 'px', generatepress_live_preview.mobile ); - generatepress_typography_live_update( 'heading_2_weight', 'h2', 'font-weight' ); - generatepress_typography_live_update( 'heading_2_transform', 'h2', 'text-transform' ); - generatepress_typography_live_update( 'heading_2_line_height', 'h2', 'line-height', 'em' ); - - /** - * H3 font size, weight and transform - */ - generatepress_typography_live_update( 'heading_3_font_size', 'h3', 'font-size', 'px' ); - generatepress_typography_live_update( 'heading_3_weight', 'h3', 'font-weight' ); - generatepress_typography_live_update( 'heading_3_transform', 'h3', 'text-transform' ); - generatepress_typography_live_update( 'heading_3_line_height', 'h3', 'line-height', 'em' ); - } - - /** - * Top bar width - */ - wp.customize( 'generate_settings[top_bar_width]', function( value ) { - value.bind( function( newval ) { - if ( 'full' == newval ) { - $( '.top-bar' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - if ( 'contained' == wp.customize.value( 'generate_settings[top_bar_inner_width]' )() ) { - $( '.inside-top-bar' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } - if ( 'contained' == newval ) { - $( '.top-bar' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - $( '.inside-top-bar' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } - } ); - } ); - - /** - * Inner top bar width - */ - wp.customize( 'generate_settings[top_bar_inner_width]', function( value ) { - value.bind( function( newval ) { - if ( 'full' == newval ) { - $( '.inside-top-bar' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } - if ( 'contained' == newval ) { - $( '.inside-top-bar' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } ); - } ); - - /** - * Top bar alignment - */ - generatepress_classes_live_update( 'top_bar_alignment', [ 'left', 'center', 'right' ], '.top-bar', 'top-bar-align-' ); - - /** - * Header layout - */ - wp.customize( 'generate_settings[header_layout_setting]', function( value ) { - value.bind( function( newval ) { - if ( 'fluid-header' == newval ) { - $( '.site-header' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - if ( 'contained' == wp.customize.value( 'generate_settings[header_inner_width]' )() ) { - $( '.inside-header' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } - if ( 'contained-header' == newval ) { - $( '.site-header' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - $( '.inside-header' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } - } ); - } ); - - /** - * Inner Header layout - */ - wp.customize( 'generate_settings[header_inner_width]', function( value ) { - value.bind( function( newval ) { - if ( 'full-width' == newval ) { - $( '.inside-header' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } - if ( 'contained' == newval ) { - $( '.inside-header' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } ); - } ); - - /** - * Header alignment - */ - generatepress_classes_live_update( 'header_alignment_setting', [ 'left', 'center', 'right' ], 'body', 'header-aligned-' ); - - /** - * Navigation width - */ - wp.customize( 'generate_settings[nav_layout_setting]', function( value ) { - value.bind( function( newval ) { - var navLocation = wp.customize.value( 'generate_settings[nav_position_setting]' )(); - - if ( $( 'body' ).hasClass( 'sticky-enabled' ) ) { - wp.customize.preview.send( 'refresh' ); - } else { - var mainNavigation = $( '.main-navigation' ); - - if ( 'fluid-nav' == newval ) { - mainNavigation.removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - if ( 'full-width' !== wp.customize.value( 'generate_settings[nav_inner_width]' )() ) { - $( '.main-navigation .inside-navigation' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } - if ( 'contained-nav' == newval ) { - if ( ! mainNavigation.hasClass( 'has-branding' ) && generatepress_live_preview.isFlex && ( 'nav-float-right' === navLocation || 'nav-float-left' === navLocation ) ) { - return; - } - - mainNavigation.addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } - } ); - } ); - - /** - * Inner navigation width - */ - wp.customize( 'generate_settings[nav_inner_width]', function( value ) { - value.bind( function( newval ) { - if ( 'full-width' == newval ) { - $( '.main-navigation .inside-navigation' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } - if ( 'contained' == newval ) { - $( '.main-navigation .inside-navigation' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } ); - } ); - - /** - * Navigation alignment - */ - wp.customize( 'generate_settings[nav_alignment_setting]', function( value ) { - value.bind( function( newval ) { - var classes = [ 'left', 'center', 'right' ]; - var selector = 'body'; - var prefix = 'nav-aligned-'; - - if ( generatepress_live_preview.isFlex ) { - selector = '.main-navigation:not(.slideout-navigation)'; - prefix = 'nav-align-'; - } - - jQuery.each( classes, function( i, v ) { - jQuery( selector ).removeClass( prefix + v ); - } ); - - if ( generatepress_live_preview.isFlex && generatepress_live_preview.isRTL ) { - jQuery( selector ).addClass( prefix + newval ); - } else if ( 'nav-align-left' !== prefix + newval ) { - jQuery( selector ).addClass( prefix + newval ); - } - } ); - } ); - - /** - * Footer width - */ - wp.customize( 'generate_settings[footer_layout_setting]', function( value ) { - value.bind( function( newval ) { - if ( 'fluid-footer' == newval ) { - $( '.site-footer' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } - if ( 'contained-footer' == newval ) { - $( '.site-footer' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } ); - } ); - - /** - * Inner footer width - */ - wp.customize( 'generate_settings[footer_inner_width]', function( value ) { - value.bind( function( newval ) { - if ( 'full-width' == newval ) { - if ( $( '.footer-widgets-container' ).length ) { - $( '.footer-widgets-container' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } else { - $( '.inside-footer-widgets' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } - $( '.inside-site-info' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); - } - if ( 'contained' == newval ) { - if ( $( '.footer-widgets-container' ).length ) { - $( '.footer-widgets-container' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } else { - $( '.inside-footer-widgets' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - $( '.inside-site-info' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); - } - } ); - } ); - - /** - * Footer bar alignment - */ - generatepress_classes_live_update( 'footer_bar_alignment', [ 'left', 'center', 'right' ], '.site-footer', 'footer-bar-align-' ); - - jQuery( 'body' ).on( 'generate_spacing_updated', function() { - var containerAlignment = wp.customize( 'generate_settings[container_alignment]' ).get(), - containerWidth = wp.customize( 'generate_settings[container_width]' ).get(), - containerLayout = wp.customize( 'generate_settings[content_layout_setting]' ).get(), - contentLeft = generatepress_live_preview.contentLeft, - contentRight = generatepress_live_preview.contentRight; - - if ( ! generatepress_live_preview.isFlex && 'text' === containerAlignment ) { - if ( typeof wp.customize( 'generate_spacing_settings[content_left]' ) !== 'undefined' ) { - contentLeft = wp.customize( 'generate_spacing_settings[content_left]' ).get(); - } - - if ( typeof wp.customize( 'generate_spacing_settings[content_right]' ) !== 'undefined' ) { - contentRight = wp.customize( 'generate_spacing_settings[content_right]' ).get(); - } - - var newContainerWidth = Number( containerWidth ) + Number( contentLeft ) + Number( contentRight ); - - if ( jQuery( 'style#wide_container_width' ).length ) { - jQuery( 'style#wide_container_width' ).html( 'body:not(.full-width-content) #page{max-width:' + newContainerWidth + 'px;}' ); - } else { - jQuery( 'head' ).append( '' ); - setTimeout( function() { - jQuery( 'style#wide_container_width' ).not( ':last' ).remove(); - }, 100 ); - } - } - - if ( generatepress_live_preview.isFlex && 'boxes' === containerAlignment ) { - var topBarPaddingLeft = jQuery( '.inside-top-bar' ).css( 'padding-left' ), - topBarPaddingRight = jQuery( '.inside-top-bar' ).css( 'padding-right' ), - headerPaddingLeft = jQuery( '.inside-header' ).css( 'padding-left' ), - headerPaddingRight = jQuery( '.inside-header' ).css( 'padding-right' ), - footerWidgetPaddingLeft = jQuery( '.footer-widgets-container' ).css( 'padding-left' ), - footerWidgetPaddingRight = jQuery( '.footer-widgets-container' ).css( 'padding-right' ), - footerBarPaddingLeft = jQuery( '.inside-footer-bar' ).css( 'padding-left' ), - footerBarPaddingRight = jQuery( '.inside-footer-bar' ).css( 'padding-right' ); - - if ( typeof wp.customize( 'generate_spacing_settings[top_bar_left]' ) !== 'undefined' ) { - topBarPaddingLeft = wp.customize( 'generate_spacing_settings[top_bar_left]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[top_bar_right]' ) !== 'undefined' ) { - topBarPaddingRight = wp.customize( 'generate_spacing_settings[top_bar_right]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[header_left]' ) !== 'undefined' ) { - headerPaddingLeft = wp.customize( 'generate_spacing_settings[header_left]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[header_right]' ) !== 'undefined' ) { - headerPaddingRight = wp.customize( 'generate_spacing_settings[header_right]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[footer_widget_container_left]' ) !== 'undefined' ) { - footerWidgetPaddingLeft = wp.customize( 'generate_spacing_settings[footer_widget_container_left]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[footer_widget_container_right]' ) !== 'undefined' ) { - footerWidgetPaddingRight = wp.customize( 'generate_spacing_settings[footer_widget_container_right]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[footer_left]' ) !== 'undefined' ) { - footerBarPaddingLeft = wp.customize( 'generate_spacing_settings[footer_left]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[footer_right]' ) !== 'undefined' ) { - footerBarPaddingRight = wp.customize( 'generate_spacing_settings[footer_right]' ).get() + 'px'; - } - - var newTopBarWidth = parseFloat( containerWidth ) + parseFloat( topBarPaddingLeft ) + parseFloat( topBarPaddingRight ), - newHeaderWidth = parseFloat( containerWidth ) + parseFloat( headerPaddingLeft ) + parseFloat( headerPaddingRight ), - newFooterWidgetWidth = parseFloat( containerWidth ) + parseFloat( footerWidgetPaddingLeft ) + parseFloat( footerWidgetPaddingRight ), - newFooterBarWidth = parseFloat( containerWidth ) + parseFloat( footerBarPaddingLeft ) + parseFloat( footerBarPaddingRight ); - - if ( jQuery( 'style#box_sizing_widths' ).length ) { - jQuery( 'style#box_sizing_widths' ).html( '.inside-top-bar.grid-container{max-width:' + newTopBarWidth + 'px;}.inside-header.grid-container{max-width:' + newHeaderWidth + 'px;}.footer-widgets-container.grid-container{max-width:' + newFooterWidgetWidth + 'px;}.inside-site-info.grid-container{max-width:' + newFooterBarWidth + 'px;}' ); - } else { - jQuery( 'head' ).append( '' ); - setTimeout( function() { - jQuery( 'style#box_sizing_widths' ).not( ':last' ).remove(); - }, 100 ); - } - } - - if ( generatepress_live_preview.isFlex && 'text' === containerAlignment ) { - var headerPaddingLeft = jQuery( '.inside-header' ).css( 'padding-left' ), - headerPaddingRight = jQuery( '.inside-header' ).css( 'padding-right' ), - menuItemPadding = jQuery( '.main-navigation .main-nav ul li a' ).css( 'padding-left' ), - secondaryMenuItemPadding = jQuery( '.secondary-navigation .main-nav ul li a' ).css( 'padding-left' ); - - if ( typeof wp.customize( 'generate_spacing_settings[header_left]' ) !== 'undefined' ) { - headerPaddingLeft = wp.customize( 'generate_spacing_settings[header_left]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[header_right]' ) !== 'undefined' ) { - headerPaddingRight = wp.customize( 'generate_spacing_settings[header_right]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[menu_item]' ) !== 'undefined' ) { - menuItemPadding = wp.customize( 'generate_spacing_settings[menu_item]' ).get() + 'px'; - } - - if ( typeof wp.customize( 'generate_spacing_settings[secondary_menu_item]' ) !== 'undefined' ) { - secondaryMenuItemPadding = wp.customize( 'generate_spacing_settings[secondary_menu_item]' ).get() + 'px'; - } - - var newNavPaddingLeft = parseFloat( headerPaddingLeft ) - parseFloat( menuItemPadding ), - newNavPaddingRight = parseFloat( headerPaddingRight ) - parseFloat( menuItemPadding ), - newSecondaryNavPaddingLeft = parseFloat( headerPaddingLeft ) - parseFloat( secondaryMenuItemPadding ), - newSecondaryNavPaddingRight = parseFloat( headerPaddingRight ) - parseFloat( secondaryMenuItemPadding ); - - if ( jQuery( 'style#navigation_padding' ).length ) { - jQuery( 'style#navigation_padding' ).html( '.nav-below-header .main-navigation .inside-navigation.grid-container, .nav-above-header .main-navigation .inside-navigation.grid-container{padding: 0 ' + newNavPaddingRight + 'px 0 ' + newNavPaddingLeft + 'px;}' ); - jQuery( 'style#secondary_navigation_padding' ).html( '.secondary-nav-below-header .secondary-navigation .inside-navigation.grid-container, .secondary-nav-above-header .secondary-navigation .inside-navigation.grid-container{padding: 0 ' + newSecondaryNavPaddingRight + 'px 0 ' + newSecondaryNavPaddingLeft + 'px;}' ); - } else { - jQuery( 'head' ).append( '' ); - jQuery( 'head' ).append( '' ); - setTimeout( function() { - jQuery( 'style#navigation_padding' ).not( ':last' ).remove(); - jQuery( 'style#secondary_navigation_padding' ).not( ':last' ).remove(); - }, 100 ); - } - } - } ); - - wp.customize( 'generate_settings[global_colors]', function( value ) { - value.bind( function( newval ) { - var globalColors = ''; - - newval.forEach( function( item ) { - globalColors += '--' + item.slug + ':' + item.color + ';'; - } ); - - if ( $( 'style#global_colors' ).length ) { - $( 'style#global_colors' ).html( ':root{' + globalColors + '}' ); - } else { - $( 'head' ).append( '' ); - - setTimeout( function() { - $( 'style#global_colors' ).not( ':last' ).remove(); - }, 100 ); - } - } ); - } ); -}( jQuery ) ); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/postMessage.js b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/postMessage.js deleted file mode 100644 index 454895cb..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/controls/js/postMessage.js +++ /dev/null @@ -1,341 +0,0 @@ -/* global gpPostMessageFields */ -/* eslint max-depth: off */ -var gpPostMessage = { - - /** - * The fields. - * - * @since 1.0.0 - */ - fields: {}, - - /** - * A collection of methods for the ' ); - } - }, - - /** - * Add a - -
    - -
    - 'generate_colors_section', - 'title' => __( 'Back to Top', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'back-to-top-colors', - ), - 'active_callback' => function() { - if ( generate_get_option( 'back_to_top' ) ) { - return true; - } - - return false; - }, - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_back_to_top_background_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'back-to-top-colors', - 'items' => array( - 'back_to_top_background_color', - 'back_to_top_background_color_hover', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[back_to_top_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['back_to_top_background_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'back-to-top-colors', - 'wrapper' => 'back_to_top_background_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => 'a.generate-back-to-top', - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[back_to_top_background_color_hover]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['back_to_top_background_color_hover'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'back-to-top-colors', - 'wrapper' => 'back_to_top_background_color_hover', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => 'a.generate-back-to-top:hover, a.generate-back-to-top:focus', - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_back_to_top_text_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'back-to-top-colors', - 'items' => array( - 'back_to_top_text_color', - 'back_to_top_text_color_hover', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[back_to_top_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['back_to_top_text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'button-colors', - 'wrapper' => 'back_to_top_text_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => 'a.generate-back-to-top', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[back_to_top_text_color_hover]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['back_to_top_text_color_hover'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'back-to-top-colors', - 'wrapper' => 'back_to_top_text_color_hover', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => 'a.generate-back-to-top:hover, a.generate-back-to-top:focus', - 'property' => 'color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/body.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/body.php deleted file mode 100644 index e4de10ec..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/body.php +++ /dev/null @@ -1,156 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Body', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'base-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $defaults['background_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'base-colors', - ), - 'output' => array( - array( - 'element' => 'body', - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $defaults['text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'base-colors', - ), - 'output' => array( - array( - 'element' => 'body', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_body_link_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'base-colors', - 'items' => array( - 'link_color', - 'link_color_hover', - 'link_color_visited', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[link_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $defaults['link_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'link_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'toggleId' => 'base-colors', - ), - 'output' => array( - array( - 'element' => 'a, a:visited', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[link_color_hover]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $defaults['link_color_hover'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'link_color_hover', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'toggleId' => 'base-colors', - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => 'a:hover', - 'property' => 'color', - ), - ), - ) -); - -if ( '' !== generate_get_option( 'link_color_visited' ) ) { - GeneratePress_Customize_Field::add_field( - 'generate_settings[link_color_visited]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $defaults['link_color_visited'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'refresh', - ), - array( - 'label' => __( 'Link Color Visited', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'link_color_visited', - 'tooltip' => __( 'Choose Visited Color', 'generatepress' ), - 'toggleId' => 'base-colors', - 'hideLabel' => true, - ), - ) - ); -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/buttons.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/buttons.php deleted file mode 100644 index ad49392c..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/buttons.php +++ /dev/null @@ -1,158 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Buttons', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'button-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_buttons_background_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'button-colors', - 'items' => array( - 'form_button_background_color', - 'form_button_background_color_hover', - ), - ), - ) -); - -$buttons_selector = 'button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.button:visited, a.wp-block-button__link:not(.has-background)'; -$buttons_hover_selector = 'button:hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, a.button:hover, button:focus, html input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, a.button:focus, a.wp-block-button__link:not(.has-background):active, a.wp-block-button__link:not(.has-background):focus, a.wp-block-button__link:not(.has-background):hover'; - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_button_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_button_background_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'button-colors', - 'wrapper' => 'form_button_background_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => $buttons_selector, - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_button_background_color_hover]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_button_background_color_hover'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'button-colors', - 'wrapper' => 'form_button_background_color_hover', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => $buttons_hover_selector, - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_buttons_text_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'button-colors', - 'items' => array( - 'form_button_text_color', - 'form_button_text_color_hover', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_button_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_button_text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'button-colors', - 'wrapper' => 'form_button_text_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => $buttons_selector, - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_button_text_color_hover]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_button_text_color_hover'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'button-colors', - 'wrapper' => 'form_button_text_color_hover', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => $buttons_hover_selector, - 'property' => 'color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/content.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/content.php deleted file mode 100644 index 2d8113dc..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/content.php +++ /dev/null @@ -1,372 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Content', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'content-colors', - ), - ) -); - -$content_colors = '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header'; - -GeneratePress_Customize_Field::add_field( - 'generate_settings[content_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['content_background_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'content-colors', - ), - 'output' => array( - array( - 'element' => $content_colors, - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[content_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['content_text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'content-colors', - ), - 'output' => array( - array( - 'element' => $content_colors, - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_content_link_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'content-colors', - 'items' => array( - 'content_link_color', - 'content_link_hover_color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[content_link_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['content_link_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'content_link_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'toggleId' => 'content-colors', - ), - 'output' => array( - array( - 'element' => '.inside-article a:not(.button):not(.wp-block-button__link), .inside-article a:not(.button):not(.wp-block-button__link):visited, .paging-navigation a, .paging-navigation a:visited, .comments-area a, .comments-area a:visited, .page-header a, .page-header a:visited', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[content_link_hover_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['content_link_hover_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'content_link_hover_color', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'toggleId' => 'content-colors', - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => '.inside-article a:not(.button):not(.wp-block-button__link):hover, .paging-navigation a:hover, .comments-area a:hover, .page-header a:hover', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[content_title_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['content_title_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Content Title', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'content-colors', - ), - 'output' => array( - array( - 'element' => '.entry-header h1,.page-header h1', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_archive_content_title_link_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'content-colors', - 'items' => array( - 'blog_post_title_color', - 'blog_post_title_hover_color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[blog_post_title_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['blog_post_title_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Archive Content Title', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'blog_post_title_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'toggleId' => 'content-colors', - ), - 'output' => array( - array( - 'element' => '.entry-title a,.entry-title a:visited', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[blog_post_title_hover_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['blog_post_title_hover_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Archive Content Title Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'blog_post_title_hover_color', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'toggleId' => 'content-colors', - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => '.entry-title a:hover', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[entry_meta_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['entry_meta_text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Entry Meta Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'content-colors', - ), - 'output' => array( - array( - 'element' => '.entry-meta', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_entry_meta_link_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'content-colors', - 'items' => array( - 'entry_meta_link_color', - 'entry_meta_link_color_hover', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[entry_meta_link_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['entry_meta_link_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Entry Meta Links', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'entry_meta_link_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'toggleId' => 'content-colors', - ), - 'output' => array( - array( - 'element' => '.entry-meta a', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[entry_meta_link_color_hover]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['entry_meta_link_color_hover'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Entry Meta Links Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'wrapper' => 'entry_meta_link_color_hover', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'toggleId' => 'content-colors', - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => '.entry-meta a:hover', - 'property' => 'color', - ), - ), - ) -); - -$headings = array( - array( - 'slug' => 'h1_color', - 'label' => __( 'Heading 1 (H1) Color', 'generatepress' ), - 'selector' => 'h1', - ), - array( - 'slug' => 'h2_color', - 'label' => __( 'Heading 2 (H2) Color', 'generatepress' ), - 'selector' => 'h2', - ), - array( - 'slug' => 'h3_color', - 'label' => __( 'Heading 3 (H3) Color', 'generatepress' ), - 'selector' => 'h3', - ), - array( - 'slug' => 'h4_color', - 'label' => __( 'Heading 4 (H4) Color', 'generatepress' ), - 'selector' => 'h4', - ), - array( - 'slug' => 'h5_color', - 'label' => __( 'Heading 5 (H5) Color', 'generatepress' ), - 'selector' => 'h5', - ), - array( - 'slug' => 'h6_color', - 'label' => __( 'Heading 6 (H6) Color', 'generatepress' ), - 'selector' => 'h6', - ), -); - -foreach ( $headings as $heading ) { - GeneratePress_Customize_Field::add_field( - 'generate_settings[' . $heading['slug'] . ']', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults[ $heading['slug'] ], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => $heading['label'], - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'content-colors', - ), - 'output' => array( - array( - 'element' => $heading['selector'], - 'property' => 'color', - ), - ), - ) - ); -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/footer-bar.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/footer-bar.php deleted file mode 100644 index 98c662cd..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/footer-bar.php +++ /dev/null @@ -1,138 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Footer Bar', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'footer-bar-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_background_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'footer-bar-colors', - 'wrapper' => 'footer_background_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.site-info', - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'footer-bar-colors', - 'wrapper' => 'footer_text_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.site-info', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_footer_bar_colors_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'footer-bar-colors', - 'items' => array( - 'footer_link_color', - 'footer_link_hover_color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_link_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_link_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'footer-bar-colors', - 'wrapper' => 'footer_link_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.site-info a', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_link_hover_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_link_hover_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'footer-bar-colors', - 'wrapper' => 'footer_link_hover_color', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => '.site-info a:hover', - 'property' => 'color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/footer-widgets.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/footer-widgets.php deleted file mode 100644 index ba854142..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/footer-widgets.php +++ /dev/null @@ -1,161 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Footer Widgets', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'footer-widget-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_widget_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_widget_background_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'footer-widget-colors', - 'wrapper' => 'footer_widget_background_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.footer-widgets', - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_widget_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_widget_text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'footer-widget-colors', - 'wrapper' => 'footer_widget_text_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.footer-widgets', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_footer_widget_colors_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'footer-widget-colors', - 'items' => array( - 'footer_widget_link_color', - 'footer_widget_link_hover_color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_widget_link_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_widget_link_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'footer-widget-colors', - 'wrapper' => 'footer_widget_link_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.footer-widgets a', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_widget_link_hover_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_widget_link_hover_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'footer-widget-colors', - 'wrapper' => 'footer_widget_link_hover_color', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => '.footer-widgets a:hover', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[footer_widget_title_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['footer_widget_title_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Widget Title', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'footer-widget-colors', - ), - 'output' => array( - array( - 'element' => '.footer-widgets .widget-title', - 'property' => 'color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/forms.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/forms.php deleted file mode 100644 index fd335b7c..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/forms.php +++ /dev/null @@ -1,226 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Forms', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'form-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_forms_background_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'form-colors', - 'items' => array( - 'form_background_color', - 'form_background_color_focus', - ), - ), - ) -); - -$forms_selector = 'input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], textarea, select'; -$forms_focus_selector = 'input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="tel"]:focus, textarea:focus, select:focus'; - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_background_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'form-colors', - 'wrapper' => 'form_background_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => $forms_selector, - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_background_color_focus]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_background_color_focus'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background Focus', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'form-colors', - 'wrapper' => 'form_background_color_focus', - 'tooltip' => __( 'Choose Focus Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => $forms_focus_selector, - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_forms_text_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'form-colors', - 'items' => array( - 'form_text_color', - 'form_text_color_focus', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'form-colors', - 'wrapper' => 'form_text_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => $forms_selector, - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_text_color_focus]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_text_color_focus'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text Focus', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'form-colors', - 'wrapper' => 'form_text_color_focus', - 'tooltip' => __( 'Choose Focus Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => $forms_focus_selector, - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_forms_border_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'form-colors', - 'items' => array( - 'form_border_color', - 'form_border_color_focus', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_border_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_border_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Border', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'form-colors', - 'wrapper' => 'form_border_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => $forms_selector, - 'property' => 'border-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[form_border_color_focus]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['form_border_color_focus'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Border Focus', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'form-colors', - 'wrapper' => 'form_border_color_focus', - 'tooltip' => __( 'Choose Focus Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => $forms_focus_selector, - 'property' => 'border-color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/header.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/header.php deleted file mode 100644 index f0e28756..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/header.php +++ /dev/null @@ -1,180 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Header', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'header-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[header_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['header_background_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'header-colors', - ), - 'output' => array( - array( - 'element' => '.site-header', - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[header_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['header_text_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'header-colors', - ), - 'output' => array( - array( - 'element' => '.site-header', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_header_link_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'header-colors', - 'items' => array( - 'header_link_color', - 'header_link_hover_color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[header_link_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['header_link_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Link', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'header-colors', - 'wrapper' => 'header_link_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.site-header a:not([rel="home"])', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[header_link_hover_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['header_link_hover_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Link Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'header-colors', - 'wrapper' => 'header_link_hover_color', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => '.site-header a:not([rel="home"]):hover', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[site_title_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['site_title_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Site Title', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'header-colors', - ), - 'output' => array( - array( - 'element' => '.main-title a, .main-title a:hover', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[site_tagline_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['site_tagline_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Tagline', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'header-colors', - ), - 'output' => array( - array( - 'element' => '.site-description', - 'property' => 'color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/primary-navigation.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/primary-navigation.php deleted file mode 100644 index 2349670d..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/primary-navigation.php +++ /dev/null @@ -1,214 +0,0 @@ - a, .main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a, .main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a, .main-navigation .menu-bar-item:hover > a, .main-navigation .menu-bar-item.sfHover > a'; -$menu_current_selectors = '.main-navigation .main-nav ul li[class*="current-menu-"] > a'; -$submenu_hover_selectors = '.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a,.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):focus > a,.main-navigation .main-nav ul ul li.sfHover:not([class*="current-menu-"]) > a'; -$submenu_current_selectors = '.main-navigation .main-nav ul ul li[class*="current-menu-"] > a'; - -GeneratePress_Customize_Field::add_title( - 'generate_primary_navigation_colors_title', - array( - 'section' => 'generate_colors_section', - 'title' => __( 'Primary Navigation', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'primary-navigation-colors', - ), - ) -); - -// Navigation background group. -GeneratePress_Customize_Field::add_color_field_group( - 'primary_navigation_background', - 'generate_colors_section', - 'primary-navigation-colors', - array( - 'generate_settings[navigation_background_color]' => array( - 'default_value' => $color_defaults['navigation_background_color'], - 'label' => __( 'Navigation Background', 'generatepress' ), - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'element' => '.main-navigation', - 'property' => 'background-color', - 'hide_label' => false, - ), - 'generate_settings[navigation_background_hover_color]' => array( - 'default_value' => $color_defaults['navigation_background_hover_color'], - 'label' => __( 'Navigation Background Hover', 'generatepress' ), - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'element' => $menu_hover_selectors, - 'property' => 'background-color', - 'hide_label' => true, - ), - 'generate_settings[navigation_background_current_color]' => array( - 'default_value' => $color_defaults['navigation_background_current_color'], - 'label' => __( 'Navigation Background Current', 'generatepress' ), - 'tooltip' => __( 'Choose Current Color', 'generatepress' ), - 'element' => $menu_current_selectors, - 'property' => 'background-color', - 'hide_label' => true, - ), - ) -); - -// Navigation text group. -GeneratePress_Customize_Field::add_color_field_group( - 'primary_navigation_text', - 'generate_colors_section', - 'primary-navigation-colors', - array( - 'generate_settings[navigation_text_color]' => array( - 'default_value' => $color_defaults['navigation_text_color'], - 'label' => __( 'Navigation Text', 'generatepress' ), - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'element' => '.main-navigation .main-nav ul li a, .main-navigation .menu-toggle, .main-navigation button.menu-toggle:hover, .main-navigation button.menu-toggle:focus, .main-navigation .mobile-bar-items a, .main-navigation .mobile-bar-items a:hover, .main-navigation .mobile-bar-items a:focus, .main-navigation .menu-bar-items', - 'property' => 'color', - 'hide_label' => false, - ), - 'generate_settings[navigation_text_hover_color]' => array( - 'default_value' => $color_defaults['navigation_text_hover_color'], - 'label' => __( 'Navigation Text Hover', 'generatepress' ), - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'element' => $menu_hover_selectors, - 'property' => 'color', - 'hide_label' => true, - ), - 'generate_settings[navigation_text_current_color]' => array( - 'default_value' => $color_defaults['navigation_text_current_color'], - 'label' => __( 'Navigation Text Current', 'generatepress' ), - 'tooltip' => __( 'Choose Current Color', 'generatepress' ), - 'element' => $menu_current_selectors, - 'property' => 'color', - 'hide_label' => true, - ), - ) -); - -// Sub-Menu background group. -GeneratePress_Customize_Field::add_color_field_group( - 'primary_navigation_submenu_background', - 'generate_colors_section', - 'primary-navigation-colors', - array( - 'generate_settings[subnavigation_background_color]' => array( - 'default_value' => $color_defaults['subnavigation_background_color'], - 'label' => __( 'Sub-Menu Background', 'generatepress' ), - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'element' => '.main-navigation ul ul', - 'property' => 'background-color', - 'hide_label' => false, - ), - 'generate_settings[subnavigation_background_hover_color]' => array( - 'default_value' => $color_defaults['subnavigation_background_hover_color'], - 'label' => __( 'Sub-Menu Background Hover', 'generatepress' ), - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'element' => $submenu_hover_selectors, - 'property' => 'background-color', - 'hide_label' => true, - ), - 'generate_settings[subnavigation_background_current_color]' => array( - 'default_value' => $color_defaults['subnavigation_background_current_color'], - 'label' => __( 'Sub-Menu Background Current', 'generatepress' ), - 'tooltip' => __( 'Choose Current Color', 'generatepress' ), - 'element' => $submenu_current_selectors, - 'property' => 'background-color', - 'hide_label' => true, - ), - ) -); - -// Sub-Menu text group. -GeneratePress_Customize_Field::add_color_field_group( - 'primary_navigation_submenu_text', - 'generate_colors_section', - 'primary-navigation-colors', - array( - 'generate_settings[subnavigation_text_color]' => array( - 'default_value' => $color_defaults['subnavigation_text_color'], - 'label' => __( 'Sub-Menu Text', 'generatepress' ), - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'element' => '.main-navigation .main-nav ul ul li a', - 'property' => 'color', - 'hide_label' => false, - ), - 'generate_settings[subnavigation_text_hover_color]' => array( - 'default_value' => $color_defaults['subnavigation_text_hover_color'], - 'label' => __( 'Sub-Menu Text Hover', 'generatepress' ), - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'element' => $submenu_hover_selectors, - 'property' => 'color', - 'hide_label' => true, - ), - 'generate_settings[subnavigation_text_current_color]' => array( - 'default_value' => $color_defaults['subnavigation_text_current_color'], - 'label' => __( 'Sub-Menu Text Current', 'generatepress' ), - 'tooltip' => __( 'Choose Current Color', 'generatepress' ), - 'element' => $submenu_current_selectors, - 'property' => 'color', - 'hide_label' => true, - ), - ) -); - -GeneratePress_Customize_Field::add_title( - 'generate_navigation_search_colors_title', - array( - 'section' => 'generate_colors_section', - 'title' => __( 'Navigation Search', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'primary-navigation-search-colors', - ), - 'active_callback' => function() { - if ( 'enable' === generate_get_option( 'nav_search' ) ) { - return true; - } - - return false; - }, - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[navigation_search_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['navigation_search_background_color'], - 'transport' => 'refresh', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'primary-navigation-search-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[navigation_search_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['navigation_search_text_color'], - 'transport' => 'refresh', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'primary-navigation-search-colors', - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/search-modal.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/search-modal.php deleted file mode 100644 index 7c69aa62..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/search-modal.php +++ /dev/null @@ -1,97 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Search Modal', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'search-modal-colors', - ), - 'active_callback' => function() { - if ( generate_get_option( 'nav_search_modal' ) ) { - return true; - } - - return false; - }, - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[search_modal_bg_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['search_modal_bg_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Field Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'search-modal-colors', - ), - 'output' => array( - array( - 'element' => ':root', - 'property' => '--gp-search-modal-bg-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[search_modal_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['search_modal_text_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Field Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'search-modal-colors', - ), - 'output' => array( - array( - 'element' => ':root', - 'property' => '--gp-search-modal-text-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[search_modal_overlay_bg_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['search_modal_overlay_bg_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Overlay Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'search-modal-colors', - ), - 'output' => array( - array( - 'element' => ':root', - 'property' => '--gp-search-modal-overlay-bg-color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/sidebar-widgets.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/sidebar-widgets.php deleted file mode 100644 index 5af90b4e..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/sidebar-widgets.php +++ /dev/null @@ -1,161 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Sidebar Widgets', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'sidebar-widget-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[sidebar_widget_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['sidebar_widget_background_color'], - 'sanitize_callback' => 'generate_sanitize_rgba_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'sidebar-widget-colors', - 'wrapper' => 'sidebar_widget_background_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.sidebar .widget', - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[sidebar_widget_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['sidebar_widget_text_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'sidebar-widget-colors', - 'wrapper' => 'sidebar_widget_text_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.sidebar .widget', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_sidebar_widget_colors_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'sidebar-widget-colors', - 'items' => array( - 'sidebar_widget_link_color', - 'sidebar_widget_link_hover_color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[sidebar_widget_link_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['sidebar_widget_link_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'sidebar-widget-colors', - 'wrapper' => 'sidebar_widget_link_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - ), - 'output' => array( - array( - 'element' => '.sidebar .widget a', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[sidebar_widget_link_hover_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['sidebar_widget_link_hover_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Link Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'sidebar-widget-colors', - 'wrapper' => 'sidebar_widget_link_hover_color', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => '.sidebar .widget a:hover', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[sidebar_widget_title_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['sidebar_widget_title_color'], - 'sanitize_callback' => 'generate_sanitize_hex_color', - 'transport' => 'postMessage', - ), - array( - 'label' => __( 'Widget Title', 'generatepress' ), - 'section' => 'generate_colors_section', - 'choices' => array( - 'toggleId' => 'sidebar-widget-colors', - ), - 'output' => array( - array( - 'element' => '.sidebar .widget .widget-title', - 'property' => 'color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/top-bar.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/top-bar.php deleted file mode 100644 index 77a63f1c..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/fields/top-bar.php +++ /dev/null @@ -1,139 +0,0 @@ - 'generate_colors_section', - 'title' => __( 'Top Bar', 'generatepress' ), - 'choices' => array( - 'toggleId' => 'top-bar-colors', - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[top_bar_background_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['top_bar_background_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Background', 'generatepress' ), - 'section' => 'generate_colors_section', - 'settings' => 'generate_settings[top_bar_background_color]', - 'active_callback' => 'generate_is_top_bar_active', - 'choices' => array( - 'alpha' => true, - 'toggleId' => 'top-bar-colors', - ), - 'output' => array( - array( - 'element' => '.top-bar', - 'property' => 'background-color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[top_bar_text_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['top_bar_text_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Text', 'generatepress' ), - 'section' => 'generate_colors_section', - 'active_callback' => 'generate_is_top_bar_active', - 'choices' => array( - 'toggleId' => 'top-bar-colors', - ), - 'output' => array( - array( - 'element' => '.top-bar', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_wrapper( - 'generate_top_bar_link_wrapper', - array( - 'section' => 'generate_colors_section', - 'choices' => array( - 'type' => 'color', - 'toggleId' => 'top-bar-colors', - 'items' => array( - 'top_bar_link_color', - 'top_bar_link_color_hover', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[top_bar_link_color]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['top_bar_link_color'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Link', 'generatepress' ), - 'section' => 'generate_colors_section', - 'active_callback' => 'generate_is_top_bar_active', - 'choices' => array( - 'wrapper' => 'top_bar_link_color', - 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), - 'toggleId' => 'top-bar-colors', - ), - 'output' => array( - array( - 'element' => '.top-bar a', - 'property' => 'color', - ), - ), - ) -); - -GeneratePress_Customize_Field::add_field( - 'generate_settings[top_bar_link_color_hover]', - 'GeneratePress_Customize_Color_Control', - array( - 'default' => $color_defaults['top_bar_link_color_hover'], - 'transport' => 'postMessage', - 'sanitize_callback' => 'generate_sanitize_rgba_color', - ), - array( - 'label' => __( 'Link Hover', 'generatepress' ), - 'section' => 'generate_colors_section', - 'active_callback' => 'generate_is_top_bar_active', - 'choices' => array( - 'wrapper' => 'top_bar_link_color_hover', - 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), - 'toggleId' => 'top-bar-colors', - 'hideLabel' => true, - ), - 'output' => array( - array( - 'element' => '.top-bar a:hover', - 'property' => 'color', - ), - ), - ) -); diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/helpers.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/helpers.php deleted file mode 100644 index 70f32030..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/customizer/helpers.php +++ /dev/null @@ -1,476 +0,0 @@ -manager->get_control( $setting->id )->choices; - - // If the input is a valid key, return it. - // otherwise, return the default. - return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); - } -} - -/** - * Sanitize our Google Font variants - * - * @since 2.0 - * @param string $input The value to check. - */ -function generate_sanitize_variants( $input ) { - if ( is_array( $input ) ) { - $input = implode( ',', $input ); - } - return sanitize_text_field( $input ); -} - -add_action( 'customize_controls_enqueue_scripts', 'generate_do_control_inline_scripts', 100 ); -/** - * Add misc inline scripts to our controls. - * - * We don't want to add these to the controls themselves, as they will be repeated - * each time the control is initialized. - * - * @since 2.0 - */ -function generate_do_control_inline_scripts() { - wp_localize_script( - 'generatepress-typography-customizer', - 'gp_customize', - array( - 'nonce' => wp_create_nonce( 'gp_customize_nonce' ), - ) - ); - - $number_of_fonts = apply_filters( 'generate_number_of_fonts', 200 ); - - wp_localize_script( - 'generatepress-typography-customizer', - 'generatePressTypography', - array( - 'googleFonts' => apply_filters( 'generate_typography_customize_list', generate_get_all_google_fonts( $number_of_fonts ) ), - ) - ); - - wp_localize_script( 'generatepress-typography-customizer', 'typography_defaults', generate_typography_default_fonts() ); - - wp_enqueue_script( 'generatepress-customizer-controls', trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/js/customizer-controls.js', array( 'customize-controls', 'jquery' ), GENERATE_VERSION, true ); - wp_localize_script( 'generatepress-customizer-controls', 'generatepress_defaults', generate_get_defaults() ); - wp_localize_script( 'generatepress-customizer-controls', 'generatepress_color_defaults', generate_get_color_defaults() ); - wp_localize_script( 'generatepress-customizer-controls', 'generatepress_typography_defaults', generate_get_default_fonts() ); - wp_localize_script( 'generatepress-customizer-controls', 'generatepress_spacing_defaults', generate_spacing_get_defaults() ); - - wp_localize_script( - 'generatepress-customizer-controls', - 'generatepressCustomizeControls', - array( - 'mappedTypographyData' => array( - 'typography' => GeneratePress_Typography_Migration::get_mapped_typography_data(), - 'fonts' => GeneratePress_Typography_Migration::get_mapped_font_data(), - ), - ) - ); - - wp_enqueue_script( - 'generate-customizer-controls', - trailingslashit( get_template_directory_uri() ) . 'assets/dist/customizer.js', - // We're including wp-color-picker for localized strings, nothing more. - array( 'lodash', 'react', 'react-dom', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'jquery', 'customize-base', 'customize-controls', 'wp-color-picker' ), - GENERATE_VERSION, - true - ); - - if ( function_exists( 'wp_set_script_translations' ) ) { - wp_set_script_translations( 'generate-customizer-controls', 'generatepress' ); - } - - $color_palette = get_theme_support( 'editor-color-palette' ); - $colors = array(); - - if ( is_array( $color_palette ) ) { - foreach ( $color_palette as $key => $value ) { - foreach ( $value as $color ) { - $colors[] = array( - 'name' => $color['name'], - 'color' => $color['color'], - ); - } - } - } - - wp_localize_script( - 'generate-customizer-controls', - 'generateCustomizerControls', - array( - 'palette' => $colors, - 'showGoogleFonts' => apply_filters( 'generate_font_manager_show_google_fonts', true ), - 'colorPickerShouldShift' => function_exists( 'did_filter' ), - ) - ); - - wp_enqueue_style( - 'generate-customizer-controls', - trailingslashit( get_template_directory_uri() ) . 'assets/dist/style-customizer.css', - array( 'wp-components' ), - GENERATE_VERSION - ); - - $global_colors = generate_get_global_colors(); - $global_colors_css = ':root {'; - - if ( ! empty( $global_colors ) ) { - foreach ( (array) $global_colors as $key => $data ) { - $global_colors_css .= '--' . $data['slug'] . ':' . $data['color'] . ';'; - } - } - - $global_colors_css .= '}'; - - wp_add_inline_style( 'generate-customizer-controls', $global_colors_css ); -} - -if ( ! function_exists( 'generate_customizer_live_preview' ) ) { - add_action( 'customize_preview_init', 'generate_customizer_live_preview', 100 ); - /** - * Add our live preview scripts - * - * @since 0.1 - */ - function generate_customizer_live_preview() { - $spacing_settings = wp_parse_args( - get_option( 'generate_spacing_settings', array() ), - generate_spacing_get_defaults() - ); - - wp_enqueue_script( 'generate-themecustomizer', trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/js/customizer-live-preview.js', array( 'customize-preview' ), GENERATE_VERSION, true ); - - wp_localize_script( - 'generate-themecustomizer', - 'generatepress_live_preview', - array( - 'mobile' => generate_get_media_query( 'mobile' ), - 'tablet' => generate_get_media_query( 'tablet_only' ), - 'desktop' => generate_get_media_query( 'desktop' ), - 'contentLeft' => absint( $spacing_settings['content_left'] ), - 'contentRight' => absint( $spacing_settings['content_right'] ), - 'isFlex' => generate_is_using_flexbox(), - 'isRTL' => is_rtl(), - ) - ); - - wp_enqueue_script( - 'generate-postMessage', - trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/js/postMessage.js', - array( 'jquery', 'customize-preview', 'wp-hooks' ), - GENERATE_VERSION, - true - ); - - global $generate_customize_fields; - wp_localize_script( 'generate-postMessage', 'gpPostMessageFields', $generate_customize_fields ); - } -} - -/** - * Check to see if we have a logo or not. - * - * Used as an active callback. Calling has_custom_logo creates a PHP notice for - * multisite users. - * - * @since 2.0.1 - */ -function generate_has_custom_logo_callback() { - if ( get_theme_mod( 'custom_logo' ) ) { - return true; - } - - return false; -} - -/** - * Save our preset layout controls. These should always save to be "current". - * - * @since 2.2 - */ -function generate_sanitize_preset_layout() { - return 'current'; -} - -/** - * Display options if we're using the Floats structure. - */ -function generate_is_using_floats_callback() { - return 'floats' === generate_get_option( 'structure' ); -} - -/** - * Callback to determine whether to show the inline logo option. - */ -function generate_show_inline_logo_callback() { - return 'floats' === generate_get_option( 'structure' ) && generate_has_logo_site_branding(); -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/dashboard.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/dashboard.php deleted file mode 100644 index 6822a56b..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/dashboard.php +++ /dev/null @@ -1,378 +0,0 @@ - -
    -
    -
    -
    - - -
    -
    - - - -
    -
    -
    - - - -
    -

    -
    - - -
    - %2$s', - esc_url( admin_url( 'customize.php' ) ), - esc_html__( 'Customize', 'generatepress' ) - ); - ?> -
    - - -
    - - array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#backgrounds', false ), - ), - 'Blog' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#blog', false ), - ), - 'Colors' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#colors', false ), - ), - 'Copyright' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#copyright', false ), - ), - 'Disable Elements' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#disable-elements', false ), - ), - 'Elements' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#elements', false ), - ), - 'Import / Export' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#import-export', false ), - ), - 'Menu Plus' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#menu-plus', false ), - ), - 'Secondary Nav' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#secondary-nav', false ), - ), - 'Sections' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#sections', false ), - ), - 'Site Library' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/site-library', false ), - ), - 'Spacing' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#spacing', false ), - ), - 'Typography' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#typography', false ), - ), - 'WooCommerce' => array( - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#woocommerce', false ), - ), - ); - - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) : - ?> -
    -

    -
    -
    - $info ) { - ?> -
    -
    - -
    -
    - -
    -
    -
    - -
    -
    -
    - array( - 'title' => __( 'Upload Logo', 'generatepress' ), - 'icon' => 'dashicons-format-image', - 'url' => admin_url( 'customize.php?autofocus[control]=custom_logo' ), - ), - 'typography' => array( - 'title' => __( 'Customize Fonts', 'generatepress' ), - 'icon' => 'dashicons-editor-textcolor', - 'url' => admin_url( $typography_section ), - ), - 'colors' => array( - 'title' => __( 'Customize Colors', 'generatepress' ), - 'icon' => 'dashicons-admin-customizer', - 'url' => admin_url( $colors_section ), - ), - 'layout' => array( - 'title' => __( 'Layout Options', 'generatepress' ), - 'icon' => 'dashicons-layout', - 'url' => admin_url( 'customize.php?autofocus[panel]=generate_layout_panel' ), - ), - 'all' => array( - 'title' => __( 'All Options', 'generatepress' ), - 'icon' => 'dashicons-admin-generic', - 'url' => admin_url( 'customize.php' ), - ), - ); - ?> -
    - -
    -
    -

    -
    -
      - $data ) { - printf( - '
    • %3$s
    • ', - esc_attr( $data['icon'] ), - esc_url( $data['url'] ), - esc_html( $data['title'] ) - ); - } - ?> -
    - -

    - -
    -
    - - - -
    -

    -
    -

    -
    -

    -

    - esc_js( $warning ), - ) - ); - ?> -

    - -
    - -
    -
    -
    -
    -
    - -
    -
    -
    - base ) { - return; - } - - if ( isset( $_GET['settings-updated'] ) && 'true' === $_GET['settings-updated'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Only checking. False positive. - add_settings_error( 'generate-notices', 'true', esc_html__( 'Settings saved.', 'generatepress' ), 'updated' ); - } - - // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Only checking. False positive. - if ( isset( $_GET['status'] ) && 'imported' === $_GET['status'] ) { - add_settings_error( 'generate-notices', 'imported', esc_html__( 'Import successful.', 'generatepress' ), 'updated' ); - } - - // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Only checking. False positive. - if ( isset( $_GET['status'] ) && 'reset' === $_GET['status'] ) { - add_settings_error( 'generate-notices', 'reset', esc_html__( 'Settings removed.', 'generatepress' ), 'updated' ); - } - - settings_errors( 'generate-notices' ); - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/defaults.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/defaults.php deleted file mode 100644 index d995371b..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/defaults.php +++ /dev/null @@ -1,418 +0,0 @@ - '', - 'hide_tagline' => true, - 'logo' => '', - 'inline_logo_site_branding' => false, - 'retina_logo' => '', - 'logo_width' => '', - 'top_bar_width' => 'full', - 'top_bar_inner_width' => 'contained', - 'top_bar_alignment' => 'right', - 'container_width' => '1200', - 'container_alignment' => 'text', - 'header_layout_setting' => 'fluid-header', - 'header_inner_width' => 'contained', - 'nav_alignment_setting' => is_rtl() ? 'right' : 'left', - 'header_alignment_setting' => is_rtl() ? 'right' : 'left', - 'nav_layout_setting' => 'fluid-nav', - 'nav_inner_width' => 'contained', - 'nav_position_setting' => 'nav-float-right', - 'nav_drop_point' => '', - 'nav_dropdown_type' => 'hover', - 'nav_dropdown_direction' => is_rtl() ? 'left' : 'right', - 'nav_search' => 'disable', - 'nav_search_modal' => false, - 'content_layout_setting' => 'separate-containers', - 'layout_setting' => 'right-sidebar', - 'blog_layout_setting' => 'right-sidebar', - 'single_layout_setting' => 'right-sidebar', - 'post_content' => 'excerpt', - 'footer_layout_setting' => 'fluid-footer', - 'footer_inner_width' => 'contained', - 'footer_widget_setting' => '3', - 'footer_bar_alignment' => 'right', - 'back_to_top' => '', - 'background_color' => 'var(--base-2)', - 'text_color' => 'var(--contrast)', - 'link_color' => 'var(--accent)', - 'link_color_hover' => 'var(--contrast)', - 'link_color_visited' => '', - 'font_awesome_essentials' => true, - 'icons' => 'svg', - 'combine_css' => true, - 'dynamic_css_cache' => true, - 'structure' => 'flexbox', - 'underline_links' => 'always', - 'font_manager' => array(), - 'typography' => array(), - 'google_font_display' => 'auto', - 'use_dynamic_typography' => true, - 'global_colors' => array( - array( - 'name' => __( 'Contrast', 'generatepress' ), - 'slug' => 'contrast', - 'color' => '#222222', - ), - array( - /* translators: Contrast number */ - 'name' => sprintf( __( 'Contrast %s', 'generatepress' ), '2' ), - 'slug' => 'contrast-2', - 'color' => '#575760', - ), - array( - /* translators: Contrast number */ - 'name' => sprintf( __( 'Contrast %s', 'generatepress' ), '3' ), - 'slug' => 'contrast-3', - 'color' => '#b2b2be', - ), - array( - 'name' => __( 'Base', 'generatepress' ), - 'slug' => 'base', - 'color' => '#f0f0f0', - ), - array( - /* translators: Base number */ - 'name' => sprintf( __( 'Base %s', 'generatepress' ), '2' ), - 'slug' => 'base-2', - 'color' => '#f7f8f9', - ), - array( - /* translators: Base number */ - 'name' => sprintf( __( 'Base %s', 'generatepress' ), '3' ), - 'slug' => 'base-3', - 'color' => '#ffffff', - ), - array( - 'name' => __( 'Accent', 'generatepress' ), - 'slug' => 'accent', - 'color' => '#1e73be', - ), - ), - ) - ); - } -} - -if ( ! function_exists( 'generate_get_color_defaults' ) ) { - /** - * Set default options - */ - function generate_get_color_defaults() { - return apply_filters( - 'generate_color_option_defaults', - array( - 'top_bar_background_color' => '#636363', - 'top_bar_text_color' => '#ffffff', - 'top_bar_link_color' => '#ffffff', - 'top_bar_link_color_hover' => '#303030', - 'header_background_color' => 'var(--base-3)', - 'header_text_color' => '', - 'header_link_color' => '', - 'header_link_hover_color' => '', - 'site_title_color' => 'var(--contrast)', - 'site_tagline_color' => 'var(--contrast-2)', - 'navigation_background_color' => 'var(--base-3)', - 'navigation_text_color' => 'var(--contrast)', - 'navigation_background_hover_color' => '', - 'navigation_text_hover_color' => 'var(--accent)', - 'navigation_background_current_color' => '', - 'navigation_text_current_color' => 'var(--accent)', - 'subnavigation_background_color' => 'var(--base)', - 'subnavigation_text_color' => '', - 'subnavigation_background_hover_color' => '', - 'subnavigation_text_hover_color' => '', - 'subnavigation_background_current_color' => '', - 'subnavigation_text_current_color' => '', - 'navigation_search_background_color' => '', - 'navigation_search_text_color' => '', - 'content_background_color' => 'var(--base-3)', - 'content_text_color' => '', - 'content_link_color' => '', - 'content_link_hover_color' => '', - 'content_title_color' => '', - 'blog_post_title_color' => 'var(--contrast)', - 'blog_post_title_hover_color' => 'var(--contrast-2)', - 'entry_meta_text_color' => 'var(--contrast-2)', - 'entry_meta_link_color' => '', - 'entry_meta_link_color_hover' => '', - 'h1_color' => '', - 'h2_color' => '', - 'h3_color' => '', - 'h4_color' => '', - 'h5_color' => '', - 'h6_color' => '', - 'sidebar_widget_background_color' => 'var(--base-3)', - 'sidebar_widget_text_color' => '', - 'sidebar_widget_link_color' => '', - 'sidebar_widget_link_hover_color' => '', - 'sidebar_widget_title_color' => '', - 'footer_widget_background_color' => 'var(--base-3)', - 'footer_widget_text_color' => '', - 'footer_widget_link_color' => '', - 'footer_widget_link_hover_color' => '', - 'footer_widget_title_color' => '', - 'footer_background_color' => 'var(--base-3)', - 'footer_text_color' => '', - 'footer_link_color' => '', - 'footer_link_hover_color' => '', - 'form_background_color' => 'var(--base-2)', - 'form_text_color' => 'var(--contrast)', - 'form_background_color_focus' => 'var(--base-2)', - 'form_text_color_focus' => 'var(--contrast)', - 'form_border_color' => 'var(--base)', - 'form_border_color_focus' => 'var(--contrast-3)', - 'form_button_background_color' => '#55555e', - 'form_button_background_color_hover' => '#3f4047', - 'form_button_text_color' => '#ffffff', - 'form_button_text_color_hover' => '#ffffff', - 'back_to_top_background_color' => 'rgba( 0,0,0,0.4 )', - 'back_to_top_background_color_hover' => 'rgba( 0,0,0,0.6 )', - 'back_to_top_text_color' => '#ffffff', - 'back_to_top_text_color_hover' => '#ffffff', - 'search_modal_bg_color' => 'var(--base-3)', - 'search_modal_text_color' => 'var(--contrast)', - 'search_modal_overlay_bg_color' => 'rgba(0,0,0,0.2)', - ) - ); - } -} - -if ( ! function_exists( 'generate_get_default_fonts' ) ) { - /** - * Set default options. - * - * @since 0.1 - * - * @param bool $filter Whether to return the filtered values or original values. - * @return array Option defaults. - */ - function generate_get_default_fonts( $filter = true ) { - $defaults = array( - 'font_body' => 'System Stack', - 'font_body_category' => '', - 'font_body_variants' => '', - 'body_font_weight' => 'normal', - 'body_font_transform' => 'none', - 'body_font_size' => '17', - 'body_line_height' => '1.5', // no unit. - 'paragraph_margin' => '1.5', // em. - 'font_top_bar' => 'inherit', - 'font_top_bar_category' => '', - 'font_top_bar_variants' => '', - 'top_bar_font_weight' => 'normal', - 'top_bar_font_transform' => 'none', - 'top_bar_font_size' => '13', - 'font_site_title' => 'inherit', - 'font_site_title_category' => '', - 'font_site_title_variants' => '', - 'site_title_font_weight' => 'bold', - 'site_title_font_transform' => 'none', - 'site_title_font_size' => '25', - 'mobile_site_title_font_size' => '', - 'font_site_tagline' => 'inherit', - 'font_site_tagline_category' => '', - 'font_site_tagline_variants' => '', - 'site_tagline_font_weight' => 'normal', - 'site_tagline_font_transform' => 'none', - 'site_tagline_font_size' => '15', - 'font_navigation' => 'inherit', - 'font_navigation_category' => '', - 'font_navigation_variants' => '', - 'navigation_font_weight' => 'normal', - 'navigation_font_transform' => 'none', - 'navigation_font_size' => '15', - 'font_widget_title' => 'inherit', - 'font_widget_title_category' => '', - 'font_widget_title_variants' => '', - 'widget_title_font_weight' => 'normal', - 'widget_title_font_transform' => 'none', - 'widget_title_font_size' => '20', - 'widget_title_separator' => '30', - 'widget_content_font_size' => '17', - 'font_buttons' => 'inherit', - 'font_buttons_category' => '', - 'font_buttons_variants' => '', - 'buttons_font_weight' => 'normal', - 'buttons_font_transform' => 'none', - 'buttons_font_size' => '', - 'font_heading_1' => 'inherit', - 'font_heading_1_category' => '', - 'font_heading_1_variants' => '', - 'heading_1_weight' => 'normal', - 'heading_1_transform' => 'none', - 'heading_1_font_size' => '42', - 'heading_1_line_height' => '1.2', // em. - 'heading_1_margin_bottom' => '20', - 'mobile_heading_1_font_size' => '31', - 'font_heading_2' => 'inherit', - 'font_heading_2_category' => '', - 'font_heading_2_variants' => '', - 'heading_2_weight' => 'normal', - 'heading_2_transform' => 'none', - 'heading_2_font_size' => '35', - 'heading_2_line_height' => '1.2', // em. - 'heading_2_margin_bottom' => '20', - 'mobile_heading_2_font_size' => '27', - 'font_heading_3' => 'inherit', - 'font_heading_3_category' => '', - 'font_heading_3_variants' => '', - 'heading_3_weight' => 'normal', - 'heading_3_transform' => 'none', - 'heading_3_font_size' => '29', - 'heading_3_line_height' => '1.2', // em. - 'heading_3_margin_bottom' => '20', - 'mobile_heading_3_font_size' => '24', - 'font_heading_4' => 'inherit', - 'font_heading_4_category' => '', - 'font_heading_4_variants' => '', - 'heading_4_weight' => 'normal', - 'heading_4_transform' => 'none', - 'heading_4_font_size' => '24', - 'heading_4_line_height' => '', // em. - 'mobile_heading_4_font_size' => '22', - 'font_heading_5' => 'inherit', - 'font_heading_5_category' => '', - 'font_heading_5_variants' => '', - 'heading_5_weight' => 'normal', - 'heading_5_transform' => 'none', - 'heading_5_font_size' => '20', - 'heading_5_line_height' => '', // em. - 'mobile_heading_5_font_size' => '19', - 'font_heading_6' => 'inherit', - 'font_heading_6_category' => '', - 'font_heading_6_variants' => '', - 'heading_6_weight' => 'normal', - 'heading_6_transform' => 'none', - 'heading_6_font_size' => '', - 'heading_6_line_height' => '', // em. - 'font_footer' => 'inherit', - 'font_footer_category' => '', - 'font_footer_variants' => '', - 'footer_weight' => 'normal', - 'footer_transform' => 'none', - 'footer_font_size' => '15', - ); - - if ( $filter ) { - return apply_filters( 'generate_font_option_defaults', $defaults ); - } - - return $defaults; - } -} - -if ( ! function_exists( 'generate_spacing_get_defaults' ) ) { - /** - * Set the default options. - * - * @since 0.1 - * - * @param bool $filter Whether to return the filtered values or original values. - * @return array Option defaults. - */ - function generate_spacing_get_defaults( $filter = true ) { - $defaults = array( - 'top_bar_top' => '10', - 'top_bar_right' => '40', - 'top_bar_bottom' => '10', - 'top_bar_left' => '40', - 'mobile_top_bar_top' => '', - 'mobile_top_bar_right' => '30', - 'mobile_top_bar_bottom' => '', - 'mobile_top_bar_left' => '30', - 'header_top' => '20', - 'header_right' => '40', - 'header_bottom' => '20', - 'header_left' => '40', - 'menu_item' => '20', - 'menu_item_height' => '60', - 'sub_menu_item_height' => '10', - 'sub_menu_width' => '200', - 'content_top' => '40', - 'content_right' => '40', - 'content_bottom' => '40', - 'content_left' => '40', - 'mobile_content_top' => '30', - 'mobile_content_right' => '30', - 'mobile_content_bottom' => '30', - 'mobile_content_left' => '30', - 'separator' => '20', - 'mobile_separator' => '', - 'left_sidebar_width' => '30', - 'right_sidebar_width' => '30', - 'widget_top' => '40', - 'widget_right' => '40', - 'widget_bottom' => '40', - 'widget_left' => '40', - 'footer_widget_container_top' => '40', - 'footer_widget_container_right' => '40', - 'footer_widget_container_bottom' => '40', - 'footer_widget_container_left' => '40', - 'footer_widget_separator' => '40', - 'footer_top' => '20', - 'footer_right' => '40', - 'footer_bottom' => '20', - 'footer_left' => '40', - 'mobile_footer_top' => '', - 'mobile_footer_right' => '30', - 'mobile_footer_bottom' => '', - 'mobile_footer_left' => '30', - ); - - if ( $filter ) { - return apply_filters( 'generate_spacing_option_defaults', $defaults ); - } - - return $defaults; - } -} - -if ( ! function_exists( 'generate_typography_default_fonts' ) ) { - /** - * Set the default system fonts. - * - * @since 1.3.40 - */ - function generate_typography_default_fonts() { - $fonts = array( - 'inherit', - 'System Stack', - 'Arial, Helvetica, sans-serif', - 'Century Gothic', - 'Comic Sans MS', - 'Courier New', - 'Georgia, Times New Roman, Times, serif', - 'Helvetica', - 'Impact', - 'Lucida Console', - 'Lucida Sans Unicode', - 'Palatino Linotype', - 'Segoe UI, Helvetica Neue, Helvetica, sans-serif', - 'Tahoma, Geneva, sans-serif', - 'Trebuchet MS, Helvetica, sans-serif', - 'Verdana, Geneva, sans-serif', - ); - - return apply_filters( 'generate_typography_default_fonts', $fonts ); - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/deprecated.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/deprecated.php deleted file mode 100644 index 2bae0d2c..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/deprecated.php +++ /dev/null @@ -1,914 +0,0 @@ - apply_filters( 'generate_pagination_mid_size', 1 ), - 'prev_text' => __( '← Previous', 'generatepress' ), - 'next_text' => __( 'Next →', 'generatepress' ), - ) - ); - } - } -} - -if ( ! function_exists( 'generate_additional_spacing' ) ) { - /** - * Add fallback CSS for our mobile search icon color - * - * @deprecated 1.3.47 - */ - function generate_additional_spacing() { - // No longer needed. - } -} - -if ( ! function_exists( 'generate_mobile_search_spacing_fallback_css' ) ) { - /** - * Enqueue our mobile search icon color fallback CSS - * - * @deprecated 1.3.47 - */ - function generate_mobile_search_spacing_fallback_css() { - // No longer needed. - } -} - -if ( ! function_exists( 'generate_addons_available' ) ) { - /** - * Check to see if there's any addons not already activated - * - * @since 1.0.9 - * @deprecated 1.3.47 - */ - function generate_addons_available() { - if ( defined( 'GP_PREMIUM_VERSION' ) ) { - return false; - } - } -} - -if ( ! function_exists( 'generate_no_addons' ) ) { - /** - * Check to see if no addons are activated - * - * @since 1.0.9 - * @deprecated 1.3.47 - */ - function generate_no_addons() { - if ( defined( 'GP_PREMIUM_VERSION' ) ) { - return false; - } - } -} - -if ( ! function_exists( 'generate_get_min_suffix' ) ) { - /** - * Figure out if we should use minified scripts or not - * - * @since 1.3.29 - * @deprecated 2.0 - */ - function generate_get_min_suffix() { - return defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; - } -} - -if ( ! function_exists( 'generate_add_layout_meta_box' ) ) { - /** - * Add layout metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_add_layout_meta_box() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' ); - } -} - -if ( ! function_exists( 'generate_show_layout_meta_box' ) ) { - /** - * Show layout metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_show_layout_meta_box() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' ); - } -} - -if ( ! function_exists( 'generate_save_layout_meta' ) ) { - /** - * Save layout metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_save_layout_meta() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' ); - } -} - -if ( ! function_exists( 'generate_add_footer_widget_meta_box' ) ) { - /** - * Add footer widget metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_add_footer_widget_meta_box() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' ); - } -} - -if ( ! function_exists( 'generate_show_footer_widget_meta_box' ) ) { - /** - * Show footer widget metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_show_footer_widget_meta_box() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' ); - } -} - -if ( ! function_exists( 'generate_save_footer_widget_meta' ) ) { - /** - * Save footer widget metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_save_footer_widget_meta() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' ); - } -} - -if ( ! function_exists( 'generate_add_page_builder_meta_box' ) ) { - /** - * Add page builder metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_add_page_builder_meta_box() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' ); - } -} - -if ( ! function_exists( 'generate_show_page_builder_meta_box' ) ) { - /** - * Show page builder metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_show_page_builder_meta_box() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' ); - } -} - -if ( ! function_exists( 'generate_save_page_builder_meta' ) ) { - /** - * Save page builder metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_save_page_builder_meta() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' ); - } -} - -if ( ! function_exists( 'generate_add_de_meta_box' ) ) { - /** - * Add disable elements metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_add_de_meta_box() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' ); - } -} - -if ( ! function_exists( 'generate_show_de_meta_box' ) ) { - /** - * Show disable elements metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_show_de_meta_box() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' ); - } -} - -if ( ! function_exists( 'generate_save_de_meta' ) ) { - /** - * Save disable elements metabox. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_save_de_meta() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' ); - } -} - -if ( ! function_exists( 'generate_add_base_inline_css' ) ) { - /** - * Add base inline CSS. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_add_base_inline_css() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' ); - } -} - -if ( ! function_exists( 'generate_color_scripts' ) ) { - /** - * Enqueue base colors inline CSS. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_color_scripts() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' ); - } -} - -if ( ! function_exists( 'generate_typography_scripts' ) ) { - /** - * Enqueue typography CSS. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_typography_scripts() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' ); - } -} - -if ( ! function_exists( 'generate_spacing_scripts' ) ) { - /** - * Enqueue spacing CSS. - * - * @since 0.1 - * @deprecated 2.0 - */ - function generate_spacing_scripts() { - _deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' ); - } -} - -if ( ! function_exists( 'generate_get_setting' ) ) { - /** - * A wrapper function to get our settings. - * - * @since 1.3.40 - * - * @param string $setting The option name to look up. - * @return string The option value. - * @todo Ability to specify different option name and defaults. - */ - function generate_get_setting( $setting ) { - return generate_get_option( $setting ); - } -} -if ( ! function_exists( 'generate_right_sidebar_class' ) ) { - /** - * Display the classes for the sidebar. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_right_sidebar_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_right_sidebar_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_right_sidebar_class' ) ) { - /** - * Retrieve the classes for the sidebar. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_right_sidebar_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_right_sidebar_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_left_sidebar_class' ) ) { - /** - * Display the classes for the sidebar. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_left_sidebar_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_left_sidebar_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_left_sidebar_class' ) ) { - /** - * Retrieve the classes for the sidebar. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_left_sidebar_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_left_sidebar_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_content_class' ) ) { - /** - * Display the classes for the content. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_content_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_content_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_content_class' ) ) { - /** - * Retrieve the classes for the content. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_content_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_content_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_header_class' ) ) { - /** - * Display the classes for the header. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_header_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_header_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_header_class' ) ) { - /** - * Retrieve the classes for the content. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_header_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_header_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_inside_header_class' ) ) { - /** - * Display the classes for inside the header. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_inside_header_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_inside_header_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_inside_header_class' ) ) { - /** - * Retrieve the classes for inside the header. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_inside_header_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_inside_header_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_container_class' ) ) { - /** - * Display the classes for the container. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_container_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_container_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_container_class' ) ) { - /** - * Retrieve the classes for the content. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_container_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_container_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_navigation_class' ) ) { - /** - * Display the classes for the navigation. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_navigation_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_navigation_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_navigation_class' ) ) { - /** - * Retrieve the classes for the navigation. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_navigation_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_navigation_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_inside_navigation_class' ) ) { - /** - * Display the classes for the inner navigation. - * - * @since 1.3.41 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_inside_navigation_class( $class = '' ) { - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - $return = apply_filters( 'generate_inside_navigation_class', $classes, $class ); - - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', $return ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_menu_class' ) ) { - /** - * Display the classes for the navigation. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_menu_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_menu_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_menu_class' ) ) { - /** - * Retrieve the classes for the navigation. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_menu_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_menu_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_main_class' ) ) { - /** - * Display the classes for the
    container. - * - * @since 1.1.0 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_main_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_main_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_main_class' ) ) { - /** - * Retrieve the classes for the footer. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_main_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_main_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_footer_class' ) ) { - /** - * Display the classes for the footer. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_footer_class( $class = '' ) { - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', generate_get_footer_class( $class ) ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_get_footer_class' ) ) { - /** - * Retrieve the classes for the footer. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ - function generate_get_footer_class( $class = '' ) { - - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( 'generate_footer_class', $classes, $class ); - } -} - -if ( ! function_exists( 'generate_inside_footer_class' ) ) { - /** - * Display the classes for the footer. - * - * @since 0.1 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_inside_footer_class( $class = '' ) { - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - $return = apply_filters( 'generate_inside_footer_class', $classes, $class ); - - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', $return ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_top_bar_class' ) ) { - /** - * Display the classes for the top bar. - * - * @since 1.3.45 - * @param string|array $class One or more classes to add to the class list. - */ - function generate_top_bar_class( $class = '' ) { - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - $return = apply_filters( 'generate_top_bar_class', $classes, $class ); - - // Separates classes with a single space, collates classes for post DIV. - echo 'class="' . join( ' ', $return ) . '"'; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_body_schema' ) ) { - /** - * Figure out which schema tags to apply to the element. - * - * @since 1.3.15 - */ - function generate_body_schema() { - // Set up blog variable. - $blog = ( is_home() || is_archive() || is_attachment() || is_tax() || is_single() ) ? true : false; - - // Set up default itemtype. - $itemtype = 'WebPage'; - - // Get itemtype for the blog. - $itemtype = ( $blog ) ? 'Blog' : $itemtype; - - // Get itemtype for search results. - $itemtype = ( is_search() ) ? 'SearchResultsPage' : $itemtype; - - // Get the result. - $result = esc_html( apply_filters( 'generate_body_itemtype', $itemtype ) ); - - // Return our HTML. - echo "itemtype='https://schema.org/$result' itemscope='itemscope'"; // phpcs:ignore - } -} - -if ( ! function_exists( 'generate_article_schema' ) ) { - /** - * Figure out which schema tags to apply to the
    element - * The function determines the itemtype: generate_article_schema( 'BlogPosting' ) - * - * @since 1.3.15 - * @param string $type The type of schema. - */ - function generate_article_schema( $type = 'CreativeWork' ) { - // Get the itemtype. - $itemtype = esc_html( apply_filters( 'generate_article_itemtype', $type ) ); - - // Print the results. - echo "itemtype='https://schema.org/$itemtype' itemscope='itemscope'"; // phpcs:ignore - } -} - -/** - * Process database updates if necessary. - * There's nothing in here yet, but we're setting the version to use later. - * - * @since 2.1 - * @deprecated 3.0.0 - */ -function generate_do_admin_db_updates() { - // Replaced by Generate_Theme_Update(). -} - -/** - * Process important database updates when someone visits the front or backend. - * - * @since 2.3 - * @deprecated 3.0.0 - */ -function generate_do_db_updates() { - // Replaced by Generate_Theme_Update(). -} - -if ( ! function_exists( 'generate_update_logo_setting' ) ) { - /** - * Migrate the old logo database entry to the new custom_logo theme mod (WordPress 4.5) - * - * @since 1.3.29 - * @deprecated 3.0.0 - */ - function generate_update_logo_setting() { - // Replaced by Generate_Theme_Update(). - } -} - -if ( ! function_exists( 'generate_typography_convert_values' ) ) { - /** - * Take the old body font value and strip it of variants - * This should only run once - * - * @since 1.3.0 - * @deprecated 3.0.0 - */ - function generate_typography_convert_values() { - // Replaced by Generate_Theme_Update(). - } -} - -/** - * Execute functions after existing sites update. - * - * We check to see if options already exist. If they do, we can assume the user has - * updated the theme, and not installed it from scratch. - * - * We run this right away in the Dashboard to avoid other migration functions from - * setting options and causing these functions to run on fresh installs. - * - * @since 2.0 - * @deprecated 3.0.0 - */ -function generate_migrate_existing_settings() { - // Replaced by Generate_Theme_Update(). -} - -/** - * Output CSS for the icon fonts. - * - * @since 2.3 - * @deprecated 3.0.0 - */ -function generate_do_icon_css() { - $output = false; - - if ( 'font' === generate_get_option( 'icons' ) ) { - $url = trailingslashit( get_template_directory_uri() ); - - if ( defined( 'GENERATE_MENU_PLUS_VERSION' ) ) { - $output .= '.main-navigation .slideout-toggle a:before, - .slide-opened .slideout-overlay .slideout-exit:before { - font-family: GeneratePress; - } - - .slideout-navigation .dropdown-menu-toggle:before { - content: "\f107" !important; - } - - .slideout-navigation .sfHover > a .dropdown-menu-toggle:before { - content: "\f106" !important; - }'; - } - } - - if ( $output ) { - return str_replace( array( "\r", "\n", "\t" ), '', $output ); - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/general.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/general.php deleted file mode 100644 index c1c71c69..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/general.php +++ /dev/null @@ -1,483 +0,0 @@ - true, - 'openSubMenuLabel' => esc_attr__( 'Open Sub-Menu', 'generatepress' ), - 'closeSubMenuLabel' => esc_attr__( 'Close Sub-Menu', 'generatepress' ), - ) - ) - ); - - if ( 'click' === generate_get_option( 'nav_dropdown_type' ) || 'click-arrow' === generate_get_option( 'nav_dropdown_type' ) ) { - wp_enqueue_script( 'generate-dropdown-click', $dir_uri . "/assets/js/dropdown-click{$suffix}.js", array(), GENERATE_VERSION, true ); - } - - if ( apply_filters( 'generate_enable_modal_script', false ) ) { - wp_enqueue_script( 'generate-modal', $dir_uri . '/assets/dist/modal.js', array(), GENERATE_VERSION, true ); - } - - if ( 'enable' === generate_get_option( 'nav_search' ) ) { - wp_enqueue_script( 'generate-navigation-search', $dir_uri . "/assets/js/navigation-search{$suffix}.js", array(), GENERATE_VERSION, true ); - - wp_localize_script( - 'generate-navigation-search', - 'generatepressNavSearch', - array( - 'open' => esc_attr__( 'Open Search Bar', 'generatepress' ), - 'close' => esc_attr__( 'Close Search Bar', 'generatepress' ), - ) - ); - } - - if ( 'enable' === generate_get_option( 'back_to_top' ) ) { - wp_enqueue_script( 'generate-back-to-top', $dir_uri . "/assets/js/back-to-top{$suffix}.js", array(), GENERATE_VERSION, true ); - - wp_localize_script( - 'generate-back-to-top', - 'generatepressBackToTop', - apply_filters( - 'generate_back_to_top_js_args', - array( - 'smooth' => true, - ) - ) - ); - } - - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { - wp_enqueue_script( 'comment-reply' ); - } - } -} - -if ( ! function_exists( 'generate_widgets_init' ) ) { - add_action( 'widgets_init', 'generate_widgets_init' ); - /** - * Register widgetized area and update sidebar with default widgets - */ - function generate_widgets_init() { - $widgets = array( - 'sidebar-1' => __( 'Right Sidebar', 'generatepress' ), - 'sidebar-2' => __( 'Left Sidebar', 'generatepress' ), - 'header' => __( 'Header', 'generatepress' ), - 'footer-1' => __( 'Footer Widget 1', 'generatepress' ), - 'footer-2' => __( 'Footer Widget 2', 'generatepress' ), - 'footer-3' => __( 'Footer Widget 3', 'generatepress' ), - 'footer-4' => __( 'Footer Widget 4', 'generatepress' ), - 'footer-5' => __( 'Footer Widget 5', 'generatepress' ), - 'footer-bar' => __( 'Footer Bar', 'generatepress' ), - 'top-bar' => __( 'Top Bar', 'generatepress' ), - ); - - foreach ( $widgets as $id => $name ) { - register_sidebar( - array( - 'name' => $name, - 'id' => $id, - 'before_widget' => '', - 'before_title' => apply_filters( 'generate_start_widget_title', '

    ' ), - 'after_title' => apply_filters( 'generate_end_widget_title', '

    ' ), - ) - ); - } - } -} - -if ( ! function_exists( 'generate_smart_content_width' ) ) { - add_action( 'wp', 'generate_smart_content_width' ); - /** - * Set the $content_width depending on layout of current page - * Hook into "wp" so we have the correct layout setting from generate_get_layout() - * Hooking into "after_setup_theme" doesn't get the correct layout setting - */ - function generate_smart_content_width() { - global $content_width; - - $container_width = generate_get_option( 'container_width' ); - $right_sidebar_width = apply_filters( 'generate_right_sidebar_width', '25' ); - $left_sidebar_width = apply_filters( 'generate_left_sidebar_width', '25' ); - $layout = generate_get_layout(); - - if ( 'left-sidebar' === $layout ) { - $content_width = $container_width * ( ( 100 - $left_sidebar_width ) / 100 ); - } elseif ( 'right-sidebar' === $layout ) { - $content_width = $container_width * ( ( 100 - $right_sidebar_width ) / 100 ); - } elseif ( 'no-sidebar' === $layout ) { - $content_width = $container_width; - } else { - $content_width = $container_width * ( ( 100 - ( $left_sidebar_width + $right_sidebar_width ) ) / 100 ); - } - } -} - -if ( ! function_exists( 'generate_page_menu_args' ) ) { - add_filter( 'wp_page_menu_args', 'generate_page_menu_args' ); - /** - * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. - * - * @since 0.1 - * - * @param array $args The existing menu args. - * @return array Menu args. - */ - function generate_page_menu_args( $args ) { - $args['show_home'] = true; - - return $args; - } -} - -if ( ! function_exists( 'generate_disable_title' ) ) { - add_filter( 'generate_show_title', 'generate_disable_title' ); - /** - * Remove our title if set. - * - * @since 1.3.18 - * - * @param bool $title Whether the title is displayed or not. - * @return bool Whether to display the content title. - */ - function generate_disable_title( $title ) { - if ( is_singular() ) { - $disable_title = get_post_meta( get_the_ID(), '_generate-disable-headline', true ); - - if ( $disable_title ) { - $title = false; - } - } - - return $title; - } -} - -if ( ! function_exists( 'generate_resource_hints' ) ) { - add_filter( 'wp_resource_hints', 'generate_resource_hints', 10, 2 ); - /** - * Add resource hints to our Google fonts call. - * - * @since 1.3.42 - * - * @param array $urls URLs to print for resource hints. - * @param string $relation_type The relation type the URLs are printed. - * @return array $urls URLs to print for resource hints. - */ - function generate_resource_hints( $urls, $relation_type ) { - $handle = generate_is_using_dynamic_typography() ? 'generate-google-fonts' : 'generate-fonts'; - $hint_type = apply_filters( 'generate_google_font_resource_hint_type', 'preconnect' ); - $has_crossorigin_support = version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ); - - if ( wp_style_is( $handle, 'queue' ) ) { - if ( $relation_type === $hint_type ) { - if ( $has_crossorigin_support && 'preconnect' === $hint_type ) { - $urls[] = array( - 'href' => 'https://fonts.gstatic.com', - 'crossorigin', - ); - - $urls[] = array( - 'href' => 'https://fonts.googleapis.com', - 'crossorigin', - ); - } else { - $urls[] = 'https://fonts.gstatic.com'; - $urls[] = 'https://fonts.googleapis.com'; - } - } - - if ( 'dns-prefetch' !== $hint_type ) { - $googleapis_index = array_search( 'fonts.googleapis.com', $urls ); - - if ( false !== $googleapis_index ) { - unset( $urls[ $googleapis_index ] ); - } - } - } - - return $urls; - } -} - -if ( ! function_exists( 'generate_remove_caption_padding' ) ) { - add_filter( 'img_caption_shortcode_width', 'generate_remove_caption_padding' ); - /** - * Remove WordPress's default padding on images with captions - * - * @param int $width Default WP .wp-caption width (image width + 10px). - * @return int Updated width to remove 10px padding. - */ - function generate_remove_caption_padding( $width ) { - return $width - 10; - } -} - -if ( ! function_exists( 'generate_enhanced_image_navigation' ) ) { - add_filter( 'attachment_link', 'generate_enhanced_image_navigation', 10, 2 ); - /** - * Filter in a link to a content ID attribute for the next/previous image links on image attachment pages. - * - * @param string $url The input URL. - * @param int $id The ID of the post. - */ - function generate_enhanced_image_navigation( $url, $id ) { - if ( ! is_attachment() && ! wp_attachment_is_image( $id ) ) { - return $url; - } - - $image = get_post( $id ); - // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison -- Intentially loose. - if ( ! empty( $image->post_parent ) && $image->post_parent != $id ) { - $url .= '#main'; - } - - return $url; - } -} - -if ( ! function_exists( 'generate_categorized_blog' ) ) { - /** - * Determine whether blog/site has more than one category. - * - * @since 1.2.5 - * - * @return bool True of there is more than one category, false otherwise. - */ - function generate_categorized_blog() { - if ( false === ( $all_the_cool_cats = get_transient( 'generate_categories' ) ) ) { // phpcs:ignore - // Create an array of all the categories that are attached to posts. - $all_the_cool_cats = get_categories( - array( - 'fields' => 'ids', - 'hide_empty' => 1, - - // We only need to know if there is more than one category. - 'number' => 2, - ) - ); - - // Count the number of categories that are attached to the posts. - $all_the_cool_cats = count( $all_the_cool_cats ); - - set_transient( 'generate_categories', $all_the_cool_cats ); - } - - if ( $all_the_cool_cats > 1 ) { - // This blog has more than 1 category so twentyfifteen_categorized_blog should return true. - return true; - } else { - // This blog has only 1 category so twentyfifteen_categorized_blog should return false. - return false; - } - } -} - -if ( ! function_exists( 'generate_category_transient_flusher' ) ) { - add_action( 'edit_category', 'generate_category_transient_flusher' ); - add_action( 'save_post', 'generate_category_transient_flusher' ); - /** - * Flush out the transients used in {@see generate_categorized_blog()}. - * - * @since 1.2.5 - */ - function generate_category_transient_flusher() { - // Like, beat it. Dig? - delete_transient( 'generate_categories' ); - } -} - -if ( ! function_exists( 'generate_get_default_color_palettes' ) ) { - /** - * Set up our colors for the color picker palettes and filter them so you can change them. - * - * @since 1.3.42 - */ - function generate_get_default_color_palettes() { - $palettes = array( - '#000000', - '#FFFFFF', - '#F1C40F', - '#E74C3C', - '#1ABC9C', - '#1e72bd', - '#8E44AD', - '#00CC77', - ); - - return apply_filters( 'generate_default_color_palettes', $palettes ); - } -} - -add_filter( 'generate_fontawesome_essentials', 'generate_set_font_awesome_essentials' ); -/** - * Check to see if we should include the full Font Awesome library or not. - * - * @since 2.0 - * - * @param bool $essentials The existing value. - * @return bool - */ -function generate_set_font_awesome_essentials( $essentials ) { - if ( generate_get_option( 'font_awesome_essentials' ) ) { - return true; - } - - return $essentials; -} - -add_filter( 'generate_dynamic_css_skip_cache', 'generate_skip_dynamic_css_cache' ); -/** - * Skips caching of the dynamic CSS if set to false. - * - * @since 2.0 - * - * @param bool $cache The existing value. - * @return bool - */ -function generate_skip_dynamic_css_cache( $cache ) { - if ( ! generate_get_option( 'dynamic_css_cache' ) ) { - return true; - } - - return $cache; -} - -add_filter( 'wp_headers', 'generate_set_wp_headers' ); -/** - * Set any necessary headers. - * - * @param array $headers The existing headers. - * - * @since 2.3 - */ -function generate_set_wp_headers( $headers ) { - $headers['X-UA-Compatible'] = 'IE=edge'; - - return $headers; -} - -add_filter( 'generate_after_element_class_attribute', 'generate_set_microdata_markup', 10, 2 ); -/** - * Adds microdata to elements. - * - * @since 3.0.0 - * @param string $output The existing output after the class attribute. - * @param string $context What element we're targeting. - */ -function generate_set_microdata_markup( $output, $context ) { - if ( 'left_sidebar' === $context || 'right_sidebar' === $context ) { - $context = 'sidebar'; - } - - if ( 'footer' === $context ) { - return $output; - } - - if ( 'site-info' === $context ) { - $context = 'footer'; - } - - $microdata = generate_get_microdata( $context ); - - if ( $microdata ) { - return $microdata; - } - - return $output; -} - -add_action( 'wp_footer', 'generate_do_a11y_scripts' ); -/** - * Enqueue scripts in the footer. - * - * @since 3.1.0 - */ -function generate_do_a11y_scripts() { - if ( apply_filters( 'generate_print_a11y_script', true ) ) { - // Add our small a11y script inline. - printf( - '', - '!function(){"use strict";if("querySelector"in document&&"addEventListener"in window){var e=document.body;e.addEventListener("mousedown",function(){e.classList.add("using-mouse")}),e.addEventListener("keydown",function(){e.classList.remove("using-mouse")})}}();' - ); - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/markup.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/markup.php deleted file mode 100644 index 715004c2..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/markup.php +++ /dev/null @@ -1,568 +0,0 @@ - element - * - * @param array $classes The existing classes. - * @since 1.1.0 - */ - function generate_main_classes( $classes ) { - $classes[] = 'site-main'; - - return $classes; - } -} - -add_filter( 'generate_page_class', 'generate_do_page_container_classes' ); -/** - * Adds custom classes to the #page element - * - * @param array $classes The existing classes. - * @since 3.0.0 - */ -function generate_do_page_container_classes( $classes ) { - $classes[] = 'site'; - $classes[] = 'grid-container'; - $classes[] = 'container'; - - if ( generate_is_using_hatom() ) { - $classes[] = 'hfeed'; - } - - if ( ! generate_is_using_flexbox() ) { - $classes[] = 'grid-parent'; - } - - return $classes; -} - -add_filter( 'generate_comment-author_class', 'generate_do_comment_author_classes' ); -/** - * Adds custom classes to the comment author element - * - * @param array $classes The existing classes. - * @since 3.0.0 - */ -function generate_do_comment_author_classes( $classes ) { - $classes[] = 'comment-author'; - - if ( generate_is_using_hatom() ) { - $classes[] = 'vcard'; - } - - return $classes; -} - -if ( ! function_exists( 'generate_post_classes' ) ) { - add_filter( 'post_class', 'generate_post_classes' ); - /** - * Adds custom classes to the
    element. - * Remove .hentry class from pages to comply with structural data guidelines. - * - * @param array $classes The existing classes. - * @since 1.3.39 - */ - function generate_post_classes( $classes ) { - if ( 'page' === get_post_type() || ! generate_is_using_hatom() ) { - $classes = array_diff( $classes, array( 'hentry' ) ); - } - - return $classes; - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/meta-box.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/meta-box.php deleted file mode 100644 index c3e0f718..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/meta-box.php +++ /dev/null @@ -1,279 +0,0 @@ - true ) ); - $screen = get_current_screen(); - $post_type = $screen->id; - - if ( in_array( $post_type, (array) $post_types ) ) { - wp_enqueue_style( 'generate-layout-metabox', get_template_directory_uri() . '/assets/css/admin/meta-box.css', array(), GENERATE_VERSION ); - } - } -} - -add_action( 'add_meta_boxes', 'generate_register_layout_meta_box' ); -/** - * Generate the layout metabox - * - * @since 2.0 - */ -function generate_register_layout_meta_box() { - if ( ! current_user_can( apply_filters( 'generate_metabox_capability', 'edit_theme_options' ) ) ) { - return; - } - - if ( ! defined( 'GENERATE_LAYOUT_META_BOX' ) ) { - define( 'GENERATE_LAYOUT_META_BOX', true ); - } - - global $post; - - $blog_id = get_option( 'page_for_posts' ); - - // No need for the Layout metabox on the blog page. - if ( isset( $post->ID ) && $blog_id && (int) $blog_id === (int) $post->ID ) { - return; - } - - $post_types = get_post_types( array( 'public' => true ) ); - - foreach ( $post_types as $type ) { - if ( 'attachment' !== $type ) { - add_meta_box( - 'generate_layout_options_meta_box', - esc_html__( 'Layout', 'generatepress' ), - 'generate_do_layout_meta_box', - $type, - 'side' - ); - } - } -} - -/** - * Build our meta box. - * - * @since 2.0 - * - * @param object $post All post information. - */ -function generate_do_layout_meta_box( $post ) { - wp_nonce_field( basename( __FILE__ ), 'generate_layout_nonce' ); - $stored_meta = (array) get_post_meta( $post->ID ); - $stored_meta['_generate-sidebar-layout-meta'][0] = ( isset( $stored_meta['_generate-sidebar-layout-meta'][0] ) ) ? $stored_meta['_generate-sidebar-layout-meta'][0] : ''; - $stored_meta['_generate-footer-widget-meta'][0] = ( isset( $stored_meta['_generate-footer-widget-meta'][0] ) ) ? $stored_meta['_generate-footer-widget-meta'][0] : ''; - $stored_meta['_generate-full-width-content'][0] = ( isset( $stored_meta['_generate-full-width-content'][0] ) ) ? $stored_meta['_generate-full-width-content'][0] : ''; - $stored_meta['_generate-disable-headline'][0] = ( isset( $stored_meta['_generate-disable-headline'][0] ) ) ? $stored_meta['_generate-disable-headline'][0] : ''; - - $tabs = apply_filters( - 'generate_metabox_tabs', - array( - 'sidebars' => array( - 'title' => esc_html__( 'Sidebars', 'generatepress' ), - 'target' => '#generate-layout-sidebars', - 'class' => 'current', - ), - 'footer_widgets' => array( - 'title' => esc_html__( 'Footer Widgets', 'generatepress' ), - 'target' => '#generate-layout-footer-widgets', - 'class' => '', - ), - 'disable_elements' => array( - 'title' => esc_html__( 'Disable Elements', 'generatepress' ), - 'target' => '#generate-layout-disable-elements', - 'class' => '', - ), - 'container' => array( - 'title' => esc_html__( 'Content Container', 'generatepress' ), - 'target' => '#generate-layout-page-builder-container', - 'class' => '', - ), - ) - ); - ?> - -
    - -
    -
    -
    - - - -
    -
    - - - - - -
    -
    - -
    > -
    > - - < > -
    - -
    > - -
    - -
    - > - -
    -
    - post_date ); - if ( $post_date < $compare_date ) { - $css = '.fl-builder.no-sidebar .container.grid-container { - max-width: 100%; - } - - .fl-builder.one-container.no-sidebar .site-content { - padding:0; - }'; - $css = str_replace( array( "\r", "\n", "\t" ), '', $css ); - wp_add_inline_style( 'generate-style', $css ); - } - } - } -} - -add_action( 'wp_enqueue_scripts', 'generate_do_third_party_plugin_css', 50 ); -/** - * Add CSS for third-party plugins. - * - * @since 3.0.1 - */ -function generate_do_third_party_plugin_css() { - $css = new GeneratePress_CSS(); - - if ( generate_is_using_flexbox() && class_exists( 'Elementor\Plugin' ) ) { - $css->set_selector( '.elementor-template-full-width .site-content' ); - $css->add_property( 'display', 'block' ); - } - - if ( $css->css_output() ) { - wp_add_inline_style( 'generate-style', $css->css_output() ); - } -} - -add_action( 'wp_enqueue_scripts', 'generate_do_pro_compatibility', 50 ); -/** - * Add CSS to ensure compatibility with GP Premium. - * - * @since 3.0.0 - */ -function generate_do_pro_compatibility() { - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { - return; - } - - $css = new GeneratePress_CSS(); - - if ( version_compare( GP_PREMIUM_VERSION, '1.11.0-alpha.1', '<' ) ) { - if ( generate_is_using_flexbox() && defined( 'GENERATE_SECONDARY_NAV_VERSION' ) ) { - $css->set_selector( '.secondary-navigation .inside-navigation:before, .secondary-navigation .inside-navigation:after' ); - $css->add_property( 'content', '"."' ); - $css->add_property( 'display', 'block' ); - $css->add_property( 'overflow', 'hidden' ); - $css->add_property( 'visibility', 'hidden' ); - $css->add_property( 'font-size', '0px' ); - $css->add_property( 'line-height', '0px' ); - $css->add_property( 'width', '0px' ); - $css->add_property( 'height', '0px' ); - - $css->set_selector( '.secondary-navigation .inside-navigation:after' ); - $css->add_property( 'clear', 'both' ); - } - } - - if ( version_compare( GP_PREMIUM_VERSION, '1.12.0-alpha.1', '<' ) ) { - if ( defined( 'GENERATE_MENU_PLUS_VERSION' ) && function_exists( 'generate_menu_plus_get_defaults' ) ) { - $menu_plus_settings = wp_parse_args( - get_option( 'generate_menu_plus_settings', array() ), - generate_menu_plus_get_defaults() - ); - - if ( generate_is_using_flexbox() && ( 'true' === $menu_plus_settings['sticky_menu'] || 'desktop' === $menu_plus_settings['sticky_menu'] || 'mobile' === $menu_plus_settings['sticky_menu'] || 'enable' === $menu_plus_settings['mobile_header_sticky'] ) ) { - if ( generate_has_inline_mobile_toggle() ) { - $css->start_media_query( generate_get_media_query( 'mobile-menu' ) ); - - $css->set_selector( '#sticky-placeholder' ); - $css->add_property( 'height', '0' ); - $css->add_property( 'overflow', 'hidden' ); - - $css->set_selector( '.has-inline-mobile-toggle #site-navigation.toggled' ); - $css->add_property( 'margin-top', '0' ); - - $css->set_selector( '.has-inline-mobile-menu #site-navigation.toggled .main-nav > ul' ); - $css->add_property( 'top', '1.5em' ); - - $css->stop_media_query(); - } - - if ( 'desktop' === $menu_plus_settings['sticky_menu'] ) { - $css->set_selector( '.sticky-enabled .gen-sidebar-nav.is_stuck .main-navigation' ); - $css->add_property( 'margin-bottom', '0' ); - - $css->set_selector( '.sticky-enabled .gen-sidebar-nav.is_stuck' ); - $css->add_property( 'z-index', '500' ); - - $css->set_selector( '.sticky-enabled .main-navigation.is_stuck' ); - $css->add_property( 'box-shadow', '0 2px 2px -2px rgba(0, 0, 0, .2)' ); - - $css->set_selector( '.navigation-stick:not(.gen-sidebar-nav)' ); - $css->add_property( 'left', '0' ); - $css->add_property( 'right', '0' ); - $css->add_property( 'width', '100% !important' ); - - $css->set_selector( '.both-sticky-menu .main-navigation:not(#mobile-header).toggled .main-nav > ul,.mobile-sticky-menu .main-navigation:not(#mobile-header).toggled .main-nav > ul,.mobile-header-sticky #mobile-header.toggled .main-nav > ul' ); - $css->add_property( 'position', 'absolute' ); - $css->add_property( 'left', '0' ); - $css->add_property( 'right', '0' ); - $css->add_property( 'z-index', '999' ); - } - - $css->set_selector( '.nav-float-right .navigation-stick' ); - $css->add_property( 'width', '100% !important' ); - $css->add_property( 'left', '0' ); - - $css->set_selector( '.nav-float-right .navigation-stick .navigation-branding' ); - $css->add_property( 'margin-right', 'auto' ); - - if ( ! $menu_plus_settings['navigation_as_header'] ) { - $header_left = 40; - $header_right = 40; - $mobile_header_left = 30; - $mobile_header_right = 30; - - if ( function_exists( 'generate_spacing_get_defaults' ) ) { - $spacing_settings = wp_parse_args( - get_option( 'generate_spacing_settings', array() ), - generate_spacing_get_defaults() - ); - - $header_left = $spacing_settings['header_left']; - $header_right = $spacing_settings['header_right']; - $mobile_header_left = $spacing_settings['mobile_header_left']; - $mobile_header_right = $spacing_settings['mobile_header_right']; - } - - if ( function_exists( 'generate_is_using_flexbox' ) && generate_is_using_flexbox() ) { - if ( function_exists( 'generate_get_option' ) && 'text' === generate_get_option( 'container_alignment' ) ) { - $css->set_selector( '.main-navigation.navigation-stick .inside-navigation.grid-container' ); - $css->add_property( 'padding-left', $header_left, false, 'px' ); - $css->add_property( 'padding-right', $header_right, false, 'px' ); - - $css->start_media_query( generate_get_media_query( 'mobile-menu' ) ); - $css->set_selector( '.main-navigation.navigation-stick .inside-navigation.grid-container' ); - $css->add_property( 'padding-left', $mobile_header_left, false, 'px' ); - $css->add_property( 'padding-right', $mobile_header_right, false, 'px' ); - $css->stop_media_query(); - } - } - } - - $css->set_selector( '.nav-float-right .main-navigation.has-branding:not([class*="nav-align-"]):not(.mobile-header-navigation) .menu-bar-items,.nav-float-right .main-navigation.has-sticky-branding.navigation-stick:not([class*="nav-align-"]):not(.mobile-header-navigation) .menu-bar-items' ); - $css->add_property( 'margin-left', '0' ); - } - - if ( generate_has_inline_mobile_toggle() && 'false' !== $menu_plus_settings['slideout_menu'] ) { - $css->set_selector( '.slideout-mobile .has-inline-mobile-toggle #site-navigation.toggled,.slideout-both .has-inline-mobile-toggle #site-navigation.toggled' ); - $css->add_property( 'margin-top', '0' ); - } - - if ( 'font' === generate_get_option( 'icons' ) ) { - $css->set_selector( '.main-navigation .slideout-toggle a:before,.slide-opened .slideout-overlay .slideout-exit:before' ); - $css->add_property( 'font-family', 'GeneratePress' ); - - $css->set_selector( '.slideout-navigation .dropdown-menu-toggle:before' ); - $css->add_property( 'content', '"\f107" !important' ); - - $css->set_selector( '.slideout-navigation .sfHover > a .dropdown-menu-toggle:before' ); - $css->add_property( 'content', '"\f106" !important' ); - } - - if ( generate_is_using_flexbox() && $menu_plus_settings['navigation_as_header'] ) { - $content_left = 40; - $content_right = 40; - - if ( function_exists( 'generate_spacing_get_defaults' ) ) { - $spacing_settings = wp_parse_args( - get_option( 'generate_spacing_settings', array() ), - generate_spacing_get_defaults() - ); - - $content_left = $spacing_settings['content_left']; - $content_right = $spacing_settings['content_right']; - } - - if ( 'text' === generate_get_option( 'container_alignment' ) ) { - $css->set_selector( '.main-navigation.has-branding .inside-navigation.grid-container, .main-navigation.has-branding .inside-navigation.grid-container' ); - $css->add_property( 'padding', generate_padding_css( 0, $content_right, 0, $content_left ) ); - } - - $css->set_selector( '.navigation-branding' ); - $css->add_property( 'margin-left', '10px' ); - - $css->set_selector( '.navigation-branding .main-title, .mobile-header-navigation .site-logo' ); - $css->add_property( 'margin-left', '10px' ); - - if ( is_rtl() ) { - $css->set_selector( '.navigation-branding' ); - $css->add_property( 'margin-left', 'auto' ); - $css->add_property( 'margin-right', '10px' ); - - $css->set_selector( '.navigation-branding .main-title, .mobile-header-navigation .site-logo' ); - $css->add_property( 'margin-right', '10px' ); - $css->add_property( 'margin-left', '0' ); - } - - $css->set_selector( '.navigation-branding > div + .main-title' ); - $css->add_property( 'margin-left', '10px' ); - - if ( is_rtl() ) { - $css->set_selector( '.navigation-branding > div + .main-title' ); - $css->add_property( 'margin-right', '10px' ); - } - - $css->set_selector( '.has-branding .navigation-branding img' ); - $css->add_property( 'margin', '0' ); - - $css->start_media_query( generate_get_media_query( 'mobile-menu' ) ); - if ( 'text' === generate_get_option( 'container_alignment' ) ) { - $css->set_selector( '.main-navigation.has-branding .inside-navigation.grid-container' ); - $css->add_property( 'padding', '0' ); - } - $css->stop_media_query(); - } - } - - if ( defined( 'GENERATE_SPACING_VERSION' ) ) { - if ( generate_is_using_flexbox() ) { - $css->set_selector( '#footer-widgets, .site-info' ); - $css->add_property( 'padding', '0' ); - } - } - - if ( defined( 'GENERATE_SECONDARY_NAV_VERSION' ) ) { - if ( generate_is_using_flexbox() && has_nav_menu( 'secondary' ) ) { - if ( 'text' === generate_get_option( 'container_alignment' ) && function_exists( 'generate_secondary_nav_get_defaults' ) ) { - $secondary_nav_settings = wp_parse_args( - get_option( 'generate_secondary_nav_settings', array() ), - generate_secondary_nav_get_defaults() - ); - - $spacing_settings = wp_parse_args( - get_option( 'generate_spacing_settings', array() ), - generate_spacing_get_defaults() - ); - - $navigation_left_padding = absint( $spacing_settings['header_left'] ) - absint( $secondary_nav_settings['secondary_menu_item'] ); - $navigation_right_padding = absint( $spacing_settings['header_right'] ) - absint( $secondary_nav_settings['secondary_menu_item'] ); - - $css->set_selector( '.secondary-nav-below-header .secondary-navigation .inside-navigation.grid-container, .secondary-nav-above-header .secondary-navigation .inside-navigation.grid-container' ); - $css->add_property( 'padding', generate_padding_css( 0, $navigation_right_padding, 0, $navigation_left_padding ) ); - } - } - } - - if ( generate_is_using_flexbox() && defined( 'GENERATE_FONT_VERSION' ) && function_exists( 'generate_get_default_fonts' ) ) { - $font_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_default_fonts() - ); - - if ( isset( $font_settings['tablet_navigation_font_size'] ) && '' !== $font_settings['tablet_navigation_font_size'] ) { - $css->start_media_query( generate_get_media_query( 'tablet' ) ); - $css->set_selector( '.main-navigation .menu-toggle' ); - $css->add_property( 'font-size', absint( $font_settings['tablet_navigation_font_size'] ), false, 'px' ); - $css->stop_media_query(); - } - - if ( isset( $font_settings['mobile_navigation_font_size'] ) && '' !== $font_settings['mobile_navigation_font_size'] ) { - $css->start_media_query( generate_get_media_query( 'mobile-menu' ) ); - $css->set_selector( '.main-navigation .menu-toggle' ); - $css->add_property( 'font-size', absint( $font_settings['mobile_navigation_font_size'] ), false, 'px' ); - $css->stop_media_query(); - } - } - - if ( ! generate_show_title() ) { - $css->set_selector( '.page .entry-content' )->add_property( 'margin-top', '0px' ); - - if ( is_single() ) { - if ( ! apply_filters( 'generate_post_author', true ) && ! apply_filters( 'generate_post_date', true ) ) { - $css->set_selector( '.single .entry-content' )->add_property( 'margin-top', '0' ); - } - } - } - } - - if ( $css->css_output() ) { - wp_add_inline_style( 'generate-style', $css->css_output() ); - } -} - -add_filter( 'generate_menu_item_dropdown_arrow_direction', 'generate_set_pro_menu_item_arrow_directions', 10, 3 ); -/** - * Set the menu item arrow directions for Secondary and Slideout navs. - * - * @since 3.0.0 - * @param string $arrow_direction The current direction. - * @param object $args The args for the current menu. - * @param int $depth The current depth of the menu item. - */ -function generate_set_pro_menu_item_arrow_directions( $arrow_direction, $args, $depth ) { - if ( function_exists( 'generate_secondary_nav_get_defaults' ) && 'secondary' === $args->theme_location ) { - $settings = wp_parse_args( - get_option( 'generate_secondary_nav_settings', array() ), - generate_secondary_nav_get_defaults() - ); - - if ( 0 !== $depth ) { - $arrow_direction = 'right'; - - if ( 'left' === $settings['secondary_nav_dropdown_direction'] ) { - $arrow_direction = 'left'; - } - } - - if ( 'secondary-nav-left-sidebar' === $settings['secondary_nav_position_setting'] ) { - $arrow_direction = 'right'; - - if ( 'both-right' === generate_get_layout() ) { - $arrow_direction = 'left'; - } - } - - if ( 'secondary-nav-right-sidebar' === $settings['secondary_nav_position_setting'] ) { - $arrow_direction = 'left'; - - if ( 'both-left' === generate_get_layout() ) { - $arrow_direction = 'right'; - } - } - - if ( 'hover' !== generate_get_option( 'nav_dropdown_type' ) ) { - $arrow_direction = 'down'; - } - } - - return $arrow_direction; -} - -add_filter( 'generate_menu_plus_option_defaults', 'generate_set_menu_plus_compat_defaults' ); -/** - * Set defaults in our pro Menu Plus module. - * - * @since 3.0.0 - * @param array $defaults The existing defaults. - */ -function generate_set_menu_plus_compat_defaults( $defaults ) { - if ( generate_has_inline_mobile_toggle() ) { - $defaults['mobile_menu_label'] = ''; - } - - return $defaults; -} - -add_filter( 'generate_spacing_option_defaults', 'generate_set_spacing_compat_defaults', 20 ); -/** - * Set defaults in our pro Spacing module. - * - * @since 3.0.0 - * @param array $defaults The existing defaults. - */ -function generate_set_spacing_compat_defaults( $defaults ) { - $defaults['mobile_header_top'] = ''; - $defaults['mobile_header_bottom'] = ''; - $defaults['mobile_header_right'] = '30'; - $defaults['mobile_header_left'] = '30'; - - $defaults['mobile_widget_top'] = '30'; - $defaults['mobile_widget_right'] = '30'; - $defaults['mobile_widget_bottom'] = '30'; - $defaults['mobile_widget_left'] = '30'; - - $defaults['mobile_footer_widget_container_top'] = '30'; - $defaults['mobile_footer_widget_container_right'] = '30'; - $defaults['mobile_footer_widget_container_bottom'] = '30'; - $defaults['mobile_footer_widget_container_left'] = '30'; - - return $defaults; -} - -add_filter( 'generate_page_hero_css_output', 'generate_do_pro_page_hero_css', 10, 2 ); -/** - * Add CSS to our premium Page Heroes. - * - * @since 3.0.0 - * @param string $css_output Existing CSS. - * @param array $options The Header Element options. - */ -function generate_do_pro_page_hero_css( $css_output, $options ) { - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { - return $css_output; - } - - $new_css = ''; - - if ( version_compare( GP_PREMIUM_VERSION, '1.12.0-alpha.1', '<' ) ) { - $css = new GeneratePress_CSS(); - - $padding_inside = false; - - if ( generate_is_using_flexbox() && 'text' === generate_get_option( 'container_alignment' ) ) { - $padding_inside = true; - } - - if ( $padding_inside ) { - $container_width = generate_get_option( 'container_width' ); - $padding_right = '0px'; - $padding_left = '0px'; - - if ( $options['padding_right'] ) { - $padding_right = absint( $options['padding_right'] ) . $options['padding_right_unit']; - } - - if ( $options['padding_left'] ) { - $padding_left = absint( $options['padding_left'] ) . $options['padding_left_unit']; - } - - $css->set_selector( '.page-hero .inside-page-hero.grid-container' ); - - $css->add_property( - 'max-width', - sprintf( - 'calc(%1$s - %2$s - %3$s)', - $container_width . 'px', - $padding_right, - $padding_left - ) - ); - } - - if ( generate_is_using_flexbox() && '' !== $options['site_header_merge'] ) { - if ( 'merge-desktop' === $options['site_header_merge'] ) { - $css->start_media_query( apply_filters( 'generate_not_mobile_media_query', '(min-width: 769px)' ) ); - } - - if ( $options['navigation_colors'] ) { - $navigation_background = $options['navigation_background_color'] ? $options['navigation_background_color'] : 'transparent'; - $navigation_background_hover = $options['navigation_background_color_hover'] ? $options['navigation_background_color_hover'] : 'transparent'; - - $css->set_selector( '.header-wrap #site-navigation:not(.toggled), .header-wrap #mobile-header:not(.toggled):not(.navigation-stick), .has-inline-mobile-toggle .mobile-menu-control-wrapper' ); - $css->add_property( 'background', $navigation_background ); - - $css->set_selector( '.main-navigation:not(.toggled):not(.navigation-stick) .menu-bar-item:not(.close-search) > a' ); - $css->add_property( 'color', esc_attr( $options['navigation_text_color'] ) ); - - $css->set_selector( '.header-wrap #site-navigation:not(.toggled) .menu-bar-item:not(.close-search):hover > a, .header-wrap #mobile-header:not(.toggled) .menu-bar-item:not(.close-search):hover > a, .header-wrap #site-navigation:not(.toggled) .menu-bar-item:not(.close-search).sfHover > a, .header-wrap #mobile-header:not(.toggled) .menu-bar-item:not(.close-search).sfHover > a' ); - $css->add_property( 'background', $navigation_background_hover ); - - if ( '' !== $options['navigation_text_color_hover'] ) { - $css->add_property( 'color', esc_attr( $options['navigation_text_color_hover'] ) ); - } else { - $css->add_property( 'color', esc_attr( $options['navigation_text_color'] ) ); - } - } - - if ( 'merge-desktop' === $options['site_header_merge'] ) { - $css->stop_media_query(); - } - } - - if ( $css->css_output() ) { - $new_css = $css->css_output(); - } - } - - return $css_output . $new_css; -} - -add_action( 'customize_register', 'generate_pro_compat_customize_register', 100 ); -/** - * Alter some Customizer options in the pro version. - * - * @since 3.0.0 - * @param object $wp_customize The Customizer object. - */ -function generate_pro_compat_customize_register( $wp_customize ) { - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { - return; - } - - if ( version_compare( GP_PREMIUM_VERSION, '1.12.0-alpha.1', '<' ) ) { - if ( $wp_customize->get_setting( 'generate_spacing_settings[separator]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[separator]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[right_sidebar_width]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[right_sidebar_width]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[left_sidebar_width]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[left_sidebar_width]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[footer_widget_container_top]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[footer_widget_container_top]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[footer_widget_container_right]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[footer_widget_container_right]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[footer_widget_container_bottom]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[footer_widget_container_bottom]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[footer_widget_container_left]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[footer_widget_container_left]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[mobile_footer_widget_container_top]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[mobile_footer_widget_container_top]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[mobile_footer_widget_container_right]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[mobile_footer_widget_container_right]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[mobile_footer_widget_container_bottom]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[mobile_footer_widget_container_bottom]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[mobile_footer_widget_container_left]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[mobile_footer_widget_container_left]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[footer_top]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[footer_top]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[footer_right]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[footer_right]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[footer_bottom]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[footer_bottom]' )->transport = 'refresh'; - } - - if ( $wp_customize->get_setting( 'generate_spacing_settings[footer_left]' ) ) { - $wp_customize->get_setting( 'generate_spacing_settings[footer_left]' )->transport = 'refresh'; - } - } - - if ( $wp_customize->get_panel( 'generate_typography_panel' ) ) { - $wp_customize->get_panel( 'generate_typography_panel' )->active_callback = function() { - if ( generate_is_using_dynamic_typography() ) { - return false; - } - - return true; - }; - } -} - -add_action( 'wp', 'generate_do_pro_compatibility_setup' ); -/** - * Do basic compatibility with GP Premium versions. - * - * @since 3.0.0 - */ -function generate_do_pro_compatibility_setup() { - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { - return; - } - - if ( version_compare( GP_PREMIUM_VERSION, '1.12.0-alpha.1', '<' ) ) { - // Fix Elements removing archive post titles. - if ( function_exists( 'generate_premium_do_elements' ) && ! is_singular() ) { - add_filter( 'generate_show_title', '__return_true', 20 ); - } - } - - if ( generate_is_using_dynamic_typography() ) { - remove_action( 'wp_enqueue_scripts', 'generate_enqueue_google_fonts', 0 ); - remove_action( 'wp_enqueue_scripts', 'generate_typography_premium_css', 100 ); - remove_filter( 'generate_external_dynamic_css_output', 'generate_typography_add_to_external_stylesheet' ); - } -} - -add_filter( 'generate_has_active_menu', 'generate_do_pro_active_menus' ); -/** - * Tell GP about our active pro menus. - * - * @since 3.1.0 - * @param boolean $has_active_menu Whether we have an active menu. - */ -function generate_do_pro_active_menus( $has_active_menu ) { - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { - return $has_active_menu; - } - - if ( version_compare( GP_PREMIUM_VERSION, '2.1.0-alpha.1', '<' ) ) { - if ( function_exists( 'generate_menu_plus_get_defaults' ) ) { - $menu_plus_settings = wp_parse_args( - get_option( 'generate_menu_plus_settings', array() ), - generate_menu_plus_get_defaults() - ); - - if ( 'disable' !== $menu_plus_settings['mobile_header'] || 'false' !== $menu_plus_settings['slideout_menu'] ) { - $has_active_menu = true; - } - } - - if ( function_exists( 'generate_secondary_nav_get_defaults' ) && has_nav_menu( 'secondary' ) ) { - $has_active_menu = true; - } - } - - return $has_active_menu; -} - -add_action( 'init', 'generate_do_customizer_compatibility_setup' ); -/** - * Make changes to the Customizer in the Pro version. - */ -function generate_do_customizer_compatibility_setup() { - if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { - return; - } - - if ( version_compare( GP_PREMIUM_VERSION, '2.1.0-alpha.1', '<' ) ) { - if ( generate_is_using_dynamic_typography() ) { - remove_action( 'customize_register', 'generate_fonts_customize_register' ); - remove_action( 'customize_preview_init', 'generate_typography_customizer_live_preview' ); - } - - remove_action( 'customize_register', 'generate_colors_customize_register' ); - remove_action( 'customize_preview_init', 'generate_colors_customizer_live_preview' ); - remove_action( 'customize_controls_enqueue_scripts', 'generate_enqueue_color_palettes', 1001 ); - remove_action( 'customize_register', 'generate_colors_secondary_nav_customizer', 1000 ); - remove_action( 'customize_register', 'generate_slideout_navigation_color_controls', 150 ); - remove_action( 'customize_register', 'generate_colors_wc_customizer', 100 ); - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/archives.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/archives.php deleted file mode 100644 index 82f99dd2..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/archives.php +++ /dev/null @@ -1,142 +0,0 @@ - -
    > - - -

    - -

    - - -
    - %2$s', - get_avatar( get_the_author_meta( 'ID' ), 50 ), - get_the_author() - ); - - /* - * Since we called the_post() above, we need to - * rewind the loop back to the beginning that way - * we can run the loop properly, in full. - */ - rewind_posts(); - } - - return $title; - - } -} - -add_action( 'generate_after_archive_title', 'generate_do_archive_description' ); -/** - * Output the archive description. - * - * @since 2.3 - */ -function generate_do_archive_description() { - $term_description = get_the_archive_description(); - - if ( ! empty( $term_description ) ) { - if ( is_author() ) { - printf( '
    %s
    ', $term_description ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - } else { - printf( '
    %s
    ', $term_description ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - } - } - - /** - * generate_after_archive_description hook. - * - * @since 0.1 - */ - do_action( 'generate_after_archive_description' ); -} - -add_action( 'generate_before_loop', 'generate_do_search_results_title' ); -/** - * Add the search results title to the search results page. - * - * @since 3.1.0 - * @param string $template The template we're targeting. - */ -function generate_do_search_results_title( $template ) { - if ( 'search' === $template ) { - // phpcs:ignore -- No escaping needed. - echo apply_filters( - 'generate_search_title_output', - sprintf( - '

    %s

    ', - generate_get_attr( 'page-header' ), - sprintf( - /* translators: 1: Search query name */ - __( 'Search Results for: %s', 'generatepress' ), - '' . get_search_query() . '' - ) - ) - ); - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/comments.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/comments.php deleted file mode 100644 index ad00d905..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/comments.php +++ /dev/null @@ -1,233 +0,0 @@ -comment_type || 'trackback' === $comment->comment_type ) : ?> - -
  • > -
    - ', '' ); ?> -
    - - - -
  • > -
    get_comment_ID() ) ); ?>> -
    > - -
    -
    > - %s', get_comment_author_link() ); ?> -
    - - - - -
    - - comment_approved ) : // phpcs:ignore ?> -

    - -
    - -
    - -
    -
    - 'div-comment', - 'depth' => $depth, - 'max_depth' => $args['max_depth'], - 'before' => '', - 'after' => '', - ) - ) - ); -} - -add_filter( 'comment_form_defaults', 'generate_set_comment_form_defaults' ); -/** - * Set the default settings for our comments. - * - * @since 2.3 - * - * @param array $defaults The existing defaults. - * @return array - */ -function generate_set_comment_form_defaults( $defaults ) { - $defaults['comment_field'] = sprintf( - '

    ', - esc_html__( 'Comment', 'generatepress' ) - ); - - $defaults['comment_notes_before'] = ''; - $defaults['comment_notes_after'] = ''; - $defaults['id_form'] = 'commentform'; - $defaults['id_submit'] = 'submit'; - $defaults['title_reply'] = apply_filters( 'generate_leave_comment', __( 'Leave a Comment', 'generatepress' ) ); - $defaults['label_submit'] = apply_filters( 'generate_post_comment', __( 'Post Comment', 'generatepress' ) ); - - return $defaults; -} - -add_filter( 'comment_form_default_fields', 'generate_filter_comment_fields' ); -/** - * Customizes the existing comment fields. - * - * @since 2.1.2 - * @param array $fields The existing fields. - * @return array - */ -function generate_filter_comment_fields( $fields ) { - $commenter = wp_get_current_commenter(); - $required = get_option( 'require_name_email' ); - - $fields['author'] = sprintf( - '', - esc_html__( 'Name', 'generatepress' ), - esc_attr( $commenter['comment_author'] ), - $required ? ' *' : '', - $required ? ' required' : '' - ); - - $fields['email'] = sprintf( - '', - esc_html__( 'Email', 'generatepress' ), - esc_attr( $commenter['comment_author_email'] ), - $required ? ' *' : '', - $required ? ' required' : '' - ); - - $fields['url'] = sprintf( - '', - esc_html__( 'Website', 'generatepress' ), - esc_attr( $commenter['comment_author_url'] ) - ); - - return $fields; -} - -add_action( 'generate_after_do_template_part', 'generate_do_comments_template', 15 ); -/** - * Add the comments template to pages and single posts. - * - * @since 3.0.0 - * @param string $template The template we're targeting. - */ -function generate_do_comments_template( $template ) { - if ( 'single' === $template || 'page' === $template ) { - // If comments are open or we have at least one comment, load up the comment template. - // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison -- Intentionally loose. - if ( comments_open() || '0' != get_comments_number() ) : - /** - * generate_before_comments_container hook. - * - * @since 2.1 - */ - do_action( 'generate_before_comments_container' ); - ?> - -
    - -
    - - 'image', - ); - } - - echo apply_filters( // phpcs:ignore - 'generate_featured_image_output', - sprintf( - '
    - %3$s - - %2$s - -
    ', - esc_url( get_permalink() ), - get_the_post_thumbnail( - get_the_ID(), - apply_filters( 'generate_page_header_default_size', 'full' ), - $attrs - ), - apply_filters( 'generate_inside_featured_image_output', '' ) - ) - ); - } - } -} - -if ( ! function_exists( 'generate_featured_page_header_area' ) ) { - /** - * Build the page header. - * - * @since 1.0.7 - * - * @param string $class The featured image container class. - */ - function generate_featured_page_header_area( $class ) { - // Don't run the function unless we're on a page it applies to. - if ( ! is_singular() ) { - return; - } - - // Don't run the function unless we have a post thumbnail. - if ( ! has_post_thumbnail() ) { - return; - } - - $attrs = array(); - - if ( 'microdata' === generate_get_schema_type() ) { - $attrs = array( - 'itemprop' => 'image', - ); - } - ?> - - -
    > -
    > - - -
    -
    - - - © %1$s %2$s • %4$s %5$s', - date( 'Y' ), // phpcs:ignore - get_bloginfo( 'name' ), - esc_url( 'https://generatepress.com' ), - _x( 'Built with', 'GeneratePress', 'generatepress' ), - __( 'GeneratePress', 'generatepress' ), - 'microdata' === generate_get_schema_type() ? ' itemprop="url"' : '' - ); - - echo apply_filters( 'generate_copyright', $copyright ); // phpcs:ignore - } -} - -/** - * Build our individual footer widgets. - * Displays a sample widget if no widget is found in the area. - * - * @since 2.0 - * - * @param int $widget_width The width class of our widget. - * @param int $widget The ID of our widget. - */ -function generate_do_footer_widget( $widget_width, $widget ) { - $widget_classes = sprintf( - 'footer-widget-%s', - absint( $widget ) - ); - - if ( ! generate_is_using_flexbox() ) { - $widget_width = apply_filters( "generate_footer_widget_{$widget}_width", $widget_width ); - $tablet_widget_width = apply_filters( "generate_footer_widget_{$widget}_tablet_width", '50' ); - - $widget_classes = sprintf( - 'footer-widget-%1$s grid-parent grid-%2$s tablet-grid-%3$s mobile-grid-100', - absint( $widget ), - absint( $widget_width ), - absint( $tablet_widget_width ) - ); - } - ?> -
    - -
    - - - - %5$s - ', - esc_attr__( 'Scroll back to top', 'generatepress' ), - absint( apply_filters( 'generate_back_to_top_scroll_speed', 400 ) ), - absint( apply_filters( 'generate_back_to_top_start_scroll', 300 ) ), - esc_attr( apply_filters( 'generate_back_to_top_icon', 'fa-angle-up' ) ), - generate_get_svg_icon( 'arrow-up' ) - ) - ); - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/header.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/header.php deleted file mode 100644 index 7e0f11d7..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/header.php +++ /dev/null @@ -1,382 +0,0 @@ - -
    > -
    > - -
    -
    - 'header-image is-logo-image', - 'alt' => esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) ), - 'src' => $logo_url, - ) - ); - - $data = get_theme_mod( 'custom_logo' ) && ( '' !== $retina_logo_url || generate_is_using_flexbox() ) - ? wp_get_attachment_metadata( get_theme_mod( 'custom_logo' ) ) - : false; - - if ( '' !== $retina_logo_url ) { - $attr['srcset'] = $logo_url . ' 1x, ' . $retina_logo_url . ' 2x'; - } - - if ( $data ) { - if ( isset( $data['width'] ) ) { - $attr['width'] = $data['width']; - } - - if ( isset( $data['height'] ) ) { - $attr['height'] = $data['height']; - } - } - - $attr = array_map( 'esc_attr', $attr ); - - $html_attr = ''; - foreach ( $attr as $name => $value ) { - $html_attr .= " $name=" . '"' . $value . '"'; - } - - // Print our HTML. - echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - 'generate_logo_output', - sprintf( - '', - esc_url( apply_filters( 'generate_logo_href', home_url( '/' ) ) ), - $html_attr - ), - $logo_url, - $html_attr - ); - - /** - * generate_after_logo hook. - * - * @since 0.1 - */ - do_action( 'generate_after_logo' ); - } -} - -if ( ! function_exists( 'generate_construct_site_title' ) ) { - /** - * Build the site title and tagline. - * - * @since 1.3.28 - */ - function generate_construct_site_title() { - $generate_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_defaults() - ); - - // Get the title and tagline. - $title = get_bloginfo( 'title' ); - $tagline = get_bloginfo( 'description' ); - - // If the disable title checkbox is checked, or the title field is empty, return true. - $disable_title = ( '1' == $generate_settings['hide_title'] || '' == $title ) ? true : false; // phpcs:ignore - - // If the disable tagline checkbox is checked, or the tagline field is empty, return true. - $disable_tagline = ( '1' == $generate_settings['hide_tagline'] || '' == $tagline ) ? true : false; // phpcs:ignore - - $schema_type = generate_get_schema_type(); - - // Build our site title. - $site_title = apply_filters( - 'generate_site_title_output', - sprintf( - '<%1$s class="main-title"%4$s> - %3$s - ', - ( is_front_page() && is_home() ) ? 'h1' : 'p', - esc_url( apply_filters( 'generate_site_title_href', home_url( '/' ) ) ), - get_bloginfo( 'name' ), - 'microdata' === generate_get_schema_type() ? ' itemprop="headline"' : '' - ) - ); - - // Build our tagline. - $site_tagline = apply_filters( - 'generate_site_description_output', - sprintf( - '

    %1$s

    ', - html_entity_decode( get_bloginfo( 'description', 'display' ) ), // phpcs:ignore - 'microdata' === generate_get_schema_type() ? ' itemprop="description"' : '' - ) - ); - - // Site title and tagline. - if ( false === $disable_title || false === $disable_tagline ) { - if ( generate_needs_site_branding_container() ) { - echo '
    '; - generate_construct_logo(); - } - - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- outputting site title and tagline. False positive. - echo apply_filters( - 'generate_site_branding_output', - sprintf( - '
    - %1$s - %2$s -
    ', - ( ! $disable_title ) ? $site_title : '', - ( ! $disable_tagline ) ? $site_tagline : '' - ) - ); - - if ( generate_needs_site_branding_container() ) { - echo '
    '; - } - } - } -} - -add_filter( 'generate_header_items_order', 'generate_reorder_inline_site_branding' ); -/** - * Remove the logo from it's usual position. - * - * @since 2.3 - * @param array $order Order of the header items. - */ -function generate_reorder_inline_site_branding( $order ) { - if ( ! generate_get_option( 'inline_logo_site_branding' ) || ! generate_has_logo_site_branding() ) { - return $order; - } - - return array( - 'header-widget', - 'site-branding', - ); -} - -if ( ! function_exists( 'generate_construct_header_widget' ) ) { - /** - * Build the header widget. - * - * @since 1.3.28 - */ - function generate_construct_header_widget() { - if ( is_active_sidebar( 'header' ) ) : - ?> -
    - -
    - -
    > -
    > - -
    -
    - ' . "\n", esc_url( get_bloginfo( 'pingback_url' ) ) ); - } - } -} - -if ( ! function_exists( 'generate_add_viewport' ) ) { - add_action( 'wp_head', 'generate_add_viewport', 1 ); - /** - * Add viewport to wp_head. - * - * @since 1.1.0 - */ - function generate_add_viewport() { - echo apply_filters( 'generate_meta_viewport', '' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - } -} - -add_action( 'generate_before_header', 'generate_do_skip_to_content_link', 2 ); -/** - * Add skip to content link before the header. - * - * @since 2.0 - */ -function generate_do_skip_to_content_link() { - printf( - '', - esc_attr__( 'Skip to content', 'generatepress' ), - esc_html__( 'Skip to content', 'generatepress' ) - ); -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/navigation.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/navigation.php deleted file mode 100644 index 6aecca0f..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/navigation.php +++ /dev/null @@ -1,639 +0,0 @@ - - - - - - - '; - generate_navigation_position(); - echo '
  • '; - } - } -} - -if ( ! function_exists( 'generate_add_navigation_before_left_sidebar' ) ) { - add_action( 'generate_before_left_sidebar_content', 'generate_add_navigation_before_left_sidebar', 5 ); - /** - * Generate the navigation based on settings - * - * It would be better to have all of these inside one action, but these - * are kept this way to maintain backward compatibility for people - * un-hooking and moving the navigation/changing the priority. - * - * @since 0.1 - */ - function generate_add_navigation_before_left_sidebar() { - if ( 'nav-left-sidebar' === generate_get_navigation_location() ) { - echo '
    '; - generate_navigation_position(); - echo '
    '; - } - } -} - -if ( ! class_exists( 'Generate_Page_Walker' ) && class_exists( 'Walker_Page' ) ) { - /** - * Add current-menu-item to the current item if no theme location is set - * This means we don't have to duplicate CSS properties for current_page_item and current-menu-item - * - * @since 1.3.21 - */ - class Generate_Page_Walker extends Walker_Page { - function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { // phpcs:ignore - $css_class = array( 'page_item', 'page-item-' . $page->ID ); - $button = ''; - - if ( isset( $args['pages_with_children'][ $page->ID ] ) ) { - $css_class[] = 'menu-item-has-children'; - $icon = generate_get_svg_icon( 'arrow' ); - $button = '' . $icon . ''; - } - - if ( ! empty( $current_page ) ) { - $_current_page = get_post( $current_page ); - if ( $_current_page && in_array( $page->ID, $_current_page->ancestors ) ) { - $css_class[] = 'current-menu-ancestor'; - } - - if ( $page->ID == $current_page ) { // phpcs:ignore - $css_class[] = 'current-menu-item'; - } elseif ( $_current_page && $page->ID == $_current_page->post_parent ) { // phpcs:ignore - $css_class[] = 'current-menu-parent'; - } - } elseif ( $page->ID == get_option( 'page_for_posts' ) ) { // phpcs:ignore - $css_class[] = 'current-menu-parent'; - } - - // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Core filter name. - $css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) ); - - $args['link_before'] = empty( $args['link_before'] ) ? '' : $args['link_before']; - $args['link_after'] = empty( $args['link_after'] ) ? '' : $args['link_after']; - - $output .= sprintf( - '
  • %s%s%s%s', - $css_classes, - get_permalink( $page->ID ), - $args['link_before'], - apply_filters( 'the_title', $page->post_title, $page->ID ), // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Core filter name. - $args['link_after'], - $button - ); - } - } -} - -if ( ! function_exists( 'generate_dropdown_icon_to_menu_link' ) ) { - add_filter( 'nav_menu_item_title', 'generate_dropdown_icon_to_menu_link', 10, 4 ); - /** - * Add dropdown icon if menu item has children. - * - * @since 1.3.42 - * - * @param string $title The menu item title. - * @param WP_Post $item All of our menu item data. - * @param stdClass $args All of our menu item args. - * @param int $depth Depth of menu item. - * @return string The menu item. - */ - function generate_dropdown_icon_to_menu_link( $title, $item, $args, $depth ) { - $role = 'presentation'; - $tabindex = ''; - - if ( 'click-arrow' === generate_get_option( 'nav_dropdown_type' ) ) { - $role = 'button'; - $tabindex = ' tabindex="0"'; - } - - if ( isset( $args->container_class ) && 'main-nav' === $args->container_class ) { - foreach ( $item->classes as $value ) { - if ( 'menu-item-has-children' === $value ) { - $arrow_direction = 'down'; - - if ( 'primary' === $args->theme_location ) { - if ( 0 !== $depth ) { - $arrow_direction = 'right'; - - if ( 'left' === generate_get_option( 'nav_dropdown_direction' ) ) { - $arrow_direction = 'left'; - } - } - - if ( 'nav-left-sidebar' === generate_get_navigation_location() ) { - $arrow_direction = 'right'; - - if ( 'both-right' === generate_get_layout() ) { - $arrow_direction = 'left'; - } - } - - if ( 'nav-right-sidebar' === generate_get_navigation_location() ) { - $arrow_direction = 'left'; - - if ( 'both-left' === generate_get_layout() ) { - $arrow_direction = 'right'; - } - } - - if ( 'hover' !== generate_get_option( 'nav_dropdown_type' ) ) { - $arrow_direction = 'down'; - } - } - - $arrow_direction = apply_filters( 'generate_menu_item_dropdown_arrow_direction', $arrow_direction, $args, $depth ); - - if ( 'down' === $arrow_direction ) { - $arrow_direction = ''; - } else { - $arrow_direction = '-' . $arrow_direction; - } - - $icon = generate_get_svg_icon( 'arrow' . $arrow_direction ); - $title = $title . '' . $icon . ''; - } - } - } - - return $title; - } -} - -if ( ! function_exists( 'generate_navigation_search' ) ) { - add_action( 'generate_inside_navigation', 'generate_navigation_search' ); - /** - * Add the search bar to the navigation. - * - * @since 1.1.4 - */ - function generate_navigation_search() { - $generate_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_defaults() - ); - - if ( 'enable' !== $generate_settings['nav_search'] ) { - return; - } - - echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - 'generate_navigation_search_output', - sprintf( - '', - esc_url( home_url( '/' ) ), - esc_attr( get_search_query() ), - esc_attr_x( 'Search', 'label', 'generatepress' ) - ) - ); - } -} - -add_action( 'generate_after_primary_menu', 'generate_do_menu_bar_item_container' ); -add_action( 'generate_inside_mobile_menu_control_wrapper', 'generate_do_menu_bar_item_container' ); -/** - * Add a container for menu bar items. - * - * @since 3.0.0 - */ -function generate_do_menu_bar_item_container() { - if ( ! generate_is_using_flexbox() ) { - return; - } - - if ( generate_has_menu_bar_items() ) { - echo ''; - } -} - -add_action( 'wp', 'generate_add_menu_bar_items' ); -/** - * Add menu bar items to the primary navigation. - * - * @since 3.0.0 - */ -function generate_add_menu_bar_items() { - if ( ! generate_is_using_flexbox() ) { - return; - } - - if ( 'enable' === generate_get_option( 'nav_search' ) ) { - add_action( 'generate_menu_bar_items', 'generate_do_navigation_search_button' ); - } - - if ( generate_get_option( 'nav_search_modal' ) && 'flexbox' === generate_get_option( 'structure' ) && 'svg' === generate_get_option( 'icons' ) ) { - add_action( 'generate_menu_bar_items', 'generate_do_search_modal_trigger' ); - } -} - -/** - * Add the navigation search button. - * - * @since 3.0.0 - */ -function generate_do_navigation_search_button() { - if ( ! generate_is_using_flexbox() ) { - return; - } - - if ( 'enable' !== generate_get_option( 'nav_search' ) ) { - return; - } - - $search_item = apply_filters( - 'generate_navigation_search_menu_item_output', - sprintf( - '%2$s', - esc_attr__( 'Open Search Bar', 'generatepress' ), - generate_get_svg_icon( 'search', true ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in function. - ) - ); - - echo $search_item; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- No escaping needed. -} - -if ( ! function_exists( 'generate_menu_search_icon' ) ) { - add_filter( 'wp_nav_menu_items', 'generate_menu_search_icon', 10, 2 ); - /** - * Add search icon to primary menu if set. - * Only used if using old float system. - * - * @since 1.2.9.7 - * - * @param string $nav The HTML list content for the menu items. - * @param stdClass $args An object containing wp_nav_menu() arguments. - * @return string The search icon menu item. - */ - function generate_menu_search_icon( $nav, $args ) { - $generate_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_defaults() - ); - - if ( generate_is_using_flexbox() ) { - return $nav; - } - - // If the search icon isn't enabled, return the regular nav. - if ( 'enable' !== $generate_settings['nav_search'] ) { - return $nav; - } - - // If our primary menu is set, add the search icon. - if ( isset( $args->theme_location ) && 'primary' === $args->theme_location ) { - $search_item = apply_filters( - 'generate_navigation_search_menu_item_output', - sprintf( - '
  • ', - esc_attr__( 'Open Search Bar', 'generatepress' ), - generate_get_svg_icon( 'search', true ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in function. - ) - ); - - return $nav . $search_item; - } - - // Our primary menu isn't set, return the regular nav. - // In this case, the search icon is added to the generate_menu_fallback() function in navigation.php. - return $nav; - } -} - -if ( ! function_exists( 'generate_mobile_menu_search_icon' ) ) { - add_action( 'generate_inside_navigation', 'generate_mobile_menu_search_icon' ); - /** - * Add search icon to mobile menu bar. - * Only used if using old float system. - * - * @since 1.3.12 - */ - function generate_mobile_menu_search_icon() { - $generate_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_defaults() - ); - - // If the search icon isn't enabled, return the regular nav. - if ( 'enable' !== $generate_settings['nav_search'] ) { - return; - } - - if ( generate_is_using_flexbox() ) { - return; - } - - ?> -
    - - - - - - -
    - - - post_parent ) : get_adjacent_post( false, '', true ); - $next = get_adjacent_post( false, '', false ); - - if ( ! $next && ! $previous ) { - return; - } - } - - // Don't print empty markup in archives if there's only one page. - if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) { - return; - } - ?> - - %3$s'; - } - - return $template; - } -} - -/** - * Output requested post meta. - * - * @since 2.3 - * - * @param string $item The post meta item we're requesting. - */ -function generate_do_post_meta_item( $item ) { - if ( 'date' === $item ) { - $time_string = ''; - - $updated_time = get_the_modified_time( 'U' ); - $published_time = get_the_time( 'U' ) + 1800; - $schema_type = generate_get_schema_type(); - - if ( $updated_time > $published_time ) { - if ( apply_filters( 'generate_post_date_show_updated_only', false ) ) { - $time_string = ''; - } else { - $time_string = '' . $time_string; - } - } - - $time_string = sprintf( - $time_string, - esc_attr( get_the_date( 'c' ) ), - esc_html( get_the_date() ), - esc_attr( get_the_modified_date( 'c' ) ), - esc_html( get_the_modified_date() ), - 'microdata' === $schema_type ? ' itemprop="datePublished"' : '', - 'microdata' === $schema_type ? ' itemprop="dateModified"' : '' - ); - - $posted_on = '%1$s%4$s '; - - if ( apply_filters( 'generate_post_date_link', false ) ) { - $posted_on = '%1$s%4$s '; - } - - echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - 'generate_post_date_output', - sprintf( - $posted_on, - apply_filters( 'generate_inside_post_meta_item_output', '', 'date' ), - esc_url( get_permalink() ), - esc_attr( get_the_time() ), - $time_string - ), - $time_string, - $posted_on - ); - } - - if ( 'author' === $item ) { - $schema_type = generate_get_schema_type(); - - $byline = ' '; - - if ( ! apply_filters( 'generate_post_author_link', true ) ) { - $byline = ' '; - } - - echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - 'generate_post_author_output', - sprintf( - $byline, - apply_filters( 'generate_inside_post_meta_item_output', '', 'author' ), - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), - /* translators: 1: Author name */ - esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ), - esc_html( get_the_author() ), - generate_get_microdata( 'post-author' ), - 'microdata' === $schema_type ? ' itemprop="url"' : '', - 'microdata' === $schema_type ? ' itemprop="name"' : '', - generate_is_using_hatom() ? ' vcard' : '' - ) - ); - } - - if ( 'categories' === $item ) { - $term_separator = apply_filters( 'generate_term_separator', _x( ', ', 'Used between list items, there is a space after the comma.', 'generatepress' ), 'categories' ); - $categories_list = get_the_category_list( $term_separator ); - - if ( $categories_list ) { - echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - 'generate_category_list_output', - sprintf( - '%3$s%1$s %2$s ', - esc_html_x( 'Categories', 'Used before category names.', 'generatepress' ), - $categories_list, - apply_filters( 'generate_inside_post_meta_item_output', '', 'categories' ) - ) - ); - } - } - - if ( 'tags' === $item ) { - $term_separator = apply_filters( 'generate_term_separator', _x( ', ', 'Used between list items, there is a space after the comma.', 'generatepress' ), 'tags' ); - $tags_list = get_the_tag_list( '', $term_separator ); - - if ( $tags_list ) { - echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - 'generate_tag_list_output', - sprintf( - '%3$s%1$s %2$s ', - esc_html_x( 'Tags', 'Used before tag names.', 'generatepress' ), - $tags_list, - apply_filters( 'generate_inside_post_meta_item_output', '', 'tags' ) - ) - ); - } - } - - if ( 'comments-link' === $item ) { - if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { - echo ''; - echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - 'generate_inside_post_meta_item_output', - '', - 'comments-link' - ); - comments_popup_link( __( 'Leave a comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); - echo ' '; - } - } - - if ( 'post-navigation' === $item && is_single() ) { - generate_content_nav( 'nav-below' ); - } - - /** - * generate_post_meta_items hook. - * - * @since 2.4 - */ - do_action( 'generate_post_meta_items', $item ); -} - -add_filter( 'generate_inside_post_meta_item_output', 'generate_do_post_meta_prefix', 10, 2 ); -/** - * Add svg icons or text to our post meta output. - * - * @since 2.4 - * @param string $output The existing output. - * @param string $item The item to target. - */ -function generate_do_post_meta_prefix( $output, $item ) { - if ( 'author' === $item ) { - $output = __( 'by', 'generatepress' ) . ' '; - } - - if ( 'categories' === $item ) { - $output = generate_get_svg_icon( 'categories' ); - } - - if ( 'tags' === $item ) { - $output = generate_get_svg_icon( 'tags' ); - } - - if ( 'comments-link' === $item ) { - $output = generate_get_svg_icon( 'comments' ); - } - - return $output; -} - -/** - * Remove post meta items from display if their individual filters are set. - * - * @since 3.0.0 - * @param array $items The post meta items. - */ -function generate_disable_post_meta_items( $items ) { - $disable_filter_names = apply_filters( - 'generate_disable_post_meta_filter_names', - array( - 'date' => 'generate_post_date', - 'author' => 'generate_post_author', - 'categories' => 'generate_show_categories', - 'tags' => 'generate_show_tags', - 'comments-link' => 'generate_show_comments', - 'post-navigation' => 'generate_show_post_navigation', - ) - ); - - foreach ( $items as $item ) { - $default_display = true; - - if ( 'comments-link' === $item && is_singular() ) { - $default_display = false; - } - - // phpcs:ignore -- Hook name is coming from a variable. - if ( isset( $disable_filter_names[ $item ] ) && ! apply_filters( $disable_filter_names[ $item ], $default_display ) ) { - $items = array_diff( $items, array( $item ) ); - } - } - - return $items; -} - -/** - * Get the post meta items in the header entry meta. - * - * @since 3.0.0 - */ -function generate_get_header_entry_meta_items() { - $items = apply_filters( - 'generate_header_entry_meta_items', - array( - 'date', - 'author', - ) - ); - - // Disable post meta items based on their individual filters. - $items = generate_disable_post_meta_items( $items ); - - return $items; -} - -/** - * Get the post meta items in the footer entry meta. - * - * @since 3.0.0 - */ -function generate_get_footer_entry_meta_items() { - $items = apply_filters( - 'generate_footer_entry_meta_items', - array( - 'categories', - 'tags', - 'comments-link', - 'post-navigation', - ) - ); - - /** - * This wasn't a "meta item" prior to 3.0.0 and some users may be using the filter above - * without specifying that they want to include post-navigation. The below forces it to display - * for users using the old float system to prevent it from disappearing on update. - */ - if ( ! generate_is_using_flexbox() && ! in_array( 'post-navigation', (array) $items ) ) { - $items[] = 'post-navigation'; - } - - if ( ! is_singular() ) { - $items = array_diff( (array) $items, array( 'post-navigation' ) ); - } - - // Disable post meta items based on their individual filters. - $items = generate_disable_post_meta_items( $items ); - - return $items; -} - -if ( ! function_exists( 'generate_posted_on' ) ) { - /** - * Prints HTML with meta information for the current post-date/time and author. - * - * @since 0.1 - */ - function generate_posted_on() { - $items = generate_get_header_entry_meta_items(); - - foreach ( $items as $item ) { - generate_do_post_meta_item( $item ); - } - } -} - -if ( ! function_exists( 'generate_entry_meta' ) ) { - /** - * Prints HTML with meta information for the categories, tags. - * - * @since 1.2.5 - */ - function generate_entry_meta() { - $items = generate_get_footer_entry_meta_items(); - - foreach ( $items as $item ) { - generate_do_post_meta_item( $item ); - } - } -} - -if ( ! function_exists( 'generate_excerpt_more' ) ) { - add_filter( 'excerpt_more', 'generate_excerpt_more' ); - /** - * Prints the read more HTML to post excerpts. - * - * @since 0.1 - * - * @param string $more The string shown within the more link. - * @return string The HTML for the more link. - */ - function generate_excerpt_more( $more ) { - return apply_filters( - 'generate_excerpt_more_output', - sprintf( - ' ... %3$s', - the_title_attribute( 'echo=0' ), - esc_url( get_permalink( get_the_ID() ) ), - generate_get_read_more_text(), - generate_get_read_more_aria_label() - ) - ); - } -} - -if ( ! function_exists( 'generate_content_more' ) ) { - add_filter( 'the_content_more_link', 'generate_content_more' ); - /** - * Prints the read more HTML to post content using the more tag. - * - * @since 0.1 - * - * @param string $more The string shown within the more link. - * @return string The HTML for the more link - */ - function generate_content_more( $more ) { - return apply_filters( - 'generate_content_more_link_output', - sprintf( - '

    %3$s

    ', - the_title_attribute( 'echo=0' ), - esc_url( get_permalink( get_the_ID() ) . apply_filters( 'generate_more_jump', '#more-' . get_the_ID() ) ), - generate_get_read_more_text(), - generate_get_read_more_aria_label() - ) - ); - } -} - -add_action( 'wp', 'generate_add_post_meta', 5 ); -/** - * Add our post meta items to the page. - * - * @since 3.0.0 - */ -function generate_add_post_meta() { - $header_items = generate_get_header_entry_meta_items(); - - $header_post_types = apply_filters( - 'generate_entry_meta_post_types', - array( - 'post', - ) - ); - - if ( in_array( get_post_type(), $header_post_types ) && ! empty( $header_items ) ) { - add_action( 'generate_after_entry_title', 'generate_post_meta' ); - } - - $footer_items = generate_get_footer_entry_meta_items(); - - $footer_post_types = apply_filters( - 'generate_footer_meta_post_types', - array( - 'post', - ) - ); - - if ( in_array( get_post_type(), $footer_post_types ) && ! empty( $footer_items ) ) { - add_action( 'generate_after_entry_content', 'generate_footer_meta' ); - } -} - -if ( ! function_exists( 'generate_post_meta' ) ) { - /** - * Build the post meta. - * - * @since 1.3.29 - */ - function generate_post_meta() { - ?> - - -
    > - -
    - - - - - - - set_selector( '.search-modal-fields' ); - $css->add_property( 'display', 'flex' ); - - $css->set_selector( '.gp-search-modal .gp-modal__overlay' ); - $css->add_property( 'align-items', 'flex-start' ); - $css->add_property( 'padding-top', '25vh' ); - $css->add_property( 'background', 'var(--gp-search-modal-overlay-bg-color)' ); - - $css->set_selector( '.search-modal-form' ); - $css->add_property( 'width', '500px' ); - $css->add_property( 'max-width', '100%' ); - $css->add_property( 'background-color', 'var(--gp-search-modal-bg-color)' ); - $css->add_property( 'color', 'var(--gp-search-modal-text-color)' ); - - $css->set_selector( '.search-modal-form .search-field, .search-modal-form .search-field:focus' ); - $css->add_property( 'width', '100%' ); - $css->add_property( 'height', '60px' ); - $css->add_property( 'background-color', 'transparent' ); - $css->add_property( 'border', 0 ); - $css->add_property( 'appearance', 'none' ); - $css->add_property( 'color', 'currentColor' ); - - $css->set_selector( '.search-modal-fields button, .search-modal-fields button:active, .search-modal-fields button:focus, .search-modal-fields button:hover' ); - $css->add_property( 'background-color', 'transparent' ); - $css->add_property( 'border', 0 ); - $css->add_property( 'color', 'currentColor' ); - $css->add_property( 'width', '60px' ); - - return $css; -} - -add_action( 'generate_inside_search_modal', 'generate_do_search_fields' ); -/** - * Add our search fields to the modal. - */ -function generate_do_search_fields() { - ?> - - - - - - post_content, '' ) ); - - $format = ( false !== get_post_format() ) ? get_post_format() : 'standard'; - - $show_excerpt = ( 'excerpt' === generate_get_option( 'post_content' ) ) ? true : false; - - $show_excerpt = ( 'standard' !== $format ) ? false : $show_excerpt; - - $show_excerpt = ( $more_tag ) ? false : $show_excerpt; - - $show_excerpt = ( is_search() ) ? true : $show_excerpt; - - return apply_filters( 'generate_show_excerpt', $show_excerpt ); - } -} - -if ( ! function_exists( 'generate_show_title' ) ) { - /** - * Check to see if we should show our page/post title or not. - * - * @since 1.3.18 - * - * @return bool Whether to show the content title. - */ - function generate_show_title() { - return apply_filters( 'generate_show_title', true ); - } -} - -/** - * Check whether we should display the entry header or not. - * - * @since 3.0.0 - */ -function generate_show_entry_header() { - $show_entry_header = true; - $show_title = generate_show_title(); - $has_before_entry_title = has_action( 'generate_before_entry_title' ); - $has_after_entry_title = has_action( 'generate_after_entry_title' ); - - if ( is_page() ) { - $has_before_entry_title = has_action( 'generate_before_page_title' ); - $has_after_entry_title = has_action( 'generate_after_page_title' ); - } - - if ( ! $show_title && ! $has_before_entry_title && ! $has_after_entry_title ) { - $show_entry_header = false; - } - - return apply_filters( 'generate_show_entry_header', $show_entry_header ); -} - -if ( ! function_exists( 'generate_get_premium_url' ) ) { - /** - * Generate a URL to our premium add-ons. - * Allows the use of a referral ID and campaign. - * - * @since 1.3.42 - * - * @param string $url URL to premium page. - * @param bool $trailing_slash Whether we want to include a trailing slash. - * @return string The URL to generatepress.com. - */ - function generate_get_premium_url( $url = 'https://generatepress.com/premium', $trailing_slash = true ) { - if ( $trailing_slash ) { - $url = trailingslashit( $url ); - } - - $args = apply_filters( - 'generate_premium_url_args', - array( - 'ref' => null, - 'campaign' => null, - ) - ); - - if ( isset( $args['ref'] ) ) { - $url = add_query_arg( 'ref', absint( $args['ref'] ), $url ); - } - - if ( isset( $args['campaign'] ) ) { - $url = add_query_arg( 'campaign', sanitize_text_field( $args['campaign'] ), $url ); - } - - return esc_url( $url ); - } -} - -if ( ! function_exists( 'generate_padding_css' ) ) { - /** - * Shorten our padding/margin values into shorthand form. - * - * @since 0.1 - * - * @param int $top Top spacing. - * @param int $right Right spacing. - * @param int $bottom Bottom spacing. - * @param int $left Left spacing. - * @return string Element spacing values. - */ - function generate_padding_css( $top, $right, $bottom, $left ) { - $padding_top = ( isset( $top ) && '' !== $top ) ? absint( $top ) . 'px ' : '0px '; - $padding_right = ( isset( $right ) && '' !== $right ) ? absint( $right ) . 'px ' : '0px '; - $padding_bottom = ( isset( $bottom ) && '' !== $bottom ) ? absint( $bottom ) . 'px ' : '0px '; - $padding_left = ( isset( $left ) && '' !== $left ) ? absint( $left ) . 'px' : '0px'; - - if ( ( absint( $padding_top ) === absint( $padding_right ) ) && ( absint( $padding_right ) === absint( $padding_bottom ) ) && ( absint( $padding_bottom ) === absint( $padding_left ) ) ) { - return $padding_left; - } - - return $padding_top . $padding_right . $padding_bottom . $padding_left; - } -} - -if ( ! function_exists( 'generate_get_link_url' ) ) { - /** - * Return the post URL. - * - * Falls back to the post permalink if no URL is found in the post. - * - * @since 1.2.5 - * - * @see get_url_in_content() - * @return string The Link format URL. - */ - function generate_get_link_url() { - $has_url = get_url_in_content( get_the_content() ); - - // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Core filter name. - return $has_url ? $has_url : apply_filters( 'the_permalink', get_permalink() ); - } -} - -if ( ! function_exists( 'generate_get_navigation_location' ) ) { - /** - * Get the location of the navigation and filter it. - * - * @since 1.3.41 - * - * @return string The primary menu location. - */ - function generate_get_navigation_location() { - return apply_filters( 'generate_navigation_location', generate_get_option( 'nav_position_setting' ) ); - } -} - -/** - * Check if the logo and site branding are active. - * - * @since 2.3 - */ -function generate_has_logo_site_branding() { - $has_site_title = ! generate_get_option( 'hide_title' ) && get_bloginfo( 'title' ); - $has_site_tagline = ! generate_get_option( 'hide_tagline' ) && get_bloginfo( 'description' ); - - if ( get_theme_mod( 'custom_logo' ) && ( $has_site_title || $has_site_tagline ) ) { - return true; - } - - return false; -} - -/** - * Create SVG icons. - * - * @since 2.3 - * - * @param string $icon The icon to get. - * @param bool $replace Whether we're replacing an icon on action (click). - */ -function generate_get_svg_icon( $icon, $replace = false ) { - if ( 'svg' !== generate_get_option( 'icons' ) ) { - return; - } - - $output = ''; - - if ( 'menu-bars' === $icon ) { - $output = ''; - } - - if ( 'close' === $icon ) { - $output = ''; - } - - if ( 'search' === $icon ) { - $output = ''; - } - - if ( 'categories' === $icon ) { - $output = ''; - } - - if ( 'tags' === $icon ) { - $output = ''; - } - - if ( 'comments' === $icon ) { - $output = ''; - } - - if ( 'arrow' === $icon ) { - $output = ''; - } - - if ( 'arrow-right' === $icon ) { - $output = ''; - } - - if ( 'arrow-left' === $icon ) { - $output = ''; - } - - if ( 'arrow-up' === $icon ) { - $output = ''; - } - - $output = apply_filters( 'generate_svg_icon_element', $output, $icon ); - - if ( $replace ) { - $output .= ''; - } - - $classes = array( - 'gp-icon', - 'icon-' . $icon, - ); - - $output = sprintf( - '%2$s', - implode( ' ', $classes ), - $output - ); - - return apply_filters( 'generate_svg_icon', $output, $icon ); -} - -/** - * Out our icon HTML. - * - * @since 2.3 - * - * @param string $icon The icon to print. - * @param bool $replace Whether to include the close icon to be shown using JS. - */ -function generate_do_svg_icon( $icon, $replace = false ) { - echo generate_get_svg_icon( $icon, $replace ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in function. -} - -/** - * Get our media queries. - * - * @since 2.4 - * - * @param string $name Name of the media query. - * @return string The full media query. - */ -function generate_get_media_query( $name ) { - $desktop = apply_filters( 'generate_desktop_media_query', '(min-width:1025px)' ); - $tablet_only = apply_filters( 'generate_tablet_media_query', '(min-width: 769px) and (max-width: 1024px)' ); - $mobile = apply_filters( 'generate_mobile_media_query', '(max-width:768px)' ); - $mobile_menu = apply_filters( 'generate_mobile_menu_media_query', $mobile ); - - $queries = apply_filters( - 'generate_media_queries', - array( - 'desktop' => $desktop, - 'tablet_only' => $tablet_only, - 'tablet' => '(max-width: 1024px)', - 'mobile' => $mobile, - 'mobile-menu' => $mobile_menu, - ) - ); - - return $queries[ $name ]; -} - -/** - * Display HTML classes for an element. - * - * @since 2.2 - * - * @param string $context The element we're targeting. - * @param string|array $class One or more classes to add to the class list. - */ -function generate_do_element_classes( $context, $class = '' ) { - $after = apply_filters( 'generate_after_element_class_attribute', '', $context ); - - if ( $after ) { - $after = ' ' . $after; - } - - echo 'class="' . join( ' ', generate_get_element_classes( $context, $class ) ) . '"' . $after; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in function. -} - -/** - * Retrieve HTML classes for an element. - * - * @since 2.2 - * - * @param string $context The element we're targeting. - * @param string|array $class One or more classes to add to the class list. - * @return array Array of classes. - */ -function generate_get_element_classes( $context, $class = '' ) { - $classes = array(); - - if ( ! empty( $class ) ) { - if ( ! is_array( $class ) ) { - $class = preg_split( '#\s+#', $class ); - } - - $classes = array_merge( $classes, $class ); - } - - $classes = array_map( 'esc_attr', $classes ); - - return apply_filters( "generate_{$context}_class", $classes, $class ); -} - -/** - * Get the kind of schema we're using. - * - * @since 3.0.0 - */ -function generate_get_schema_type() { - return apply_filters( 'generate_schema_type', 'microdata' ); -} - -/** - * Get any necessary microdata. - * - * @since 2.2 - * - * @param string $context The element to target. - * @return string Our final attribute to add to the element. - */ -function generate_get_microdata( $context ) { - $data = false; - - if ( 'microdata' !== generate_get_schema_type() ) { - return false; - } - - if ( 'body' === $context ) { - $type = 'WebPage'; - - if ( is_home() || is_archive() || is_attachment() || is_tax() || is_single() ) { - $type = 'Blog'; - } - - if ( is_search() ) { - $type = 'SearchResultsPage'; - } - - $type = apply_filters( 'generate_body_itemtype', $type ); - - $data = sprintf( - 'itemtype="https://schema.org/%s" itemscope', - esc_html( $type ) - ); - } - - if ( 'header' === $context ) { - $data = 'itemtype="https://schema.org/WPHeader" itemscope'; - } - - if ( 'navigation' === $context ) { - $data = 'itemtype="https://schema.org/SiteNavigationElement" itemscope'; - } - - if ( 'article' === $context ) { - $type = apply_filters( 'generate_article_itemtype', 'CreativeWork' ); - - $data = sprintf( - 'itemtype="https://schema.org/%s" itemscope', - esc_html( $type ) - ); - } - - if ( 'post-author' === $context ) { - $data = 'itemprop="author" itemtype="https://schema.org/Person" itemscope'; - } - - if ( 'comment-body' === $context ) { - $data = 'itemtype="https://schema.org/Comment" itemscope'; - } - - if ( 'comment-author' === $context ) { - $data = 'itemprop="author" itemtype="https://schema.org/Person" itemscope'; - } - - if ( 'sidebar' === $context ) { - $data = 'itemtype="https://schema.org/WPSideBar" itemscope'; - } - - if ( 'footer' === $context ) { - $data = 'itemtype="https://schema.org/WPFooter" itemscope'; - } - - if ( $data ) { - return apply_filters( "generate_{$context}_microdata", $data ); - } -} - -/** - * Output our microdata for an element. - * - * @since 2.2 - * - * @param string $context The element to target. - */ -function generate_do_microdata( $context ) { - echo generate_get_microdata( $context ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in function. -} - -/** - * Whether to print hAtom output or not. - * - * @since 3.0.0 - */ -function generate_is_using_hatom() { - return apply_filters( 'generate_is_using_hatom', true ); -} - -/** - * Check whether we're using the Flexbox structure. - * - * @since 3.0.0 - */ -function generate_is_using_flexbox() { - // No flexbox for old versions of GPP. - if ( defined( 'GP_PREMIUM_VERSION' ) && version_compare( GP_PREMIUM_VERSION, '1.11.0-alpha.1', '<' ) ) { - return false; - } - - return 'flexbox' === generate_get_option( 'structure' ); -} - -/** - * Check if we have any menu bar items. - * - * @since 3.0.0 - */ -function generate_has_menu_bar_items() { - return has_action( 'generate_menu_bar_items' ); -} - -/** - * Check if we should include the default template part. - * - * @since 3.0.0 - * @param string $template The template to get. - */ -function generate_do_template_part( $template ) { - /** - * generate_before_do_template_part hook. - * - * @since 3.0.0 - * @param string $template The template. - */ - do_action( 'generate_before_do_template_part', $template ); - - if ( apply_filters( 'generate_do_template_part', true, $template ) ) { - if ( 'archive' === $template || 'index' === $template ) { - get_template_part( 'content', get_post_format() ); - } elseif ( 'none' === $template ) { - get_template_part( 'no-results' ); - } else { - get_template_part( 'content', $template ); - } - } - - /** - * generate_after_do_template_parts hook. - * - * @since 3.0.0 - * @param string $template The template. - */ - do_action( 'generate_after_do_template_part', $template ); -} - -/** - * Check if we should use inline mobile navigation. - * - * @since 3.0.0 - */ -function generate_has_inline_mobile_toggle() { - $has_inline_mobile_toggle = generate_is_using_flexbox() && ( 'nav-float-right' === generate_get_navigation_location() || 'nav-float-left' === generate_get_navigation_location() ); - - return apply_filters( 'generate_has_inline_mobile_toggle', $has_inline_mobile_toggle ); -} - -/** - * Build our the_title() parameters. - * - * @since 3.0.0 - */ -function generate_get_the_title_parameters() { - $params = array( - 'before' => sprintf( - '

    ', - 'microdata' === generate_get_schema_type() ? ' itemprop="headline"' : '' - ), - 'after' => '

    ', - ); - - if ( ! is_singular() ) { - $params = array( - 'before' => sprintf( - '

    ', - esc_url( get_permalink() ), - 'microdata' === generate_get_schema_type() ? ' itemprop="headline"' : '' - ), - 'after' => '

    ', - ); - } - - if ( 'link' === get_post_format() ) { - $params = array( - 'before' => sprintf( - '

    ', - esc_url( generate_get_link_url() ), - 'microdata' === generate_get_schema_type() ? ' itemprop="headline"' : '' - ), - 'after' => '

    ', - ); - } - - return apply_filters( 'generate_get_the_title_parameters', $params ); -} - -/** - * Check whether we should display the default loop or not. - * - * @since 3.0.0 - */ -function generate_has_default_loop() { - return apply_filters( 'generate_has_default_loop', true ); -} - -/** - * Detemine whether to output site branding container. - * - * @since 3.0.0 - */ -function generate_needs_site_branding_container() { - $container = false; - - if ( generate_has_logo_site_branding() ) { - if ( generate_is_using_flexbox() || generate_get_option( 'inline_logo_site_branding' ) ) { - $container = true; - } - } - - return $container; -} - -/** - * Merge array of attributes with defaults, and apply contextual filter on array. - * - * The contextual filter is of the form `generate_attr_{context}`. - * - * @since 3.1.0 - * - * @param string $context The context, to build filter name. - * @param array $attributes Optional. Extra attributes to merge with defaults. - * @param array $settings Optional. Custom data to pass to filter. - * @return array Merged and filtered attributes. - */ -function generate_parse_attr( $context, $attributes = array(), $settings = array() ) { - // Initialize an empty class attribute so it's easier to append to in filters. - if ( ! isset( $attributes['class'] ) ) { - $attributes['class'] = ''; - } - - // We used to have a class-only system. If it's in use, add the classes. - $classes = generate_get_element_classes( $context ); - - if ( $classes ) { - $attributes['class'] .= join( ' ', $classes ); - } - - // Contextual filter. - return apply_filters( 'generate_parse_attr', $attributes, $context, $settings ); -} - -/** - * Build list of attributes into a string and apply contextual filter on string. - * - * The contextual filter is of the form `generate_attr_{context}_output`. - * - * @since 3.1.0 - * - * @param string $context The context, to build filter name. - * @param array $attributes Optional. Extra attributes to merge with defaults. - * @param array $settings Optional. Custom data to pass to filter. - * @return string String of HTML attributes and values. - */ -function generate_get_attr( $context, $attributes = array(), $settings = array() ) { - $attributes = generate_parse_attr( $context, $attributes, $settings ); - - $output = ''; - - // Cycle through attributes, build tag attribute string. - foreach ( $attributes as $key => $value ) { - if ( ! $value ) { - continue; - } - - // Remove any whitespace at the start or end of our classes. - if ( 'class' === $key ) { - $value = trim( $value ); - } - - if ( true === $value ) { - $output .= esc_html( $key ) . ' '; - } else { - $output .= sprintf( '%s="%s" ', esc_html( $key ), esc_attr( $value ) ); - } - } - - // Before this function existed we had the below to add attributes after the class attribute. - $after = apply_filters( 'generate_after_element_class_attribute', '', $context ); - - if ( $after ) { - $after = ' ' . $after; - } - - $output .= $after; - - $output = apply_filters( 'generate_get_attr_output', $output, $attributes, $context, $settings ); - - return trim( $output ); -} - -/** - * Output our string of HTML attributes. - * - * @since 3.1.0 - * - * @param string $context The context, to build filter name. - * @param array $attributes Optional. Extra attributes to merge with defaults. - * @param array $settings Optional. Custom data to pass to filter. - */ -function generate_do_attr( $context, $attributes = array(), $settings = array() ) { - echo generate_get_attr( $context, $attributes, $settings ); // phpcs:ignore -- Escaping done in function. -} - -/** - * Build our editor color palette based on our global colors. - * - * @since 3.1.0 - */ -function generate_get_editor_color_palette() { - $global_colors = generate_get_option( 'global_colors' ); - $editor_palette = array(); - $static_colors = false; - - if ( apply_filters( 'generate_color_palette_use_static_colors', false ) ) { - $static_colors = true; - } - - if ( ! empty( $global_colors ) ) { - foreach ( (array) $global_colors as $key => $data ) { - $editor_palette[] = array( - 'name' => $data['name'], - 'slug' => $data['slug'], - 'color' => $static_colors ? $data['color'] : 'var(--' . $data['slug'] . ')', - ); - } - } - - return $editor_palette; -} - -/** - * Get our global colors. - * - * @since 3.1.0 - */ -function generate_get_global_colors() { - $global_colors = generate_get_option( 'global_colors' ); - $colors = array(); - - if ( ! empty( $global_colors ) ) { - foreach ( (array) $global_colors as $key => $data ) { - $colors[] = array( - 'slug' => $data['slug'], - 'color' => $data['color'], - ); - } - } - - return $colors; -} - -/** - * Get our system default font. - * - * @since 3.1.0 - */ -function generate_get_system_default_font() { - return apply_filters( 'generate_typography_system_stack', '-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' ); -} - -/** - * Check to see if we have a GP menu active. - * This is primarily used to know whether we need to enqueue menu.js or not. - * - * @since 3.1.0 - */ -function generate_has_active_menu() { - $has_active_menu = true; - - if ( ! generate_get_navigation_location() ) { - $has_active_menu = false; - } - - return apply_filters( 'generate_has_active_menu', $has_active_menu ); -} - -/** - * Check to see if we're using dynamic typography. - * - * @since 3.1.0 - */ -function generate_is_using_dynamic_typography() { - return generate_get_option( 'use_dynamic_typography' ); -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/inc/typography.php b/wp-content/upgrade-temp-backup/themes/generatepress/inc/typography.php deleted file mode 100644 index e86aacba..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/typography.php +++ /dev/null @@ -1,1144 +0,0 @@ -register_control_type( 'Generate_Typography_Customize_Control' ); - $wp_customize->register_control_type( 'Generate_Range_Slider_Control' ); - } - - $wp_customize->add_section( - 'font_section', - array( - 'title' => __( 'Typography', 'generatepress' ), - 'capability' => 'edit_theme_options', - 'priority' => 30, - 'active_callback' => function() { - if ( generate_is_using_dynamic_typography() ) { - return false; - } - - return true; - }, - ) - ); - - $wp_customize->add_setting( - 'generate_settings[font_body]', - array( - 'default' => $defaults['font_body'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_text_field', - ) - ); - - $wp_customize->add_setting( - 'font_body_category', - array( - 'default' => $defaults['font_body_category'], - 'sanitize_callback' => 'sanitize_text_field', - ) - ); - - $wp_customize->add_setting( - 'font_body_variants', - array( - 'default' => $defaults['font_body_variants'], - 'sanitize_callback' => 'generate_sanitize_variants', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[body_font_weight]', - array( - 'default' => $defaults['body_font_weight'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_key', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[body_font_transform]', - array( - 'default' => $defaults['body_font_transform'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_key', - 'transport' => 'postMessage', - - ) - ); - - $wp_customize->add_control( - new Generate_Typography_Customize_Control( - $wp_customize, - 'body_typography', - array( - 'label' => __( 'Body', 'generatepress' ), - 'section' => 'font_section', - 'priority' => 1, - 'settings' => array( - 'family' => 'generate_settings[font_body]', - 'variant' => 'font_body_variants', - 'category' => 'font_body_category', - 'weight' => 'generate_settings[body_font_weight]', - 'transform' => 'generate_settings[body_font_transform]', - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[body_font_size]', - array( - 'default' => $defaults['body_font_size'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_integer', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[body_font_size]', - array( - 'type' => 'generatepress-range-slider', - 'description' => __( 'Font size', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[body_font_size]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 6, - 'max' => 25, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[body_line_height]', - array( - 'default' => $defaults['body_line_height'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_decimal_integer', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[body_line_height]', - array( - 'type' => 'generatepress-range-slider', - 'description' => __( 'Line height', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[body_line_height]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 1, - 'max' => 3, - 'step' => .1, - 'edit' => true, - 'unit' => '', - ), - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[paragraph_margin]', - array( - 'default' => $defaults['paragraph_margin'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_decimal_integer', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[paragraph_margin]', - array( - 'type' => 'generatepress-range-slider', - 'description' => __( 'Paragraph margin', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[paragraph_margin]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 0, - 'max' => 5, - 'step' => .1, - 'edit' => true, - 'unit' => 'em', - ), - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[font_heading_1]', - array( - 'default' => $defaults['font_heading_1'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_text_field', - ) - ); - - $wp_customize->add_setting( - 'font_heading_1_category', - array( - 'default' => '', - 'sanitize_callback' => 'sanitize_text_field', - ) - ); - - $wp_customize->add_setting( - 'font_heading_1_variants', - array( - 'default' => '', - 'sanitize_callback' => 'generate_sanitize_variants', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_1_weight]', - array( - 'default' => $defaults['heading_1_weight'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_key', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_1_transform]', - array( - 'default' => $defaults['heading_1_transform'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_key', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Typography_Customize_Control( - $wp_customize, - 'font_heading_1_control', - array( - 'label' => __( 'Heading 1 (H1)', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'family' => 'generate_settings[font_heading_1]', - 'variant' => 'font_heading_1_variants', - 'category' => 'font_heading_1_category', - 'weight' => 'generate_settings[heading_1_weight]', - 'transform' => 'generate_settings[heading_1_transform]', - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_1_font_size]', - array( - 'default' => $defaults['heading_1_font_size'], - 'type' => 'option', - 'sanitize_callback' => 'absint', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[mobile_heading_1_font_size]', - array( - 'default' => $defaults['mobile_heading_1_font_size'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_empty_absint', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'h1_font_sizes', - array( - 'description' => __( 'Font size', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_1_font_size]', - 'mobile' => 'generate_settings[mobile_heading_1_font_size]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 15, - 'max' => 100, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - 'mobile' => array( - 'min' => 15, - 'max' => 100, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_1_line_height]', - array( - 'default' => $defaults['heading_1_line_height'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_decimal_integer', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[heading_1_line_height]', - array( - 'description' => __( 'Line height', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_1_line_height]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 0, - 'max' => 5, - 'step' => .1, - 'edit' => true, - 'unit' => 'em', - ), - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[font_heading_2]', - array( - 'default' => $defaults['font_heading_2'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_text_field', - ) - ); - - $wp_customize->add_setting( - 'font_heading_2_category', - array( - 'default' => '', - 'sanitize_callback' => 'sanitize_text_field', - ) - ); - - $wp_customize->add_setting( - 'font_heading_2_variants', - array( - 'default' => '', - 'sanitize_callback' => 'generate_sanitize_variants', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_2_weight]', - array( - 'default' => $defaults['heading_2_weight'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_key', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_2_transform]', - array( - 'default' => $defaults['heading_2_transform'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_key', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Typography_Customize_Control( - $wp_customize, - 'font_heading_2_control', - array( - 'label' => __( 'Heading 2 (H2)', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'family' => 'generate_settings[font_heading_2]', - 'variant' => 'font_heading_2_variants', - 'category' => 'font_heading_2_category', - 'weight' => 'generate_settings[heading_2_weight]', - 'transform' => 'generate_settings[heading_2_transform]', - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_2_font_size]', - array( - 'default' => $defaults['heading_2_font_size'], - 'type' => 'option', - 'sanitize_callback' => 'absint', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[mobile_heading_2_font_size]', - array( - 'default' => $defaults['mobile_heading_2_font_size'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_empty_absint', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'h2_font_sizes', - array( - 'description' => __( 'Font size', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_2_font_size]', - 'mobile' => 'generate_settings[mobile_heading_2_font_size]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 10, - 'max' => 80, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - 'mobile' => array( - 'min' => 10, - 'max' => 80, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_2_line_height]', - array( - 'default' => $defaults['heading_2_line_height'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_decimal_integer', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[heading_2_line_height]', - array( - 'description' => __( 'Line height', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_2_line_height]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 0, - 'max' => 5, - 'step' => .1, - 'edit' => true, - 'unit' => 'em', - ), - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[font_heading_3]', - array( - 'default' => $defaults['font_heading_3'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_text_field', - ) - ); - - $wp_customize->add_setting( - 'font_heading_3_category', - array( - 'default' => '', - 'sanitize_callback' => 'sanitize_text_field', - ) - ); - - $wp_customize->add_setting( - 'font_heading_3_variants', - array( - 'default' => '', - 'sanitize_callback' => 'generate_sanitize_variants', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_3_weight]', - array( - 'default' => $defaults['heading_3_weight'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_key', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_3_transform]', - array( - 'default' => $defaults['heading_3_transform'], - 'type' => 'option', - 'sanitize_callback' => 'sanitize_key', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Typography_Customize_Control( - $wp_customize, - 'font_heading_3_control', - array( - 'label' => __( 'Heading 3 (H3)', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'family' => 'generate_settings[font_heading_3]', - 'variant' => 'font_heading_3_variants', - 'category' => 'font_heading_3_category', - 'weight' => 'generate_settings[heading_3_weight]', - 'transform' => 'generate_settings[heading_3_transform]', - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_3_font_size]', - array( - 'default' => $defaults['heading_3_font_size'], - 'type' => 'option', - 'sanitize_callback' => 'absint', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'h3_font_sizes', - array( - 'description' => __( 'Font size', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_3_font_size]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 10, - 'max' => 80, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - ), - ) - ) - ); - - $wp_customize->add_setting( - 'generate_settings[heading_3_line_height]', - array( - 'default' => $defaults['heading_3_line_height'], - 'type' => 'option', - 'sanitize_callback' => 'generate_sanitize_decimal_integer', - 'transport' => 'postMessage', - ) - ); - - $wp_customize->add_control( - new Generate_Range_Slider_Control( - $wp_customize, - 'generate_settings[heading_3_line_height]', - array( - 'description' => __( 'Line height', 'generatepress' ), - 'section' => 'font_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_3_line_height]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 0, - 'max' => 5, - 'step' => .1, - 'edit' => true, - 'unit' => 'em', - ), - ), - ) - ) - ); - - if ( ! function_exists( 'generate_fonts_customize_register' ) && ! defined( 'GP_PREMIUM_VERSION' ) ) { - $wp_customize->add_control( - new Generate_Customize_Misc_Control( - $wp_customize, - 'typography_get_addon_desc', - array( - 'section' => 'font_section', - 'type' => 'addon', - 'label' => __( 'Learn more', 'generatepress' ), - 'description' => __( 'More options are available for this section in our premium version.', 'generatepress' ), - 'url' => generate_get_premium_url( 'https://generatepress.com/premium/#typography', false ), - 'priority' => 50, - 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', - ) - ) - ); - } - } -} - -if ( ! function_exists( 'generate_get_all_google_fonts' ) ) { - /** - * Return an array of all of our Google Fonts. - * - * @since 1.3.0 - * @param string $amount How many fonts to return. - * @return array The list of Google Fonts. - */ - function generate_get_all_google_fonts( $amount = 'all' ) { - // Our big list Google Fonts. - // We use json_decode to reduce PHP memory usage. - // Adding them as a PHP array seems to use quite a bit more memory. - $content = json_decode( '[{"family":"Roboto","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"]},{"family":"Open Sans","category":"sans-serif","variants":["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"]},{"family":"Lato","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"]},{"family":"Slabo 27px","category":"serif","variants":["regular"]},{"family":"Oswald","category":"sans-serif","variants":["200","300","regular","500","600","700"]},{"family":"Roboto Condensed","category":"sans-serif","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Source Sans Pro","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"]},{"family":"Montserrat","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Raleway","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"PT Sans","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Roboto Slab","category":"serif","variants":["100","300","regular","700"]},{"family":"Merriweather","category":"serif","variants":["300","300italic","regular","italic","700","700italic","900","900italic"]},{"family":"Open Sans Condensed","category":"sans-serif","variants":["300","300italic","700"]},{"family":"Droid Sans","category":"sans-serif","variants":["regular","700"]},{"family":"Lora","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Ubuntu","category":"sans-serif","variants":["300","300italic","regular","italic","500","500italic","700","700italic"]},{"family":"Droid Serif","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Playfair Display","category":"serif","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Arimo","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Noto Sans","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"PT Serif","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Titillium Web","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"]},{"family":"PT Sans Narrow","category":"sans-serif","variants":["regular","700"]},{"family":"Muli","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Indie Flower","category":"handwriting","variants":["regular"]},{"family":"Bitter","category":"serif","variants":["regular","italic","700"]},{"family":"Poppins","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Inconsolata","category":"monospace","variants":["regular","700"]},{"family":"Dosis","category":"sans-serif","variants":["200","300","regular","500","600","700","800"]},{"family":"Fjalla One","category":"sans-serif","variants":["regular"]},{"family":"Oxygen","category":"sans-serif","variants":["300","regular","700"]},{"family":"Hind","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Cabin","category":"sans-serif","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Anton","category":"sans-serif","variants":["regular"]},{"family":"Arvo","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Noto Serif","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Crimson Text","category":"serif","variants":["regular","italic","600","600italic","700","700italic"]},{"family":"Lobster","category":"display","variants":["regular"]},{"family":"Yanone Kaffeesatz","category":"sans-serif","variants":["200","300","regular","700"]},{"family":"Nunito","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Bree Serif","category":"serif","variants":["regular"]},{"family":"Catamaran","category":"sans-serif","variants":["100","200","300","regular","500","600","700","800","900"]},{"family":"Libre Baskerville","category":"serif","variants":["regular","italic","700"]},{"family":"Abel","category":"sans-serif","variants":["regular"]},{"family":"Josefin Sans","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"]},{"family":"Fira Sans","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Gloria Hallelujah","category":"handwriting","variants":["regular"]},{"family":"Abril Fatface","category":"display","variants":["regular"]},{"family":"Exo 2","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Merriweather Sans","category":"sans-serif","variants":["300","300italic","regular","italic","700","700italic","800","800italic"]},{"family":"Pacifico","category":"handwriting","variants":["regular"]},{"family":"Roboto Mono","category":"monospace","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"]},{"family":"Varela Round","category":"sans-serif","variants":["regular"]},{"family":"Asap","category":"sans-serif","variants":["regular","italic","500","500italic","700","700italic"]},{"family":"Amatic SC","category":"handwriting","variants":["regular","700"]},{"family":"Quicksand","category":"sans-serif","variants":["300","regular","500","700"]},{"family":"Karla","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Ubuntu Condensed","category":"sans-serif","variants":["regular"]},{"family":"Signika","category":"sans-serif","variants":["300","regular","600","700"]},{"family":"Alegreya","category":"serif","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Questrial","category":"sans-serif","variants":["regular"]},{"family":"Rubik","category":"sans-serif","variants":["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"]},{"family":"Shadows Into Light","category":"handwriting","variants":["regular"]},{"family":"PT Sans Caption","category":"sans-serif","variants":["regular","700"]},{"family":"Archivo Narrow","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Play","category":"sans-serif","variants":["regular","700"]},{"family":"Cuprum","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Dancing Script","category":"handwriting","variants":["regular","700"]},{"family":"Rokkitt","category":"serif","variants":["100","200","300","regular","500","600","700","800","900"]},{"family":"Work Sans","category":"sans-serif","variants":["100","200","300","regular","500","600","700","800","900"]},{"family":"Francois One","category":"sans-serif","variants":["regular"]},{"family":"Vollkorn","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Source Code Pro","category":"monospace","variants":["200","300","regular","500","600","700","900"]},{"family":"Exo","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Maven Pro","category":"sans-serif","variants":["regular","500","700","900"]},{"family":"Architects Daughter","category":"handwriting","variants":["regular"]},{"family":"Orbitron","category":"sans-serif","variants":["regular","500","700","900"]},{"family":"Pathway Gothic One","category":"sans-serif","variants":["regular"]},{"family":"Acme","category":"sans-serif","variants":["regular"]},{"family":"Ropa Sans","category":"sans-serif","variants":["regular","italic"]},{"family":"Patua One","category":"display","variants":["regular"]},{"family":"EB Garamond","category":"serif","variants":["regular"]},{"family":"Lobster Two","category":"display","variants":["regular","italic","700","700italic"]},{"family":"Crete Round","category":"serif","variants":["regular","italic"]},{"family":"Cinzel","category":"serif","variants":["regular","700","900"]},{"family":"Josefin Slab","category":"serif","variants":["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"]},{"family":"Source Serif Pro","category":"serif","variants":["regular","600","700"]},{"family":"Alegreya Sans","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},{"family":"Comfortaa","category":"display","variants":["300","regular","700"]},{"family":"Russo One","category":"sans-serif","variants":["regular"]},{"family":"News Cycle","category":"sans-serif","variants":["regular","700"]},{"family":"ABeeZee","category":"sans-serif","variants":["regular","italic"]},{"family":"Yellowtail","category":"handwriting","variants":["regular"]},{"family":"Noticia Text","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Monda","category":"sans-serif","variants":["regular","700"]},{"family":"Quattrocento Sans","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Hammersmith One","category":"sans-serif","variants":["regular"]},{"family":"Libre Franklin","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Satisfy","category":"handwriting","variants":["regular"]},{"family":"Pontano Sans","category":"sans-serif","variants":["regular"]},{"family":"Righteous","category":"display","variants":["regular"]},{"family":"Poiret One","category":"display","variants":["regular"]},{"family":"BenchNine","category":"sans-serif","variants":["300","regular","700"]},{"family":"Arapey","category":"serif","variants":["regular","italic"]},{"family":"Kaushan Script","category":"handwriting","variants":["regular"]},{"family":"Economica","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Kanit","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Old Standard TT","category":"serif","variants":["regular","italic","700"]},{"family":"Sanchez","category":"serif","variants":["regular","italic"]},{"family":"Courgette","category":"handwriting","variants":["regular"]},{"family":"Quattrocento","category":"serif","variants":["regular","700"]},{"family":"Domine","category":"serif","variants":["regular","700"]},{"family":"Gudea","category":"sans-serif","variants":["regular","italic","700"]},{"family":"Permanent Marker","category":"handwriting","variants":["regular"]},{"family":"Armata","category":"sans-serif","variants":["regular"]},{"family":"Cantarell","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Archivo Black","category":"sans-serif","variants":["regular"]},{"family":"Istok Web","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Cardo","category":"serif","variants":["regular","italic","700"]},{"family":"Playfair Display SC","category":"serif","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Passion One","category":"display","variants":["regular","700","900"]},{"family":"Tinos","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Cookie","category":"handwriting","variants":["regular"]},{"family":"Cormorant Garamond","category":"serif","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Philosopher","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Yantramanav","category":"sans-serif","variants":["100","300","regular","500","700","900"]},{"family":"Chewy","category":"display","variants":["regular"]},{"family":"Antic Slab","category":"serif","variants":["regular"]},{"family":"Handlee","category":"handwriting","variants":["regular"]},{"family":"Teko","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Boogaloo","category":"display","variants":["regular"]},{"family":"Vidaloka","category":"serif","variants":["regular"]},{"family":"Audiowide","category":"display","variants":["regular"]},{"family":"Coming Soon","category":"handwriting","variants":["regular"]},{"family":"Alfa Slab One","category":"display","variants":["regular"]},{"family":"Cabin Condensed","category":"sans-serif","variants":["regular","500","600","700"]},{"family":"Ruda","category":"sans-serif","variants":["regular","700","900"]},{"family":"Ek Mukta","category":"sans-serif","variants":["200","300","regular","500","600","700","800"]},{"family":"Changa One","category":"display","variants":["regular","italic"]},{"family":"Tangerine","category":"handwriting","variants":["regular","700"]},{"family":"Great Vibes","category":"handwriting","variants":["regular"]},{"family":"Sintony","category":"sans-serif","variants":["regular","700"]},{"family":"Khand","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Bevan","category":"display","variants":["regular"]},{"family":"Kalam","category":"handwriting","variants":["300","regular","700"]},{"family":"Days One","category":"sans-serif","variants":["regular"]},{"family":"Bangers","category":"display","variants":["regular"]},{"family":"Rajdhani","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Droid Sans Mono","category":"monospace","variants":["regular"]},{"family":"Kreon","category":"serif","variants":["300","regular","700"]},{"family":"Rambla","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Shrikhand","category":"display","variants":["regular"]},{"family":"Fredoka One","category":"display","variants":["regular"]},{"family":"Shadows Into Light Two","category":"handwriting","variants":["regular"]},{"family":"Playball","category":"display","variants":["regular"]},{"family":"Neuton","category":"serif","variants":["200","300","regular","italic","700","800"]},{"family":"Copse","category":"serif","variants":["regular"]},{"family":"Didact Gothic","category":"sans-serif","variants":["regular"]},{"family":"Signika Negative","category":"sans-serif","variants":["300","regular","600","700"]},{"family":"Amiri","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Gentium Book Basic","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Glegoo","category":"serif","variants":["regular","700"]},{"family":"Oleo Script","category":"display","variants":["regular","700"]},{"family":"Voltaire","category":"sans-serif","variants":["regular"]},{"family":"Actor","category":"sans-serif","variants":["regular"]},{"family":"Amaranth","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Paytone One","category":"sans-serif","variants":["regular"]},{"family":"Volkhov","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Sorts Mill Goudy","category":"serif","variants":["regular","italic"]},{"family":"Bad Script","category":"handwriting","variants":["regular"]},{"family":"Coda","category":"display","variants":["regular","800"]},{"family":"Damion","category":"handwriting","variants":["regular"]},{"family":"Sacramento","category":"handwriting","variants":["regular"]},{"family":"Squada One","category":"display","variants":["regular"]},{"family":"Rock Salt","category":"handwriting","variants":["regular"]},{"family":"Adamina","category":"serif","variants":["regular"]},{"family":"Alice","category":"serif","variants":["regular"]},{"family":"Cantata One","category":"serif","variants":["regular"]},{"family":"Luckiest Guy","category":"display","variants":["regular"]},{"family":"Rochester","category":"handwriting","variants":["regular"]},{"family":"Covered By Your Grace","category":"handwriting","variants":["regular"]},{"family":"Heebo","category":"sans-serif","variants":["100","300","regular","500","700","800","900"]},{"family":"VT323","category":"monospace","variants":["regular"]},{"family":"Nothing You Could Do","category":"handwriting","variants":["regular"]},{"family":"Patrick Hand","category":"handwriting","variants":["regular"]},{"family":"Gentium Basic","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Nobile","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Rancho","category":"handwriting","variants":["regular"]},{"family":"Marck Script","category":"handwriting","variants":["regular"]},{"family":"Special Elite","category":"display","variants":["regular"]},{"family":"Julius Sans One","category":"sans-serif","variants":["regular"]},{"family":"Varela","category":"sans-serif","variants":["regular"]},{"family":"PT Mono","category":"monospace","variants":["regular"]},{"family":"Alex Brush","category":"handwriting","variants":["regular"]},{"family":"Homemade Apple","category":"handwriting","variants":["regular"]},{"family":"Scada","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Jura","category":"sans-serif","variants":["300","regular","500","600"]},{"family":"Antic","category":"sans-serif","variants":["regular"]},{"family":"Gochi Hand","category":"handwriting","variants":["regular"]},{"family":"Sarala","category":"sans-serif","variants":["regular","700"]},{"family":"Electrolize","category":"sans-serif","variants":["regular"]},{"family":"Sigmar One","category":"display","variants":["regular"]},{"family":"Candal","category":"sans-serif","variants":["regular"]},{"family":"Prata","category":"serif","variants":["regular"]},{"family":"Homenaje","category":"sans-serif","variants":["regular"]},{"family":"Pinyon Script","category":"handwriting","variants":["regular"]},{"family":"Unica One","category":"display","variants":["regular"]},{"family":"Basic","category":"sans-serif","variants":["regular"]},{"family":"Neucha","category":"handwriting","variants":["regular"]},{"family":"Convergence","category":"sans-serif","variants":["regular"]},{"family":"Molengo","category":"sans-serif","variants":["regular"]},{"family":"Caveat Brush","category":"handwriting","variants":["regular"]},{"family":"Monoton","category":"display","variants":["regular"]},{"family":"Calligraffitti","category":"handwriting","variants":["regular"]},{"family":"Kameron","category":"serif","variants":["regular","700"]},{"family":"Share","category":"display","variants":["regular","italic","700","700italic"]},{"family":"Alegreya Sans SC","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},{"family":"Enriqueta","category":"serif","variants":["regular","700"]},{"family":"Martel","category":"serif","variants":["200","300","regular","600","700","800","900"]},{"family":"Black Ops One","category":"display","variants":["regular"]},{"family":"Just Another Hand","category":"handwriting","variants":["regular"]},{"family":"Caveat","category":"handwriting","variants":["regular","700"]},{"family":"PT Serif Caption","category":"serif","variants":["regular","italic"]},{"family":"Ultra","category":"serif","variants":["regular"]},{"family":"Ubuntu Mono","category":"monospace","variants":["regular","italic","700","700italic"]},{"family":"Carme","category":"sans-serif","variants":["regular"]},{"family":"Cousine","category":"monospace","variants":["regular","italic","700","700italic"]},{"family":"Cherry Cream Soda","category":"display","variants":["regular"]},{"family":"Reenie Beanie","category":"handwriting","variants":["regular"]},{"family":"Hind Siliguri","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Bubblegum Sans","category":"display","variants":["regular"]},{"family":"Aldrich","category":"sans-serif","variants":["regular"]},{"family":"Lustria","category":"serif","variants":["regular"]},{"family":"Alef","category":"sans-serif","variants":["regular","700"]},{"family":"Freckle Face","category":"display","variants":["regular"]},{"family":"Fanwood Text","category":"serif","variants":["regular","italic"]},{"family":"Advent Pro","category":"sans-serif","variants":["100","200","300","regular","500","600","700"]},{"family":"Allura","category":"handwriting","variants":["regular"]},{"family":"Ceviche One","category":"display","variants":["regular"]},{"family":"Press Start 2P","category":"display","variants":["regular"]},{"family":"Overlock","category":"display","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Niconne","category":"handwriting","variants":["regular"]},{"family":"Limelight","category":"display","variants":["regular"]},{"family":"Frank Ruhl Libre","category":"sans-serif","variants":["300","regular","500","700","900"]},{"family":"Allerta Stencil","category":"sans-serif","variants":["regular"]},{"family":"Marcellus","category":"serif","variants":["regular"]},{"family":"Pragati Narrow","category":"sans-serif","variants":["regular","700"]},{"family":"Michroma","category":"sans-serif","variants":["regular"]},{"family":"Fauna One","category":"serif","variants":["regular"]},{"family":"Syncopate","category":"sans-serif","variants":["regular","700"]},{"family":"Telex","category":"sans-serif","variants":["regular"]},{"family":"Marvel","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Cabin Sketch","category":"display","variants":["regular","700"]},{"family":"Hanuman","category":"serif","variants":["regular","700"]},{"family":"Cairo","category":"sans-serif","variants":["200","300","regular","600","700","900"]},{"family":"Chivo","category":"sans-serif","variants":["300","300italic","regular","italic","700","700italic","900","900italic"]},{"family":"Allerta","category":"sans-serif","variants":["regular"]},{"family":"Fugaz One","category":"display","variants":["regular"]},{"family":"Viga","category":"sans-serif","variants":["regular"]},{"family":"Ruslan Display","category":"display","variants":["regular"]},{"family":"Nixie One","category":"display","variants":["regular"]},{"family":"Marmelad","category":"sans-serif","variants":["regular"]},{"family":"Average","category":"serif","variants":["regular"]},{"family":"Spinnaker","category":"sans-serif","variants":["regular"]},{"family":"Leckerli One","category":"handwriting","variants":["regular"]},{"family":"Judson","category":"serif","variants":["regular","italic","700"]},{"family":"Lusitana","category":"serif","variants":["regular","700"]},{"family":"Montserrat Alternates","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Contrail One","category":"display","variants":["regular"]},{"family":"Oranienbaum","category":"serif","variants":["regular"]},{"family":"Hind Vadodara","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Rufina","category":"serif","variants":["regular","700"]},{"family":"Quantico","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Concert One","category":"display","variants":["regular"]},{"family":"Marcellus SC","category":"serif","variants":["regular"]},{"family":"Jockey One","category":"sans-serif","variants":["regular"]},{"family":"Parisienne","category":"handwriting","variants":["regular"]},{"family":"Carter One","category":"display","variants":["regular"]},{"family":"Arbutus Slab","category":"serif","variants":["regular"]},{"family":"Slabo 13px","category":"serif","variants":["regular"]},{"family":"Tauri","category":"sans-serif","variants":["regular"]},{"family":"Goudy Bookletter 1911","category":"serif","variants":["regular"]},{"family":"Carrois Gothic","category":"sans-serif","variants":["regular"]},{"family":"Sue Ellen Francisco","category":"handwriting","variants":["regular"]},{"family":"Walter Turncoat","category":"handwriting","variants":["regular"]},{"family":"Annie Use Your Telescope","category":"handwriting","variants":["regular"]},{"family":"Puritan","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Grand Hotel","category":"handwriting","variants":["regular"]},{"family":"Yesteryear","category":"handwriting","variants":["regular"]},{"family":"Jaldi","category":"sans-serif","variants":["regular","700"]},{"family":"Khula","category":"sans-serif","variants":["300","regular","600","700","800"]},{"family":"Cinzel Decorative","category":"display","variants":["regular","700","900"]},{"family":"Crafty Girls","category":"handwriting","variants":["regular"]},{"family":"Merienda","category":"handwriting","variants":["regular","700"]},{"family":"Hind Guntur","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Cutive","category":"serif","variants":["regular"]},{"family":"Prompt","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Coustard","category":"serif","variants":["regular","900"]},{"family":"Arima Madurai","category":"display","variants":["100","200","300","regular","500","700","800","900"]},{"family":"Doppio One","category":"sans-serif","variants":["regular"]},{"family":"Radley","category":"serif","variants":["regular","italic"]},{"family":"Fontdiner Swanky","category":"display","variants":["regular"]},{"family":"Iceland","category":"display","variants":["regular"]},{"family":"Alegreya SC","category":"serif","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Halant","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Schoolbell","category":"handwriting","variants":["regular"]},{"family":"Waiting for the Sunrise","category":"handwriting","variants":["regular"]},{"family":"Italianno","category":"handwriting","variants":["regular"]},{"family":"Fredericka the Great","category":"display","variants":["regular"]},{"family":"Average Sans","category":"sans-serif","variants":["regular"]},{"family":"Rosario","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Mr Dafoe","category":"handwriting","variants":["regular"]},{"family":"Port Lligat Slab","category":"serif","variants":["regular"]},{"family":"Aclonica","category":"sans-serif","variants":["regular"]},{"family":"Graduate","category":"display","variants":["regular"]},{"family":"Racing Sans One","category":"display","variants":["regular"]},{"family":"Berkshire Swash","category":"handwriting","variants":["regular"]},{"family":"Forum","category":"display","variants":["regular"]},{"family":"Anonymous Pro","category":"monospace","variants":["regular","italic","700","700italic"]},{"family":"Love Ya Like A Sister","category":"display","variants":["regular"]},{"family":"Nunito Sans","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Magra","category":"sans-serif","variants":["regular","700"]},{"family":"Lateef","category":"handwriting","variants":["regular"]},{"family":"Assistant","category":"sans-serif","variants":["200","300","regular","600","700","800"]},{"family":"Six Caps","category":"sans-serif","variants":["regular"]},{"family":"Gilda Display","category":"serif","variants":["regular"]},{"family":"Oregano","category":"display","variants":["regular","italic"]},{"family":"Metrophobic","category":"sans-serif","variants":["regular"]},{"family":"Lalezar","category":"display","variants":["regular"]},{"family":"Caudex","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Kelly Slab","category":"display","variants":["regular"]},{"family":"Reem Kufi","category":"sans-serif","variants":["regular"]},{"family":"Cambay","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Gruppo","category":"display","variants":["regular"]},{"family":"Give You Glory","category":"handwriting","variants":["regular"]},{"family":"GFS Didot","category":"serif","variants":["regular"]},{"family":"Duru Sans","category":"sans-serif","variants":["regular"]},{"family":"Andika","category":"sans-serif","variants":["regular"]},{"family":"Tenor Sans","category":"sans-serif","variants":["regular"]},{"family":"Knewave","category":"display","variants":["regular"]},{"family":"Averia Serif Libre","category":"display","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Eczar","category":"serif","variants":["regular","500","600","700","800"]},{"family":"Inder","category":"sans-serif","variants":["regular"]},{"family":"Martel Sans","category":"sans-serif","variants":["200","300","regular","600","700","800","900"]},{"family":"Trocchi","category":"serif","variants":["regular"]},{"family":"Wire One","category":"sans-serif","variants":["regular"]},{"family":"Petit Formal Script","category":"handwriting","variants":["regular"]},{"family":"Mako","category":"sans-serif","variants":["regular"]},{"family":"Frijole","category":"display","variants":["regular"]},{"family":"Zeyada","category":"handwriting","variants":["regular"]},{"family":"Slackey","category":"display","variants":["regular"]},{"family":"Karma","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Mate","category":"serif","variants":["regular","italic"]},{"family":"Belleza","category":"sans-serif","variants":["regular"]},{"family":"Montez","category":"handwriting","variants":["regular"]},{"family":"Quando","category":"serif","variants":["regular"]},{"family":"Capriola","category":"sans-serif","variants":["regular"]},{"family":"Lilita One","category":"display","variants":["regular"]},{"family":"Trirong","category":"serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Lekton","category":"sans-serif","variants":["regular","italic","700"]},{"family":"Just Me Again Down Here","category":"handwriting","variants":["regular"]},{"family":"Bowlby One SC","category":"display","variants":["regular"]},{"family":"The Girl Next Door","category":"handwriting","variants":["regular"]},{"family":"Happy Monkey","category":"display","variants":["regular"]},{"family":"Merienda One","category":"handwriting","variants":["regular"]},{"family":"Alike","category":"serif","variants":["regular"]},{"family":"Chelsea Market","category":"display","variants":["regular"]},{"family":"Unkempt","category":"display","variants":["regular","700"]},{"family":"Anaheim","category":"sans-serif","variants":["regular"]},{"family":"Strait","category":"sans-serif","variants":["regular"]},{"family":"Brawler","category":"serif","variants":["regular"]},{"family":"Clicker Script","category":"handwriting","variants":["regular"]},{"family":"Delius","category":"handwriting","variants":["regular"]},{"family":"Mouse Memoirs","category":"sans-serif","variants":["regular"]},{"family":"IM Fell Double Pica","category":"serif","variants":["regular","italic"]},{"family":"Crushed","category":"display","variants":["regular"]},{"family":"Rammetto One","category":"display","variants":["regular"]},{"family":"Prosto One","category":"display","variants":["regular"]},{"family":"Kranky","category":"display","variants":["regular"]},{"family":"IM Fell English","category":"serif","variants":["regular","italic"]},{"family":"Aladin","category":"handwriting","variants":["regular"]},{"family":"Mr De Haviland","category":"handwriting","variants":["regular"]},{"family":"NTR","category":"sans-serif","variants":["regular"]},{"family":"Londrina Solid","category":"display","variants":["regular"]},{"family":"Skranji","category":"display","variants":["regular","700"]},{"family":"Allan","category":"display","variants":["regular","700"]},{"family":"Baumans","category":"display","variants":["regular"]},{"family":"Ovo","category":"serif","variants":["regular"]},{"family":"Changa","category":"sans-serif","variants":["200","300","regular","500","600","700","800"]},{"family":"Lemon","category":"display","variants":["regular"]},{"family":"Federo","category":"sans-serif","variants":["regular"]},{"family":"Herr Von Muellerhoff","category":"handwriting","variants":["regular"]},{"family":"Arizonia","category":"handwriting","variants":["regular"]},{"family":"Bowlby One","category":"display","variants":["regular"]},{"family":"Orienta","category":"sans-serif","variants":["regular"]},{"family":"Short Stack","category":"handwriting","variants":["regular"]},{"family":"Bungee Inline","category":"display","variants":["regular"]},{"family":"Andada","category":"serif","variants":["regular"]},{"family":"Baloo Paaji","category":"display","variants":["regular"]},{"family":"Oxygen Mono","category":"monospace","variants":["regular"]},{"family":"Yeseva One","category":"display","variants":["regular"]},{"family":"UnifrakturMaguntia","category":"display","variants":["regular"]},{"family":"Bentham","category":"serif","variants":["regular"]},{"family":"Londrina Outline","category":"display","variants":["regular"]},{"family":"Pompiere","category":"display","variants":["regular"]},{"family":"Gabriela","category":"serif","variants":["regular"]},{"family":"Qwigley","category":"handwriting","variants":["regular"]},{"family":"Nova Square","category":"display","variants":["regular"]},{"family":"Poly","category":"serif","variants":["regular","italic"]},{"family":"Sniglet","category":"display","variants":["regular","800"]},{"family":"Patrick Hand SC","category":"handwriting","variants":["regular"]},{"family":"Gravitas One","category":"display","variants":["regular"]},{"family":"Khmer","category":"display","variants":["regular"]},{"family":"Shojumaru","category":"display","variants":["regular"]},{"family":"Kurale","category":"serif","variants":["regular"]},{"family":"Gafata","category":"sans-serif","variants":["regular"]},{"family":"Biryani","category":"sans-serif","variants":["200","300","regular","600","700","800","900"]},{"family":"Cambo","category":"serif","variants":["regular"]},{"family":"Titan One","category":"display","variants":["regular"]},{"family":"Carrois Gothic SC","category":"sans-serif","variants":["regular"]},{"family":"La Belle Aurore","category":"handwriting","variants":["regular"]},{"family":"Holtwood One SC","category":"serif","variants":["regular"]},{"family":"Oleo Script Swash Caps","category":"display","variants":["regular","700"]},{"family":"Headland One","category":"serif","variants":["regular"]},{"family":"Cherry Swash","category":"display","variants":["regular","700"]},{"family":"Belgrano","category":"serif","variants":["regular"]},{"family":"Norican","category":"handwriting","variants":["regular"]},{"family":"Mountains of Christmas","category":"display","variants":["regular","700"]},{"family":"Julee","category":"handwriting","variants":["regular"]},{"family":"Ramabhadra","category":"sans-serif","variants":["regular"]},{"family":"Mallanna","category":"sans-serif","variants":["regular"]},{"family":"Kristi","category":"handwriting","variants":["regular"]},{"family":"Imprima","category":"sans-serif","variants":["regular"]},{"family":"Lily Script One","category":"display","variants":["regular"]},{"family":"Chau Philomene One","category":"sans-serif","variants":["regular","italic"]},{"family":"Bilbo Swash Caps","category":"handwriting","variants":["regular"]},{"family":"Finger Paint","category":"display","variants":["regular"]},{"family":"Voces","category":"display","variants":["regular"]},{"family":"Itim","category":"handwriting","variants":["regular"]},{"family":"Megrim","category":"display","variants":["regular"]},{"family":"Simonetta","category":"display","variants":["regular","italic","900","900italic"]},{"family":"Cutive Mono","category":"monospace","variants":["regular"]},{"family":"Stardos Stencil","category":"display","variants":["regular","700"]},{"family":"IM Fell DW Pica","category":"serif","variants":["regular","italic"]},{"family":"Unna","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Loved by the King","category":"handwriting","variants":["regular"]},{"family":"Prociono","category":"serif","variants":["regular"]},{"family":"Corben","category":"display","variants":["regular","700"]},{"family":"Amiko","category":"sans-serif","variants":["regular","600","700"]},{"family":"Denk One","category":"sans-serif","variants":["regular"]},{"family":"Palanquin","category":"sans-serif","variants":["100","200","300","regular","500","600","700"]},{"family":"Baloo","category":"display","variants":["regular"]},{"family":"Fondamento","category":"handwriting","variants":["regular","italic"]},{"family":"Seaweed Script","category":"display","variants":["regular"]},{"family":"Shanti","category":"sans-serif","variants":["regular"]},{"family":"Wendy One","category":"sans-serif","variants":["regular"]},{"family":"Raleway Dots","category":"display","variants":["regular"]},{"family":"Amethysta","category":"serif","variants":["regular"]},{"family":"Vast Shadow","category":"display","variants":["regular"]},{"family":"Stalemate","category":"handwriting","variants":["regular"]},{"family":"Fira Mono","category":"monospace","variants":["regular","500","700"]},{"family":"Expletus Sans","category":"display","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Scheherazade","category":"serif","variants":["regular","700"]},{"family":"Fenix","category":"serif","variants":["regular"]},{"family":"Delius Swash Caps","category":"handwriting","variants":["regular"]},{"family":"Rouge Script","category":"handwriting","variants":["regular"]},{"family":"Life Savers","category":"display","variants":["regular","700"]},{"family":"IM Fell English SC","category":"serif","variants":["regular"]},{"family":"Meddon","category":"handwriting","variants":["regular"]},{"family":"Tienne","category":"serif","variants":["regular","700","900"]},{"family":"Over the Rainbow","category":"handwriting","variants":["regular"]},{"family":"Share Tech Mono","category":"monospace","variants":["regular"]},{"family":"Abhaya Libre","category":"serif","variants":["regular","500","600","700","800"]},{"family":"Kotta One","category":"serif","variants":["regular"]},{"family":"Pridi","category":"serif","variants":["200","300","regular","500","600","700"]},{"family":"Euphoria Script","category":"handwriting","variants":["regular"]},{"family":"Engagement","category":"handwriting","variants":["regular"]},{"family":"Podkova","category":"serif","variants":["regular","500","600","700","800"]},{"family":"Salsa","category":"display","variants":["regular"]},{"family":"Sofia","category":"handwriting","variants":["regular"]},{"family":"Suranna","category":"serif","variants":["regular"]},{"family":"Mada","category":"sans-serif","variants":["300","regular","500","900"]},{"family":"Chonburi","category":"display","variants":["regular"]},{"family":"Ledger","category":"serif","variants":["regular"]},{"family":"Italiana","category":"serif","variants":["regular"]},{"family":"Dawning of a New Day","category":"handwriting","variants":["regular"]},{"family":"Nokora","category":"serif","variants":["regular","700"]},{"family":"Angkor","category":"display","variants":["regular"]},{"family":"Medula One","category":"display","variants":["regular"]},{"family":"Taviraj","category":"serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Vampiro One","category":"display","variants":["regular"]},{"family":"Englebert","category":"sans-serif","variants":["regular"]},{"family":"Nova Mono","category":"monospace","variants":["regular"]},{"family":"Dorsa","category":"sans-serif","variants":["regular"]},{"family":"Averia Sans Libre","category":"display","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Cedarville Cursive","category":"handwriting","variants":["regular"]},{"family":"Geo","category":"sans-serif","variants":["regular","italic"]},{"family":"Rationale","category":"sans-serif","variants":["regular"]},{"family":"Balthazar","category":"serif","variants":["regular"]},{"family":"Sunshiney","category":"handwriting","variants":["regular"]},{"family":"Aguafina Script","category":"handwriting","variants":["regular"]},{"family":"Mystery Quest","category":"display","variants":["regular"]},{"family":"Fjord One","category":"serif","variants":["regular"]},{"family":"Fira Sans Extra Condensed","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Kadwa","category":"serif","variants":["regular","700"]},{"family":"McLaren","category":"display","variants":["regular"]},{"family":"Rye","category":"display","variants":["regular"]},{"family":"Sail","category":"display","variants":["regular"]},{"family":"Athiti","category":"sans-serif","variants":["200","300","regular","500","600","700"]},{"family":"Rosarivo","category":"serif","variants":["regular","italic"]},{"family":"Kite One","category":"sans-serif","variants":["regular"]},{"family":"Odor Mean Chey","category":"display","variants":["regular"]},{"family":"Numans","category":"sans-serif","variants":["regular"]},{"family":"Artifika","category":"serif","variants":["regular"]},{"family":"Poller One","category":"display","variants":["regular"]},{"family":"Gurajada","category":"serif","variants":["regular"]},{"family":"Inika","category":"serif","variants":["regular","700"]},{"family":"Mandali","category":"sans-serif","variants":["regular"]},{"family":"Bungee Shade","category":"display","variants":["regular"]},{"family":"Suwannaphum","category":"display","variants":["regular"]},{"family":"Mate SC","category":"serif","variants":["regular"]},{"family":"Creepster","category":"display","variants":["regular"]},{"family":"Arsenal","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Montserrat Subrayada","category":"sans-serif","variants":["regular","700"]},{"family":"Metamorphous","category":"display","variants":["regular"]},{"family":"Palanquin Dark","category":"sans-serif","variants":["regular","500","600","700"]},{"family":"Coda Caption","category":"sans-serif","variants":["800"]},{"family":"Dynalight","category":"display","variants":["regular"]},{"family":"Maitree","category":"serif","variants":["200","300","regular","500","600","700"]},{"family":"IM Fell French Canon","category":"serif","variants":["regular","italic"]},{"family":"Amarante","category":"display","variants":["regular"]},{"family":"Quintessential","category":"handwriting","variants":["regular"]},{"family":"Codystar","category":"display","variants":["300","regular"]},{"family":"Cantora One","category":"sans-serif","variants":["regular"]},{"family":"Aref Ruqaa","category":"serif","variants":["regular","700"]},{"family":"Griffy","category":"display","variants":["regular"]},{"family":"Revalia","category":"display","variants":["regular"]},{"family":"Buenard","category":"serif","variants":["regular","700"]},{"family":"Donegal One","category":"serif","variants":["regular"]},{"family":"IM Fell DW Pica SC","category":"serif","variants":["regular"]},{"family":"Habibi","category":"serif","variants":["regular"]},{"family":"Share Tech","category":"sans-serif","variants":["regular"]},{"family":"Flamenco","category":"display","variants":["300","regular"]},{"family":"Mitr","category":"sans-serif","variants":["200","300","regular","500","600","700"]},{"family":"Maiden Orange","category":"display","variants":["regular"]},{"family":"Diplomata SC","category":"display","variants":["regular"]},{"family":"Cormorant","category":"serif","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Delius Unicase","category":"handwriting","variants":["regular","700"]},{"family":"Stoke","category":"serif","variants":["300","regular"]},{"family":"Vibur","category":"handwriting","variants":["regular"]},{"family":"Sarpanch","category":"sans-serif","variants":["regular","500","600","700","800","900"]},{"family":"Baloo Bhaina","category":"display","variants":["regular"]},{"family":"Baloo Tamma","category":"display","variants":["regular"]},{"family":"Averia Libre","category":"display","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Esteban","category":"serif","variants":["regular"]},{"family":"Battambang","category":"display","variants":["regular","700"]},{"family":"Bokor","category":"display","variants":["regular"]},{"family":"Wallpoet","category":"display","variants":["regular"]},{"family":"IM Fell Great Primer","category":"serif","variants":["regular","italic"]},{"family":"Tulpen One","category":"display","variants":["regular"]},{"family":"Proza Libre","category":"sans-serif","variants":["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},{"family":"IM Fell French Canon SC","category":"serif","variants":["regular"]},{"family":"Vesper Libre","category":"serif","variants":["regular","500","700","900"]},{"family":"Rozha One","category":"serif","variants":["regular"]},{"family":"Sansita","category":"sans-serif","variants":["regular","italic","700","700italic","800","800italic","900","900italic"]},{"family":"Kavoon","category":"display","variants":["regular"]},{"family":"Della Respira","category":"serif","variants":["regular"]},{"family":"Milonga","category":"display","variants":["regular"]},{"family":"Condiment","category":"handwriting","variants":["regular"]},{"family":"Junge","category":"serif","variants":["regular"]},{"family":"New Rocker","category":"display","variants":["regular"]},{"family":"Chicle","category":"display","variants":["regular"]},{"family":"Mrs Saint Delafield","category":"handwriting","variants":["regular"]},{"family":"League Script","category":"handwriting","variants":["regular"]},{"family":"Miniver","category":"display","variants":["regular"]},{"family":"Galindo","category":"display","variants":["regular"]},{"family":"Moul","category":"display","variants":["regular"]},{"family":"Amatica SC","category":"display","variants":["regular","700"]},{"family":"Stint Ultra Expanded","category":"display","variants":["regular"]},{"family":"Yrsa","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Stint Ultra Condensed","category":"display","variants":["regular"]},{"family":"Suez One","category":"serif","variants":["regular"]},{"family":"Text Me One","category":"sans-serif","variants":["regular"]},{"family":"Buda","category":"display","variants":["300"]},{"family":"Ruluko","category":"sans-serif","variants":["regular"]},{"family":"Sonsie One","category":"display","variants":["regular"]},{"family":"Krona One","category":"sans-serif","variants":["regular"]},{"family":"Elsie","category":"display","variants":["regular","900"]},{"family":"Pangolin","category":"handwriting","variants":["regular"]},{"family":"Linden Hill","category":"serif","variants":["regular","italic"]},{"family":"Secular One","category":"sans-serif","variants":["regular"]},{"family":"IM Fell Double Pica SC","category":"serif","variants":["regular"]},{"family":"Alike Angular","category":"serif","variants":["regular"]},{"family":"Sancreek","category":"display","variants":["regular"]},{"family":"Bilbo","category":"handwriting","variants":["regular"]},{"family":"Antic Didone","category":"serif","variants":["regular"]},{"family":"Paprika","category":"display","variants":["regular"]},{"family":"Asul","category":"sans-serif","variants":["regular","700"]},{"family":"David Libre","category":"serif","variants":["regular","500","700"]},{"family":"Almendra","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Sriracha","category":"handwriting","variants":["regular"]},{"family":"Miriam Libre","category":"sans-serif","variants":["regular","700"]},{"family":"Ribeye","category":"display","variants":["regular"]},{"family":"Swanky and Moo Moo","category":"handwriting","variants":["regular"]},{"family":"Trade Winds","category":"display","variants":["regular"]},{"family":"Overlock SC","category":"display","variants":["regular"]},{"family":"Nova Round","category":"display","variants":["regular"]},{"family":"Cagliostro","category":"sans-serif","variants":["regular"]},{"family":"Glass Antiqua","category":"display","variants":["regular"]},{"family":"Offside","category":"display","variants":["regular"]},{"family":"El Messiri","category":"sans-serif","variants":["regular","500","600","700"]},{"family":"Bigshot One","category":"display","variants":["regular"]},{"family":"IM Fell Great Primer SC","category":"serif","variants":["regular"]},{"family":"Akronim","category":"display","variants":["regular"]},{"family":"Fira Sans Condensed","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Nosifer","category":"display","variants":["regular"]},{"family":"Autour One","category":"display","variants":["regular"]},{"family":"Pirata One","category":"display","variants":["regular"]},{"family":"Port Lligat Sans","category":"sans-serif","variants":["regular"]},{"family":"Scope One","category":"serif","variants":["regular"]},{"family":"Sumana","category":"serif","variants":["regular","700"]},{"family":"Lemonada","category":"display","variants":["300","regular","600","700"]},{"family":"Montaga","category":"serif","variants":["regular"]},{"family":"Iceberg","category":"display","variants":["regular"]},{"family":"Ruthie","category":"handwriting","variants":["regular"]},{"family":"Content","category":"display","variants":["regular","700"]},{"family":"Henny Penny","category":"display","variants":["regular"]},{"family":"Nova Slim","category":"display","variants":["regular"]},{"family":"Hind Madurai","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Harmattan","category":"sans-serif","variants":["regular"]},{"family":"UnifrakturCook","category":"display","variants":["700"]},{"family":"Sarina","category":"display","variants":["regular"]},{"family":"Bubbler One","category":"sans-serif","variants":["regular"]},{"family":"Dekko","category":"handwriting","variants":["regular"]},{"family":"Redressed","category":"handwriting","variants":["regular"]},{"family":"Laila","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Faster One","category":"display","variants":["regular"]},{"family":"Arya","category":"sans-serif","variants":["regular","700"]},{"family":"Peralta","category":"display","variants":["regular"]},{"family":"Meie Script","category":"handwriting","variants":["regular"]},{"family":"Overpass","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Monsieur La Doulaise","category":"handwriting","variants":["regular"]},{"family":"Bungee","category":"display","variants":["regular"]},{"family":"Snippet","category":"sans-serif","variants":["regular"]},{"family":"Emilys Candy","category":"display","variants":["regular"]},{"family":"Trykker","category":"serif","variants":["regular"]},{"family":"MedievalSharp","category":"display","variants":["regular"]},{"family":"Space Mono","category":"monospace","variants":["regular","italic","700","700italic"]},{"family":"Croissant One","category":"display","variants":["regular"]},{"family":"Monofett","category":"display","variants":["regular"]},{"family":"Lovers Quarrel","category":"handwriting","variants":["regular"]},{"family":"Oldenburg","category":"display","variants":["regular"]},{"family":"Galdeano","category":"sans-serif","variants":["regular"]},{"family":"Spicy Rice","category":"display","variants":["regular"]},{"family":"Wellfleet","category":"display","variants":["regular"]},{"family":"Germania One","category":"display","variants":["regular"]},{"family":"GFS Neohellenic","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Baloo Thambi","category":"display","variants":["regular"]},{"family":"Jolly Lodger","category":"display","variants":["regular"]},{"family":"Rubik Mono One","category":"sans-serif","variants":["regular"]},{"family":"Pattaya","category":"sans-serif","variants":["regular"]},{"family":"Joti One","category":"display","variants":["regular"]},{"family":"Siemreap","category":"display","variants":["regular"]},{"family":"Ranga","category":"display","variants":["regular","700"]},{"family":"Chango","category":"display","variants":["regular"]},{"family":"Miltonian Tattoo","category":"display","variants":["regular"]},{"family":"Koulen","category":"display","variants":["regular"]},{"family":"Eagle Lake","category":"handwriting","variants":["regular"]},{"family":"Nova Flat","category":"display","variants":["regular"]},{"family":"Petrona","category":"serif","variants":["regular"]},{"family":"Jacques Francois","category":"serif","variants":["regular"]},{"family":"Amita","category":"handwriting","variants":["regular","700"]},{"family":"Plaster","category":"display","variants":["regular"]},{"family":"Ramaraja","category":"serif","variants":["regular"]},{"family":"Sura","category":"serif","variants":["regular","700"]},{"family":"Kenia","category":"display","variants":["regular"]},{"family":"Fresca","category":"sans-serif","variants":["regular"]},{"family":"Jomhuria","category":"display","variants":["regular"]},{"family":"Lancelot","category":"display","variants":["regular"]},{"family":"Pavanam","category":"sans-serif","variants":["regular"]},{"family":"Rum Raisin","category":"sans-serif","variants":["regular"]},{"family":"Almendra SC","category":"serif","variants":["regular"]},{"family":"Purple Purse","category":"display","variants":["regular"]},{"family":"Kumar One","category":"display","variants":["regular"]},{"family":"Modern Antiqua","category":"display","variants":["regular"]},{"family":"Piedra","category":"display","variants":["regular"]},{"family":"Irish Grover","category":"display","variants":["regular"]},{"family":"Molle","category":"handwriting","variants":["italic"]},{"family":"Cormorant Infant","category":"serif","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Margarine","category":"display","variants":["regular"]},{"family":"Sahitya","category":"serif","variants":["regular","700"]},{"family":"Mukta Vaani","category":"sans-serif","variants":["200","300","regular","500","600","700","800"]},{"family":"Astloch","category":"display","variants":["regular","700"]},{"family":"Snowburst One","category":"display","variants":["regular"]},{"family":"Rhodium Libre","category":"serif","variants":["regular"]},{"family":"Smythe","category":"display","variants":["regular"]},{"family":"Asset","category":"display","variants":["regular"]},{"family":"Ewert","category":"display","variants":["regular"]},{"family":"Keania One","category":"display","variants":["regular"]},{"family":"Ranchers","category":"display","variants":["regular"]},{"family":"Gorditas","category":"display","variants":["regular","700"]},{"family":"Sirin Stencil","category":"display","variants":["regular"]},{"family":"Averia Gruesa Libre","category":"display","variants":["regular"]},{"family":"Trochut","category":"display","variants":["regular","italic","700"]},{"family":"Baloo Chettan","category":"display","variants":["regular"]},{"family":"Kdam Thmor","category":"display","variants":["regular"]},{"family":"Timmana","category":"sans-serif","variants":["regular"]},{"family":"Original Surfer","category":"display","variants":["regular"]},{"family":"Supermercado One","category":"display","variants":["regular"]},{"family":"Mirza","category":"display","variants":["regular","500","600","700"]},{"family":"Passero One","category":"display","variants":["regular"]},{"family":"Nova Oval","category":"display","variants":["regular"]},{"family":"Caesar Dressing","category":"display","variants":["regular"]},{"family":"Taprom","category":"display","variants":["regular"]},{"family":"Fascinate","category":"display","variants":["regular"]},{"family":"Seymour One","category":"sans-serif","variants":["regular"]},{"family":"Freehand","category":"display","variants":["regular"]},{"family":"Ravi Prakash","category":"display","variants":["regular"]},{"family":"Coiny","category":"display","variants":["regular"]},{"family":"Atomic Age","category":"display","variants":["regular"]},{"family":"Jacques Francois Shadow","category":"display","variants":["regular"]},{"family":"Diplomata","category":"display","variants":["regular"]},{"family":"Dr Sugiyama","category":"handwriting","variants":["regular"]},{"family":"Miltonian","category":"display","variants":["regular"]},{"family":"Ribeye Marrow","category":"display","variants":["regular"]},{"family":"Elsie Swash Caps","category":"display","variants":["regular","900"]},{"family":"Felipa","category":"handwriting","variants":["regular"]},{"family":"Galada","category":"display","variants":["regular"]},{"family":"Nova Script","category":"display","variants":["regular"]},{"family":"Bayon","category":"display","variants":["regular"]},{"family":"Underdog","category":"display","variants":["regular"]},{"family":"Devonshire","category":"handwriting","variants":["regular"]},{"family":"Atma","category":"display","variants":["300","regular","500","600","700"]},{"family":"Londrina Shadow","category":"display","variants":["regular"]},{"family":"Sofadi One","category":"display","variants":["regular"]},{"family":"Tillana","category":"handwriting","variants":["regular","500","600","700","800"]},{"family":"Inknut Antiqua","category":"serif","variants":["300","regular","500","600","700","800","900"]},{"family":"Goblin One","category":"display","variants":["regular"]},{"family":"Rakkas","category":"display","variants":["regular"]},{"family":"Metal","category":"display","variants":["regular"]},{"family":"Farsan","category":"display","variants":["regular"]},{"family":"Londrina Sketch","category":"display","variants":["regular"]},{"family":"Nova Cut","category":"display","variants":["regular"]},{"family":"BioRhyme","category":"serif","variants":["200","300","regular","700","800"]},{"family":"Warnes","category":"display","variants":["regular"]},{"family":"Romanesco","category":"handwriting","variants":["regular"]},{"family":"Fascinate Inline","category":"display","variants":["regular"]},{"family":"Mrs Sheppards","category":"handwriting","variants":["regular"]},{"family":"Princess Sofia","category":"handwriting","variants":["regular"]},{"family":"Modak","category":"display","variants":["regular"]},{"family":"Spirax","category":"display","variants":["regular"]},{"family":"Cormorant Upright","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Geostar Fill","category":"display","variants":["regular"]},{"family":"Cormorant SC","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Baloo Bhai","category":"display","variants":["regular"]},{"family":"Sree Krushnadevaraya","category":"serif","variants":["regular"]},{"family":"Smokum","category":"display","variants":["regular"]},{"family":"Arbutus","category":"display","variants":["regular"]},{"family":"Fruktur","category":"display","variants":["regular"]},{"family":"Geostar","category":"display","variants":["regular"]},{"family":"Marko One","category":"serif","variants":["regular"]},{"family":"Erica One","category":"display","variants":["regular"]},{"family":"Yatra One","category":"display","variants":["regular"]},{"family":"Uncial Antiqua","category":"display","variants":["regular"]},{"family":"Combo","category":"display","variants":["regular"]},{"family":"Gidugu","category":"sans-serif","variants":["regular"]},{"family":"Aubrey","category":"display","variants":["regular"]},{"family":"Jim Nightshade","category":"handwriting","variants":["regular"]},{"family":"Butterfly Kids","category":"handwriting","variants":["regular"]},{"family":"Metal Mania","category":"display","variants":["regular"]},{"family":"Macondo","category":"display","variants":["regular"]},{"family":"Chenla","category":"display","variants":["regular"]},{"family":"Miss Fajardose","category":"handwriting","variants":["regular"]},{"family":"Macondo Swash Caps","category":"display","variants":["regular"]},{"family":"Barrio","category":"display","variants":["regular"]},{"family":"Sevillana","category":"display","variants":["regular"]},{"family":"Bigelow Rules","category":"display","variants":["regular"]},{"family":"Rasa","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Risque","category":"display","variants":["regular"]},{"family":"Federant","category":"display","variants":["regular"]},{"family":"Dangrek","category":"display","variants":["regular"]},{"family":"Chathura","category":"sans-serif","variants":["100","300","regular","700","800"]},{"family":"Almendra Display","category":"display","variants":["regular"]},{"family":"Chela One","category":"display","variants":["regular"]},{"family":"Bonbon","category":"handwriting","variants":["regular"]},{"family":"Stalinist One","category":"display","variants":["regular"]},{"family":"Mr Bedfort","category":"handwriting","variants":["regular"]},{"family":"Eater","category":"display","variants":["regular"]},{"family":"Fasthand","category":"serif","variants":["regular"]},{"family":"Mogra","category":"display","variants":["regular"]},{"family":"Padauk","category":"sans-serif","variants":["regular","700"]},{"family":"Preahvihear","category":"display","variants":["regular"]},{"family":"Flavors","category":"display","variants":["regular"]},{"family":"Ruge Boogie","category":"handwriting","variants":["regular"]},{"family":"Tenali Ramakrishna","category":"sans-serif","variants":["regular"]},{"family":"Unlock","category":"display","variants":["regular"]},{"family":"Butcherman","category":"display","variants":["regular"]},{"family":"Baloo Da","category":"display","variants":["regular"]},{"family":"Lakki Reddy","category":"handwriting","variants":["regular"]},{"family":"Cormorant Unicase","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Katibeh","category":"display","variants":["regular"]},{"family":"Asar","category":"serif","variants":["regular"]},{"family":"Emblema One","category":"display","variants":["regular"]},{"family":"Moulpali","category":"display","variants":["regular"]},{"family":"Meera Inimai","category":"sans-serif","variants":["regular"]},{"family":"Kantumruy","category":"sans-serif","variants":["300","regular","700"]},{"family":"Suravaram","category":"serif","variants":["regular"]},{"family":"Bungee Hairline","category":"display","variants":["regular"]},{"family":"Overpass Mono","category":"monospace","variants":["300","regular","600","700"]},{"family":"Peddana","category":"serif","variants":["regular"]},{"family":"Bahiana","category":"display","variants":["regular"]},{"family":"Kumar One Outline","category":"display","variants":["regular"]},{"family":"Hanalei Fill","category":"display","variants":["regular"]},{"family":"Dhurjati","category":"sans-serif","variants":["regular"]},{"family":"Hanalei","category":"display","variants":["regular"]},{"family":"Kavivanar","category":"handwriting","variants":["regular"]},{"family":"Bungee Outline","category":"display","variants":["regular"]},{"family":"BioRhyme Expanded","category":"serif","variants":["200","300","regular","700","800"]}]' ); - - // Loop through them and put what we need into our fonts array. - $fonts = array(); - foreach ( $content as $item ) { - - // Grab what we need from our big list. - $atts = array( - 'name' => $item->family, - 'category' => $item->category, - 'variants' => $item->variants, - ); - - // Create an ID using our font family name. - $id = strtolower( str_replace( ' ', '_', $item->family ) ); - - // Add our attributes to our new array. - $fonts[ $id ] = $atts; - } - - if ( 'all' !== $amount ) { - $fonts = array_slice( $fonts, 0, $amount ); - } - - if ( apply_filters( 'generate_alphabetize_google_fonts', true ) ) { - asort( $fonts ); - } - - return apply_filters( 'generate_google_fonts_array', $fonts ); - } -} - -if ( ! function_exists( 'generate_get_all_google_fonts_ajax' ) ) { - add_action( 'wp_ajax_generate_get_all_google_fonts_ajax', 'generate_get_all_google_fonts_ajax' ); - /** - * Return an array of all of our Google Fonts. - * - * @since 1.3.0 - */ - function generate_get_all_google_fonts_ajax() { - if ( generate_is_using_dynamic_typography() ) { - wp_die(); - } - - if ( ! isset( $_POST['gp_customize_nonce'] ) || ! wp_verify_nonce( sanitize_key( $_POST['gp_customize_nonce'] ), 'gp_customize_nonce' ) ) { - wp_die(); - } - - check_ajax_referer( 'gp_customize_nonce', 'gp_customize_nonce' ); - - if ( ! current_user_can( 'edit_theme_options' ) ) { - wp_die(); - } - - $fonts = generate_get_all_google_fonts(); - - echo wp_json_encode( $fonts ); - - die(); - } -} - -if ( ! function_exists( 'generate_get_google_font_variants' ) ) { - /** - * Wrapper function to find variants for chosen Google Fonts - * Example: generate_get_google_font_variation( 'Open Sans' ) - * - * @since 1.3.0 - * - * @param string $font The font to look up. - * @param string $key The option to look up. - */ - function generate_get_google_font_variants( $font, $key = '' ) { - // Don't need variants if we're using a system font. - if ( in_array( $font, generate_typography_default_fonts() ) ) { - return; - } - - // Return if we have our variants saved. - if ( '' !== $key && get_theme_mod( $key . '_variants' ) ) { - return get_theme_mod( $key . '_variants' ); - } - - $defaults = generate_get_default_fonts(); - - if ( $defaults[ $key ] === $font ) { - return $defaults[ $key . '_variants' ]; - } - - // Grab all of our fonts. - // It's a big list, so hopefully we're not even still reading. - $fonts = generate_get_all_google_fonts(); - - // Get the ID from our font. - $id = strtolower( str_replace( ' ', '_', $font ) ); - - // If the ID doesn't exist within our fonts, we can bail. - if ( ! array_key_exists( $id, $fonts ) ) { - return; - } - - // Grab all of the variants associated with our font. - $variants = $fonts[ $id ]['variants']; - - // Loop through them and put them into an array, then turn them into a comma separated list. - $output = array(); - if ( $variants ) { - foreach ( $variants as $variant ) { - $output[] = $variant; - } - - return implode( ',', apply_filters( 'generate_typography_variants', $output ) ); - } - } -} - -if ( ! function_exists( 'generate_get_google_font_category' ) ) { - /** - * Wrapper function to find the category for chosen Google Font - * Example: generate_get_google_font_category( 'Open Sans' ) - * - * @since 1.3.0 - * - * @param string $font The name of our font. - * @param string $key The ID of the font setting. - * @return string The category of our font. - */ - function generate_get_google_font_category( $font, $key = '' ) { - // Don't need a category if we're using a system font. - if ( in_array( $font, generate_typography_default_fonts() ) ) { - return; - } - - // Return if we have our variants saved. - if ( '' !== $key && get_theme_mod( $key . '_category' ) ) { - return ', ' . get_theme_mod( $key . '_category' ); - } - - $defaults = generate_get_default_fonts(); - - // If our default font is selected and the category isn't saved, we already know the category. - if ( $defaults[ $key ] === $font ) { - return ', ' . $defaults[ $key . '_category' ]; - } - - // Grab all of our fonts. - // It's a big list, so hopefully we're not even still reading. - $fonts = generate_get_all_google_fonts(); - - // Get the ID from our font. - $id = strtolower( str_replace( ' ', '_', $font ) ); - - // If the ID doesn't exist within our fonts, we can bail. - if ( ! array_key_exists( $id, $fonts ) ) { - return; - } - - // Let's grab our category to go with our font. - $category = ! empty( $fonts[ $id ]['category'] ) ? ', ' . $fonts[ $id ]['category'] : ''; - - return $category; - } -} - - - -if ( ! function_exists( 'generate_get_font_family_css' ) ) { - /** - * Wrapper function to create font-family value for CSS. - * - * @since 1.3.0 - * - * @param string $font The name of our font. - * @param string $settings The ID of the settings we're looking up. - * @param array $default The defaults for our $settings. - * @return string The CSS value for our font family. - */ - function generate_get_font_family_css( $font, $settings, $default ) { - $generate_settings = wp_parse_args( - get_option( $settings, array() ), - $default - ); - - // We don't want to wrap quotes around these values. - $no_quotes = array( - 'inherit', - 'Arial, Helvetica, sans-serif', - 'Georgia, Times New Roman, Times, serif', - 'Helvetica', - 'Impact', - 'Segoe UI, Helvetica Neue, Helvetica, sans-serif', - 'Tahoma, Geneva, sans-serif', - 'Trebuchet MS, Helvetica, sans-serif', - 'Verdana, Geneva, sans-serif', - apply_filters( 'generate_typography_system_stack', '-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' ), - ); - - $font_family = $generate_settings[ $font ]; - - if ( 'System Stack' === $font_family ) { - $font_family = apply_filters( 'generate_typography_system_stack', '-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' ); - } - - // If our value is still using the old format, fix it. - if ( strpos( $font_family, ':' ) !== false ) { - $font_family = current( explode( ':', $font_family ) ); - } - - // Set up our wrapper. - if ( in_array( $font_family, $no_quotes ) ) { - $wrapper_start = null; - $wrapper_end = null; - } else { - $wrapper_start = '"'; - $wrapper_end = '"' . generate_get_google_font_category( $font_family, $font ); - } - - $output = ( 'inherit' === $font_family ) ? '' : $wrapper_start . $font_family . $wrapper_end; - - return $output; - } -} - -if ( ! function_exists( 'generate_add_to_font_customizer_list' ) ) { - add_filter( 'generate_typography_customize_list', 'generate_add_to_font_customizer_list' ); - /** - * This function makes sure your selected typography option exists in the Customizer list - * Why wouldn't it? Originally, all 800+ fonts were in each list. This has been reduced to 200. - * This functions makes sure that if you were using a font that is now not included in the 200, you won't lose it. - * - * @since 1.3.40 - * - * @param array $fonts The existing fonts. - */ - function generate_add_to_font_customizer_list( $fonts ) { - // Bail if we don't have our defaults. - if ( ! function_exists( 'generate_get_default_fonts' ) ) { - return; - } - - $generate_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - generate_get_default_fonts() - ); - - $font_settings = array( - 'font_body', - 'font_top_bar', - 'font_site_title', - 'font_site_tagline', - 'font_navigation', - 'font_widget_title', - 'font_heading_1', - 'font_heading_2', - 'font_heading_3', - ); - - $all_fonts = generate_get_all_google_fonts(); - $select_fonts = generate_get_all_google_fonts( apply_filters( 'generate_number_of_fonts', 200 ) ); - - foreach ( $font_settings as $setting ) { - // If we don't have a setting, keep going. - if ( ! isset( $generate_settings[ $setting ] ) ) { - continue; - } - - $id = strtolower( str_replace( ' ', '_', $generate_settings[ $setting ] ) ); - - if ( array_key_exists( $id, $select_fonts ) || in_array( $generate_settings[ $setting ], generate_typography_default_fonts() ) ) { - continue; - } - - $fonts[ strtolower( str_replace( ' ', '_', $generate_settings[ $setting ] ) ) ] = array( - 'name' => $generate_settings[ $setting ], - 'variants' => array_key_exists( $id, $all_fonts ) ? $all_fonts[ $id ]['variants'] : array(), - 'category' => array_key_exists( $id, $all_fonts ) ? $all_fonts[ $id ]['category'] : 'sans-serif', - ); - } - - if ( function_exists( 'generate_secondary_nav_get_defaults' ) ) { - $secondary_nav_settings = wp_parse_args( - get_option( 'generate_secondary_nav_settings', array() ), - generate_secondary_nav_get_defaults() - ); - - $secondary_nav_id = strtolower( str_replace( ' ', '_', $secondary_nav_settings['font_secondary_navigation'] ) ); - - if ( ! array_key_exists( $secondary_nav_id, $select_fonts ) && ! in_array( $secondary_nav_settings['font_secondary_navigation'], generate_typography_default_fonts() ) ) { - $fonts[ strtolower( str_replace( ' ', '_', $secondary_nav_settings['font_secondary_navigation'] ) ) ] = array( - 'name' => $secondary_nav_settings['font_secondary_navigation'], - 'variants' => array_key_exists( $secondary_nav_id, $all_fonts ) ? $all_fonts[ $secondary_nav_id ]['variants'] : array(), - 'category' => array_key_exists( $secondary_nav_id, $all_fonts ) ? $all_fonts[ $secondary_nav_id ]['category'] : 'sans-serif', - ); - } - } - - return $fonts; - } -} - -if ( ! function_exists( 'generate_typography_set_font_data' ) ) { - add_action( 'admin_init', 'generate_typography_set_font_data' ); - /** - * This function will check to see if your category and variants are saved - * If not, it will set them for you - * Generally, set_theme_mod isn't best practice, but this is here for migration purposes for a set amount of time only - * Any time a user saves a font in the Customizer from now on, the category and variants are saved as theme_mods, so this function won't be necessary. - * - * @since 1.3.40 - */ - function generate_typography_set_font_data() { - if ( generate_is_using_dynamic_typography() ) { - return; - } - - // Get our defaults. - $defaults = generate_get_default_fonts(); - - // Get our settings. - $generate_settings = wp_parse_args( - get_option( 'generate_settings', array() ), - $defaults - ); - - // We don't need to do this if we're using the default font, as these values have defaults already. - if ( $defaults['font_body'] == $generate_settings['font_body'] ) { // phpcs:ignore - return; - } - - // Don't need to continue if we're using a system font or our default font. - if ( in_array( $generate_settings['font_body'], generate_typography_default_fonts() ) ) { - return; - } - - // Don't continue if our category and variants are already set. - if ( get_theme_mod( 'font_body_category' ) && get_theme_mod( 'font_body_variants' ) ) { - return; - } - - // Get all of our fonts. - $fonts = generate_get_all_google_fonts(); - - // Get the ID from our font. - $id = strtolower( str_replace( ' ', '_', $generate_settings['font_body'] ) ); - - // If the ID doesn't exist within our fonts, we can bail. - if ( ! array_key_exists( $id, $fonts ) ) { - return; - } - - // Let's grab our category to go with our font. - $category = ! empty( $fonts[ $id ]['category'] ) ? $fonts[ $id ]['category'] : ''; - - // Grab all of the variants associated with our font. - $variants = $fonts[ $id ]['variants']; - - // Loop through our variants and put them into an array, then turn them into a comma separated list. - $output = array(); - if ( $variants ) { - foreach ( $variants as $variant ) { - $output[] = $variant; - } - $variants = implode( ',', $output ); - } - - // Set our theme mods with our new settings. - if ( '' !== $category ) { - set_theme_mod( 'font_body_category', $category ); - } - - if ( '' !== $variants ) { - set_theme_mod( 'font_body_variants', $variants ); - } - } -} diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/index.php b/wp-content/upgrade-temp-backup/themes/generatepress/index.php deleted file mode 100644 index 26d1498a..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/index.php +++ /dev/null @@ -1,82 +0,0 @@ - - -
    > -
    > - -
    -
    - - - -
    -
    - - -
    > -

    -
    - - - -
    - - - -

    - Get started here.', 'generatepress' ), - esc_url( admin_url( 'post-new.php' ) ) - ); - ?> -

    - - - -

    - - - - -

    - - - - -
    - - -
    -
    diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/page.php b/wp-content/upgrade-temp-backup/themes/generatepress/page.php deleted file mode 100644 index 3b406013..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/page.php +++ /dev/null @@ -1,59 +0,0 @@ - - -
    > -
    > - -
    -
    - - Themes > Add New" -1. Search for "GeneratePress" -1. Install and activate - -== Frequently Asked Questions == - -= Is GeneratePress Free? = -Yes! GeneratePress is a free theme, and always will be. - -= Does GeneratePress have a pro version? = -It does! GeneratePress has a premium plugin which extends the available options in the theme. - -You can learn more about GP Premium [here](https://generatepress.com/premium). - -= Where can I find documentation? = -GeneratePress has extensive documentation you can find [here](https://docs.generatepress.com). - -= Do you offer support? = -Definitely. We offer support for the free theme in the [WordPress.org forums](https://wordpress.org/support/theme/generatepress). - -Premium customers have access to our very own [support forum](https://generatepress.com/support). - -We try to answer all questions - free or premium - within 24 hours. - -= Where can I find the theme options? = -All of our options can be found in the Customizer in 'Appearance > Customize'. - -= Does GeneratePress have any widget areas? = -GeneratePress has up to 9 widget areas which you can add widgets to in Appearance > Widgets. - -= How can I make my site look like your screenshot? = -If you want to replicate the screenshot you see on WordPress.org, please refer to [this article](https://docs.generatepress.com/article/replicating-the-screenshot/). - -== License == - -GeneratePress is licensed under the GNU General Public License v2 or later - -More details [here](http://www.gnu.org/licenses/gpl-2.0.html). - -= Unsemantic Framework = - -http://opensource.org/licenses/mit-license.php -http://www.gnu.org/licenses/gpl.html - -= Font Awesome = - -Font License: SIL OFL 1.1 - http://scripts.sil.org/OFL -Code License: MIT License - http://opensource.org/licenses/mit-license.html - -= classList = - -By Eli Grey, http://eligrey.com -License: Dedicated to the public domain. -See https://github.com/eligrey/classList.js/blob/master/LICENSE.md - -= selectWoo = - -MIT License: https://github.com/woocommerce/selectWoo/blob/master/LICENSE.md - -= TinyColor = - -By Brian Grinstead, http://briangrinstead.com -MIT License: https://github.com/bgrins/TinyColor/blob/master/LICENSE - -= React Select = -By Jed Watson -MIT License: https://github.com/JedWatson/react-select/blob/master/LICENSE - -== Changelog == - -= 3.4.0 = - -* Important: Require PHP 7.4 or later -* Accessibility: Add label to search modal input -* Feature: Allow CSS variables and string-based values in Typography -* Feature: Add read more label filters -* Fix: Mobile menu toggle alignment when navigation above/below header -* Fix: Disable nav search modal if using floats or font icons -* Fix: Remove unnecessary white-space from .site-title and .site-description elements -* Fix: `html` typography selector in the editor -* Fix: Content title color in editor -* Fix: Content width jump when loading editor -* Fix: Editor losing content width switching code/visual editor -* Fix: Remove prohibited attribute from header element -* Fix: Heading text color in the editor -* Fix: Wrong text domains - -= 3.3.1 = - -* Tweak: Update Customizer script dependencies to prevent WP 6.3 conflicts - -= 3.3.0 = - -* Feature: Add navigation search modal -* Fix: PHP 8.1 filter_input notice -* Fix: Comment fields PHP 8.1 notice -* Fix: Empty footer post meta -* Fix: PHP 8.1 warning in GeneratePress_Typography:get_css -* Fix: Color picker callback update not re-rendering the component -* Fix: Don't apply block margin to core Heading -* Fix: Editor width when changing previews -* Fix: Allow rgb() color values -* Fix: JS error when toggling empty mobile menu -* Fix: PHP notice when using SVG as normal and retina logo -* Fix: Color picker outline -* Tweak: Allow sub-menus to open using the spacebar -* Tweak: Increase .has- class specificity - -= 3.2.4 = - -* Fix: Kebab-case formatting for global colors variable names - -= 3.2.3 = - -* Fix: Global color picker positioning - -= 3.2.2 = - -* Fix: Typography system unit picker popover position -* Fix: Typography system state update possible infinite loop -* Fix: Editor content width when using large content padding values - -= 3.2.1 = - -* Fix: WooCommerce single product schema itemtype -* Fix: Post title font properties in the editor -* Fix: Error in Customizer when Google Fonts disabled - -= 3.2.0 = - -* Feature: Re-order global colors in the Customizer -* Feature: Add live preview to global color changes in Customizer -* Feature: Add font-style option to Typography -* Feature: Add text-decoration option to Typography -* Feature: Add generate_font_manager_show_google_fonts PHP filter -* Feature: Add generate_font_manager_system_fonts JS filter -* Feature: Add generate_font_manager_google_fonts JS filter -* Feature: Add generate_add_comment_date_link PHP filter -* Fix: Missing link underlines in the editor -* Fix: Code block width in the editor -* Fix: WooCommerce archive wrapper HTML attributes -* Fix: Google font API requests using a standalone numbers -* Fix: Customizer shortcut links in the GP Dashboard -* Fix: Check for logo dimension data -* Fix: Back to top iOS double-click issues -* Tweak: Use block_editor_settings_all to add editor CSS -* Tweak: Remove title attributes from logo and logo link -* Tweak: Remove excess screen reader text from post navigation -* Tweak: Improve editor width calculations based on your layouts -* Tweak: Improve check for is-dark-theme class -* Tweak: Change Google Font label in Font Manager - -= 3.1.3 = - -* Fix: Adjust editor block width selector to fix compatibility with GP Premium -* Fix: Missing editor styles when viewing tablet/mobile previews in Firefox -* Fix: Missing Google Fonts API request when viewing tablet/mobile previews in the editor - -= 3.1.2 = - -* Fix: Align-full alignment in the editor -* Fix: Missing editor text colors in responsive views - -= 3.1.1 = - -* Fix: Color picker UI in WP 5.9 -* Fix: Translations using javascript -* Fix: Layout panel link inside the Start Customizing Dashboard - -= 3.1.0 = - -* New: Global color system -* New: Add all theme color options to free theme -* New: Re-build color options in the Customizer -* New: Dynamic typography system -* New: Underline links option -* New: Only load menu.js when needed -* New: generate_has_active_menu filter -* New: generate_before_loop hook -* New: Dynamic HTML attribute system -* New: React-based Dashboard -* New: generate_search_title_output filter -* New: generate_after_comment_author_name hook -* New: generate_show_comment_entry_meta filter -* Tweak: Only allow vertical comment form resizing -* Tweak: Move a11y javascript inline to the footer -* Tweak: Add aria-label attributes to elements that need them -* Tweak: Remove theme structure option for people using flexbox -* Tweak: Remove search result title from template -* Tweak: Add search result title using generate_before_loop hook -* Tweak: Remove aria-required attribute from comment form -* Tweak: Add required attribute to comment author/email fields if required -* Tweak: Move viewport head meta below the title meta -* Tweak: Optimize SVG icon HTML -* Tweak: Move generate_svg_icon_element before the "replace" icon definition -* Tweak: Change sub-menu box-shadow direction when sub-menu opens left -* Tweak: Replace sub-menu box-shadow with border when opening down -* Tweak: Remove query loop block margin -* Tweak: Use get_the_archive_description() instead of term_description() -* Fix: Missing search form button icon when using font icons -* Fix: Load comments CSS if comments exists even if new comments are disabled -* Fix: Sub-menu overlap using dropdown click - -= 3.0.4 = - -* Tweak: Apply default Group block padding to blocks in the content area only. - -= 3.0.3 = - -* Fix: is-dark-theme class in editor in WP 5.7 -* Fix: Saving footer widget post meta in editor - -= 3.0.2 = - -* Fix: Missing logo when site title/tagline are empty but not disabled -* Fix: Widget content font-size value missing when using default -* Fix: Centered top bar text alignment on mobile -* Fix: Custom mobile-bar-items sizing not working on mobile -* Tweak: Only set margin-top of .entry-content - -= 3.0.1 = - -* Fix: Custom navigation search height -* Fix: Missing sub-menu on RTL sites with sub-menu set to open right -* Fix: RTL order of default flexbox mobile menu -* Fix: RTL sub-menu text alignment -* Fix: Elementor full width template when using flexbox -* Fix: editor-style.css location -* Fix: Navigation search when sticky navigation is activated -* Tweak: Add text-align: center; to centered header in flexbox -* Tweak: Center menu items in flex when nav aligned center -* Tweak: Remove float: right from navigation search toggle when centered -* Tweak: Remove justify-content: center from .site-content - -= 3.0.0 = - -* New: Flexbox layout option - see blog post for more info -* New: Default mobile header when using aligned nav + flexbox layout -* New: generate_before_do_template_part hook -* New: generate_after_do_template_part hook -* New: generate_do_template_part filter -* New: Better option migration system -* New: generate_post_date_show_updated_only filter -* New: generate_navigation_search_menu_item_output filter -* New: style-rtl.min.css and enqueue manually -* New: generate_load_child_theme_stylesheet filter -* New: generate_before_navigation hook -* New: generate_after_navigation hook -* New: generate_page_class filter -* New: generate_is_using_hatom filter -* New: generate_after_element_class_attribute filter -* New: generate_menu_bar_items hook -* New: generate_show_entry_header filter -* New: Container width default set to 1200 -* New: Navigation location default set to float right -* New: Navigation color defaults updated -* New: Button color defaults updated -* New: Footer color defaults updated -* New: Site title font size default updated -* New: Search button added to search widget -* New: Archive post navigation design -* New: generate_comments_title_output filter -* New: generate_get_the_title_parameters filter -* New: generate_has_default_loop filter -* New: generate_localize_js_args filter -* New: is-left-sidebar and is-right-sidebar classes added to sidebars -* New: Add aria-label to dropdown menu arrows on mobile -* New: Hide pagination arrows from screen readers -* New: Prepend pagination numbers with "Page" for screen readers -* Fix: Close other sub-menus when opening a new one on touch devices -* Fix: Footer bar menu spacing on mobile -* Fix: Text aligned container width preview in Customizer when using full-width-content -* Fix: Remove disable content title toggle in editor if it doesn't apply to front-end -* Fix: One container margin based on default content padding -* Fix: Nav aligned left when using RTL languages -* Fix: Wide block alignment in the editor -* Tweak: Update screen-reader-text CSS -* Tweak: Remove all :visited references from dynamic CSS -* Tweak: Make sub-menu dropdown box-shadow harder -* Tweak: Remove content margin-top if it's the first child in parent -* Tweak: Remove featured image margin-top if it's the first child in parent -* Tweak: Only print entry-meta wrapper to page if it contains meta -* Tweak: Rebuild navigation search javascript -* Tweak: Remove all esc_attr() functions from CSS and escape entire output -* Tweak: Move all CSS and JS into assets folder -* Tweak: Break all CSS up into individual .scss files -* Tweak: Set SVG icons as default -* Tweak: Move font icon CSS into separate file -* Tweak: Load comments CSS only on pages that have comments -* Tweak: Remove speak CSS from font icons -* Tweak: Load top bar/footer bar/footer widget CSS separately if using flexbox layout -* Tweak: Remove display: inline from alignleft/right classes -* Tweak: Remove parent theme dependencies from styles -* Tweak: Fix footer widget default spacing -* Tweak: Remove HTML comments from end of elements -* Tweak: Combine a11y.js and menu.js -* Tweak: Add correct paragraph margin to block editor -* Tweak: Remove old migrations from 2.0 (font awesome, dynamic css cache, font family and blog post content) -* Tweak: Change Layout metabox option to select dropdowns -* Tweak: Change Page Builder Container label to Content Container -* Tweak: Remove itemprop attributes if microdata is turned off -* Tweak: Un-focus back to top button once the top is reached -* Tweak: Remove close nav search on document click -* Tweak: Set sub-menu open left on RTL languages by default -* Tweak: Remove mixed up alignleft/right classes when using RTL languages -* Tweak: Remove sub-menu open left CSS when using RTL languages -* Tweak: Use aria-label in back to top button instead of screen-reader-text -* Tweak: Hook comments template into generate_after_do_template_part -* Tweak: Use flexbox for author page header -* Tweak: Simplify navigation dropdown CSS -* Tweak: Set variable for get_body_class where necessary -* Tweak: Use separate SVGs for different arrow directions instead of CSS -* Tweak: Use class for navigation sub-menu direction -* Tweak: Clean up sub-menu direction CSS -* Tweak: Remove footer widget and header layout body classes when using flexbox -* Tweak: Close other sub-menus when another is opened -* Tweak: Inherit tagline/main nav/widget title/widget content/site footer font size if not set -* Tweak: Show name/email asterisk only if fields are required -* Tweak: Only remove margin-bottom from last element on page if it's a paragraph -* Tweak: Remove .wp-smiley CSS -* Tweak: Add single post navigation to generate_footer_entry_items filter -* Tweak: Hook archive post navigation into generate_after_loop hook -* Tweak: Use aria-label for read more links/buttons instead of screen reader text -* Tweak: Move microdata to generate_after_element_class_attribute where possible -* Tweak: Move back to top button CSS to dynamic CSS if enabled -* Tweak: Move navigation search CSS to dynamic CSS if enabled -* Tweak: Move dropdown-click CSS to dynamic CSS if enabled -* Tweak: Remove skip-link-focus.js -* Tweak: Disable old Beaver Builer full-width compat CSS when using flexbox layout -* Tweak: Remove CSS to disable comments link on single posts -* Tweak: Add featured-image class to singular featured images -* Tweak: Don't output body font family if it's the default that exists in stylesheet -* Tweak: Allow 0 value in dynamic CSS -* Tweak: Remove mobile navigation static CSS as it's added dynamically already -* Tweak: Improve checkMobile() javascript performance -* Tweak: Prevent font-size values from being set to 0 -* Tweak: Replace deprecate .load() with on('load') in block-editor.js -* Tweak: Change navigation search line-height to 1 -* Tweak: Reduce size of author archive avatar -* Tweak: Add padding-left to cancel comment reply link -* Tweak: Update navigation color and header presets -* Tweak: Add [type="search"] to .navigation-search input CSS selector -* Tweak: Better style GP core button in block editor -* Tweak: Improve comment cookie consent display across browsers -* Tweak: Add is-logo-image class to site logo -* Tweak: Remove type attribute from scripts and styles -* Tweak: Add margins to headings in the editor -* Template change: Removed generate_do_microdata() from sidebar.php and sidebar-left.php -* Template changes: Added generate_do_template_part() to all templates with a loop - -= Earlier versions = - -For the changelog of earlier versions, please refer to our [development log](https://generatepress.com/category/changelog/). diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/screenshot.png b/wp-content/upgrade-temp-backup/themes/generatepress/screenshot.png deleted file mode 100644 index b7f57896..00000000 Binary files a/wp-content/upgrade-temp-backup/themes/generatepress/screenshot.png and /dev/null differ diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/search.php b/wp-content/upgrade-temp-backup/themes/generatepress/search.php deleted file mode 100644 index c69e6b82..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/search.php +++ /dev/null @@ -1,75 +0,0 @@ - - -
    > -
    > - -
    -
    - - -
    - - %2$s', - esc_attr( apply_filters( 'generate_search_button', _x( 'Search', 'submit button', 'generatepress' ) ) ), - generate_get_svg_icon( 'search' ) // phpcs:ignore -- Escaping not necessary here. - ); - } else { - printf( - '', - apply_filters( 'generate_search_button', _x( 'Search', 'submit button', 'generatepress' ) ) // phpcs:ignore -- Escaping not necessary here. - ); - } - ?> -
    diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/sidebar-left.php b/wp-content/upgrade-temp-backup/themes/generatepress/sidebar-left.php deleted file mode 100644 index cd4a3038..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/sidebar-left.php +++ /dev/null @@ -1,34 +0,0 @@ - -
    > -
    - -
    -
    diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/sidebar.php b/wp-content/upgrade-temp-backup/themes/generatepress/sidebar.php deleted file mode 100644 index a05f471a..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/sidebar.php +++ /dev/null @@ -1,34 +0,0 @@ - -
    > -
    - -
    -
    diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/single.php b/wp-content/upgrade-temp-backup/themes/generatepress/single.php deleted file mode 100644 index 4ace2115..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/single.php +++ /dev/null @@ -1,54 +0,0 @@ - - -
    > -
    > - -
    -
    - -