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 bb636767..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(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}.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:nth-child(1),.icon-menu-bars svg:nth-child(2),.icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:nth-child(1){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 e4856c4f..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(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-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 3d3c9353..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:nth-child(1),.icon-menu-bars svg:nth-child(2),.icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:nth-child(1){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 44225f45..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(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}.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:nth-child(1),.icon-menu-bars svg:nth-child(2),.icon-search svg:nth-child(2),.toggled .icon-menu-bars svg:nth-child(1){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 9b6b5c7c..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', 'wp-polyfill'), 'version' => '941ef20418fb33c76715610c01428ffc'); \ No newline at end of file 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 c0900fa5..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/block-editor.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=72)}({0:function(e,t){e.exports=window.wp.element},11:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=M(e,360),t=M(t,100),r=M(r,100),0===t)n=i=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,c,d),g=!0,b="hsl"),e.hasOwnProperty("a")&&(l=e.a)),l=C(l),{ok:g,format:e.format||b,r:f(255,u(s.r,0)),g:f(255,u(s.g,0)),b:f(255,u(s.b,0)),a:l}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=s++}function d(e,t,r){e=M(e,255),t=M(t,255),r=M(r,255);var n,i,a=u(e,t,r),o=f(e,t,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(h(n));return a}function j(e,t){t=t||6;for(var r=h(e).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(h({h:n,s:i,v:a})),a=(a+s)%1;return o}h.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 e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:i.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=g(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,i){var a=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(r).toString(16)),I(L(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*M(this._r,255))+"%",g:l(100*M(this._g,255))+"%",b:l(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%)":"rgba("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(F[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=h(e);r="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));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(x,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(R,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(H,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:T(e[n]));e=r}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:c(),g:c(),b:c()})},h.mix=function(e,t,r){r=0===r?0:r||50;var n=h(e).toRgb(),i=h(t).toRgb(),a=r/100;return h({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},h.readability=function(e,t){var r=h(e),n=h(t);return(i.max(r.getLuminance(),n.getLuminance())+.05)/(i.min(r.getLuminance(),n.getLuminance())+.05)},h.isReadable=function(e,t,r){var n,i,a,o,s,l=h.readability(e,t);switch(i=!1,(a=r,"AA"!==(o=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==o&&(o="AA"),"small"!==(s=(a.size||"small").toLowerCase())&&"large"!==s&&(s="small"),n={level:o,size:s}).level+n.size){case"AAsmall":case"AAAlarge":i=l>=4.5;break;case"AAlarge":i=l>=3;break;case"AAAsmall":i=l>=7}return i},h.mostReadable=function(e,t,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var f=0;fl&&(l=n,s=h(t[f]));return h.isReadable(e,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],r))};var O=h.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"},F=h.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(O);function C(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=f(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function B(e){return f(1,u(0,e))}function P(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function T(e){return e<=1&&(e=100*e+"%"),e}function L(e){return i.round(255*parseFloat(e)).toString(16)}function q(e){return P(e)/255}var N,z,W,D=(z="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",W="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+W),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 $(e){return!!D.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(n=function(){return h}.call(t,r,t,e))||(e.exports=n)}(Math)},42:function(e,t){e.exports=window.wp.domReady},5:function(e,t,r){var n=r(18),i=r(19),a=r(14),o=r(20);e.exports=function(e,t){return n(e)||i(e,t)||a(e,t)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},72:function(e,t,r){"use strict";r.r(t);var n=r(16),i=r(21);Object(i.select)("core/edit-post")&&Object(i.select)("core/edit-post").__experimentalGetPreviewDeviceType&&Object(n.registerPlugin)("generatepress-responsive-classes",{render:function(){var e=Object(i.useSelect)((function(){var e=Object(i.select)("core/edit-post").__experimentalGetPreviewDeviceType;return e?{deviceType:e()}:{deviceType:null}}),[]).deviceType;return document.querySelector("body").classList.remove("gp-is-device-desktop","gp-is-device-tablet","gp-is-device-mobile"),document.querySelector("body").classList.add("gp-is-device-"+e.toLowerCase()),null}});var a=r(5),o=r.n(a),s=r(0),l=r(42),f=r.n(l);Object(n.registerPlugin)("generatepress-content-width",{render:function(){var e=Object(s.useState)(""),t=o()(e,2),r=t[0],n=t[1],i=Object(s.useState)(""),a=o()(i,2),l=a[0],u=a[1],c=document.body.className;return Object(s.useEffect)((function(){var e,t;n((null===(e=document.getElementById("generate-sidebar-layout"))||void 0===e?void 0:e.value)||generatepressBlockEditor.globalSidebarLayout),u((null===(t=document.getElementById("_generate-full-width-content"))||void 0===t?void 0:t.value)||generatepressBlockEditor.contentAreaType)}),[]),Object(s.useEffect)((function(){var e,t=document.querySelector(".editor-styles-wrapper");null==t||null===(e=t.style)||void 0===e||e.setProperty("--content-width",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="",n="px",i=generatepressBlockEditor.customContentWidth?parseInt(generatepressBlockEditor.customContentWidth):generatepressBlockEditor.containerWidth,a=generatepressBlockEditor.leftSidebarWidth,o=generatepressBlockEditor.rightSidebarWidth;if(r="left-sidebar"===e?i*((100-a)/100):"right-sidebar"===e?i*((100-o)/100):"no-sidebar"===e?i:i*((100-(Number(a)+Number(o)))/100),""===t){var s=parseInt(generatepressBlockEditor.contentPaddingRight)+parseInt(generatepressBlockEditor.contentPaddingLeft);r=Number(r)-s}return"true"!==t||generatepressBlockEditor.customContentWidth||(r=100,n="%"),r+n}(r,l))}),[r,l,c]),f()((function(){var e=document.getElementById("generate-sidebar-layout"),t=document.getElementById("_generate-full-width-content");e&&(e.onchange=function(e){n(e.target.value||generatepressBlockEditor.globalSidebarLayout)}),t&&(t.onchange=function(e){u(e.target.value||generatepressBlockEditor.contentAreaType)})})),null}});var u=r(30),c=r.n(u);Object(n.registerPlugin)("generatepress-is-dark-theme",{render:function(){return Object(s.useEffect)((function(){if(generatepressBlockEditor.show_editor_styles){var e=generatepressBlockEditor.text_color;if(String(e).startsWith("var(")){var t=e.match(/\(([^)]+)\)/);if(t){var r=document.querySelector(".editor-styles-wrapper");if(r){var n,i=null===(n=getComputedStyle(r))||void 0===n?void 0:n.getPropertyValue(t[1]);i&&(e=i)}}}e=c()(e).toHex8(),c()(e).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 0feabf44..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', 'wp-polyfill'), 'version' => 'a1c378863dc0c01884b392ae3eb5aa5e'); \ No newline at end of file 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 a2ea6f48..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/customizer.js +++ /dev/null @@ -1,5 +0,0 @@ -(window.webpackJsonp_generatepress=window.webpackJsonp_generatepress||[]).push([[4],{32:function(e,t,r){},45:function(e,t,r){},46:function(e,t,r){},47:function(e,t,r){},48:function(e,t,r){},57:function(e,t,r){},60:function(e,t,r){},61:function(e,t,r){},62:function(e,t,r){},65:function(e,t,r){}}]),function(e){function t(t){for(var a,o,s=t[0],l=t[1],c=t[2],g=0,d=[];ge.length)&&(t=e.length);for(var r=0,a=new Array(t);r=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}(this.props,[]);return function(e){u.forEach((function(t){return delete e[t]}))}(n),n.className=this.props.inputClassName,n.id=this.state.inputId,n.style=r,o.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),o.default.createElement("input",a({},n,{ref:this.inputRef})),o.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?o.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(i.Component);p.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},p.defaultProps={minWidth:1,injectStyles:!0},t.default=p},function(e,t){e.exports=window.ReactDOM},function(e,t,r){"use strict";var a=r(55),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return a.isMemo(e)?o:s[e.$$typeof]||n}s[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[a.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,a){if("string"!=typeof r){if(p){var n=f(r);n&&n!==p&&e(t,n,a)}var o=u(r);g&&(o=o.concat(g(r)));for(var s=l(t),v=l(r),h=0;h=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=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.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){e.exports=r(53)()},function(e,t,r){"use strict";var a=r(54);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,i,o){if(o!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";e.exports=r(56)},function(e,t,r){"use strict";var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,l=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,u=a?Symbol.for("react.context"):60110,g=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,f=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,v=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,m=a?Symbol.for("react.block"):60121,b=a?Symbol.for("react.fundamental"):60117,O=a?Symbol.for("react.responder"):60118,S=a?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case g:case d:case o:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case y:case h:case c:return e;default:return t}}case i:return t}}}function C(e){return w(e)===d}t.AsyncMode=g,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=y,t.Memo=h,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===g},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===s||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===O||e.$$typeof===S||e.$$typeof===m)},t.typeOf=w},,function(e,t){function r(t,a){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,r(t,a)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},,,,function(e,t){var r,a,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(e){a=o}}();var l,c=[],u=!1,g=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):g=-1,c.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++g1)for(var r=1;r1&&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(){"resolved"!==this.deferred.embedded.state()&&(this.renderContent(),this.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.container[0];if(this.params.choices.wrapper){var t=document.getElementById(this.params.choices.wrapper+"--wrapper");t&&(e=t,this.container.hide())}return e},renderContent:function(){var t=this.setting.get(),r=Object(o.createElement)(s.SlotFillProvider,null,Object(o.createElement)(e,i()({},this.params,{value:t,setNotificationContainer:this.setNotificationContainer,customizerSetting:this.setting,control:this,choices:this.params.choices,default:this.params.defaultValue})),Object(o.createElement)(s.Popover.Slot,null)),a=this.getWrapper();Object(o.render)(r,a)},destroy:function(){Object(o.unmountComponentAtNode)(this.container[0]),wp.customize.Control.prototype.destroy&&wp.customize.Control.prototype.destroy.call(this)}},t))},c=(r(46),r(2)),u=r(5),g=r.n(u);function d(e){var t=e.color,r=e.tooltip,a=e.tooltipPosition,n=e.onClick,i=e.ariaExpanded;return Object(o.createElement)("div",{className:"components-circular-option-picker__option-wrapper"},Object(o.createElement)(s.Tooltip,{text:r,position:a},Object(o.createElement)(s.Button,{className:"components-color-palette__item components-circular-option-picker__option","aria-expanded":i,onClick:n,"aria-label":r,style:{color:t}},Object(o.createElement)("span",{className:"components-color-palette__custom-color-gradient"}))))}r(47);var f=r(1),p=r.n(f);function v(){return(v=Object.assign||function(e){for(var t=1;t=0||(n[r]=e[r]);return n}function y(e){var t=Object(f.useRef)(e),r=Object(f.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,r.current}var m=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(S(n.current,e,s.current)):r(!1)},t=function(){return r(!1)};function r(r){var a=l.current,i=O(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&&(w(t),!function(e,t){return t&&!b(e)}(t,l.current)&&a)){if(b(t)){l.current=!0;var o=t.changedTouches||[];o.length&&(s.current=o[0].identifier)}a.focus(),i(S(a,t,s.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]),u=c[0],g=c[1],d=c[2];return Object(f.useEffect)((function(){return d}),[d]),p.a.createElement("div",v({},a,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:n,onKeyDown:g,tabIndex:0,role:"slider"}))})),x=function(e){return e.filter(Boolean).join(" ")},E=function(e){var t=e.color,r=e.left,a=e.top,n=void 0===a?.5:a,i=x(["react-colorful__pointer",e.className]);return p.a.createElement("div",{className:i,style:{top:100*n+"%",left:100*r+"%"}},p.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},j=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r},N=(Math.PI,function(e){var t=e.s,r=e.v,a=e.a,n=(200-t)*r/100;return{h:j(e.h),s:j(n>0&&n<200?t*r/100/(n<=100?n:200-n)*100:0),l:j(n/2),a:j(a,2)}}),T=function(e){var t=N(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},D=function(e){var t=N(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},M=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:j(255*[a,s,o,o,l,a][c]),g:j(255*[l,a,a,s,o,o][c]),b:j(255*[o,o,l,a,a,s][c]),a:j(n,2)}},I=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?P({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}},k=I,P=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:j(60*(s<0?s+6:s)),s:j(i?o/i*100:0),v:j(i/255*100),a:n}},_=p.a.memo((function(e){var t=e.hue,r=e.onChange,a=x(["react-colorful__hue",e.className]);return p.a.createElement("div",{className:a},p.a.createElement(C,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:m(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":j(t)},p.a.createElement(E,{className:"react-colorful__hue-pointer",left:t/360,color:T({h:t,s:100,v:100,a:1})})))})),R=p.a.memo((function(e){var t=e.hsva,r=e.onChange,a={backgroundColor:T({h:t.h,s:100,v:100,a:1})};return p.a.createElement("div",{className:"react-colorful__saturation",style:a},p.a.createElement(C,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:m(t.s+100*e.left,0,100),v:m(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+j(t.s)+"%, Brightness "+j(t.v)+"%"},p.a.createElement(E,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:T(t)})))})),A=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function L(e,t,r){var a=y(r),n=Object(f.useState)((function(){return e.toHsva(t)})),i=n[0],o=n[1],s=Object(f.useRef)({color:t,hsva:i});Object(f.useEffect)((function(){if(!e.equal(t,s.current.color)){var r=e.toHsva(t);s.current={hsva:r,color:t},o(r)}}),[t,e]),Object(f.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,s.current.hsva)||e.equal(t=e.fromHsva(i),s.current.color)||(s.current={hsva:i,color:t},a(t))}),[i,e,a]);var l=Object(f.useCallback)((function(e){o((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var F="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,B=new Map,H=function(e){F((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!B.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}',B.set(t,a);var n=r.nc;n&&a.setAttribute("nonce",n),t.head.appendChild(a)}}),[])},V=function(e){var t=e.className,r=e.colorModel,a=e.color,n=void 0===a?r.defaultColor:a,i=e.onChange,o=h(e,["className","colorModel","color","onChange"]),s=Object(f.useRef)(null);H(s);var l=L(r,n,i),c=l[0],u=l[1],g=x(["react-colorful",t]);return p.a.createElement("div",v({},o,{ref:s,className:g}),p.a.createElement(R,{hsva:c,onChange:u}),p.a.createElement(_,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},z=function(e){var t=e.className,r=e.hsva,a=e.onChange,n={backgroundImage:"linear-gradient(90deg, "+D(Object.assign({},r,{a:0}))+", "+D(Object.assign({},r,{a:1}))+")"},i=x(["react-colorful__alpha",t]);return p.a.createElement("div",{className:i},p.a.createElement("div",{className:"react-colorful__alpha-gradient",style:n}),p.a.createElement(C,{onMove:function(e){a({a:e.left})},onKey:function(e){a({a:m(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":j(100*r.a)+"%"},p.a.createElement(E,{className:"react-colorful__alpha-pointer",left:r.a,color:D(r)})))},U=function(e){var t=e.className,r=e.colorModel,a=e.color,n=void 0===a?r.defaultColor:a,i=e.onChange,o=h(e,["className","colorModel","color","onChange"]),s=Object(f.useRef)(null);H(s);var l=L(r,n,i),c=l[0],u=l[1],g=x(["react-colorful",t]);return p.a.createElement("div",v({},o,{ref:s,className:g}),p.a.createElement(R,{hsva:c,onChange:u}),p.a.createElement(_,{hue:c.h,onChange:u}),p.a.createElement(z,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},G={defaultColor:"rgba(0, 0, 0, 1)",toHsva:I,fromHsva:function(e){var t=M(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:A},W=function(e){return p.a.createElement(U,v({},e,{colorModel:G}))},K={defaultColor:"rgb(0, 0, 0)",toHsva:k,fromHsva:function(e){var t=M(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:A},$=function(e){return p.a.createElement(V,v({},e,{colorModel:K}))},Y={grad:.9,turn:360,rad:360/(2*Math.PI)},q=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},J=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},X=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},Z=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Q=function(e){return{r:X(e.r,0,255),g:X(e.g,0,255),b:X(e.b,0,255),a:X(e.a)}},ee=function(e){return{r:J(e.r),g:J(e.g),b:J(e.b),a:J(e.a,3)}},te=/^#([0-9a-f]{3,8})$/i,re=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ae=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}},ne=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}},ie=function(e){return{h:Z(e.h),s:X(e.s,0,100),l:X(e.l,0,100),a:X(e.a)}},oe=function(e){return{h:J(e.h),s:J(e.s),l:J(e.l),a:J(e.a,3)}},se=function(e){return ne((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},le=function(e){return{h:(t=ae(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},ce=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ue=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ge=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,de=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fe={string:[[function(e){var t=te.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?J(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?J(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ge.exec(e)||de.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Q({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=ce.exec(e)||ue.exec(e);if(!t)return null;var r,a,n=ie({h:(r=t[1],a=t[2],void 0===a&&(a="deg"),Number(r)*(Y[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return se(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)?Q({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=ie({h:Number(t),s:Number(r),l:Number(a),a:Number(i)});return se(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:Z(e.h),s:X(e.s,0,100),v:X(e.v,0,100),a:X(e.a)}}({h:Number(t),s:Number(r),v:Number(a),a:Number(i)});return ne(o)},"hsv"]]},pe=function(e,t){for(var r=0;r=.5},e.prototype.toHex=function(){return t=(e=ee(this.rgba)).r,r=e.g,a=e.b,i=(n=e.a)<1?re(J(255*n)):"","#"+re(t)+re(r)+re(a)+i;var e,t,r,a,n,i},e.prototype.toRgb=function(){return ee(this.rgba)},e.prototype.toRgbString=function(){return t=(e=ee(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 oe(le(this.rgba))},e.prototype.toHslString=function(){return t=(e=oe(le(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=ae(this.rgba),{h:J(e.h),s:J(e.s),v:J(e.v),a:J(e.a,3)};var e},e.prototype.invert=function(){return be({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),be(ve(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),be(ve(this.rgba,-e))},e.prototype.grayscale=function(){return be(ve(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),be(ye(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),be(ye(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?be({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):J(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=le(this.rgba);return"number"==typeof e?be({h:e,s:t.s,l:t.l,a:t.a}):J(t.h)},e.prototype.isEqual=function(e){return this.toHex()===be(e).toHex()},e}(),be=function(e){return e instanceof me?e:new me(e)};function Oe(e,t,r){var a=this,n=Object(f.useRef)(null),i=Object(f.useRef)(0),o=Object(f.useRef)(null),s=Object(f.useRef)([]),l=Object(f.useRef)(),c=Object(f.useRef)(),u=Object(f.useRef)(e),g=Object(f.useRef)(!0);Object(f.useEffect)((function(){u.current=e}),[e]);var d=!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;return Object(f.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]),Object(f.useMemo)((function(){var e=function(e){var t=s.current,r=l.current;return s.current=l.current=null,i.current=e,c.current=u.current.apply(r,t)},r=function(e,t){d&&cancelAnimationFrame(o.current),o.current=d?requestAnimationFrame(e):setTimeout(e,t)},f=function(e){if(!g.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&&s.current?e(t):(s.current=l.current=null,c.current)},b=function e(){var a=Date.now();if(f(a))return m(a);if(g.current){var o=t-(a-n.current),s=h?Math.min(o,y-(a-i.current)):o;r(e,s)}},O=function(){var u=Date.now(),d=f(u);if(s.current=[].slice.call(arguments),l.current=a,n.current=u,d){if(!o.current&&g.current)return i.current=n.current,r(b,t),p?e(n.current):c.current;if(h)return r(b,t),e(n.current)}return o.current||r(b,t),c.current};return O.cancel=function(){o.current&&(d?cancelAnimationFrame(o.current):clearTimeout(o.current)),i.current=0,s.current=n.current=l.current=o.current=null},O.isPending=function(){return!!o.current},O.flush=function(){return o.current?m(Date.now()):c.current},O}),[p,h,t,y,v,d])}function Se(e){var t=e.value,r=e.showAlpha,a=e.onChange,n=r?W:$,i=Object(o.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 be(e).toRgbString()}(t)}),[t]),s=Oe(a,100);return Object(o.createElement)(n,{color:i,onChange:function(e){be(e).isValid()&&(e=1===be(e).alpha()?be(e).toHex():e),s(e)}})}function we(e){return"info"===e?Object(o.createElement)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-hidden":"true"},Object(o.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"}),Object(o.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?Object(o.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"},Object(o.createElement)("path",{d:"M18 6L6 18M6 6l12 12"})):"ellipsis"===e?Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(o.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),Object(o.createElement)("g",null,Object(o.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?Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",width:"1em",height:"1em"},Object(o.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?Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",width:"1em",height:"1em"},Object(o.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?Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",width:"1em",height:"1em"},Object(o.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?Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",width:"1em",height:"1em",viewBox:"0 0 24 24"},Object(o.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?Object(o.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"},Object(o.createElement)("path",{d:"M12 5v14M5 12h14"})):"lock"===e?Object(o.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"},Object(o.createElement)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),Object(o.createElement)("path",{d:"M7 11V7a5 5 0 0110 0v4"})):"unlock"===e?Object(o.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"},Object(o.createElement)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),Object(o.createElement)("path",{d:"M7 11V7a5 5 0 019.9-1"})):"chevron-down"===e?Object(o.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"},Object(o.createElement)("path",{d:"M6 9l6 6 6-6"})):"chevron-up"===e?Object(o.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"},Object(o.createElement)("path",{d:"M18 15l-6-6-6 6"})):"chevron-right"===e?Object(o.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"},Object(o.createElement)("path",{d:"M9 18l6-6-6-6"})):"trash"===e?Object(o.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"},Object(o.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?Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},Object(o.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?Object(o.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"},Object(o.createElement)("path",{fill:"none",d:"M20 6 9 17l-5-5"})):void 0}function Ce(e){var t=e.value,r=e.onChange,a=e.onBlur,n=e.onEnable,i=e.isDisabled,l=e.helpText;return Object(o.createElement)("div",{className:"generate-color-input--css-var-name-wrapper"},Object(o.createElement)(s.TextControl,{label:Object(c.__)("CSS Variable Name","generatepress"),disabled:i,help:l,type:"text",value:t,onChange:r,onBlur:a}),i&&Object(o.createElement)(s.Tooltip,{text:Object(c.__)("Changing this name will remove its color from elements already using it.","generatepress")},Object(o.createElement)(s.Button,{onClick:function(){window.alert(Object(c.__)("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)}},we("unlock"))))}function xe(e){var t=e.value,r=e.onChange,a=e.showReset,n=void 0!==a&&a,i=e.onClickReset;return Object(o.createElement)("div",{className:"generate-color-input-wrapper"},Object(o.createElement)(s.TextControl,{id:"generate-color-input-field",className:"generate-color-input",type:"text",value:t||"",onChange:function(e){!e.startsWith("#")&&/^([0-9A-F]{3}){1,2}$/i.test(e)&&(e="#"+e),r(e)}}),n&&Object(o.createElement)(s.Button,{isSmall:!0,isSecondary:!0,className:"components-color-clear-color",onClick:i},Object(c.__)("Default","generatepress")))}function Ee(e){var t=e.value,r=e.onChange,a=generateCustomizerControls.palette,n=window.sessionStorage.getItem("generateGlobalColors");return n&&(a=JSON.parse(n)),Object(o.createElement)(s.BaseControl,{className:"generate-component-color-picker-palette"},Object(o.createElement)(s.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 je(e){var t=e.value,r=e.variableName,a=e.label,n=e.tooltipText,l=e.tooltipPosition,c=e.showAlpha,u=e.showReset,f=e.showVariableName,p=e.showPalette,v=e.variableNameIsDisabled,h=e.variableNameHelpText,y=e.onChange,m=void 0===y?function(){return!1}:y,b=e.onClosePanel,O=void 0===b?function(){return!1}:b,S=e.onChangeVariableName,w=void 0===S?function(){return!1}:S,C=e.onBlurVariableName,x=void 0===C?function(){return!1}:C,E=e.onEnableVariableName,j=void 0===E?function(){return!1}:E,N=e.onClickReset,T=void 0===N?function(){return!1}:N,D=Object(o.useState)(!1),M=g()(D,2),I=M[0],k=M[1],P=Object(o.useCallback)((function(){k(!0)})),_=Oe(Object(o.useCallback)((function(){k(!1),O()})),100),R={};return generateCustomizerControls.colorPickerShouldShift&&(R.shift=!0),Object(o.createElement)("div",{className:"generate-color-picker-area"},Object(o.createElement)(d,{color:t||"transparent",tooltip:n,tooltipPosition:l,ariaExpanded:I,onClick:I?_:P}),I&&Object(o.createElement)(s.Popover,i()({position:"bottom center",className:"generate-component-color-picker",onClose:_,focusOnMount:"container"},R),Object(o.createElement)(s.BaseControl,{label:a||"",id:"generate-color-input-field",className:"generate-color-input-main-label"},Object(o.createElement)(Se,{value:t,onChange:m,showAlpha:c}),Object(o.createElement)("div",{className:"generate-color-option-area"},f&&Object(o.createElement)(Ce,{value:r,onChange:w,onBlur:x,onEnable:j,isDisabled:v,helpText:h}),Object(o.createElement)(xe,{value:t,onChange:m,showReset:u,onClickReset:T}),p&&Object(o.createElement)(Ee,{value:t,onChange:m})))))}var Ne=l((function(e){var t,r=function(t){wp.customize.control(e.customizerSetting.id).setting.set(t)},a=!e.choices.hideLabel||void 0===e.choices.hideLabel;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"description customize-control-description",dangerouslySetInnerHTML:{__html:e.description}}),Object(o.createElement)("div",{className:"customize-control-notifications-container",ref:e.setNotificationContainer}),Object(o.createElement)(s.BaseControl,{className:"generate-component-color-picker-wrapper","data-toggleId":e.choices.toggleId?e.choices.toggleId:null},!!e.label&&a&&Object(o.createElement)("div",{className:"generate-color-component-label"},Object(o.createElement)("span",null,e.label)),Object(o.createElement)(je,{value:e.value,hideLabel:!0,tooltipText:(null==e||null===(t=e.choices)||void 0===t?void 0:t.tooltip)||Object(c.__)("Choose Color","generatepress"),tooltipPosition:"top center",showAlpha:!0,showReset:!0,showVariableName:!1,showPalette:!0,variableNameIsDisabled:!0,label:e.label,onChange:function(e){r(e)},onClickReset:function(){r(e.defaultValue)}})))}),{getWrapper:function(){var e=this.container[0];if(this.params.choices.wrapper){var t=document.getElementById(this.params.choices.wrapper+"--wrapper");t&&(e=t,this.container[0].style.display="none")}return this.params.choices.toggleId&&e.setAttribute("data-toggleId",this.params.choices.toggleId),e}});wp.customize.controlConstructor["generate-color-control"]=Ne;var Te=r(12),De=r.n(Te),Me=r(7),Ie=r.n(Me),ke=r(6),Pe=r.n(ke),_e=(r(32),r(15));function Re(){return(Re=Object.assign||function(e){for(var t=1;t2||ot(Ze)>3?"":" "}function gt(e,t){for(;--t&&rt()&&!(Ze<48||Ze>102||Ze>57&&Ze<65||Ze>70&&Ze<97););return it(e,nt()+(t<6&&32==at()&&32==rt()))}function dt(e,t){for(;rt()&&e+Ze!==57&&(e+Ze!==84||47!==at()););return"/*"+it(t,Xe-1)+"*"+Be(47===e?e:rt())}function ft(e){for(;!ot(at());)rt();return it(e,Xe)}function pt(e){return lt(function e(t,r,a,n,i,o,s,l,c){for(var u=0,g=0,d=s,f=0,p=0,v=0,h=1,y=1,m=1,b=0,O="",S=i,w=o,C=n,x=O;y;)switch(v=b,b=rt()){case 34:case 39:case 91:case 40:x+=ct(b);break;case 9:case 10:case 13:case 32:x+=ut(v);break;case 92:x+=gt(nt()-1,7);continue;case 47:switch(at()){case 42:case 47:$e(ht(dt(rt(),nt()),r,a),c);break;default:x+="/"}break;case 123*h:l[u++]=We(x)*m;case 125*h:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+g:p>0&&We(x)-d&&$e(p>32?yt(x+";",n,a,d-1):yt(Ve(x," ","")+";",n,a,d-2),c);break;case 59:x+=";";default:if($e(C=vt(x,r,a,u,g,i,l,O,S=[],w=[],d),o),123===b)if(0===g)e(x,r,C,C,S,o,d,l,w);else switch(f){case 100:case 109:case 115:e(t,C,C,n&&$e(vt(t,C,C,0,0,i,l,O,i,S=[],d),w),i,w,d,l,n?S:w);break;default:e(x,C,C,C,[""],w,d,l,w)}}u=g=p=0,h=m=1,O=x="",d=s;break;case 58:d=1+We(x),p=v;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(Ze=Xe>0?Ue(Qe,--Xe):0,qe--,10===Ze&&(qe=1,Ye--),Ze))continue;switch(x+=Be(b),b*h){case 38:m=g>0?1:(x+="\f",-1);break;case 44:l[u++]=(We(x)-1)*m,m=1;break;case 64:45===at()&&(x+=ct(rt())),f=at(),g=We(O=x+=ft(nt())),b++;break;case 45:45===v&&2==We(x)&&(h=0)}}return o}("",null,null,null,[""],e=st(e),0,[0],e))}function vt(e,t,r,a,n,i,o,s,l,c,u){for(var g=n-1,d=0===n?i:[""],f=Ke(d),p=0,v=0,h=0;p0?d[y]+" "+m:Ve(m,/&\f/g,d[y])))&&(l[h++]=b);return et(e,t,r,0===n?"rule":s,l,c,u)}function ht(e,t,r){return et(e,t,r,"comm",Be(Ze),Ge(e,2,-2),0)}function yt(e,t,r,a){return et(e,t,r,"decl",Ge(e,0,a),Ge(e,a+1,-1),a)}function mt(e,t){for(var r="",a=Ke(e),n=0;n6)switch(Ue(t,r+1)){case 109:if(45!==Ue(t,r+4))break;case 102:return Ve(t,/(.+:)(.+)-([^]+)/,"$1"+Le+"$2-$3$1-moz-"+(108==Ue(t,r+3)?"$3":"$2-$3"))+t;case 115:return~ze(t,"stretch")?e(Ve(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==Ue(t,r+1))break;case 6444:switch(Ue(t,We(t)-3-(~ze(t,"!important")&&10))){case 107:return Ve(t,":",":"+Le)+t;case 101:return Ve(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Le+(45===Ue(t,14)?"inline-":"")+"box$3$1"+Le+"$2$3$1-ms-$2box$3")+t}break;case 5936:switch(Ue(t,r+11)){case 114:return Le+t+"-ms-"+Ve(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Le+t+"-ms-"+Ve(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Le+t+"-ms-"+Ve(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Le+t+"-ms-"+t+t}var a;return t}(e.value,e.length);break;case"@keyframes":return mt([tt(Ve(e.value,"@","@"+Le),e,"")],a);case"rule":if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch((r=/(::plac\w+|:read-\w+)/.exec(r=t))?r[0]:r){case":read-only":case":read-write":return mt([tt(Ve(t,/:(read-\w+)/,":-moz-$1"),e,"")],a);case"::placeholder":return mt([tt(Ve(t,/:(plac\w+)/,":"+Le+"input-$1"),e,""),tt(Ve(t,/:(plac\w+)/,":-moz-$1"),e,""),tt(Ve(t,/:(plac\w+)/,"-ms-input-$1"),e,"")],a)}var r;return""}))}}var Ct=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}},xt=new WeakMap,Et=function(e){if("rule"===e.type&&e.parent&&e.length){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)||xt.get(r))&&!a){xt.set(e,!0);for(var n=[],i=function(e,t){return lt(function(e,t){var r=-1,a=44;do{switch(ot(a)){case 0:38===a&&12===at()&&(t[r]=1),e[r]+=ft(Xe-1);break;case 2:e[r]+=ct(a);break;case 4:if(44===a){e[++r]=58===at()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Be(a)}}while(a=rt());return e}(st(e),t))}(t,n),o=r.props,s=0,l=0;s=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)},kt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pt=/[A-Z]|^ms/g,_t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rt=function(e){return 45===e.charCodeAt(1)},At=function(e){return null!=e&&"boolean"!=typeof e},Lt=Ct((function(e){return Rt(e)?e:e.replace(Pt,"-$&").toLowerCase()})),Ft=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(_t,(function(e,t,r){return Ht={name:t,styles:r,next:Ht},t}))}return 1===kt[e]||Rt(e)||"number"!=typeof t||0===t?t:t+"px"};function Bt(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Ht={name:r.name,styles:r.styles,next:Ht},r.name;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)Ht={name:a.name,styles:a.styles,next:Ht},a=a.next;return r.styles+";"}return function(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n=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}function rr(e){return(rr="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})(e)}var ar=r(25),nr=r.n(ar);function ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){for(var r=0;r-1}function xr(e){return Cr(e)?window.pageYOffset:e.scrollTop}function Er(e,t){Cr(e)?window.scrollTo(0,t):e.scrollTop=t}function jr(e,t,r,a){return r*((e=e/a-1)*e*e+1)+t}function Nr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:mr,n=xr(e),i=t-n,o=10,s=0;function l(){var t=jr(s+=o,n,i,r);Er(e,t),s=f)return{placement:"bottom",maxHeight:t};if(C>=f&&!o)return i&&Nr(l,x,160),{placement:"bottom",maxHeight:t};if(!o&&C>=a||o&&S>=a)return i&&Nr(l,x,160),{placement:"bottom",maxHeight:o?S-m:C-m};if("auto"===n||o){var j=t,N=o?O:w;return N>=a&&(j=Math.min(N-m-s.controlHeight,t)),{placement:"top",maxHeight:j}}if("bottom"===n)return i&&Er(l,x),{placement:"bottom",maxHeight:t};break;case"top":if(O>=f)return{placement:"top",maxHeight:t};if(w>=f&&!o)return i&&Nr(l,E,160),{placement:"top",maxHeight:t};if(!o&&w>=a||o&&O>=a){var T=t;return(!o&&w>=a||o&&O>=a)&&(T=o?O-b:w-b),i&&Nr(l,E,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}var _r=function(e){return"auto"===e?"bottom":e},Rr=Object(f.createContext)({getPortalPlacement:null}),Ar=function(e){cr(r,e);var t=yr(r);function r(){var e;ir(this,r);for(var a=arguments.length,n=new Array(a),i=0;ie.length)&&(t=e.length);for(var r=0,a=new Array(t);r0,v=g-d-u,h=!1;v>t&&o.current&&(a&&a(e),o.current=!1),p&&s.current&&(i&&i(e),s.current=!1),p&&t>v?(r&&!o.current&&r(e),f.scrollTop=g,h=!0,o.current=!0):!p&&-t>u&&(n&&!s.current&&n(e),f.scrollTop=0,h=!0,s.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),g=Object(f.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=Object(f.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),p=Object(f.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),v=Object(f.useCallback)((function(e){if(e){var t=!!kr&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",g,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",p,t)}}),[p,d,g]),h=Object(f.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",g,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",p,!1))}),[p,d,g]);return Object(f.useEffect)((function(){if(t){var e=c.current;return v(e),function(){h(e)}}}),[t,v,h]),function(e){c.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=Object(f.useRef)({}),i=Object(f.useRef)(null),o=Object(f.useCallback)((function(e){if(Pa){var t=document.body,r=t&&t.style;if(a&&Na.forEach((function(e){var t=r&&r[e];n.current[e]=t})),a&&_a<1){var i=parseInt(n.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+i||0;Object.keys(Ta).forEach((function(e){var t=Ta[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(s,"px"))}t&&ka()&&(t.addEventListener("touchmove",Da,Ra),e&&(e.addEventListener("touchstart",Ia,Ra),e.addEventListener("touchmove",Ma,Ra))),_a+=1}}),[]),s=Object(f.useCallback)((function(e){if(Pa){var t=document.body,r=t&&t.style;_a=Math.max(_a-1,0),a&&_a<1&&Na.forEach((function(e){var t=n.current[e];r&&(r[e]=t)})),t&&ka()&&(t.removeEventListener("touchmove",Da,Ra),e&&(e.removeEventListener("touchstart",Ia,Ra),e.removeEventListener("touchmove",Ma,Ra)))}}),[]);return Object(f.useEffect)((function(){if(t){var e=i.current;return o(e),function(){s(e)}}}),[t,o,s]),function(e){i.current=e}}({isEnabled:r});return Jt(p.a.Fragment,null,r&&Jt("div",{onClick:Aa,css:La}),t((function(e){n(e),i(e)})))}var Ba={clearIndicator:Zr,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,r=e.isFocused,a=e.theme,n=a.colors,i=a.borderRadius,o=a.spacing;return{label:"control",alignItems:"center",backgroundColor:t?n.neutral5:n.neutral0,borderColor:t?n.neutral10:r?n.primary:n.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(n.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?n.primary:n.neutral30}}},dropdownIndicator:Xr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,r=e.theme,a=r.spacing.baseUnit,n=r.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?n.neutral10:n.neutral20,marginBottom:2*a,marginTop:2*a,width:1}},input:function(e){var t=e.isDisabled,r=e.theme,a=r.spacing,n=r.colors;return{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,visibility:t?"hidden":"visible",color:n.neutral80}},loadingIndicator:function(e){var t=e.isFocused,r=e.size,a=e.theme,n=a.colors,i=a.spacing.baseUnit;return{label:"loadingIndicator",color:t?n.neutral60:n.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Br,menu:function(e){var t,r=e.placement,a=e.theme,n=a.borderRadius,i=a.spacing,o=a.colors;return t={label:"menu"},Object(ur.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Object(ur.a)(t,"backgroundColor",o.neutral0),Object(ur.a)(t,"borderRadius",n),Object(ur.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(ur.a)(t,"marginBottom",i.menuGutter),Object(ur.a)(t,"marginTop",i.menuGutter),Object(ur.a)(t,"position","absolute"),Object(ur.a)(t,"width","100%"),Object(ur.a)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,r=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},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){var t=e.theme,r=t.spacing,a=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:a/2,display:"flex",margin:r.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,r=t.borderRadius,a=t.colors,n=e.cropWithEllipsis;return{borderRadius:r/2,color:a.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:n?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,r=t.spacing,a=t.borderRadius,n=t.colors;return{alignItems:"center",borderRadius:a/2,backgroundColor:e.isFocused&&n.dangerLight,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:n.dangerLight,color:n.danger}}},noOptionsMessage:Fr,option:function(e){var t=e.isDisabled,r=e.isFocused,a=e.isSelected,n=e.theme,i=n.spacing,o=n.colors;return{label:"option",backgroundColor:a?o.primary:r?o.primary25:"transparent",color:t?o.neutral20:a?o.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(a?o.primary:o.primary50)}}},placeholder:function(e){var t=e.theme,r=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,r=e.theme,a=r.spacing,n=r.colors;return{label:"singleValue",color:t?n.neutral40:n.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2,maxWidth:"calc(100% - ".concat(2*a.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Ha={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}},Va={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Tr(),captureMenuScroll:!Tr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var r=pr({ignoreCase:!0,ignoreAccents:!0,stringify:Ea,trim:!0,matchFrom:"any"},void 0),a=r.ignoreCase,n=r.ignoreAccents,i=r.stringify,o=r.trim,s=r.matchFrom,l=o?xa(t):t,c=o?xa(i(e)):i(e);return a&&(l=l.toLowerCase(),c=c.toLowerCase()),n&&(l=Ca(l),c=wa(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};function za(e,t,r,a){return{type:"option",data:t,isDisabled:Ya(e,t,r),isSelected:qa(e,t,r),label:Ka(e,t),value:$a(e,t),index:a}}function Ua(e,t){return e.options.map((function(r,a){if(r.options){var n=r.options.map((function(r,a){return za(e,r,t,a)})).filter((function(t){return Wa(e,t)}));return n.length>0?{type:"group",data:r,options:n,index:a}:void 0}var i=za(e,r,t,a);return Wa(e,i)?i:void 0})).filter((function(e){return!!e}))}function Ga(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ca(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Wa(e,t){var r=e.inputValue,a=void 0===r?"":r,n=t.data,i=t.isSelected,o=t.label,s=t.value;return(!Xa(e)||!i)&&Ja(e,{label:o,value:s,data:n},a)}var Ka=function(e,t){return e.getOptionLabel(t)},$a=function(e,t){return e.getOptionValue(t)};function Ya(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function qa(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var a=$a(e,t);return r.some((function(t){return $a(e,t)===a}))}function Ja(e,t,r){return!e.filterOption||e.filterOption(t,r)}var Xa=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},Za=1,Qa=function(e){cr(r,e);var t=yr(r);function r(e){var a;return ir(this,r),(a=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.instancePrefix="",a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.controlRef=null,a.getControlRef=function(e){a.controlRef=e},a.focusedOptionRef=null,a.getFocusedOptionRef=function(e){a.focusedOptionRef=e},a.menuListRef=null,a.getMenuListRef=function(e){a.menuListRef=e},a.inputRef=null,a.getInputRef=function(e){a.inputRef=e},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(e,t){var r=a.props,n=r.onChange,i=r.name;t.name=i,a.ariaOnChange(e,t),n(e,t)},a.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,n=a.props,i=n.closeMenuOnSelect,o=n.isMulti;a.onInputChange("",{action:"set-value"}),i&&(a.setState({inputIsHiddenAfterUpdate:!o}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(e,{action:t,option:r})},a.selectOption=function(e){var t=a.props,r=t.blurInputOnSelect,n=t.isMulti,i=t.name,o=a.state.selectValue,s=n&&a.isOptionSelected(e,o),l=a.isOptionDisabled(e,o);if(s){var c=a.getOptionValue(e);a.setValue(o.filter((function(e){return a.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void a.ariaOnChange(e,{action:"select-option",name:i});n?a.setValue([].concat(ca(o),[e]),"select-option",e):a.setValue(e,"select-option")}r&&a.blurInput()},a.removeValue=function(e){var t=a.props.isMulti,r=a.state.selectValue,n=a.getOptionValue(e),i=r.filter((function(e){return a.getOptionValue(e)!==n})),o=t?i:i[0]||null;a.onChange(o,{action:"remove-value",removedValue:e}),a.focusInput()},a.clearValue=function(){var e=a.state.selectValue;a.onChange(a.props.isMulti?[]:null,{action:"clear",removedValues:e})},a.popValue=function(){var e=a.props.isMulti,t=a.state.selectValue,r=t[t.length-1],n=t.slice(0,t.length-1),i=e?n:n[0]||null;a.onChange(i,{action:"pop-value",removedValue:r})},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var e=arguments.length,t=new Array(e),r=0;r5||i>5}},a.onTouchEnd=function(e){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(e.target)&&a.menuListRef&&!a.menuListRef.contains(e.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(e){a.userIsDragging||a.onControlMouseDown(e)},a.onClearIndicatorTouchEnd=function(e){a.userIsDragging||a.onClearIndicatorMouseDown(e)},a.onDropdownIndicatorTouchEnd=function(e){a.userIsDragging||a.onDropdownIndicatorMouseDown(e)},a.handleInputChange=function(e){var t=e.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(t,{action:"input-change"}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(e){a.props.onFocus&&a.props.onFocus(e),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(e){a.menuListRef&&a.menuListRef.contains(document.activeElement)?a.inputRef.focus():(a.props.onBlur&&a.props.onBlur(e),a.onInputChange("",{action:"input-blur"}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1}))},a.onOptionHover=function(e){a.blockOptionHover||a.state.focusedOption===e||a.setState({focusedOption:e})},a.shouldHideSelectedOptions=function(){return Xa(a.props)},a.onKeyDown=function(e){var t=a.props,r=t.isMulti,n=t.backspaceRemovesValue,i=t.escapeClearsValue,o=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,g=t.tabSelectsValue,d=t.openMenuOnFocus,f=a.state,p=f.focusedOption,v=f.focusedValue,h=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(a.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||o)return;a.focusValue("previous");break;case"ArrowRight":if(!r||o)return;a.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(v)a.removeValue(v);else{if(!n)return;r?a.popValue():s&&a.clearValue()}break;case"Tab":if(a.isComposing)return;if(e.shiftKey||!c||!g||!p||d&&a.isOptionSelected(p,h))return;a.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(a.isComposing)return;a.selectOption(p);break}return;case"Escape":c?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close"}),a.onMenuClose()):s&&i&&a.clearValue();break;case" ":if(o)return;if(!c){a.openMenu("first");break}if(!p)return;a.selectOption(p);break;case"ArrowUp":c?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":c?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!c)return;a.focusOption("pageup");break;case"PageDown":if(!c)return;a.focusOption("pagedown");break;case"Home":if(!c)return;a.focusOption("first");break;case"End":if(!c)return;a.focusOption("last");break;default:return}e.preventDefault()}},a.instancePrefix="react-select-"+(a.props.instanceId||++Za),a.state.selectValue=Sr(e.value),a}return sr(r,[{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()}},{key:"componentDidUpdate",value:function(e){var t,r,a,n,i,o=this.props,s=o.isDisabled,l=o.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,r=this.focusedOptionRef,a=t.getBoundingClientRect(),n=r.getBoundingClientRect(),i=r.offsetHeight/3,n.bottom+i>a.bottom?Er(t,Math.min(r.offsetTop+r.clientHeight-t.offsetHeight+i,t.scrollHeight)):n.top-i-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(Ha):pr(pr({},Ha),this.props.theme):Ha}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,a=this.getValue,n=this.selectOption,i=this.setValue,o=this.props,s=o.isMulti,l=o.isRtl,c=o.options;return{clearValue:e,cx:t,getStyles:r,getValue:a,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:n,selectProps:o,setValue:i,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 Ya(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return qa(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ja(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,s=this.getComponents().Input,l=this.state.inputIsHidden,c=this.commonProps,u=a||this.getElementId("input"),g={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return r?p.a.createElement(s,Re({},c,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:o,type:"text",value:n},g)):p.a.createElement(ja,Re({id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:mr,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:o,value:""},g))}},{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,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,g=c.isDisabled,d=c.isMulti,f=c.inputValue,v=c.placeholder,h=this.state,y=h.selectValue,m=h.focusedValue,b=h.isFocused;if(!this.hasValue()||!u)return f?null:p.a.createElement(s,Re({},l,{key:"placeholder",isDisabled:g,isFocused:b}),v);if(d)return y.map((function(t,o){var s=t===m;return p.a.createElement(r,Re({},l,{components:{Container:a,Label:n,Remove:i},isFocused:s,isDisabled:g,key:"".concat(e.getOptionValue(t)).concat(o),index:o,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var O=y[0];return p.a.createElement(o,Re({},l,{data:O,isDisabled:g}),this.formatOptionLabel(O,"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 p.a.createElement(e,Re({},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?p.a.createElement(e,Re({},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 p.a.createElement(r,Re({},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 p.a.createElement(e,Re({},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,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,g=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,v=d.inputValue,h=d.isLoading,y=d.loadingMessage,m=d.minMenuHeight,b=d.maxMenuHeight,O=d.menuIsOpen,S=d.menuPlacement,w=d.menuPosition,C=d.menuPortalTarget,x=d.menuShouldBlockScroll,E=d.menuShouldScrollIntoView,j=d.noOptionsMessage,N=d.onMenuScrollToTop,T=d.onMenuScrollToBottom;if(!O)return null;var D,M=function(t,r){var a=t.type,n=t.data,i=t.isDisabled,o=t.isSelected,s=t.label,l=t.value,d=g===n,f=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:f,onMouseOver:f,tabIndex:-1};return p.a.createElement(c,Re({},u,{innerProps:y,data:n,isDisabled:i,isSelected:o,key:h,label:s,type:a,value:l,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var n=t.data,i=t.options,o=t.index,s="".concat(e.getElementId("group"),"-").concat(o),l="".concat(s,"-heading");return p.a.createElement(r,Re({},u,{key:s,data:n,options:i,Heading:a,headingProps:{id:l,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 I=y({inputValue:v});if(null===I)return null;D=p.a.createElement(s,u,I)}else{var k=j({inputValue:v});if(null===k)return null;D=p.a.createElement(l,u,k)}var P={minMenuHeight:m,maxMenuHeight:b,menuPlacement:S,menuPosition:w,menuShouldScrollIntoView:E},_=p.a.createElement(Ar,Re({},u,P),(function(t){var r=t.ref,a=t.placerProps,o=a.placement,s=a.maxHeight;return p.a.createElement(n,Re({},u,P,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:o}),p.a.createElement(Fa,{captureEnabled:f,onTopArrive:N,onBottomArrive:T,lockEnabled:x},(function(t){return p.a.createElement(i,Re({},u,{innerRef:function(r){e.getMenuListRef(r),t(r)},isLoading:h,maxHeight:s,focusedOption:g}),D)})))}));return C||"fixed"===w?p.a.createElement(o,Re({},u,{appendTo:C,controlElement:this.controlRef,menuPlacement:S,menuPosition:w}),_):_}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,a=t.isDisabled,n=t.isMulti,i=t.name,o=this.state.selectValue;if(i&&!a){if(n){if(r){var s=o.map((function(t){return e.getOptionValue(t)})).join(r);return p.a.createElement("input",{name:i,type:"hidden",value:s})}var l=o.length>0?o.map((function(t,r){return p.a.createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:e.getOptionValue(t)})})):p.a.createElement("input",{name:i,type:"hidden"});return p.a.createElement("div",null,l)}var c=o[0]?this.getOptionValue(o[0]):"";return p.a.createElement("input",{name:i,type:"hidden",value:c})}}},{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,s=this.getFocusableOptions();return p.a.createElement(va,Re({},e,{ariaSelection:r,focusedOption:a,focusedValue:n,isFocused:i,selectValue:o,focusableOptions:s}))}},{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,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,g=this.commonProps=this.getCommonProps();return p.a.createElement(a,Re({},g,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),p.a.createElement(t,Re({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),p.a.createElement(n,Re({},g,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),p.a.createElement(r,Re({},g,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,a=t.clearFocusValueOnUpdate,n=t.inputIsHiddenAfterUpdate,i=e.options,o=e.value,s=e.menuIsOpen,l=e.inputValue,c={};if(r&&(o!==r.value||i!==r.options||s!==r.menuIsOpen||l!==r.inputValue)){var u=Sr(o),g=s?function(e,t){return Ga(Ua(e,t))}(e,u):[],d=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,g),focusedValue:d,clearFocusValueOnUpdate:!1}}var f=null!=n&&e!==r?{inputIsHidden:n,inputIsHiddenAfterUpdate:void 0}:{};return pr(pr(pr({},c),f),{},{prevProps:e})}}]),r}(f.Component);Qa.defaultProps=Va;var en,tn,rn,an=(r(49),r(51),f.Component,en=Qa,rn=tn=function(e){cr(r,e);var t=yr(r);function r(){var e;ir(this,r);for(var a=arguments.length,n=new Array(a),i=0;i1?r-1:0),n=1;n0&&t.forEach((function(e,a){r.push({value:t[a].fontFamily,label:t[a].fontFamily})})),r),onChange:function(e){i("fontFamily",e,a)}})};function En(e,t){var r=[{value:"",label:Object(c.__)("Default","generatepress")},{value:"normal",label:Object(c.__)("Normal","generatepress")},{value:"bold",label:Object(c.__)("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!==_e[e]&&"undefined"!==t.googleFontVariants&&(r=[{value:"",label:Object(c.__)("Default","generatepress")},{value:"normal",label:Object(c.__)("Normal","generatepress")},{value:"bold",label:Object(c.__)("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 Object(o.createElement)(s.SelectControl,{label:Object(c.__)("Font Weight","generatepress"),value:r,options:En(a,mn()),onChange:function(e){n("fontWeight",e,t)}})},Nn=function(e){var t=e.index,r=e.value,a=e.onChange;return Object(o.createElement)(s.SelectControl,{label:Object(c.__)("Text Transform","generatepress"),value:r,options:[{value:"",label:Object(c.__)("Default","generatepress")},{value:"uppercase",label:Object(c.__)("Uppercase","generatepress")},{value:"lowercase",label:Object(c.__)("Lowercase","generatepress")},{value:"capitalize",label:Object(c.__)("Capitalize","generatepress")},{value:"initial",label:Object(c.__)("Normal","generatepress")}],onChange:function(e){a("textTransform",e,t)}})},Tn=function(e){var t=e.index,r=e.value,a=e.onChange;return Object(o.createElement)(s.SelectControl,{label:Object(c.__)("Font Style","generatepress"),value:r,options:[{value:"",label:Object(c.__)("Default","generatepress")},{value:"normal",label:Object(c.__)("Normal","generatepress")},{value:"italic",label:Object(c.__)("Italic","generatepress")},{value:"oblique",label:Object(c.__)("Oblique","generatepress")},{value:"initial",label:Object(c.__)("Initial","generatepress")}],onChange:function(e){a("fontStyle",e,t)}})},Dn=(r(57),function(e){var t=Object(o.useState)("desktop"),r=g()(t,2),a=(r[0],r[1]),n=e.label,i=e.devices;return Object(o.createElement)("div",{className:"components-generate-units-control-header__units"},Object(o.createElement)("div",{className:"components-generate-units-control-label__units"},n),Object(o.createElement)("div",{className:"components-generate-control__units"},Object(o.createElement)(s.ButtonGroup,{className:"components-generate-control-buttons__units","aria-label":Object(c.__)("Select Units","generatepress")},i.map((function(e){var t=Object(c.__)("Desktop","generatepress");return"tablet"===e&&(t=Object(c.__)("Tablet","generatepress")),"mobile"===e&&(t=Object(c.__)("Mobile","generatepress")),Object(o.createElement)(s.Tooltip -/* translators: Unit type (px, em, %) */,{text:Object(c.sprintf)(Object(c.__)("%s Preview","generatepress"),t),key:e},Object(o.createElement)(s.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),a(e)}},we(e)))})))))}),Mn=r(34),In=r.n(Mn),kn=r(35),Pn=r.n(kn),Rn=r(36),An=r.n(Rn),Ln=r(37),Fn=r.n(Ln),Bn=r(28),Hn=r.n(Bn);r(60);var Vn=function(e){An()(n,e);var t,r,a=(t=n,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,a=Hn()(t);if(r){var n=Hn()(this).constructor;e=Reflect.construct(a,arguments,n)}else e=a.apply(this,arguments);return Fn()(this,e)});function n(){return In()(this,n),a.apply(this,arguments)}return Pn()(n,[{key:"render",value:function(){var e=this.props,t=e.label,r=e.value,a=e.onChange,n=e.rangeMin,i=void 0===n?0:n,l=e.rangeMax,c=void 0===l?100:l,u=e.inputMin,g=void 0===u?"":u,d=e.inputMax,f=void 0===d?"":d,p=e.step,v=void 0===p?1:p,h=e.help,y=void 0===h?"":h,m=e.beforeIcon,b=void 0===m?"":m,O=e.initialPosition,S=void 0===O?"":O,w=e.placeholder,C=void 0===w?"":w;return Object(o.createElement)("div",{className:"components-generate-range-control"},t&&Object(o.createElement)("div",{className:"components-generate-range-control--label"},t),Object(o.createElement)("div",{className:"components-generate-range-control--wrapper"},Object(o.createElement)("div",{className:"components-generate-range-control--range"},Object(o.createElement)(s.RangeControl,{className:"generate-range-control-range",beforeIcon:b,value:dn(r)?parseFloat(r):"",onChange:function(e){return a(e)},min:i,max:c,step:v,withInputField:!1,initialPosition:S})),Object(o.createElement)("div",{className:"components-generate-range-control-input"},Object(o.createElement)(s.TextControl,{type:"number",placeholder:""!==C?C:"",min:g,max:f,step:v,value:dn(r)?r:"",onChange:function(e){return a(e)}}))),y&&Object(o.createElement)("p",{className:"components-base-control__help"},y))}}]),n}(o.Component),zn=(r(61),function(e){var t=e.value,r=e.onClick,a=e.units;return Object(o.createElement)("div",{className:"components-generate--control__units"},Object(o.createElement)(s.Dropdown,{className:"generate-component-control--unit-picker",contentClassName:"generate-component-control--unit-picker-area",position:"bottom left",focusOnMount:"container",renderToggle:function(e){var r=e.isOpen,a=e.onToggle;return Object(o.createElement)(s.Button,{onClick:a,"aria-expanded":r},t||we("dash"))},renderContent:function(e){var n=e.onClose;return Object(o.createElement)(s.ButtonGroup,{className:"components-generate--control-buttons__units","aria-label":Object(c.__)("Select Units","generatepress")},a.map((function(e){var a=e,i=e||we("dash");return""===e&&(a=Object(c.__)("No Unit","generatepress")),"px"===e&&(a=Object(c._x)("Pixel","A size unit for CSS markup","generatepress")),"em"===e&&(a=Object(c._x)("Em","A size unit for CSS markup","generatepress")),"%"===e&&(a=Object(c._x)("Percentage","A size unit for CSS markup","generatepress")),"deg"===e&&(a=Object(c._x)("Degree","A size unit for CSS markup","generatepress")),Object(o.createElement)(s.Tooltip -/* translators: Unit type (px, em, %) */,{text:e?Object(c.sprintf)(Object(c.__)("%s Units","generatepress"),a):a,key:e},Object(o.createElement)(s.Button,{key:e,className:"components-generate--control-button__units--"+e,isSmall:!0,isPrimary:t===e,"aria-pressed":t===e -/* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":e?Object(c.sprintf)(Object(c.__)("%s Units","generatepress"),a):a,onClick:function(){r(e),n()}},i))})))}}))}),Un=function(e){var t=e.label,r=e.unitValue,a=e.units,n=e.onChangeUnit,i=e.step,l=e.rangeMin,c=e.rangeMax,u=e.inputMin,g=void 0===u?null:u,d=e.inputMax,f=void 0===d?null:d,p=e.desktopValue,v=e.desktopInitial,h=e.desktopOnChange,y=e.tabletValue,m=e.tabletInitial,b=e.tabletOnChange,O=e.mobileInitial,S=e.mobileValue,w=e.mobileOnChange;return Object(o.createElement)(s.BaseControl,null,Object(o.createElement)(Dn,{label:t,value:r,devices:["desktop","tablet","mobile"]}),Object(o.createElement)("div",{className:"generate-component-input-with-unit"},Object(o.createElement)("div",{className:"generate-component-device-field","data-device":"desktop"},Object(o.createElement)(Vn,{className:"generate-range-control-range",step:i,rangeMin:l,rangeMax:c,inputMin:g,inputMax:f,value:dn(p)?parseFloat(p):v,initialPosition:v,onChange:h,withInputField:!1})),Object(o.createElement)("div",{className:"generate-component-device-field","data-device":"tablet"},Object(o.createElement)(Vn,{"data-generate-control-device":"tablet",className:"generate-range-control-range",step:i,rangeMin:l,rangeMax:c,inputMin:g,inputMax:f,value:dn(y)?parseFloat(y):m,initialPosition:m,onChange:b,withInputField:!1})),Object(o.createElement)("div",{className:"generate-component-device-field","data-device":"mobile"},Object(o.createElement)(Vn,{"data-generate-control-device":"mobile",className:"generate-range-control-range",step:i,rangeMin:l,rangeMax:c,inputMin:g,inputMax:f,value:dn(S)?parseFloat(S):O,initialPosition:O,onChange:w,withInputField:!1})),Object(o.createElement)(zn,{value:r,units:a,onClick:n})))},Gn=function(e){var t=e.font,r=e.onChange;return Object(o.createElement)(Un,{label:Object(c.__)("Font size","generatepress"),unitValue:t.fontSizeUnit,units:["px","em","rem","%"],onChangeUnit:function(e){r("fontSizeUnit",e,t.index)},step:vn(t,"fontSize","step",1),rangeMin:vn(t,"fontSize","min",1),rangeMax:vn(t,"fontSize","max",100),inputMin:0,desktopValue:t.fontSize,desktopInitial:pn(t,"fontSize"),desktopOnChange:function(e){r("fontSize",e,t.index)},tabletValue:t.fontSizeTablet,tabletInitial:pn(t,"fontSizeTablet"),tabletOnChange:function(e){r("fontSizeTablet",e,t.index)},mobileValue:t.fontSizeMobile,mobileInitial:pn(t,"fontSizeMobile"),mobileOnChange:function(e){r("fontSizeMobile",e,t.index)}})},Wn=function(e){var t=e.font,r=e.onChange;return Object(o.createElement)(Un,{label:Object(c.__)("Line Height","generatepress"),unitValue:t.lineHeightUnit,units:["","px","em","rem"],onChangeUnit:function(e){r("lineHeightUnit",e,t.index)},step:vn(t,"lineHeight","step",.1),rangeMin:vn(t,"lineHeight","min",1),rangeMax:vn(t,"lineHeight","max",5),inputMin:0,desktopValue:t.lineHeight,desktopInitial:pn(t,"lineHeight"),desktopOnChange:function(e){r("lineHeight",e,t.index)},tabletValue:t.lineHeightTablet,tabletInitial:pn(t,"lineHeightTablet"),tabletOnChange:function(e){r("lineHeightTablet",e,t.index)},mobileValue:t.lineHeightMobile,mobileInitial:pn(t,"lineHeightMobile"),mobileOnChange:function(e){r("lineHeightMobile",e,t.index)}})},Kn=function(e){var t=e.font,r=e.onChange;return Object(o.createElement)(Un,{label:Object(c.__)("Letter Spacing","generatepress"),unitValue:t.letterSpacingUnit,units:["px","em","rem"],onChangeUnit:function(e){r("letterSpacingUnit",e,t.index)},step:vn(t,"letterSpacing","step",.01),rangeMin:vn(t,"letterSpacing","min",-1),rangeMax:vn(t,"letterSpacing","max",10),desktopValue:t.letterSpacing,desktopInitial:pn(t,"letterSpacing"),desktopOnChange:function(e){r("letterSpacing",e,t.index)},tabletValue:t.letterSpacingTablet,tabletInitial:pn(t,"letterSpacingTablet"),tabletOnChange:function(e){r("letterSpacingTablet",e,t.index)},mobileValue:t.letterSpacingMobile,mobileInitial:pn(t,"letterSpacingMobile"),mobileOnChange:function(e){r("letterSpacingMobile",e,t.index)}})},$n=function(e){var t=e.font,r=e.onChange;return Object(o.createElement)(Un,{label:"body"===t.selector?Object(c.__)("Paragraph Bottom Margin","generatepress"):Object(c.__)("Bottom Margin","generatepress"),unitValue:t.marginBottomUnit,units:["px","em","rem"],onChangeUnit:function(e){r("marginBottomUnit",e,t.index)},step:vn(t,"marginBottom","step",.1),rangeMin:vn(t,"marginBottom","min",0),rangeMax:vn(t,"marginBottom","max",5),inputMin:0,desktopValue:t.marginBottom,desktopInitial:pn(t,"marginBottom"),desktopOnChange:function(e){0>e&&(e=0),r("marginBottom",e,t.index)},tabletValue:t.marginBottomTablet,tabletInitial:pn(t,"marginBottomTablet"),tabletOnChange:function(e){0>e&&(e=0),r("marginBottomTablet",e,t.index)},mobileValue:t.marginBottomMobile,mobileInitial:pn(t,"marginBottomMobile"),mobileOnChange:function(e){0>e&&(e=0),r("marginBottomMobile",e,t.index)}})},Yn=function(e){var t=e.index,r=e.value,a=e.onChange;return Object(o.createElement)(s.SelectControl,{label:Object(c.__)("Text Decoration","generatepress"),value:r,options:[{value:"",label:Object(c.__)("Default","generatepress")},{value:"none",label:Object(c.__)("None","generatepress")},{value:"underline",label:Object(c.__)("Underline","generatepress")}],onChange:function(e){a("textDecoration",e,t)}})},qn=function(e){var t=e.font,r=e.toggleClose,a=e.onChangeFontValue,n=e.onChangeElement;return Object(o.createElement)("div",{className:"generate-customize-control--font-dropdown"},Object(o.createElement)(wn,{index:t.index,value:t.selector,onChange:n}),!!t.selector&&Object(o.createElement)(o.Fragment,null,"custom"===t.selector&&Object(o.createElement)(Cn,{index:t.index,value:t.customSelector,onChange:a}),Object(o.createElement)(xn,{index:t.index,value:t.fontFamily,onChange:a}),Object(o.createElement)("div",{className:"components-base-control generate-font-manager--select-options"},Object(o.createElement)(jn,{index:t.index,value:t.fontWeight,fontFamily:t.fontFamily,onChange:a}),Object(o.createElement)(Nn,{index:t.index,value:t.textTransform,onChange:a}),Object(o.createElement)(Tn,{index:t.index,value:t.fontStyle,onChange:a}),Object(o.createElement)(Yn,{index:t.index,value:t.textDecoration,onChange:a})),Object(o.createElement)(Gn,{font:t,onChange:a}),Object(o.createElement)(Wn,{font:t,onChange:a}),Object(o.createElement)(Kn,{font:t,onChange:a}),hn(t.selector)&&Object(o.createElement)($n,{font:t,onChange:a})),Object(o.createElement)("div",{className:"generate-font-manager--footer"},Object(o.createElement)(s.Button,{isSecondary:!0,isSmall:!0,onClick:r},Object(c.__)("Close","generatepress"))))},Jn=function(e){var t=e.font,r=e.label,a=e.itemId,n=e.setOpen,i=e.isOpen,s=e.deleteFont,l=e.toggleClose,c=e.onChangeFontValue,u=e.onChangeElement;return Object(o.createElement)("div",{className:"generate-font-manager--item"},Object(o.createElement)("div",{className:"generate-font-manager--header"},Object(o.createElement)(bn,{font:t,itemId:a,setOpen:n,isOpen:i,label:r}),Object(o.createElement)(On,{itemId:a,setOpen:n,isOpen:i}),Object(o.createElement)(Sn,{onClick:s.bind(null,t.index),isOpen:i,itemId:a})),a===i&&Object(o.createElement)(qn,{font:t,toggleClose:l,onChangeFontValue:c,onChangeElement:u}))},Xn=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=yn(),r=function(t,r){var a,s=null!==(a=n[r])&&void 0!==a?a:[];if(0!==s.length)return Object(o.createElement)("div",{className:"generate-font-manager-group",key:r},Object(o.createElement)("h4",{className:"generate-font-manager-group__label"},t),s.map((function(t){return Object(o.createElement)(Jn,i()({key:t.index,itemId:t.index+1,font:t},e))})))},Object.values(Object.fromEntries(Object.entries(t).map((function(e){var t=g()(e,2),a=t[0],n=t[1];return[a,r(n,a)]}))))};function Zn(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 Qn(e){for(var t=1;t0&&v.push({label:Object(c.__)("Google Fonts","generatepress"),options:Object.keys(_e).map((function(e){return{value:e,label:e}}))}),d.forEach((function(e){var t=e.googleFont&&generateCustomizerControls.showGoogleFonts&&p.length>0?1:0;v[t].options=v[t].options.filter((function(t){return t.value!==e.fontFamily}))})),Object(o.createElement)("div",null,Object(o.createElement)("div",{className:"customize-control-notifications-container",ref:e.setNotificationContainer}),!!d.length>0&&d.map((function(t,r){var g=r+1,f=function(e){var t=Pe()(d),a=t[r];t[r]=un(un({},t[r]),{},{fontFamily:e}),i(t),void 0!==_e[e]&&generateCustomizerControls.showGoogleFonts?(t[r]=un(un({},t[r]),{},{googleFont:!0,googleFontCategory:_e[e].category,googleFontVariants:_e[e].variants.join(", ")}),i(t)):(t[r]=un(un({},t[r]),{},{googleFont:!1,googleFontCategory:"",googleFontVariants:""}),i(t)),l(t[r].fontFamily,a.fontFamily)},p=d[r].fontFamily||"";return Object(o.createElement)("div",{className:"generate-font-manager--item",key:r},Object(o.createElement)("div",{className:"generate-font-manager--header"},Object(o.createElement)(s.Button,{className:"generate-font-manager--label",onClick:function(){n(g!==a&&g)}},d[r].fontFamily?d[r].fontFamily:e.label),Object(o.createElement)(s.Tooltip,{text:Object(c.__)("Open Font Family Settings","generatepress")},Object(o.createElement)(s.Button,{className:"generate-font-manager--open",onClick:function(){n(g!==a&&g)}},we(g===a?"chevron-up":"chevron-down"))),Object(o.createElement)(s.Tooltip,{text:Object(c.__)("Delete Font Family","generatepress")},Object(o.createElement)(s.Button,{className:"generate-font-manager--delete-font",onClick:function(){if(window.confirm(Object(c.__)("This will permanently delete this font family. Doing so will stop elements from displaying it as their font.","generatepress"))){var e=Pe()(d),t=e[r];l("",t.fontFamily),e.splice(r,1),i(e)}}},we("trash")))),g===a&&Object(o.createElement)("div",{className:"generate-customize-control--font-dropdown"},Object(o.createElement)(s.BaseControl,{className:"generate-component-font-family-picker-wrapper",id:"generate-font-manager-family-name--input"},Object(o.createElement)(sn,{options:v,placeholder:Object(c.__)("Search fonts…","generatepress"),onChange:function(e){return f(e.value)}}),Object(o.createElement)(s.TextControl,{id:"generate-font-manager-family-name--input",className:"generate-font-manager-family-name--input",label:Object(c.__)("Font family name","generatepress"),value:p,onChange:function(e){var t;t=e,d.filter((function(e){return e.fontFamily===t})).length>0&&(alert(Object(c.__)("Font already selected","generatepress")),e=""),f(e)}}),!!d[r].fontFamily&&!!generateCustomizerControls.showGoogleFonts&&Object(o.createElement)("div",{className:"generate-font-manager--options"},Object(o.createElement)(s.ToggleControl,{className:"generate-font-manager-google-font--field",label:Object(c.__)("Use Google Fonts API","generatepress"),checked:!!d[r].googleFont,onChange:function(e){var t=Pe()(d);t[r]=un(un({},t[r]),{},{googleFont:e}),i(t)}}),!!d[r].googleFont&&Object(o.createElement)("div",{className:"generate-font-manager--google-font-options"},Object(o.createElement)(s.TextControl,{label:Object(c.__)("Category","generatepress"),value:d[r].googleFontCategory||"",onChange:function(e){var t=Pe()(d);t[r]=un(un({},t[r]),{},{googleFontCategory:e}),i(t)}}),Object(o.createElement)(s.TextControl,{label:Object(c.__)("Variants","generatepress"),value:d[r].googleFontVariants||"",onChange:function(e){var t=Pe()(d);t[r]=un(un({},t[r]),{},{googleFontVariants:e}),i(t)}}))),Object(o.createElement)("div",{className:"generate-font-manager--footer"},Object(o.createElement)(s.Button,{isSecondary:!0,isSmall:!0,onClick:u},Object(c.__)("Close","generatepress"))))))})),Object(o.createElement)(s.Button,{isPrimary:!0,onClick:function(){var t=Pe()(e.value);t.push({fontFamily:"",googleFont:!1,googleFontApi:1,googleFontCategory:"",googleFontVariants:""}),i(t);var r=wp.customize.control(e.customizerSetting.id).setting.get().length;n(r)}},Object(c.__)("Add Font","generatepress")))})),ti=l((function(e){var t=e.value,r=Object(o.useState)([]),a=g()(r,2),n=a[0],i=a[1],l=Object(o.useState)(0),u=g()(l,2),d=u[0],f=u[1],p=Object(o.useState)(!1),v=g()(p,2),h=v[0],y=v[1];Object(o.useEffect)((function(){Array.isArray(t)?i(t):"object"===De()(t)&&i(Object.values(t))}),[]),Object(o.useEffect)((function(){var t=h?"refresh":"postMessage";wp.customize.control(e.customizerSetting.id).setting.transport=t,wp.customize.control(e.customizerSetting.id).setting.set(n)}),[n]);var m=fn(),b=function(e){y(!0),i(e)};return Object(o.createElement)("div",null,Object(o.createElement)("div",{className:"customize-control-notifications-container",ref:e.setNotificationContainer}),Object(o.createElement)(Xn,{fontList:n,setOpen:f,isOpen:d,label:e.label,deleteFont:function(e){var t=Pe()(n);t.splice(e,1),b(t)},toggleClose:function(){return f(0)},onChangeFontValue:function(e,t,r){var a=Pe()(n);a[r]=Qn({},a[r]),a[r][e]=t,b(a)},onChangeElement:function(e,t){var r=e.value,a=e.group,i=e.module,o=Pe()(n);o[t]=Qn(Qn({},o[t]),{},{selector:r,module:i,group:a});var s=m[r].placeholders;s&&Object.keys(s).forEach((function(e){var a=m[r].placeholders[e].unit;if(a){var n=e+"Unit";o[t]=Qn(Qn({},o[t]),{},Ie()({},n,a))}})),hn(r)||(o[t]=Qn(Qn({},o[t]),{},{marginBottom:"",marginBottomTablet:"",marginBottomMobile:"",marginBottomUnit:""})),b(o)}}),Object(o.createElement)(s.Button,{isPrimary:!0,onClick:function(){var t=Pe()(e.value);t.push({selector:"",customSelector:"",fontFamily:"",fontWeight:"",textTransform:"",textDecoration:"",fontStyle:"",fontSize:"",fontSizeTablet:"",fontSizeMobile:"",fontSizeUnit:"px",lineHeight:"",lineHeightTablet:"",lineHeightMobile:"",lineHeightUnit:"",letterSpacing:"",letterSpacingTablet:"",letterSpacingMobile:"",letterSpacingUnit:"px"}),b(t),f(t.length)}},Object(c.__)("Add Typography","generatepress")))}));wp.customize.controlConstructor["generate-font-manager-control"]=ei,wp.customize.controlConstructor["generate-typography-control"]=ti,r(62);var ri=r(13);function ai(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 ni(e){for(var t=1;t(null==t&&(t=e()),t)}class vi{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 hi{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(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 yi="__NATIVE_FILE__",mi="__NATIVE_URL__",bi="__NATIVE_TEXT__",Oi="__NATIVE_HTML__";function Si(e,t,r){const a=t.reduce((t,r)=>t||e.getData(r),"");return null!=a?a:r}const wi={[yi]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Oi]:{exposeProperties:{html:(e,t)=>Si(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[mi]:{exposeProperties:{urls:(e,t)=>Si(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[bi]:{exposeProperties:{text:(e,t)=>Si(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Ci(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(wi).filter(e=>{const r=wi[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const xi=pi(()=>/firefox/i.test(navigator.userAgent)),Ei=pi(()=>Boolean(window.safari));class ji{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 Ii({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Ii({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=wi[e];if(!r)throw new Error(`native type ${e} has no configuration`);const a=new hi(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&&Ni(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=Ti(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=Ci(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="IMG"===(o=t).nodeName&&(xi()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(o)));var o,s;const l=Ni(i?e:t),c={x:r.x-l.x,y:r.y-l.y},{offsetWidth:u,offsetHeight:g}=e,{anchorX:d,anchorY:f}=a,{dragPreviewWidth:p,dragPreviewHeight:v}=function(e,t,r,a){let n=e?t.width:r,i=e?t.height:a;return Ei()&&e&&(i/=window.devicePixelRatio,n/=window.devicePixelRatio),{dragPreviewWidth:n,dragPreviewHeight:i}}(i,t,u,g),{offsetX:h,offsetY:y}=n,m=0===y||y;return{x:0===h||h?h:new ji([0,.5,1],[c.x,c.x/u*p,c.x+p-u]).interpolate(d),y:m?y:(()=>{let e=new ji([0,.5,1],[c.y,c.y/g*v,c.y+v-g]).interpolate(f);return Ei()&&i&&(e+=(window.devicePixelRatio-1)*v),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=Ci(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:Ti(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=Ti(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)):Ci(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Ti(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 Di(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new vi(this.isNodeInDocument)}}const Pi=function(e,t,r){return new ki(e,t,r)};var _i=r(39),Ri=r.n(_i);const Ai="undefined"!=typeof window?f.useLayoutEffect:f.useEffect;function Li(e,t,r){return function(e,t,r){const[a,n]=function(e,t,r){const[a,n]=Object(f.useState)(()=>t(e)),i=Object(f.useCallback)(()=>{const i=t(e);Ri()(a,i)||(n(i),r&&r())},[a,e,r]);return Ai(i),[a,i]}(e,t,r);return Ai((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(n,{handlerIds:[t]})}),[e,n]),a}(t,e||(()=>({})),()=>r.reconnect())}function Fi(e,t){const r=[...t||[]];return null==t&&"function"!=typeof e&&r.push(e),Object(f.useMemo)(()=>"function"==typeof e?e():e,r)}function Bi(e){return Object(f.useMemo)(()=>e.hooks.dropTarget(),[e])}function Hi(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(!Object(f.isValidElement)(t)){const a=t;return e(a,r),a}const a=t;return 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),function(e,t){const r=e.ref;return Object(zi.a)("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?Object(f.cloneElement)(e,{ref:e=>{Gi(r,e),Gi(t,e)}}):Object(f.cloneElement)(e,{ref:t})}(a,r?t=>e(t,r):e)}}(a);t[r]=()=>e}}),t}function Gi(e,t){"function"==typeof e?e(t):e.current=t}class Wi{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!Hi(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=Ui({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Vi(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}}var Ki=r(38);function $i(){const{dragDropManager:e}=Object(f.useContext)(Ki.a);return Object(zi.a)(null!=e,"Expected drag drop context"),e}let Yi=!1;class qi{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Object(zi.a)(!Yi,"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 Yi=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Yi=!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 Ji{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 Xi(e,t){const r=Fi(e,t),a=function(){const e=$i();return Object(f.useMemo)(()=>new qi(e),[e])}(),n=function(e){const t=$i(),r=Object(f.useMemo)(()=>new Wi(t.getBackend()),[t]);return Ai(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}(r.options);return function(e,t,r){const a=$i(),n=function(e,t){const r=Object(f.useMemo)(()=>new Ji(e,t),[t]);return Object(f.useEffect)(()=>{r.spec=e},[e]),r}(e,t),i=function(e){const{accept:t}=e;return Object(f.useMemo)(()=>(Object(zi.a)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);Ai((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),[Li(r.collect,a,n),Bi(n)]}function Zi(e){return Object(f.useMemo)(()=>e.hooks.dragSource(),[e])}function Qi(e){return Object(f.useMemo)(()=>e.hooks.dragPreview(),[e])}class eo{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!Hi(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Hi(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=Ui({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Vi(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Vi(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 to=!1,ro=!1;class ao{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Object(zi.a)(!to,"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 to=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{to=!1}}isDragging(){if(!this.sourceId)return!1;Object(zi.a)(!ro,"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 ro=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{ro=!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 no{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 io(e,t){const r=Fi(e,t);Object(zi.a)(!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=$i();return Object(f.useMemo)(()=>new ao(e),[e])}(),n=function(e,t){const r=$i(),a=Object(f.useMemo)(()=>new eo(r.getBackend()),[r]);return Ai(()=>(a.dragSourceOptions=e||null,a.reconnect(),()=>a.disconnectDragSource()),[a,e]),Ai(()=>(a.dragPreviewOptions=t||null,a.reconnect(),()=>a.disconnectDragPreview()),[a,t]),a}(r.options,r.previewOptions);return function(e,t,r){const a=$i(),n=function(e,t,r){const a=Object(f.useMemo)(()=>new no(e,t,r),[t,r]);return Object(f.useEffect)(()=>{a.spec=e},[e]),a}(e,t,r),i=function(e){return Object(f.useMemo)(()=>{const t=e.type;return Object(zi.a)(null!=t,"spec.type must be defined"),t},[e])}(e);Ai((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),[Li(r.collect,a,n),Zi(n),Qi(n)]}function oo(e){var t=e.id,r=e.itemType,a=e.onDrop,n=e.getIndex,i=e.className,s=e.innerComponentProps,l=e.InnerComponent,c=io((function(){return{type:r,item:{id:t},collect:function(e){return{isDragging:e.isDragging()}}}}),[t]),u=g()(c,2),d=u[0].isDragging,f=u[1],p=Xi((function(){return{accept:r,hover:function(e){var r=e.id;if(r!==t){var i=n(t);a(r,i)}}}}),[n,a]),v=g()(p,2)[1],h=d?"0.2":1;return Object(o.createElement)("div",{ref:function(e){return f(v(e))},className:i,style:{opacity:h}},l&&Object(o.createElement)(l,s))}function so(e){var t=e.data,r=e.itemIdKey,a=e.onDrop,n=e.getIndex,i=e.itemType,s=e.listClassName,l=e.itemClassName,c=e.InnerComponent,u=Xi((function(){return{accept:i}})),d=g()(u,2)[1];return Object(o.createElement)("div",{ref:d,className:s},t&&t.map((function(e){return Object(o.createElement)(oo,{key:e[r],id:e[r],itemType:i,className:l,onDrop:a,getIndex:n,InnerComponent:c,innerComponentProps:{item:e}})})))}function lo(e){var t=e.idKey,r=void 0===t?"id":t,a=e.acceptedType,n=void 0===a?"simple-list-item":a,i=e.listData,s=void 0===i?[]:i,l=e.onChangeData,c=e.listClassName,u=void 0===c?"":c,d=e.itemClassName,f=void 0===d?"":d,p=e.InnerComponent,v=Object(o.useState)([]),h=g()(v,2),y=h[0],m=h[1];Object(o.useEffect)((function(){m(s)}),[JSON.stringify(s)]),Object(o.useEffect)((function(){l(y)}),[JSON.stringify(y)]);var b=Object(o.useCallback)((function(e){var t=y.find((function(t){return e===t[r]}));return y.indexOf(t)}),[JSON.stringify(y)]),O=Object(o.useCallback)((function(e,t){var r=b(e);m(function(e,t,r){var a=Array.from(e),n=a.splice(t,1),i=g()(n,1)[0];return a.splice(r,0,i),a}(y,r,t))}),[JSON.stringify(y)]);return Object(o.createElement)(fi.a,{backend:Pi},Object(o.createElement)(so,{data:y,itemIdKey:r,onDrop:O,getIndex:b,itemType:n,listClassName:u,itemClassName:f,InnerComponent:p}))}function co(e){var t=e.item;return Object(o.createElement)(s.Tooltip,{text:t.slug,position:"top center"},Object(o.createElement)("span",{style:{backgroundColor:t.color}}))}var uo=l((function(e){var t=function(){var e=Object(o.useReducer)(si,oi),t=g()(e,2),r=t[0],a=t[1];return{colors:r,setColors:function(e){return a({type:"SET_COLORS",payload:e})},addColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a({type:"ADD_COLOR",payload:Object.assign({},ii,{slug:e,color:t})})},deleteColor:function(e){return a({type:"DELETE_COLOR",payload:e})},updateColorValue:function(e,t){return a({type:"UPDATE_COLOR_VALUE",payload:{slug:e,value:t}})},updateColorSlug:function(e,t){return a({type:"UPDATE_COLOR_SLUG",payload:{slug:e,value:t}})}}}(),r=t.colors,a=t.setColors,n=t.addColor,i=t.deleteColor,s=t.updateColorValue,l=t.updateColorSlug,u=Object(o.useState)(!1),d=g()(u,2),f=d[0],p=d[1],v=Object(o.useState)(!1),h=g()(v,2),y=h[0],m=h[1],b=Object(o.useState)([]),O=g()(b,2),S=O[0],w=O[1];Object(o.useEffect)((function(){var t=Object(ri.isObject)(e.value)?Object.values(e.value):e.value;a(t),p(!0)}),[]),Object(o.useEffect)((function(){var t,a;f&&(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),f]);var C=Object(o.useCallback)((function(){n(function e(t){var a="global-color-".concat(t+1);return-1===Object(ri.findIndex)(r,{slug:a})?a:e(t+1)}(r.length))}),[r.length]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"customize-control-notifications-container",ref:e.setNotificationContainer}),Object(o.createElement)("div",{className:"generate-color-manager-wrapper"},Object(o.createElement)("div",{className:"generate-color-manager--item"},Object(o.createElement)(ui,{onClick:C,disabled:y})),Object(o.createElement)("div",{className:"generate-color-manager--item"},Object(o.createElement)(li,{id:"add-color",icon:y?"check":"reorder",text:y?Object(c.__)("Finish re-ordering","generatepress"):Object(c.__)("Re-order colors","generatepress"),onClick:function(e){e.preventDefault(),y&&(a(S),window.sessionStorage.setItem("generateGlobalColors",JSON.stringify(S))),m(!y)}}))),y?Object(o.createElement)(lo,{listData:r,idKey:"slug",listClassName:"generate-color-manager-dnd-list",itemClassName:"generate-color-manager-dnd-list-item",InnerComponent:co,onChangeData:w}):Object(o.createElement)(di,{colors:r,onChangeColor:s,onChangeSlug:l,onClickDeleteColor:i}))}));wp.customize.controlConstructor["generate-color-manager-control"]=uo,r(65);var go=function(e){var t=Object(o.useState)(!1),r=g()(t,2),a=r[0],n=r[1],i=function(){e.choices.sectionRedirect?wp.customize.section(e.choices.toggleId).focus():document.querySelectorAll('[data-toggleId="'+e.choices.toggleId+'"]').forEach((function(e){a?(e.style.display="",n(!1)):(e.style.display="block",n(!0))}))},l=e.choices.tooltipText?e.choices.tooltipText:Object(c.sprintf)(Object(c.__)("Open %s Settings","generatepress"),e.choices.title),u=e.choices.sectionRedirect?"chevron-right":"chevron-down";return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"generate-customize-control-title"},!!e.choices.toggleId&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(s.Tooltip,{text:l},Object(o.createElement)(s.Button,{className:"generate-customize-control-title--label",onClick:i},e.choices.title)),Object(o.createElement)(s.Tooltip,{text:l},Object(o.createElement)(s.Button,{className:"generate-customize-control-title--toggle",onClick:i},we(a?"chevron-up":u)))),!e.choices.toggleId&&Object(o.createElement)("h3",null,e.choices.title)))},fo=wp.customize.Control.extend({ready:function(){this.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(){"resolved"!==this.deferred.embedded.state()&&(this.renderContent(),this.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()},renderContent:function(){var e=Object(o.createElement)(s.SlotFillProvider,null,Object(o.createElement)(go,i()({},this.params,{control:this,choices:this.params.choices,title:this.params.title})),Object(o.createElement)(s.Popover.Slot,null)),t=this.container[0];if(this.params.choices.wrapper){var r=document.getElementById(this.params.choices.wrapper+"--wrapper");r&&(t=r,this.container.hide())}Object(o.render)(e,t)},destroy:function(){Object(o.unmountComponentAtNode)(this.container[0]),wp.customize.Control.prototype.destroy&&wp.customize.Control.prototype.destroy.call(this)}});wp.customize.controlConstructor["generate-title-control"]=fo;var po=r(41),vo=r.n(po),ho=wp.customize.Control.extend({ready:function(){this.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(){"resolved"!==this.deferred.embedded.state()&&(this.renderContent(),this.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()},renderContent:function(){var e=this.params.choices;this.params.choices.toggleId&&this.container[0].setAttribute("data-toggleId",this.params.choices.toggleId),Object(o.render)(Object(o.createElement)("div",{className:vo()(Ie()({"generate-customize-control-wrapper":!0},e.class,!!e.class)),id:e.id,"data-wrapper-type":e.type},e.items.map((function(e){return Object(o.createElement)("div",{key:e,id:e+"--wrapper"})}))),this.container[0])},destroy:function(){Object(o.unmountComponentAtNode)(this.container[0]),wp.customize.Control.prototype.destroy&&wp.customize.Control.prototype.destroy.call(this)}});wp.customize.controlConstructor["generate-wrapper-control"]=ho,document.addEventListener("DOMContentLoaded",(function(){window.sessionStorage.removeItem("generateGlobalColors")}))},,,,function(e,t,r){"use strict";function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}r.d(t,"a",(function(){return te})),r(8);var n="function"==typeof Symbol&&Symbol.observable||"@@observable",i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,r){var i;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(a(1));return r(l)(e,t)}if("function"!=typeof e)throw new Error(a(2));var c=e,u=t,g=[],d=g,f=!1;function p(){d===g&&(d=g.slice())}function v(){if(f)throw new Error(a(3));return u}function h(e){if("function"!=typeof e)throw new Error(a(4));if(f)throw new Error(a(5));var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error(a(6));t=!1,p();var r=d.indexOf(e);d.splice(r,1),g=null}}}function y(e){if(!s(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(f)throw new Error(a(9));try{f=!0,u=c(u,e)}finally{f=!1}for(var t=g=d,r=0;r=0;a--)if(t.canDragSource(e[a])){r=e[a];break}return r}(t,o);if(null==l)return void e.dispatch(h);let d=null;if(n){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Object(c.a)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),d=i(l)}e.dispatch(v(n,d));const f=s.getSource(l).beginDrag(o,l);if(null==f)return;!function(e){Object(c.a)(u(e),"Item must be an object.")}(f),s.pinSource(l);const p=s.getSourceType(l);return{type:g,payload:{itemType:p,item:f,sourceId:l,clientOffset:n||null,sourceClientOffset:d||null,isSourcePublic:!!a}}}}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(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){Object(c.a)(void 0===e||u(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:f,payload:{dropResult:b({},t,o)}};e.dispatch(s)})}}function S(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){Object(c.a)(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:p}}}function w(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function C(e){return function(t,{clientOffset:r}={}){!function(e){Object(c.a)(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];w(t.getTargetType(n),r)||e.splice(a,1)}}(a,i,n.getItemType()),function(e,t,r){Object(c.a)(t.isDragging(),"Cannot call hover while not dragging."),Object(c.a)(!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 j(e,t){return{x:e.x-t.x,y:e.y-t.y}}const N=[],T=[];N.__IS_NONE__=!0,T.__IS_ALL__=!0;class D{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;Object(c.a)("function"==typeof e,"listener must be a function."),Object(c.a)(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{n===a||n===a+1&&!function(e,t){return e!==N&&(e===T||void 0===t||(r=e,t.filter(e=>r.indexOf(e)>-1)).length>0);var r}(t.dirtyHandlerIds,r)||e()}finally{a=n}})}subscribeToOffsetChange(e){Object(c.a)("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 Object(c.a)(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 Object(c.a)(t,"Expected to find a valid target. targetId="+e),!(!this.isDragging()||this.didDrop())&&(w(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 Object(c.a)(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&&!w(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?j((i=a,{x:(n=t).x+i.x,y:n.y+i.y}),r):null;var n,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?j(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}var M=r(29);class I{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 k=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=Object(M.a)(this.flush),this.requestErrorThrow=Object(M.b)(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},P=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new I(this.onError,e=>t[t.length]=e);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(k.registerPendingError),_="dnd-core/REMOVE_TARGET";function R(e,t){t&&Array.isArray(e)?e.forEach(e=>R(e,!1)):Object(c.a)("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 A;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(A||(A={}));let L=0;function F(e){switch(e[0]){case"S":return A.SOURCE;case"T":return A.TARGET;default:throw new Error("Cannot parse handler ID: "+e)}}function B(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 H{addSource(e,t){R(e),function(e){Object(c.a)("function"==typeof e.canDrag,"Expected canDrag to be a function."),Object(c.a)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Object(c.a)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(A.SOURCE,e,t);return this.store.dispatch(function(e){return{type:"dnd-core/ADD_SOURCE",payload:{sourceId:e}}}(r)),r}addTarget(e,t){R(e,!0),function(e){Object(c.a)("function"==typeof e.canDrop,"Expected canDrop to be a function."),Object(c.a)("function"==typeof e.hover,"Expected hover to be a function."),Object(c.a)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(A.TARGET,e,t);return this.store.dispatch(function(e){return{type:"dnd-core/ADD_TARGET",payload:{targetId:e}}}(r)),r}containsHandler(e){return B(this.dragSources,e)||B(this.dropTargets,e)}getSource(e,t=!1){return Object(c.a)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Object(c.a)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Object(c.a)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Object(c.a)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return F(e)===A.SOURCE}isTargetId(e){return F(e)===A.TARGET}removeSource(e){var t;Object(c.a)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:"dnd-core/REMOVE_SOURCE",payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},k.enqueueTask(P.create(t))}removeTarget(e){Object(c.a)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:_,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Object(c.a)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Object(c.a)(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=(L++).toString();switch(e){case A.SOURCE:return"S"+t;case A.TARGET:return"T"+t;default:throw new Error("Unknown Handler Role: "+e)}}(e);return this.types.set(a,t),e===A.SOURCE?this.dragSources.set(a,r):e===A.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 V=(e,t)=>e===t;function z(e=N,t){switch(t.type){case d:break;case"dnd-core/ADD_SOURCE":case"dnd-core/ADD_TARGET":case _:case"dnd-core/REMOVE_SOURCE":return N;case g:case"dnd-core/PUBLISH_DRAG_SOURCE":case p:case f:default:return T}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);if(!(n.length>0)&&function(e,t,r=V){if(e.length!==t.length)return!1;for(let a=0;ae!==n))});case f:return $({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case p:return $({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var a,n}function J(e=0,t){switch(t.type){case"dnd-core/ADD_SOURCE":case"dnd-core/ADD_TARGET":return e+1;case"dnd-core/REMOVE_SOURCE":case _:return e-1;default:return e}}function X(e=0){return e+1}function Z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q(e){for(var t=1;te&&e[t]?e[t]:a||null,r))})}),dragOffset:W(e.dragOffset,t),refCount:J(e.refCount,t),dragOperation:q(e.dragOperation,t),stateId:X(e.stateId)};var r,a}function te(e,t,r={},a=!1){const n=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return l(ee,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(a),i=new D(n,new H(n)),o=new E(n,i),s=e(o,t,r);return o.receiveBackend(s),o}},,,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c}));var a=r(40),n=r(74),i=r(1),o=r(38);let s=0;const l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var c=Object(i.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[c,g]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];return[function(e,t=u(),r,a){const i=t;return i[l]||(i[l]={dragDropManager:Object(n.a)(e,t,r,a)}),i[l]}(e.backend,e.context,e.options,e.debugMode),!e.context]}(r);return Object(i.useEffect)(()=>{if(g){const e=u();return++s,()=>{0==--s&&(e[l]=null)}}},[]),Object(a.jsx)(o.a.Provider,{value:c,children:t})}));function u(){return void 0!==e?e:window}}).call(this,r(33))}]); \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/dashboard.asset.php b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/dashboard.asset.php deleted file mode 100644 index f29908a2..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/dashboard.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '2c95093bcabcb6977ef9df3992f4003b'); \ No newline at end of file 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 755d9692..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/dashboard.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp_generatepress=window.webpackJsonp_generatepress||[]).push([[5],{66:function(e,t,r){},67:function(e,t,r){},68:function(e,t,r){},69:function(e,t,r){}}]),function(e){function t(t){for(var n,a,c=t[0],i=t[1],l=t[2],u=0,d=[];ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"generatepress-dashboard__section-title"},Object(s.createElement)("h2",null,Object(a.__)("Start Customizing","generatepress"))),Object(s.createElement)("div",{className:"generatepress-dashboard__section"},Object.keys(p).map((function(e,t){return Object(s.createElement)("div",{className:"generatepress-dashboard__section-item",key:t},Object(s.createElement)("div",{className:"generatepress-dashboard__section-item-content"},!!p[e].title&&Object(s.createElement)("div",{className:"generatepress-dashboard__section-item-title"},p[e].title),!!p[e].description&&Object(s.createElement)("div",{className:"generatepress-dashboard__section-item-description"},p[e].description)),Object(s.createElement)("div",{className:"generatepress-dashboard__section-item-action"},Object(i.applyFilters)("generate_dashboard_customize_item_action",function(e){var t={className:"components-button is-primary",href:p[e].action.url,target:p[e].action.external?"_blank":null,rel:p[e].action.external?"noreferrer noopener":null};return Object(s.createElement)(s.Fragment,null,!!p[e].action&&Object(s.createElement)("a",t,p[e].action.label||Object(a.__)("Open options","generatepress")))}(e),p[e])))})),Object(i.applyFilters)("generate_dashboard_inside_start_customizing"))))};window.addEventListener("DOMContentLoaded",(function(){Object(s.render)(Object(s.createElement)(p,null),document.getElementById("generatepress-dashboard-app"))})),r(68);var u={themeBuilder:{title:Object(a.__)("Theme Builder","generatepress"),description:Object(a.__)("Design and build your theme elements in the block editor.","generatepress"),icon:Object(s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},Object(s.createElement)("path",{d:"M3 3h7v7H3zM14 3h7v7h-7zM14 14h7v7h-7zM3 14h7v7H3z"})),action:{label:Object(a.__)("Explore our theme builder","generatepress"),url:"https://generatepress.com/premium#theme-builder",external:!0}},siteLibrary:{title:Object(a.__)("Site Library","generatepress"),description:Object(a.__)("Start your site with a professionally-built starter site.","generatepress"),icon:Object(s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},Object(s.createElement)("path",{d:"M2 3h6a4 4 0 014 4v14a3 3 0 00-3-3H2zM22 3h-6a4 4 0 00-4 4v14a3 3 0 013-3h7z"})),action:{label:Object(a.__)("Explore starter sites","generatepress"),url:"https://generatepress.com/premium#site-library",external:!0}},moreOptions:{title:Object(a.__)("More Options","generatepress"),description:Object(a.__)("Add more options like our advanced hook system, mobile header, sticky navigation, infinite scroll, masonry and much more.","generatepress"),icon:Object(s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},Object(s.createElement)("path",{d:"M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6"})),action:{label:Object(a.__)("Explore more options","generatepress"),url:"https://generatepress.com/premium",external:!0}},support:{title:Object(a.__)("Premium Support","generatepress"),description:Object(a.__)("We take support seriously. Gain access to our premium support forums and take advantage of our industry-leading support.","generatepress"),icon:Object(s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},Object(s.createElement)("circle",{cx:"12",cy:"12",r:"10"}),Object(s.createElement)("circle",{cx:"12",cy:"12",r:"4"}),Object(s.createElement)("path",{d:"M4.93 4.93l4.24 4.24M14.83 14.83l4.24 4.24M14.83 9.17l4.24-4.24M14.83 9.17l3.53-3.53M4.93 19.07l4.24-4.24"})),action:{label:Object(a.__)("Explore our support forums","generatepress"),url:"https://generatepress.com/support",external:!0}}},d=function(){var e=Object(s.useState)(!1),t=o()(e,2),r=t[0],n=t[1];return Object(s.useEffect)((function(){r||n(!0)})),generateDashboard.hasPremium?null:r?Object(s.createElement)(s.Fragment,null,!!u>0&&Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"generatepress-dashboard__section-title"},Object(s.createElement)("h2",null,Object(a.__)("GeneratePress Premium","generatepress"))),Object(s.createElement)("div",{className:"generatepress-dashboard__section-description"},Object(s.createElement)("p",null,Object(a.__)("Take GeneratePress to the next level with more options, professionally designed starter sites, and block-based theme building.","gp-premium"))),Object(s.createElement)("div",{className:"generatepress-dashboard__section generatepress-dashboard__premium"},Object.keys(u).map((function(e,t){var r={className:"components-button is-primary",href:u[e].action.url,target:u[e].action.external?"_blank":null,rel:u[e].action.external?"noreferrer noopener":null};return Object(s.createElement)("div",{className:"generatepress-dashboard__premium-item",key:t},Object(s.createElement)("div",{className:"generatepress-dashboard__premium-item-content"},!!u[e].icon&&Object(s.createElement)("div",{className:"generatepress-dashboard__premium-item-icon"},u[e].icon),!!u[e].title&&Object(s.createElement)("div",{className:"generatepress-dashboard__premium-item-title"},u[e].title),!!u[e].description&&Object(s.createElement)("div",{className:"generatepress-dashboard__premium-item-description"},u[e].description)),Object(s.createElement)("div",{className:"generatepress-dashboard__premium-item-action"},!!u[e].action&&Object(s.createElement)("a",r,u[e].action.label||Object(a.__)("Open options","generatepress"))))}))))):Object(s.createElement)(c.Placeholder,{className:"generatepress-dashboard__placeholder"},Object(s.createElement)(c.Spinner,null))};window.addEventListener("DOMContentLoaded",(function(){Object(s.render)(Object(s.createElement)(d,null),document.getElementById("generatepress-dashboard-go-pro"))}));var m=r(12),b=r.n(m),h=r(43),g=r.n(h),_=(r(69),function(){var e=Object(s.useState)(!1),t=o()(e,2),r=t[0],n=t[1],i=Object(s.useState)(!1),l=o()(i,2),p=l[0],u=l[1];return Object(s.useEffect)((function(){r||n(!0)})),generateDashboard.hasPremium?null:r?Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"generatepress-dashboard__section"},Object(s.createElement)("div",{className:"generatepress-dashboard__section-title",style:{marginBottom:0}},Object(s.createElement)("h2",null,Object(a.__)("Reset","generatepress"))),Object(s.createElement)("div",{className:"generatepress-dashboard__section-item-description",style:{marginTop:0}},Object(a.__)("Reset your customizer settings.","generatepress")),Object(s.createElement)(c.Button,{className:"generatepress-dashboard__reset-button",style:{marginTop:"10px"},disabled:!!p,isPrimary:!0,onClick:function(e){window.confirm(Object(a.__)("This will delete all of your customizer settings. It cannot be undone.","generatepress"))&&function(e){u(!0);var t=e.target.nextElementSibling;g()({path:"/generatepress/v1/reset",method:"POST",data:{}}).then((function(e){u(!1),t.classList.add("generatepress-dashboard__section-item-message__show"),"object"===b()(e.response)?t.textContent=Object(a.__)("Settings reset.","generatepress"):t.textContent=e.response,e.success&&e.response?setTimeout((function(){t.classList.remove("generatepress-dashboard__section-item-message__show")}),3e3):t.classList.add("generatepress-dashboard__section-item-message__error")}))}(e)}},!!p&&Object(s.createElement)(c.Spinner,null),!p&&Object(a.__)("Reset","generatepress")),Object(s.createElement)("span",{className:"generatepress-dashboard__section-item-message",style:{marginLeft:"10px"}}))):Object(s.createElement)(c.Placeholder,{className:"generatepress-dashboard__placeholder"},Object(s.createElement)(c.Spinner,null))});window.addEventListener("DOMContentLoaded",(function(){Object(s.render)(Object(s.createElement)(_,null),document.getElementById("generatepress-reset"))}))},9:function(e,t){e.exports=window.wp.hooks}}); \ No newline at end of file diff --git a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/modal.asset.php b/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/modal.asset.php deleted file mode 100644 index adcb5838..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/modal.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('wp-polyfill'), 'version' => 'efb6ba5c87ef19b5793fd0d51b0f598e'); \ No newline at end of file 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 b5ccecba..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/modal.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=73)}({11:function(e,t){e.exports=function(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 a.classList.remove("gp-modal--transition")}),100)}function c(){a.classList.add("gp-modal--transition"),a.removeEventListener("touchstart",f),a.removeEventListener("click",f),document.removeEventListener("keydown",p),d("enable"),s&&s.focus&&s.focus(),a.classList.remove(u),setTimeout((function(){return a.classList.remove("gp-modal--transition")}),500)}function d(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(i)||e.target.parentNode.hasAttribute(i))&&(e.preventDefault(),e.stopPropagation(),c())}function p(e){27===e.keyCode&&c(),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=a.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,o()(e))}},i=Object.assign({},{openTrigger:"data-gpmodal-trigger"}),u=o()(document.querySelectorAll("[".concat(i.openTrigger,"]"))).reduce((function(e,t){var n=t.attributes[i.openTrigger].value;return e[n]=e[n]||[],e[n].push(t),e}),[]);for(var s in u){var l=u[s];i.targetModal=s,i.triggers=o()(l),new a(i)}}}); \ 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 f6540cd7..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/assets/dist/style-customizer.css +++ /dev/null @@ -1,10 +0,0 @@ -.components-base-control__help{margin-top:2px;margin-bottom:0}.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(even){margin-left:5px}.generate-customize-control--popover>.components-popover__content{padding:15px;width:280px;box-sizing:border-box}.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{margin-top:10px;display:flex;flex-direction:column}#customize-control-generate_settings-google_font_display .description{order:10;margin-bottom:0;margin-top:5px} -.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{width:20px;height: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{margin-bottom:0}.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 .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-palette{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{padding:10px;width:295px;box-sizing:border-box}.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(0.6)}@media screen and (max-width: 1666px){.generate-component-color-picker .components-popover__content{width:265px}}.generate-component-color-picker[data-x-axis=left] .components-popover__content{margin-right:-35px !important}.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{position:relative;display:flex;align-items:center;justify-content:space-between}.generate-component-color-picker-wrapper>.components-base-control__field .components-color-palette__item-wrapper{margin:0}.generate-component-color-picker-palette button,.generate-color-picker-area button{width:28px;height:28px;position:relative}.generate-component-color-picker-palette button:hover,.generate-color-picker-area button:hover{background-color:inherit}.generate-component-color-picker-palette button:focus:after,.generate-color-picker-area button:focus:after{width:28px;height:28px;top:0;left:0;border:0;box-shadow:inset 0 0 0 2px #757575}.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;justify-content:center;display:flex;padding:5px;border:1px solid currentColor;border-right:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.generate-color-input--icon svg{height:1em;width:1em;transform:scale(1.3)}.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{position:absolute;bottom:0;right:0;padding:0 8px;min-height:30px;height:auto}.generate-color-input--css-var-name-wrapper button svg{width:1em;height:1em;fill:none} -.generate-font-manager--item{margin-bottom:10px}.generate-font-manager--item .generate-font-manager--header{display:flex;align-items:center}.generate-font-manager--item .generate-font-manager--header .generate-font-manager--label{flex-grow:1;padding-left:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.generate-font-manager--item .generate-font-manager--header .components-button:not(.generate-font-manager--label){background:#fff;border:1px solid #777;padding:0;display:flex;justify-content:center;align-items:center;width:30px;height:30px;min-width:30px;margin-left:5px;border-radius:100%;flex-shrink:0}.generate-font-manager--item .generate-font-manager--header .components-button:not(.generate-font-manager--label) svg{margin-right:0;width:1em;height: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{margin-top:15px;padding-top:15px;border-top:1px solid #ddd}.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(even){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(even){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-top:10px;margin-bottom:20px}.generate-font-manager-group__label{margin-top:0;color:#000;text-transform:uppercase;font-size:11px;margin-bottom:10px}.generate-font-manager-group .generate-font-manager--item:last-child{margin-bottom:0}.generate-customize-control--font-dropdown{background:#fff;padding:15px;margin-top:10px;position:relative}.generate-customize-control--font-dropdown:before{content:"";position:absolute;left:11px;top:-10px;width:0;height:0;border-style:solid;border-width:0 10px 10px 10px;border-color:transparent transparent #fff transparent;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{padding:0;margin:0}.generate-advanced-select__input input[type=text]:focus{box-shadow:none}.generate-advanced-select__option--is-selected{color:rgba(255,255,255,.5) !important} -.components-generate-units-control-header__units{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-generate-control__units .components-generate-control-buttons__units button.components-button{background:#fff;box-shadow:none !important;color:#929da7;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:0;border-radius:0 !important;line-height:20px;padding:0 5px;height:auto}.components-generate-control__units .components-generate-control-buttons__units button.components-button.is-primary{background:#fff !important;color:#000 !important;cursor:default;z-index:1;font-weight:bold}.generate-component-device-field[data-device=desktop],.generate-component-device-field[data-device=tablet],.generate-component-device-field[data-device=mobile]{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} -.components-generate-range-control .components-generate-range-control--wrapper{display:flex;justify-content:space-between}.components-generate-range-control .components-generate-range-control--wrapper .components-generate-range-control--range{width:calc(100% - 80px)}.components-generate-range-control .components-generate-range-control--wrapper .components-generate-range-control-input{width:65px}.components-generate-range-control .components-base-control__help{margin-top:-8px;font-size:12px;font-style:normal;color:#757575} -.components-generate--control__units{display:flex}.generate-component-input-with-unit{display:flex;align-items:center}.generate-component-input-with-unit>div:not(.components-generate--control__units){flex-grow:1}.generate-component-input-with-unit div{margin-bottom:0}.generate-component-input-with-unit .components-generate-range-control--range{max-height:30px}.generate-component-input-with-unit .components-generate-range-control-input input{max-height:30px}.generate-component-control--unit-picker button{height:auto;min-height:30px;margin-left:2px;border:1px solid #444;font-weight:500;font-size:11px;text-transform:uppercase;width:40px;justify-content:center}.components-generate--control-buttons__units{display:flex}.components-generate--control-buttons__units button.components-button{text-transform:uppercase;padding:10px;height:auto;line-height:normal;font-weight:500} -.generate-color-manager-dnd-list{display:flex;flex-wrap:wrap;border:1px dashed #959595;padding:10px 5px 5px}.generate-color-manager-dnd-list .generate-color-manager-dnd-list-item{display:inline-block;height:28px;width:28px;vertical-align:top;cursor:grab;border-radius:50%;margin:0 5px 5px 0;position:relative}.generate-color-manager-dnd-list .generate-color-manager-dnd-list-item:before{content:"";position:absolute;top:1px;left:1px;bottom:1px;right:1px;border-radius:50%;z-index:-1;background:url('data:image/svg+xml,%3Csvg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M6 8V6H4v2h2zM8 8V6h2v2H8zM10 16H8v-2h2v2zM12 16v-2h2v2h-2zM12 18v-2h-2v2H8v2h2v-2h2zM14 18v2h-2v-2h2zM16 18h-2v-2h2v2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z" fill="%23555D65"/%3E%3Cpath d="M18 18v2h-2v-2h2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M8 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" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4 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" fill="%23555D65"/%3E%3C/svg%3E')}.generate-color-manager-dnd-list .generate-color-manager-dnd-list-item span{width:28px;height:28px;display:block;border-radius:50%;position:relative}.generate-color-manager-dnd-list .generate-color-manager-dnd-list-item span:after{content:"";position:absolute;top:-1px;left:-1px;bottom:-1px;right:-1px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);border:1px solid transparent}.generate-color-manager-wrapper{display:flex;flex-wrap:wrap}.generate-color-manager-wrapper .generate-color-manager--item{position:relative;margin-right:5px;margin-bottom:5px}.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{position:absolute;top:-10px;right:-10px;height:auto;min-width:0;padding:2px;background:rgba(0,0,0,.7);color:#fff;border-radius:100%;opacity:0;pointer-events:none;transition:opacity 500ms ease}.generate-color-manager-wrapper .generate-color-manager--item .components-button.generate-color-manager--delete-color svg{width:15px;height:15px;margin-right:0 !important}.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-button.generate-color-manager--delete-color:focus{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{padding:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:100%;background:#fff;border:1px solid #777}.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;padding:0;height:auto}.generate-customize-control-title button.generate-customize-control-title--toggle{background:#fff;border-radius:100%;border:1px solid #777;padding:0;width:28px;height:28px;display:flex;justify-content:center;align-items:center}.generate-customize-control-title button.generate-customize-control-title--toggle svg{width:1em;height:1em;fill:none}.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 1349cf64..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{padding:0 20px;margin:0}.generatepress-dashboard-header{background:#fff;border-bottom:1px solid #e2e4e7;padding:0 20px;text-align:center;display:flex;justify-content:space-between;align-items:center}.generatepress-dashboard-header h1{font-size:17px;font-weight:600;padding-bottom:0;display:flex;align-items:center}.generatepress-dashboard-header h1 svg{width:1em;height:1em;padding-right:10px;fill:#006eb7}.generatepress-dashboard-header__navigation{background:#fff;display:flex}.generatepress-dashboard-header__navigation a{padding:1rem;display:flex;align-items:center;color:inherit;text-decoration:none}.generatepress-dashboard-header__navigation a.active{font-weight:600;box-shadow:inset 0 -3px #007cba}.generatepress-dashboard{max-width:1000px;margin:40px auto;font-size:15px}.generatepress-dashboard h2{font-size:25px;margin:0;line-height:1.2em}.generatepress-dashboard__placeholder.components-placeholder{outline:none;background:none;margin-bottom:50px;box-shadow:none;padding:0}.generatepress-dashboard__section-title{display:flex;align-items:center;margin-bottom:15px}.generatepress-dashboard__section-title>h2:first-child:not(:last-child){margin-right:10px}.generatepress-dashboard__section-description{margin-top:-10px;margin-bottom:20px}.generatepress-dashboard__section-description p{font-size:15px;margin:0}.generatepress-dashboard__section{color:#555;margin-bottom:50px}.generatepress-dashboard__section-item{padding:20px;background:#fff;display:flex;justify-content:space-between;align-items:center}.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{padding-left:20px;display:flex;align-items:center}.generatepress-dashboard__section-item-action>*:not(:last-child){margin-right:10px}.generatepress-dashboard__section-item-action .is-primary .components-spinner{margin-top:0;background:rgba(0,0,0,.1);border-radius:100%}.generatepress-dashboard__section-item-description{font-size:13px;color:#80879a;margin-top:3px}.generatepress-dashboard__section-item-message{display:none;font-size:12px;color:#555;background:#fafafa;padding:5px 10px;border-radius:3px;box-shadow:1px 1px 1px rgba(0,0,0,.05)}.generatepress-dashboard__section-item-message__show{display:inline;color:green}.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{display:flex;flex-wrap:wrap;margin-left:-30px;color:#555}.generatepress-start-customizing__item{padding:30px;background:#fff;margin-left:30px;margin-bottom:30px;width:calc(50% - 30px);box-sizing:border-box;box-shadow:0 0 2px rgba(0,0,0,.1)}.generatepress-start-customizing__icon{color:#fff;background:#1e72bd;height:50px;width:50px;display:flex;align-items:center;justify-content:center;border-radius:100%;margin-bottom:25px}.generatepress-start-customizing__title{font-weight:500;margin-bottom:1em}.generatepress-start-customizing__description{margin-bottom:1em;font-weight:300;line-height:1.5em}.generatepress-start-customizing__action{margin-top:auto}.generatepress-start-customizing__pro{font-size:11px;background:#f0544f;padding:0 5px;display:inline-block;margin-left:5px;color:#fff;border-radius:2px} -.generatepress-dashboard__premium{display:flex;flex-wrap:wrap;margin-left:-30px;color:#555}.generatepress-dashboard__premium-item{padding:30px;background:#fff;margin-left:30px;margin-bottom:30px;width:calc(50% - 30px);box-sizing:border-box;box-shadow:0 0 2px rgba(0,0,0,.1);flex-grow:1}.generatepress-dashboard__premium-item-icon{color:#fff;background:#1e72bd;height:50px;width:50px;display:flex;align-items:center;justify-content:center;border-radius:100%;margin-bottom:25px}.generatepress-dashboard__premium-item-icon svg{width:25px;height:25px}.generatepress-dashboard__premium-item-title{font-weight:500;margin-bottom:10px;display:flex;align-items:center;font-size:17px}.generatepress-dashboard__premium-item-description{margin-bottom:1em;font-weight:300;line-height:1.5em}.generatepress-dashboard__premium-item-action{margin-top:auto}.generatepress-dashboard__premium-item-pro{font-size:11px;background:#f0544f;padding:0 5px;display:inline-block;margin-left:5px;color:#fff;border-radius:2px} -.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 fe1bb3a6..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 7e2526b6..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 n=(t=t||this).closest("li"),o=t.closest("nav").querySelectorAll("ul.toggled-on");if(o&&!t.closest("ul").classList.contains("toggled-on")&&!t.closest("li").classList.contains("sfHover"))for(var l=0;l 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 03c8e4c0..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))return null;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"),r=document.body,c=document.documentElement,u=function(e){if(e&&r.classList.contains("dropdown-hover")){var t=e.querySelectorAll("li.menu-item-has-children");for(p=0;p 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},p=0;p -
- - %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 b8a791e4..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']; - } - - wp_localize_script( - 'generate-block-editor', - 'generatepressBlockEditor', - array( - 'globalSidebarLayout' => 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' => 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' ); - } - - if ( $color_settings['h1_color'] ) { - $css->add_property( 'color', $color_settings['h1_color'] ); - } elseif ( $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 ( $color_settings['content_title_color'] ) { - $css->set_selector( '.editor-styles-wrapper .editor-post-title__input' ); - $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' ); - } - - if ( $color_settings['h2_color'] ) { - $css->add_property( 'color', $color_settings['h2_color'] ); - } elseif ( $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( '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' ); - } - - if ( $color_settings['h3_color'] ) { - $css->add_property( 'color', $color_settings['h3_color'] ); - } elseif ( $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( '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' ); - } - } - - if ( $color_settings['h4_color'] ) { - $css->add_property( 'color', $color_settings['h4_color'] ); - } elseif ( $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( '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' ); - } - } - - if ( $color_settings['h5_color'] ) { - $css->add_property( 'color', $color_settings['h5_color'] ); - } elseif ( $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( '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' ); - } - } - - if ( $color_settings['h6_color'] ) { - $css->add_property( 'color', $color_settings['h6_color'] ); - } elseif ( $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( '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 ccb71b0b..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 ) { - $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 a5e08c01..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-html-attributes.php +++ /dev/null @@ -1,496 +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'; - $attributes['aria-label'] = esc_attr__( 'Content', 'generatepress' ); - - 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 c50b7e9d..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/class-typography.php +++ /dev/null @@ -1,362 +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. - */ - public static function get_css( $module = 'core' ) { - $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']; - } - - $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( '/(? '', - '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; - } -} - -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 d993f9d9..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' => 'generate_sanitize_empty_decimal_integer', - 'fontSizeTablet' => 'generate_sanitize_empty_decimal_integer', - 'fontSizeMobile' => 'generate_sanitize_empty_decimal_integer', - 'fontSizeUnit' => 'sanitize_text_field', - 'lineHeight' => 'generate_sanitize_empty_decimal_integer', - 'lineHeightTablet' => 'generate_sanitize_empty_decimal_integer', - 'lineHeightMobile' => 'generate_sanitize_empty_decimal_integer', - 'lineHeightUnit' => 'sanitize_text_field', - 'letterSpacing' => 'generate_sanitize_empty_negative_decimal_integer', - 'letterSpacingTablet' => 'generate_sanitize_empty_negative_decimal_integer', - 'letterSpacingMobile' => 'generate_sanitize_empty_negative_decimal_integer', - 'letterSpacingUnit' => 'sanitize_text_field', - 'marginBottom' => 'generate_sanitize_empty_decimal_integer', - 'marginBottomTablet' => 'generate_sanitize_empty_decimal_integer', - 'marginBottomMobile' => 'generate_sanitize_empty_decimal_integer', - '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' ); - }, - ) - ); - - $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' ); - }, - ) - ); - - $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 6eee2779..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/header.php +++ /dev/null @@ -1,386 +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 f721da11..00000000 --- a/wp-content/upgrade-temp-backup/themes/generatepress/inc/structure/navigation.php +++ /dev/null @@ -1,635 +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' ); - } -} - -/** - * 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() ) ), - __( 'Read more', 'generatepress' ), - sprintf( - /* translators: Aria-label describing the read more button */ - _x( 'More on %s', 'more on post title', 'generatepress' ), - the_title_attribute( 'echo=0' ) - ) - ) - ); - } -} - -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() ) ), - __( 'Read more', 'generatepress' ), - sprintf( - /* translators: Aria-label describing the read more button */ - _x( 'More on %s', 'more on post title', 'generatepress' ), - the_title_attribute( 'echo=0' ) - ) - ) - ); - } -} - -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.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 -* 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 @@ - - -
    > -
    > - -
    -
    - -