diff --git a/wp-content/plugins/gp-premium/blog/functions/css/columns.css b/wp-content/plugins/gp-premium/blog/functions/css/columns.css index 969c8f4c..6931a338 100644 --- a/wp-content/plugins/gp-premium/blog/functions/css/columns.css +++ b/wp-content/plugins/gp-premium/blog/functions/css/columns.css @@ -127,7 +127,8 @@ margin-left: 0; margin-right: 0; } - .generate-columns-container > * { + .generate-columns-container > *, + .generate-columns-container .generate-columns { padding-left: 0; } .generate-columns-container .page-header { diff --git a/wp-content/plugins/gp-premium/blog/functions/css/columns.min.css b/wp-content/plugins/gp-premium/blog/functions/css/columns.min.css index c5e4ccba..3cf7ea34 100644 --- a/wp-content/plugins/gp-premium/blog/functions/css/columns.min.css +++ b/wp-content/plugins/gp-premium/blog/functions/css/columns.min.css @@ -1 +1 @@ -.masonry-enabled .page-header{position:relative!important}.separate-containers .site-main>.generate-columns-container{margin-bottom:0}.load-more.are-images-unloaded,.masonry-container.are-images-unloaded,.masonry-enabled #nav-below{opacity:0}.generate-columns-container:not(.masonry-container){display:flex;flex-flow:row wrap;align-items:stretch}.generate-columns-container:not(.masonry-container) .generate-columns{display:flex}.generate-columns .inside-article{width:100%;box-sizing:border-box}.generate-columns-activated.post-image-aligned-left .generate-columns-container article:not(.featured-column) .post-image,.generate-columns-activated.post-image-aligned-right .generate-columns-container article:not(.featured-column) .post-image{float:none;text-align:center;margin-left:0;margin-right:0}.generate-columns-container .page-header,.generate-columns-container .paging-navigation{flex:1 1 100%;clear:both}.generate-columns-container .paging-navigation{margin-bottom:0}.no-sidebar .generate-columns-container .inside-article>*{max-width:none}.load-more:not(.has-svg-icon) .button.loading:before{content:"\e900";display:inline-block;font-family:"GP Premium";font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;animation:spin 2s infinite linear;margin-right:7px}.load-more .button:not(.loading) .gp-icon{display:none}.load-more .gp-icon svg{animation:spin 2s infinite linear;margin-right:7px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.generate-columns{box-sizing:border-box}.generate-columns.grid-20,.grid-sizer.grid-20{width:20%}.generate-columns.grid-25,.grid-sizer.grid-25{width:25%}.generate-columns.grid-33,.grid-sizer.grid-33{width:33.3333%}.generate-columns.grid-50,.grid-sizer.grid-50{width:50%}.generate-columns.grid-60,.grid-sizer.grid-60{width:60%}.generate-columns.grid-66,.grid-sizer.grid-66{width:66.66667%}@media (min-width:768px) and (max-width:1024px){.generate-columns.tablet-grid-50,.grid-sizer.tablet-grid-50{width:50%}}@media (max-width:767px){.generate-columns-activated .generate-columns-container{margin-left:0;margin-right:0}.generate-columns-container>*{padding-left:0}.generate-columns-container .page-header{margin-left:0}.generate-columns.mobile-grid-100,.grid-sizer.mobile-grid-100{width:100%}.generate-columns-container>.paging-navigation{margin-left:0}}@media (max-width:768px){.load-more{display:block;text-align:center;margin-bottom:0}} \ No newline at end of file +.masonry-enabled .page-header{position:relative!important}.separate-containers .site-main>.generate-columns-container{margin-bottom:0}.load-more.are-images-unloaded,.masonry-container.are-images-unloaded,.masonry-enabled #nav-below{opacity:0}.generate-columns-container:not(.masonry-container){display:flex;flex-flow:row wrap;align-items:stretch}.generate-columns-container:not(.masonry-container) .generate-columns{display:flex}.generate-columns .inside-article{width:100%;box-sizing:border-box}.generate-columns-activated.post-image-aligned-left .generate-columns-container article:not(.featured-column) .post-image,.generate-columns-activated.post-image-aligned-right .generate-columns-container article:not(.featured-column) .post-image{float:none;text-align:center;margin-left:0;margin-right:0}.generate-columns-container .page-header,.generate-columns-container .paging-navigation{flex:1 1 100%;clear:both}.generate-columns-container .paging-navigation{margin-bottom:0}.no-sidebar .generate-columns-container .inside-article>*{max-width:none}.load-more:not(.has-svg-icon) .button.loading:before{content:"\e900";display:inline-block;font-family:"GP Premium";font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;animation:spin 2s infinite linear;margin-right:7px}.load-more .button:not(.loading) .gp-icon{display:none}.load-more .gp-icon svg{animation:spin 2s infinite linear;margin-right:7px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.generate-columns{box-sizing:border-box}.generate-columns.grid-20,.grid-sizer.grid-20{width:20%}.generate-columns.grid-25,.grid-sizer.grid-25{width:25%}.generate-columns.grid-33,.grid-sizer.grid-33{width:33.3333%}.generate-columns.grid-50,.grid-sizer.grid-50{width:50%}.generate-columns.grid-60,.grid-sizer.grid-60{width:60%}.generate-columns.grid-66,.grid-sizer.grid-66{width:66.66667%}@media (min-width:768px) and (max-width:1024px){.generate-columns.tablet-grid-50,.grid-sizer.tablet-grid-50{width:50%}}@media (max-width:767px){.generate-columns-activated .generate-columns-container{margin-left:0;margin-right:0}.generate-columns-container .generate-columns,.generate-columns-container>*{padding-left:0}.generate-columns-container .page-header{margin-left:0}.generate-columns.mobile-grid-100,.grid-sizer.mobile-grid-100{width:100%}.generate-columns-container>.paging-navigation{margin-left:0}}@media (max-width:768px){.load-more{display:block;text-align:center;margin-bottom:0}} \ No newline at end of file diff --git a/wp-content/plugins/gp-premium/blog/functions/css/style.css b/wp-content/plugins/gp-premium/blog/functions/css/style.css index bc322596..499f5d19 100644 --- a/wp-content/plugins/gp-premium/blog/functions/css/style.css +++ b/wp-content/plugins/gp-premium/blog/functions/css/style.css @@ -238,7 +238,8 @@ margin-left: 0; margin-right: 0; } - .generate-columns-container > * { + .generate-columns-container > *, + .generate-columns-container .generate-columns { padding-left: 0; } .generate-columns-container .page-header { diff --git a/wp-content/plugins/gp-premium/blog/functions/css/style.min.css b/wp-content/plugins/gp-premium/blog/functions/css/style.min.css index 36b0aaa3..e37470be 100644 --- a/wp-content/plugins/gp-premium/blog/functions/css/style.min.css +++ b/wp-content/plugins/gp-premium/blog/functions/css/style.min.css @@ -1 +1 @@ -.post-image-above-header .inside-article .featured-image,.post-image-above-header .inside-article .post-image{margin-top:0;margin-bottom:2em}.post-image-aligned-left .inside-article .featured-image,.post-image-aligned-left .inside-article .post-image{margin-top:0;margin-right:2em;float:left;text-align:left}.post-image-aligned-center .featured-image,.post-image-aligned-center .post-image{text-align:center}.post-image-aligned-right .inside-article .featured-image,.post-image-aligned-right .inside-article .post-image{margin-top:0;margin-left:2em;float:right;text-align:right}.post-image-below-header.post-image-aligned-center .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .post-image,.post-image-below-header.post-image-aligned-right .inside-article .featured-image,.post-image-below-header.post-image-aligned-right .inside-article .post-image{margin-top:2em}.post-image-aligned-left>.featured-image,.post-image-aligned-right>.featured-image{float:none;margin-left:auto;margin-right:auto}.post-image-aligned-left .featured-image{text-align:left}.post-image-aligned-right .featured-image{text-align:right}.post-image-aligned-left .inside-article:after,.post-image-aligned-left .inside-article:before,.post-image-aligned-right .inside-article:after,.post-image-aligned-right .inside-article:before{content:"";display:table}.post-image-aligned-left .inside-article:after,.post-image-aligned-right .inside-article:after{clear:both}.post-image-aligned-left .inside-article,.post-image-aligned-right .inside-article{zoom:1}.one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image,.one-container.post-image-above-header .page-header+.no-featured-image-padding .inside-article .post-image{margin-top:0}.one-container.both-right.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-right.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-right:0}.one-container.both-left.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-left.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0}.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0;margin-right:0}.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .featured-image,.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .post-image{margin-left:0;margin-right:0}@media (max-width:768px){body:not(.post-image-aligned-center) .featured-image,body:not(.post-image-aligned-center) .inside-article .featured-image,body:not(.post-image-aligned-center) .inside-article .post-image{margin-right:0;margin-left:0;float:none;text-align:center}}.masonry-enabled .page-header{position:relative!important}.separate-containers .site-main>.generate-columns-container{margin-bottom:0}.load-more.are-images-unloaded,.masonry-container.are-images-unloaded,.masonry-enabled #nav-below{opacity:0}.generate-columns-container:not(.masonry-container){display:flex;flex-flow:row wrap;align-items:stretch}.generate-columns-container:not(.masonry-container) .generate-columns{display:flex}.generate-columns .inside-article{width:100%;box-sizing:border-box}.generate-columns-activated.post-image-aligned-left .generate-columns-container article:not(.featured-column) .post-image,.generate-columns-activated.post-image-aligned-right .generate-columns-container article:not(.featured-column) .post-image{float:none;text-align:center;margin-left:0;margin-right:0}.generate-columns-container .page-header,.generate-columns-container .paging-navigation{flex:1 1 100%;clear:both}.generate-columns-container .paging-navigation{margin-bottom:0}.no-sidebar .generate-columns-container .inside-article>*{max-width:none}.load-more:not(.has-svg-icon) .button.loading:before{content:"\e900";display:inline-block;font-family:"GP Premium";font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;animation:spin 2s infinite linear;margin-right:7px}.load-more .button:not(.loading) .gp-icon{display:none}.load-more .gp-icon svg{animation:spin 2s infinite linear;margin-right:7px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.generate-columns{box-sizing:border-box}.generate-columns.grid-20,.grid-sizer.grid-20{width:20%}.generate-columns.grid-25,.grid-sizer.grid-25{width:25%}.generate-columns.grid-33,.grid-sizer.grid-33{width:33.3333%}.generate-columns.grid-50,.grid-sizer.grid-50{width:50%}.generate-columns.grid-60,.grid-sizer.grid-60{width:60%}.generate-columns.grid-66,.grid-sizer.grid-66{width:66.66667%}@media (min-width:768px) and (max-width:1024px){.generate-columns.tablet-grid-50,.grid-sizer.tablet-grid-50{width:50%}}@media (max-width:767px){.generate-columns-activated .generate-columns-container{margin-left:0;margin-right:0}.generate-columns-container>*{padding-left:0}.generate-columns-container .page-header{margin-left:0}.generate-columns.mobile-grid-100,.grid-sizer.mobile-grid-100{width:100%}.generate-columns-container>.paging-navigation{margin-left:0}}@media (max-width:768px){.load-more{display:block;text-align:center;margin-bottom:0}} \ No newline at end of file +.post-image-above-header .inside-article .featured-image,.post-image-above-header .inside-article .post-image{margin-top:0;margin-bottom:2em}.post-image-aligned-left .inside-article .featured-image,.post-image-aligned-left .inside-article .post-image{margin-top:0;margin-right:2em;float:left;text-align:left}.post-image-aligned-center .featured-image,.post-image-aligned-center .post-image{text-align:center}.post-image-aligned-right .inside-article .featured-image,.post-image-aligned-right .inside-article .post-image{margin-top:0;margin-left:2em;float:right;text-align:right}.post-image-below-header.post-image-aligned-center .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .post-image,.post-image-below-header.post-image-aligned-right .inside-article .featured-image,.post-image-below-header.post-image-aligned-right .inside-article .post-image{margin-top:2em}.post-image-aligned-left>.featured-image,.post-image-aligned-right>.featured-image{float:none;margin-left:auto;margin-right:auto}.post-image-aligned-left .featured-image{text-align:left}.post-image-aligned-right .featured-image{text-align:right}.post-image-aligned-left .inside-article:after,.post-image-aligned-left .inside-article:before,.post-image-aligned-right .inside-article:after,.post-image-aligned-right .inside-article:before{content:"";display:table}.post-image-aligned-left .inside-article:after,.post-image-aligned-right .inside-article:after{clear:both}.post-image-aligned-left .inside-article,.post-image-aligned-right .inside-article{zoom:1}.one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image,.one-container.post-image-above-header .page-header+.no-featured-image-padding .inside-article .post-image{margin-top:0}.one-container.both-right.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-right.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-right:0}.one-container.both-left.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-left.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0}.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0;margin-right:0}.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .featured-image,.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .post-image{margin-left:0;margin-right:0}@media (max-width:768px){body:not(.post-image-aligned-center) .featured-image,body:not(.post-image-aligned-center) .inside-article .featured-image,body:not(.post-image-aligned-center) .inside-article .post-image{margin-right:0;margin-left:0;float:none;text-align:center}}.masonry-enabled .page-header{position:relative!important}.separate-containers .site-main>.generate-columns-container{margin-bottom:0}.load-more.are-images-unloaded,.masonry-container.are-images-unloaded,.masonry-enabled #nav-below{opacity:0}.generate-columns-container:not(.masonry-container){display:flex;flex-flow:row wrap;align-items:stretch}.generate-columns-container:not(.masonry-container) .generate-columns{display:flex}.generate-columns .inside-article{width:100%;box-sizing:border-box}.generate-columns-activated.post-image-aligned-left .generate-columns-container article:not(.featured-column) .post-image,.generate-columns-activated.post-image-aligned-right .generate-columns-container article:not(.featured-column) .post-image{float:none;text-align:center;margin-left:0;margin-right:0}.generate-columns-container .page-header,.generate-columns-container .paging-navigation{flex:1 1 100%;clear:both}.generate-columns-container .paging-navigation{margin-bottom:0}.no-sidebar .generate-columns-container .inside-article>*{max-width:none}.load-more:not(.has-svg-icon) .button.loading:before{content:"\e900";display:inline-block;font-family:"GP Premium";font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;animation:spin 2s infinite linear;margin-right:7px}.load-more .button:not(.loading) .gp-icon{display:none}.load-more .gp-icon svg{animation:spin 2s infinite linear;margin-right:7px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.generate-columns{box-sizing:border-box}.generate-columns.grid-20,.grid-sizer.grid-20{width:20%}.generate-columns.grid-25,.grid-sizer.grid-25{width:25%}.generate-columns.grid-33,.grid-sizer.grid-33{width:33.3333%}.generate-columns.grid-50,.grid-sizer.grid-50{width:50%}.generate-columns.grid-60,.grid-sizer.grid-60{width:60%}.generate-columns.grid-66,.grid-sizer.grid-66{width:66.66667%}@media (min-width:768px) and (max-width:1024px){.generate-columns.tablet-grid-50,.grid-sizer.tablet-grid-50{width:50%}}@media (max-width:767px){.generate-columns-activated .generate-columns-container{margin-left:0;margin-right:0}.generate-columns-container .generate-columns,.generate-columns-container>*{padding-left:0}.generate-columns-container .page-header{margin-left:0}.generate-columns.mobile-grid-100,.grid-sizer.mobile-grid-100{width:100%}.generate-columns-container>.paging-navigation{margin-left:0}}@media (max-width:768px){.load-more{display:block;text-align:center;margin-bottom:0}} \ No newline at end of file diff --git a/wp-content/plugins/gp-premium/blog/functions/generate-blog.php b/wp-content/plugins/gp-premium/blog/functions/generate-blog.php index fde80ed5..ff830a11 100644 --- a/wp-content/plugins/gp-premium/blog/functions/generate-blog.php +++ b/wp-content/plugins/gp-premium/blog/functions/generate-blog.php @@ -94,7 +94,7 @@ if ( ! function_exists( 'generate_blog_scripts' ) ) { $needs_columns_css = false; $needs_featured_image_css = false; - if ( ( ! is_singular() && $settings['column_layout'] ) || $settings['infinite_scroll'] ) { + if ( generate_blog_get_columns() || $settings['infinite_scroll'] ) { $needs_columns_css = true; } diff --git a/wp-content/plugins/gp-premium/blog/functions/js/scripts.js b/wp-content/plugins/gp-premium/blog/functions/js/scripts.js index adc02104..83370b77 100644 --- a/wp-content/plugins/gp-premium/blog/functions/js/scripts.js +++ b/wp-content/plugins/gp-premium/blog/functions/js/scripts.js @@ -63,6 +63,7 @@ jQuery( document ).ready( function( $ ) { } $button.html( svgIcon + generateBlog.more ).removeClass( 'loading' ); + $( document.body ).trigger( 'post-load' ); } ); $container.on( 'last.infiniteScroll', function() { diff --git a/wp-content/plugins/gp-premium/blog/functions/js/scripts.min.js b/wp-content/plugins/gp-premium/blog/functions/js/scripts.min.js index 2e3ecc13..3afbe784 100644 --- a/wp-content/plugins/gp-premium/blog/functions/js/scripts.min.js +++ b/wp-content/plugins/gp-premium/blog/functions/js/scripts.min.js @@ -1 +1 @@ -jQuery(document).ready(function(t){var i,r,l,s,n,e=t(".masonry-container"),o=!1;e.length&&(o=(i=e.masonry(generateBlog.masonryInit)).data("masonry"),i.imagesLoaded(function(){i.masonry("layout"),i.removeClass("are-images-unloaded"),t(".load-more").removeClass("are-images-unloaded"),t("#nav-below").css("opacity","1"),i.masonry("option",{itemSelector:".masonry-post"});var n=i.find(".masonry-post");i.masonry("appended",n)}),t("#nav-below").insertAfter(".masonry-container"),t(window).on("orientationchange",function(n){i.masonry("layout")})),t(".infinite-scroll").length&&t(".nav-links .next").length&&(r=t("#main article").first().parent(),l=t(".load-more a"),s="",generateBlog.icon&&(s=generateBlog.icon),(n=generateBlog.infiniteScrollInit).outlayer=o,r.infiniteScroll(n),l.on("click",function(n){document.activeElement.blur(),t(this).html(s+generateBlog.loading).addClass("loading")}),r.on("append.infiniteScroll",function(n,e,o,a){t(".generate-columns-container").length||r.append(l.parent()),t(a).find("img").each(function(n,e){var o=e.outerHTML;e.outerHTML=o}),i&&i.imagesLoaded(function(){i.masonry("layout")}),l.html(s+generateBlog.more).removeClass("loading")}),r.on("last.infiniteScroll",function(){t(".load-more").hide()}))}); \ No newline at end of file +jQuery(document).ready(function(t){var i,r,l,s,n,e=t(".masonry-container"),o=!1;e.length&&(o=(i=e.masonry(generateBlog.masonryInit)).data("masonry"),i.imagesLoaded(function(){i.masonry("layout"),i.removeClass("are-images-unloaded"),t(".load-more").removeClass("are-images-unloaded"),t("#nav-below").css("opacity","1"),i.masonry("option",{itemSelector:".masonry-post"});var n=i.find(".masonry-post");i.masonry("appended",n)}),t("#nav-below").insertAfter(".masonry-container"),t(window).on("orientationchange",function(n){i.masonry("layout")})),t(".infinite-scroll").length&&t(".nav-links .next").length&&(r=t("#main article").first().parent(),l=t(".load-more a"),s="",generateBlog.icon&&(s=generateBlog.icon),(n=generateBlog.infiniteScrollInit).outlayer=o,r.infiniteScroll(n),l.on("click",function(n){document.activeElement.blur(),t(this).html(s+generateBlog.loading).addClass("loading")}),r.on("append.infiniteScroll",function(n,e,o,a){t(".generate-columns-container").length||r.append(l.parent()),t(a).find("img").each(function(n,e){var o=e.outerHTML;e.outerHTML=o}),i&&i.imagesLoaded(function(){i.masonry("layout")}),l.html(s+generateBlog.more).removeClass("loading"),t(document.body).trigger("post-load")}),r.on("last.infiniteScroll",function(){t(".load-more").hide()}))}); \ No newline at end of file diff --git a/wp-content/plugins/gp-premium/colors/functions/js/customizer.js b/wp-content/plugins/gp-premium/colors/functions/js/customizer.js index 58e641b6..f3937f6e 100644 --- a/wp-content/plugins/gp-premium/colors/functions/js/customizer.js +++ b/wp-content/plugins/gp-premium/colors/functions/js/customizer.js @@ -260,9 +260,9 @@ generate_colors_live_update( 'navigation_text_color', wp.customize( 'generate_settings[navigation_search_background_color]', function( value ) { value.bind( function( newval ) { if ( jQuery( 'style#navigation_search_background_color' ).length ) { - jQuery( 'style#navigation_search_background_color' ).html( '.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{background-color:' + newval + ';}' ); + jQuery( 'style#navigation_search_background_color' ).html( '.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{background-color:' + newval + ';}' ); } else { - jQuery( 'head' ).append( '' ); + jQuery( 'head' ).append( '' ); setTimeout(function() { jQuery( 'style#navigation_search_background_color' ).not( ':last' ).remove(); }, 1000); @@ -286,7 +286,7 @@ wp.customize( 'generate_settings[navigation_search_background_color]', function( } ); } ); -generate_colors_live_update( 'navigation_search_text_color', '.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', 'color', '' ); +generate_colors_live_update( 'navigation_search_text_color', '.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', 'color', '' ); /** * Secondary navigation text color hover diff --git a/wp-content/plugins/gp-premium/elements/assets/admin/wp-color-picker-alpha.min.js b/wp-content/plugins/gp-premium/elements/assets/admin/wp-color-picker-alpha.min.js deleted file mode 100644 index db88dc7c..00000000 --- a/wp-content/plugins/gp-premium/elements/assets/admin/wp-color-picker-alpha.min.js +++ /dev/null @@ -1,11 +0,0 @@ -/**! - * wp-color-picker-alpha - * - * Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker - * Only run in input and is defined data alpha in true - * - * Version: 2.1.4 - * https://github.com/kallookoo/wp-color-picker-alpha - * Licensed under the GPLv2 license or later. - */ -!function(t){if(!t.wp.wpColorPicker.prototype._hasAlpha){var o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",r='
',e='
',a='',i=void 0!==wpColorPickerL10n.current;if(i)var n='';else{n='';var l="",s=''}Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var t=parseInt(this._color,10).toString(16);return this.error?"":(t.length<6&&(t=("00000"+t).substr(-6)),"#"+t)},t.widget("wp.wpColorPicker",t.wp.wpColorPicker,{_hasAlpha:!0,_create:function(){if(t.support.iris){var p=this,c=p.element;if(t.extend(p.options,c.data()),"hue"===p.options.type)return p._createHueOnly();p.close=t.proxy(p.close,p),p.initialValue=c.val(),c.addClass("wp-color-picker"),i?(c.hide().wrap(e),p.wrap=c.parent(),p.toggler=t(n).insertBefore(c).css({backgroundColor:p.initialValue}).attr("title",wpColorPickerL10n.pick).attr("data-current",wpColorPickerL10n.current),p.pickerContainer=t(r).insertAfter(c),p.button=t(a).addClass("hidden")):(c.parent("label").length||(c.wrap(l),p.wrappingLabelText=t(s).insertBefore(c).text(wpColorPickerL10n.defaultLabel)),p.wrappingLabel=c.parent(),p.wrappingLabel.wrap(e),p.wrap=p.wrappingLabel.parent(),p.toggler=t(n).insertBefore(p.wrappingLabel).css({backgroundColor:p.initialValue}),p.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick),p.pickerContainer=t(r).insertAfter(p.wrappingLabel),p.button=t(a)),p.options.defaultColor?(p.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString),i||p.button.attr("aria-label",wpColorPickerL10n.defaultAriaLabel)):(p.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear),i||p.button.attr("aria-label",wpColorPickerL10n.clearAriaLabel)),i?c.wrap('').after(p.button):(p.wrappingLabel.wrap('', esc_url( apply_filters( 'generate_logo_href', home_url( '/' ) ) ), @@ -748,7 +797,7 @@ class GeneratePress_Hero { printf( '', esc_url( apply_filters( 'generate_logo_href', home_url( '/' ) ) ), @@ -817,7 +866,10 @@ class GeneratePress_Hero { $options = self::get_options(); if ( strpos( $options['content'], '{{post_title}}' ) !== false ) { - add_filter( 'generate_show_title', '__return_false' ); + if ( is_singular() ) { + add_filter( 'generate_show_title', '__return_false' ); + } + remove_action( 'generate_archive_title', 'generate_archive_title' ); add_filter( 'post_class', array( self::$hero, 'remove_hentry' ) ); } diff --git a/wp-content/plugins/gp-premium/elements/class-metabox.php b/wp-content/plugins/gp-premium/elements/class-metabox.php index eb20dade..cddfc74e 100644 --- a/wp-content/plugins/gp-premium/elements/class-metabox.php +++ b/wp-content/plugins/gp-premium/elements/class-metabox.php @@ -152,19 +152,7 @@ class GeneratePress_Elements_Metabox { wp_enqueue_media(); wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_style( 'wp-color-picker' ); - wp_enqueue_script( 'wp-color-picker-alpha', plugin_dir_url( __FILE__ ) . 'assets/admin/wp-color-picker-alpha.min.js', array( 'wp-color-picker' ), GP_PREMIUM_VERSION, true ); - wp_localize_script( - 'wp-color-picker-alpha', - 'wpColorPickerL10n', - array( - 'defaultLabel' => __( 'Color value', 'gp-premium' ), - 'pick' => __( 'Select Color', 'gp-premium' ), - 'defaultString' => __( 'Default', 'gp-premium' ), - 'defaultAriaLabel' => __( 'Select default color', 'gp-premium' ), - 'clear' => __( 'Clear', 'gp-premium' ), - 'clearAriaLabel' => __( 'Clear color', 'gp-premium' ), - ) - ); + wp_enqueue_script( 'wp-color-picker-alpha', GP_LIBRARY_DIRECTORY_URL . 'alpha-color-picker/wp-color-picker-alpha.min.js', array( 'wp-color-picker' ), '2.1.4', true ); if ( function_exists( 'wp_add_inline_script' ) && function_exists( 'generate_get_default_color_palettes' ) ) { // Grab our palette array and turn it into JS. @@ -1256,7 +1244,7 @@ class GeneratePress_Elements_Metabox { /> - + @@ -2040,7 +2028,13 @@ class GeneratePress_Elements_Metabox { public function get_terms() { check_ajax_referer( 'generate-elements-location', 'nonce' ); - if ( ! current_user_can( 'manage_options' ) ) { + $current_user_can = 'manage_options'; + + if ( apply_filters( 'generate_elements_metabox_ajax_allow_editors', false ) ) { + $current_user_can = 'edit_posts'; + } + + if ( ! current_user_can( $current_user_can ) ) { return; } @@ -2063,7 +2057,13 @@ class GeneratePress_Elements_Metabox { public function get_posts() { check_ajax_referer( 'generate-elements-location', 'nonce' ); - if ( ! current_user_can( 'manage_options' ) ) { + $current_user_can = 'manage_options'; + + if ( apply_filters( 'generate_elements_metabox_ajax_allow_editors', false ) ) { + $current_user_can = 'edit_posts'; + } + + if ( ! current_user_can( $current_user_can ) ) { return; } @@ -2352,6 +2352,21 @@ class GeneratePress_Elements_Metabox { ); } + if ( function_exists( 'generate_is_using_flexbox' ) && generate_is_using_flexbox() ) { + $hooks['navigation']['hooks'][] = 'generate_menu_bar_items'; + } + + if ( defined( 'GENERATE_VERSION' ) && version_compare( GENERATE_VERSION, '3.0.0-alpha.1', '>' ) ) { + $hooks['navigation']['hooks'][] = 'generate_before_navigation'; + $hooks['navigation']['hooks'][] = 'generate_after_navigation'; + $hooks['navigation']['hooks'][] = 'generate_after_mobile_menu_button'; + $hooks['navigation']['hooks'][] = 'generate_inside_mobile_menu_control_wrapper'; + + $hooks['content']['hooks'][] = 'generate_after_loop'; + $hooks['content']['hooks'][] = 'generate_before_do_template_part'; + $hooks['content']['hooks'][] = 'generate_after_do_template_part'; + } + return apply_filters( 'generate_hooks_list', $hooks ); } diff --git a/wp-content/plugins/gp-premium/elements/class-post-type.php b/wp-content/plugins/gp-premium/elements/class-post-type.php index cd12b8c7..dec6956b 100644 --- a/wp-content/plugins/gp-premium/elements/class-post-type.php +++ b/wp-content/plugins/gp-premium/elements/class-post-type.php @@ -273,7 +273,13 @@ class GeneratePress_Elements_Post_Type { if ( 'hook' === $block_type && $hook_location ) { echo '
'; - echo '' . esc_html( $hook_location ) . ''; + + if ( 'custom' === $hook_location ) { + $custom_hook = get_post_meta( $post_id, '_generate_custom_hook', true ); + echo '' . esc_html( $custom_hook ) . ''; + } else { + echo '' . esc_html( $hook_location ) . ''; + } } } } @@ -287,7 +293,13 @@ class GeneratePress_Elements_Post_Type { if ( $hook_location ) { echo '
'; - echo '' . esc_html( $hook_location ) . ''; + + if ( 'custom' === $hook_location ) { + $custom_hook = get_post_meta( $post_id, '_generate_custom_hook', true ); + echo '' . esc_html( $custom_hook ) . ''; + } else { + echo '' . esc_html( $hook_location ) . ''; + } } } diff --git a/wp-content/plugins/gp-premium/elements/elements.php b/wp-content/plugins/gp-premium/elements/elements.php index 41157db9..169d9289 100644 --- a/wp-content/plugins/gp-premium/elements/elements.php +++ b/wp-content/plugins/gp-premium/elements/elements.php @@ -35,10 +35,18 @@ function generate_premium_do_elements() { 'post_status' => 'publish', 'numberposts' => 500, // phpcs:ignore 'fields' => 'ids', - 'order' => 'ASC', 'suppress_filters' => false, ); + $custom_args = apply_filters( + 'generate_elements_custom_args', + array( + 'order' => 'ASC', + ) + ); + + $args = array_merge( $args, $custom_args ); + // Prevent Polylang from altering the query. if ( function_exists( 'pll_get_post_language' ) ) { $args['lang'] = ''; diff --git a/wp-content/plugins/gp-premium/general/class-external-file-css.php b/wp-content/plugins/gp-premium/general/class-external-file-css.php index ed29fca5..9cba2f41 100644 --- a/wp-content/plugins/gp-premium/general/class-external-file-css.php +++ b/wp-content/plugins/gp-premium/general/class-external-file-css.php @@ -188,7 +188,13 @@ class GeneratePress_External_CSS_File { */ public function enqueue_dynamic_css() { if ( 'file' === $this->mode() ) { - wp_enqueue_style( 'generatepress-dynamic', esc_url( $this->file( 'uri' ) ), array(), null ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion + wp_enqueue_style( 'generatepress-dynamic', esc_url( $this->file( 'uri' ) ), array( 'generate-style' ), null ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion + + // Move the child theme after our dynamic stylesheet. + if ( is_child_theme() && wp_style_is( 'generate-child', 'enqueued' ) ) { + wp_dequeue_style( 'generate-child' ); + wp_enqueue_style( 'generate-child' ); + } // Re-add no-cache CSS in GP < 3.0.0. if ( ! function_exists( 'generate_get_dynamic_css' ) && function_exists( 'generate_no_cache_dynamic_css' ) ) { diff --git a/wp-content/plugins/gp-premium/gp-premium.php b/wp-content/plugins/gp-premium/gp-premium.php index 69c657b5..845aa5ea 100644 --- a/wp-content/plugins/gp-premium/gp-premium.php +++ b/wp-content/plugins/gp-premium/gp-premium.php @@ -3,7 +3,7 @@ * Plugin Name: GP Premium * Plugin URI: https://generatepress.com * Description: The entire collection of GeneratePress premium modules. - * Version: 1.11.3 + * Version: 1.12.2 * Author: Tom Usborne * Author URI: https://generatepress.com * License: GNU General Public License v2 or later @@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } -define( 'GP_PREMIUM_VERSION', '1.11.3' ); +define( 'GP_PREMIUM_VERSION', '1.12.2' ); define( 'GP_PREMIUM_DIR_PATH', plugin_dir_path( __FILE__ ) ); define( 'GP_LIBRARY_DIRECTORY', plugin_dir_path( __FILE__ ) . 'library/' ); define( 'GP_LIBRARY_DIRECTORY_URL', plugin_dir_url( __FILE__ ) . 'library/' ); diff --git a/wp-content/plugins/gp-premium/inc/deprecated.php b/wp-content/plugins/gp-premium/inc/deprecated.php index a01d53a1..4c713be1 100644 --- a/wp-content/plugins/gp-premium/inc/deprecated.php +++ b/wp-content/plugins/gp-premium/inc/deprecated.php @@ -620,6 +620,20 @@ function generate_sites_refresh_link() { ); } +/** + * Delete our sites transient if the Refresh sites link is clicked. + * + * @since 1.6 + * @deprecated 1.12.0 + */ +function generate_sites_refresh_list() { + if ( ! isset( $_GET['refresh_sites_nonce'] ) || ! wp_verify_nonce( $_GET['refresh_sites_nonce'], 'refresh_sites' ) ) { + return; + } + + delete_transient( 'generatepress_sites' ); +} + if ( ! function_exists( 'generate_insert_import_export' ) ) { /** * @deprecated 1.7 diff --git a/wp-content/plugins/gp-premium/langs/gp-premium-de_DE.mo b/wp-content/plugins/gp-premium/langs/gp-premium-de_DE.mo index 444a89ab..0083bea9 100644 Binary files a/wp-content/plugins/gp-premium/langs/gp-premium-de_DE.mo and b/wp-content/plugins/gp-premium/langs/gp-premium-de_DE.mo differ diff --git a/wp-content/plugins/gp-premium/langs/gp-premium-es_ES.mo b/wp-content/plugins/gp-premium/langs/gp-premium-es_ES.mo index 6286b3f4..abc4e8d8 100644 Binary files a/wp-content/plugins/gp-premium/langs/gp-premium-es_ES.mo and b/wp-content/plugins/gp-premium/langs/gp-premium-es_ES.mo differ diff --git a/wp-content/plugins/gp-premium/langs/gp-premium-fi.mo b/wp-content/plugins/gp-premium/langs/gp-premium-fi.mo index fdecb60c..cd9f9bb2 100644 Binary files a/wp-content/plugins/gp-premium/langs/gp-premium-fi.mo and b/wp-content/plugins/gp-premium/langs/gp-premium-fi.mo differ diff --git a/wp-content/plugins/gp-premium/langs/gp-premium-pt_PT.mo b/wp-content/plugins/gp-premium/langs/gp-premium-pt_PT.mo index 17fe18bd..8e1d6685 100644 Binary files a/wp-content/plugins/gp-premium/langs/gp-premium-pt_PT.mo and b/wp-content/plugins/gp-premium/langs/gp-premium-pt_PT.mo differ diff --git a/wp-content/plugins/gp-premium/langs/gp-premium-sv_SE.mo b/wp-content/plugins/gp-premium/langs/gp-premium-sv_SE.mo index a0924ff2..f3797c60 100644 Binary files a/wp-content/plugins/gp-premium/langs/gp-premium-sv_SE.mo and b/wp-content/plugins/gp-premium/langs/gp-premium-sv_SE.mo differ diff --git a/wp-content/plugins/gp-premium/langs/gp-premium.pot b/wp-content/plugins/gp-premium/langs/gp-premium.pot index ddff2b2c..97275d83 100644 --- a/wp-content/plugins/gp-premium/langs/gp-premium.pot +++ b/wp-content/plugins/gp-premium/langs/gp-premium.pot @@ -1,17 +1,17 @@ # Copyright (C) 2020 Tom Usborne -# This file is distributed under the GNU General Public License v2 or later. +# This file is distributed under the same license as the GP Premium plugin. msgid "" msgstr "" -"Project-Id-Version: GP Premium 1.11.0-beta.1\n" +"Project-Id-Version: GP Premium 1.12.0-alpha.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gp-premium\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2020-07-29T17:14:37+00:00\n" +"POT-Creation-Date: 2020-09-16T17:49:53+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"X-Generator: WP-CLI 2.5.0-alpha\n" +"X-Generator: WP-CLI 2.4.0\n" "X-Domain: gp-premium\n" #. Plugin Name of the plugin @@ -49,11 +49,11 @@ msgstr "" #: backgrounds/functions/functions.php:233 #: backgrounds/functions/functions.php:258 #: colors/functions/functions.php:82 -#: disable-elements/functions/functions.php:136 -#: disable-elements/functions/functions.php:138 -#: disable-elements/functions/functions.php:312 -#: disable-elements/functions/functions.php:314 -#: elements/class-metabox.php:1208 +#: disable-elements/functions/functions.php:142 +#: disable-elements/functions/functions.php:144 +#: disable-elements/functions/functions.php:318 +#: disable-elements/functions/functions.php:320 +#: elements/class-metabox.php:1196 #: typography/functions/functions.php:256 msgid "Top Bar" msgstr "" @@ -63,14 +63,14 @@ msgstr "" #: backgrounds/functions/functions.php:364 #: colors/functions/functions.php:167 #: colors/functions/functions.php:179 -#: disable-elements/functions/functions.php:142 -#: disable-elements/functions/functions.php:144 -#: disable-elements/functions/functions.php:318 -#: disable-elements/functions/functions.php:320 -#: elements/class-metabox.php:243 +#: disable-elements/functions/functions.php:148 +#: disable-elements/functions/functions.php:150 +#: disable-elements/functions/functions.php:324 +#: disable-elements/functions/functions.php:326 +#: elements/class-metabox.php:231 #: elements/class-metabox.php:2178 -#: elements/class-post-type.php:282 -#: elements/class-post-type.php:414 +#: elements/class-post-type.php:288 +#: elements/class-post-type.php:426 #: library/customizer-helpers.php:129 #: spacing/functions/customizer/header-spacing.php:16 #: typography/functions/functions.php:370 @@ -82,11 +82,11 @@ msgstr "" #: backgrounds/functions/functions.php:438 #: colors/functions/functions.php:279 #: colors/functions/functions.php:291 -#: disable-elements/functions/functions.php:147 -#: disable-elements/functions/functions.php:149 -#: disable-elements/functions/functions.php:341 -#: disable-elements/functions/functions.php:343 -#: elements/class-metabox.php:1217 +#: disable-elements/functions/functions.php:153 +#: disable-elements/functions/functions.php:155 +#: disable-elements/functions/functions.php:347 +#: disable-elements/functions/functions.php:349 +#: elements/class-metabox.php:1205 #: library/customizer-helpers.php:147 #: spacing/functions/customizer/navigation-spacing.php:16 #: typography/functions/functions.php:631 @@ -212,15 +212,15 @@ msgstr "" #: blog/functions/customizer.php:49 #: colors/functions/functions.php:749 #: colors/functions/functions.php:761 -#: elements/class-metabox.php:304 -#: elements/class-metabox.php:1083 -#: elements/class-metabox.php:1090 -#: elements/class-metabox.php:1104 -#: elements/class-metabox.php:1111 -#: elements/class-metabox.php:1118 +#: elements/class-metabox.php:292 +#: elements/class-metabox.php:1071 +#: elements/class-metabox.php:1078 +#: elements/class-metabox.php:1092 +#: elements/class-metabox.php:1099 +#: elements/class-metabox.php:1106 #: elements/class-metabox.php:2202 #: library/customizer-helpers.php:169 -#: page-header/functions/metabox.php:182 +#: page-header/functions/metabox.php:183 #: sections/functions/metaboxes/metabox-functions.php:248 #: sections/functions/metaboxes/metabox-functions.php:251 #: spacing/functions/customizer/content-spacing.php:16 @@ -231,7 +231,7 @@ msgstr "" #: backgrounds/functions/functions.php:925 #: backgrounds/functions/functions.php:938 #: colors/functions/functions.php:931 -#: elements/class-metabox.php:284 +#: elements/class-metabox.php:272 #: library/customizer-helpers.php:187 msgid "Sidebar" msgstr "" @@ -245,17 +245,17 @@ msgstr "" #: backgrounds/functions/functions.php:1041 #: colors/functions/functions.php:1169 #: colors/functions/functions.php:1181 -#: disable-elements/functions/functions.php:169 -#: disable-elements/functions/functions.php:171 -#: disable-elements/functions/functions.php:363 -#: disable-elements/functions/functions.php:365 -#: elements/class-metabox.php:290 -#: elements/class-metabox.php:1253 +#: disable-elements/functions/functions.php:175 +#: disable-elements/functions/functions.php:177 +#: disable-elements/functions/functions.php:369 +#: disable-elements/functions/functions.php:371 +#: elements/class-metabox.php:278 +#: elements/class-metabox.php:1241 #: elements/class-metabox.php:2239 #: library/customizer-helpers.php:205 #: spacing/functions/customizer/footer-spacing.php:17 -#: typography/functions/functions.php:2304 -#: typography/functions/functions.php:2318 +#: typography/functions/functions.php:2373 +#: typography/functions/functions.php:2387 msgid "Footer" msgstr "" @@ -271,11 +271,11 @@ msgstr "" #: backgrounds/functions/secondary-nav-backgrounds.php:61 #: colors/functions/secondary-nav-colors.php:59 #: colors/functions/secondary-nav-colors.php:72 -#: disable-elements/functions/functions.php:153 -#: disable-elements/functions/functions.php:155 -#: disable-elements/functions/functions.php:347 -#: disable-elements/functions/functions.php:349 -#: elements/class-metabox.php:1226 +#: disable-elements/functions/functions.php:159 +#: disable-elements/functions/functions.php:161 +#: disable-elements/functions/functions.php:353 +#: disable-elements/functions/functions.php:355 +#: elements/class-metabox.php:1214 #: secondary-nav/functions/functions.php:188 #: secondary-nav/functions/functions.php:197 #: secondary-nav/functions/functions.php:210 @@ -290,7 +290,7 @@ msgstr "" #: blog/functions/customizer.php:35 #: elements/class-conditions.php:48 -#: elements/class-hero.php:868 +#: elements/class-hero.php:920 msgid "Blog" msgstr "" @@ -398,7 +398,7 @@ msgstr "" #: blog/functions/customizer.php:503 #: blog/functions/customizer.php:677 #: blog/functions/customizer.php:852 -#: elements/class-metabox.php:1308 +#: elements/class-metabox.php:1296 #: elements/class-post-type.php:172 #: elements/class-post-type.php:182 msgid "Location" @@ -425,9 +425,9 @@ msgstr "" #: blog/functions/customizer.php:531 #: blog/functions/customizer.php:706 #: blog/functions/customizer.php:881 -#: elements/class-metabox.php:507 -#: elements/class-metabox.php:529 -#: page-header/functions/metabox.php:339 +#: elements/class-metabox.php:495 +#: elements/class-metabox.php:517 +#: page-header/functions/metabox.php:340 #: secondary-nav/functions/functions.php:309 #: woocommerce/functions/customizer/customizer.php:390 #: woocommerce/functions/customizer/customizer.php:433 @@ -437,12 +437,12 @@ msgstr "" #: blog/functions/customizer.php:532 #: blog/functions/customizer.php:707 #: blog/functions/customizer.php:882 -#: elements/class-metabox.php:506 -#: elements/class-metabox.php:595 -#: elements/class-metabox.php:649 +#: elements/class-metabox.php:494 +#: elements/class-metabox.php:583 +#: elements/class-metabox.php:637 #: library/customizer/controls/class-spacing-control.php:43 #: menu-plus/functions/generate-menu-plus.php:658 -#: page-header/functions/metabox.php:338 +#: page-header/functions/metabox.php:339 #: secondary-nav/functions/functions.php:308 #: secondary-nav/functions/functions.php:363 #: woocommerce/functions/customizer/customizer.php:389 @@ -453,12 +453,12 @@ msgstr "" #: blog/functions/customizer.php:533 #: blog/functions/customizer.php:708 #: blog/functions/customizer.php:883 -#: elements/class-metabox.php:508 -#: elements/class-metabox.php:569 -#: elements/class-metabox.php:623 +#: elements/class-metabox.php:496 +#: elements/class-metabox.php:557 +#: elements/class-metabox.php:611 #: library/customizer/controls/class-spacing-control.php:41 #: menu-plus/functions/generate-menu-plus.php:659 -#: page-header/functions/metabox.php:340 +#: page-header/functions/metabox.php:341 #: secondary-nav/functions/functions.php:310 #: secondary-nav/functions/functions.php:362 #: woocommerce/functions/customizer/customizer.php:391 @@ -533,8 +533,8 @@ msgid "Loading..." msgstr "" #. translators: Aria-label describing the read more button -#: blog/functions/generate-blog.php:432 -#: blog/functions/generate-blog.php:464 +#: blog/functions/generate-blog.php:438 +#: blog/functions/generate-blog.php:470 msgctxt "more on post title" msgid "More on %s" msgstr "" @@ -601,9 +601,9 @@ msgid "Link Hover" msgstr "" #: colors/functions/functions.php:239 -#: elements/class-metabox.php:858 +#: elements/class-metabox.php:846 #: menu-plus/functions/generate-menu-plus.php:474 -#: page-header/functions/metabox.php:515 +#: page-header/functions/metabox.php:516 #: typography/functions/functions.php:446 msgid "Site Title" msgstr "" @@ -679,11 +679,11 @@ msgid "Button" msgstr "" #: colors/functions/functions.php:820 -#: disable-elements/functions/functions.php:164 -#: disable-elements/functions/functions.php:166 -#: disable-elements/functions/functions.php:358 -#: disable-elements/functions/functions.php:360 -#: elements/class-metabox.php:1244 +#: disable-elements/functions/functions.php:170 +#: disable-elements/functions/functions.php:172 +#: disable-elements/functions/functions.php:364 +#: disable-elements/functions/functions.php:366 +#: elements/class-metabox.php:1232 msgid "Content Title" msgstr "" @@ -761,7 +761,7 @@ msgid "Form Text Focus" msgstr "" #: colors/functions/functions.php:1200 -#: elements/class-metabox.php:1130 +#: elements/class-metabox.php:1118 msgid "Footer Widgets" msgstr "" @@ -778,7 +778,7 @@ msgstr "" #: menu-plus/functions/generate-menu-plus.php:550 #: menu-plus/functions/generate-menu-plus.php:563 #: menu-plus/functions/generate-menu-plus.php:587 -#: menu-plus/functions/generate-menu-plus.php:1125 +#: menu-plus/functions/generate-menu-plus.php:1165 #: typography/functions/slideout-nav-fonts.php:39 #: typography/functions/slideout-nav-fonts.php:52 msgid "Off Canvas Panel" @@ -854,15 +854,15 @@ msgid "Sticky Panel Cart" msgstr "" #: colors/functions/woocommerce-colors.php:365 -#: elements/class-metabox.php:765 -#: page-header/functions/metabox.php:365 +#: elements/class-metabox.php:753 +#: page-header/functions/metabox.php:366 #: sections/functions/metaboxes/views/sections-template.php:222 msgid "Background Color" msgstr "" #: colors/functions/woocommerce-colors.php:389 -#: elements/class-metabox.php:774 -#: page-header/functions/metabox.php:370 +#: elements/class-metabox.php:762 +#: page-header/functions/metabox.php:371 #: sections/functions/metaboxes/views/sections-template.php:227 msgid "Text Color" msgstr "" @@ -955,21 +955,21 @@ msgstr "" msgid "Copyright" msgstr "" -#: disable-elements/functions/functions.php:104 -#: elements/class-metabox.php:297 +#: disable-elements/functions/functions.php:110 +#: elements/class-metabox.php:285 msgid "Disable Elements" msgstr "" -#: disable-elements/functions/functions.php:159 -#: disable-elements/functions/functions.php:161 -#: disable-elements/functions/functions.php:353 -#: disable-elements/functions/functions.php:355 +#: disable-elements/functions/functions.php:165 +#: disable-elements/functions/functions.php:167 +#: disable-elements/functions/functions.php:359 +#: disable-elements/functions/functions.php:361 msgid "Featured Image / Page Header" msgstr "" -#: disable-elements/functions/functions.php:332 -#: disable-elements/functions/functions.php:334 -#: elements/class-metabox.php:1199 +#: disable-elements/functions/functions.php:338 +#: disable-elements/functions/functions.php:340 +#: elements/class-metabox.php:1187 #: menu-plus/functions/generate-menu-plus.php:380 #: menu-plus/functions/generate-menu-plus.php:421 msgid "Mobile Header" @@ -1050,209 +1050,181 @@ msgid "Roles" msgstr "" #. translators: author name -#: elements/class-hero.php:898 +#: elements/class-hero.php:950 #: page-header/functions/functions.php:1124 msgid "View all posts by %s" msgstr "" #: elements/class-metabox.php:142 -#: elements/class-metabox.php:663 -#: elements/class-metabox.php:672 +#: elements/class-metabox.php:651 +#: elements/class-metabox.php:660 msgid "Custom Image" msgstr "" #: elements/class-metabox.php:143 -#: elements/class-metabox.php:674 +#: elements/class-metabox.php:662 msgid "Fallback Image" msgstr "" #: elements/class-metabox.php:144 -#: elements/class-metabox.php:241 -#: elements/class-metabox.php:1328 -#: elements/class-metabox.php:1357 -#: elements/class-metabox.php:1384 -#: elements/class-metabox.php:1433 -#: elements/class-metabox.php:1462 -#: elements/class-metabox.php:1491 -#: elements/class-metabox.php:1536 -#: elements/class-metabox.php:1563 -#: elements/class-metabox.php:1588 -#: elements/class-post-type.php:412 +#: elements/class-metabox.php:229 +#: elements/class-metabox.php:1316 +#: elements/class-metabox.php:1345 +#: elements/class-metabox.php:1372 +#: elements/class-metabox.php:1421 +#: elements/class-metabox.php:1450 +#: elements/class-metabox.php:1479 +#: elements/class-metabox.php:1524 +#: elements/class-metabox.php:1551 +#: elements/class-metabox.php:1576 +#: elements/class-post-type.php:424 msgid "Choose..." msgstr "" -#: elements/class-metabox.php:160 -msgid "Color value" -msgstr "" - -#: elements/class-metabox.php:161 -msgid "Select Color" -msgstr "" - -#: elements/class-metabox.php:162 -#: elements/class-metabox.php:987 -#: elements/class-metabox.php:1076 -#: elements/class-metabox.php:1136 -#: elements/class-metabox.php:1272 -msgid "Default" -msgstr "" - -#: elements/class-metabox.php:163 -msgid "Select default color" -msgstr "" - -#: elements/class-metabox.php:164 -msgid "Clear" -msgstr "" - -#: elements/class-metabox.php:165 -msgid "Clear color" -msgstr "" - -#: elements/class-metabox.php:220 -#: page-header/functions/metabox.php:676 +#: elements/class-metabox.php:208 +#: page-header/functions/metabox.php:677 msgid "Template Tags" msgstr "" -#: elements/class-metabox.php:242 +#: elements/class-metabox.php:230 #: elements/class-post-type.php:267 -#: elements/class-post-type.php:413 +#: elements/class-post-type.php:425 msgid "Block" msgstr "" -#: elements/class-metabox.php:244 -#: elements/class-metabox.php:335 -#: elements/class-metabox.php:354 -#: elements/class-post-type.php:286 -#: elements/class-post-type.php:415 +#: elements/class-metabox.php:232 +#: elements/class-metabox.php:323 +#: elements/class-metabox.php:342 +#: elements/class-post-type.php:292 +#: elements/class-post-type.php:427 msgid "Hook" msgstr "" -#: elements/class-metabox.php:245 -#: elements/class-post-type.php:295 -#: elements/class-post-type.php:416 +#: elements/class-metabox.php:233 +#: elements/class-post-type.php:307 +#: elements/class-post-type.php:428 #: library/customizer/controls/class-section-shortcuts-control.php:56 #: sections/functions/metaboxes/views/sections-template.php:171 msgid "Layout" msgstr "" -#: elements/class-metabox.php:251 +#: elements/class-metabox.php:239 msgid "This element needs a location set within the Display Rules tab in order to display." msgstr "" -#: elements/class-metabox.php:264 +#: elements/class-metabox.php:252 msgid "Page Hero" msgstr "" -#: elements/class-metabox.php:270 -#: elements/class-metabox.php:336 -#: elements/class-metabox.php:1190 +#: elements/class-metabox.php:258 +#: elements/class-metabox.php:324 +#: elements/class-metabox.php:1178 msgid "Site Header" msgstr "" -#: elements/class-metabox.php:277 +#: elements/class-metabox.php:265 #: sections/functions/metaboxes/metabox-functions.php:250 msgid "Settings" msgstr "" -#: elements/class-metabox.php:312 +#: elements/class-metabox.php:300 msgid "Display Rules" msgstr "" -#: elements/class-metabox.php:319 +#: elements/class-metabox.php:307 msgid "Internal Notes" msgstr "" -#: elements/class-metabox.php:331 +#: elements/class-metabox.php:319 msgid "Block Type" msgstr "" -#: elements/class-metabox.php:337 +#: elements/class-metabox.php:325 msgid "Site Footer" msgstr "" -#: elements/class-metabox.php:338 -#: elements/class-metabox.php:993 -#: elements/class-metabox.php:1081 +#: elements/class-metabox.php:326 +#: elements/class-metabox.php:981 +#: elements/class-metabox.php:1069 #: secondary-nav/functions/functions.php:338 msgid "Right Sidebar" msgstr "" -#: elements/class-metabox.php:339 -#: elements/class-metabox.php:992 -#: elements/class-metabox.php:1088 +#: elements/class-metabox.php:327 +#: elements/class-metabox.php:980 +#: elements/class-metabox.php:1076 #: secondary-nav/functions/functions.php:337 msgid "Left Sidebar" msgstr "" -#: elements/class-metabox.php:343 +#: elements/class-metabox.php:331 msgid "This will remove the current sidebar widgets for the selected sidebar. Your layout must have a sidebar set for this Element to show." msgstr "" -#: elements/class-metabox.php:377 +#: elements/class-metabox.php:365 msgid "Custom" msgstr "" -#: elements/class-metabox.php:378 +#: elements/class-metabox.php:366 msgid "Custom Hook" msgstr "" -#: elements/class-metabox.php:386 +#: elements/class-metabox.php:374 msgid "Custom Hook Name" msgstr "" -#: elements/class-metabox.php:399 +#: elements/class-metabox.php:387 msgid "Disable Site Header" msgstr "" -#: elements/class-metabox.php:408 +#: elements/class-metabox.php:396 msgid "Disable Site Footer" msgstr "" -#: elements/class-metabox.php:417 +#: elements/class-metabox.php:405 msgid "Execute Shortcodes" msgstr "" -#: elements/class-metabox.php:426 +#: elements/class-metabox.php:414 #: hooks/functions/functions.php:355 msgid "Execute PHP" msgstr "" #. translators: %s is DISALLOW_FILE_EDIT constant -#: elements/class-metabox.php:433 +#: elements/class-metabox.php:421 msgid "Unable to execute PHP as %s is defined." msgstr "" -#: elements/class-metabox.php:449 +#: elements/class-metabox.php:437 msgid "Priority" msgstr "" -#: elements/class-metabox.php:468 +#: elements/class-metabox.php:456 msgid "Element Classes" msgstr "" -#: elements/class-metabox.php:469 +#: elements/class-metabox.php:457 msgid "Add custom classes to the Page Hero element." msgstr "" -#: elements/class-metabox.php:478 -#: page-header/functions/metabox.php:320 +#: elements/class-metabox.php:466 +#: page-header/functions/metabox.php:321 msgid "Container" msgstr "" -#: elements/class-metabox.php:482 -#: elements/class-metabox.php:495 -#: page-header/functions/metabox.php:323 -#: page-header/functions/metabox.php:331 +#: elements/class-metabox.php:470 +#: elements/class-metabox.php:483 +#: page-header/functions/metabox.php:324 +#: page-header/functions/metabox.php:332 #: sections/functions/metaboxes/views/sections-template.php:176 #: sections/functions/metaboxes/views/sections-template.php:186 msgid "Full Width" msgstr "" -#: elements/class-metabox.php:483 -#: elements/class-metabox.php:494 -#: page-header/functions/metabox.php:322 -#: page-header/functions/metabox.php:330 +#: elements/class-metabox.php:471 +#: elements/class-metabox.php:482 +#: page-header/functions/metabox.php:323 +#: page-header/functions/metabox.php:331 #: secondary-nav/functions/functions.php:259 #: secondary-nav/functions/functions.php:284 #: sections/functions/metaboxes/views/sections-template.php:177 @@ -1261,374 +1233,381 @@ msgctxt "Width" msgid "Contained" msgstr "" -#: elements/class-metabox.php:490 -#: page-header/functions/metabox.php:328 +#: elements/class-metabox.php:478 +#: page-header/functions/metabox.php:329 msgid "Inner Container" msgstr "" -#: elements/class-metabox.php:502 +#: elements/class-metabox.php:490 msgid "Horizontal Alignment" msgstr "" -#: elements/class-metabox.php:515 -#: page-header/functions/metabox.php:309 +#: elements/class-metabox.php:503 +#: page-header/functions/metabox.php:310 msgid "Full Screen" msgstr "" -#: elements/class-metabox.php:524 +#: elements/class-metabox.php:512 msgid "Vertical Alignment" msgstr "" -#: elements/class-metabox.php:528 -#: elements/class-metabox.php:556 -#: elements/class-metabox.php:610 +#: elements/class-metabox.php:516 +#: elements/class-metabox.php:544 +#: elements/class-metabox.php:598 #: library/customizer/controls/class-spacing-control.php:40 msgid "Top" msgstr "" -#: elements/class-metabox.php:530 -#: elements/class-metabox.php:582 -#: elements/class-metabox.php:636 +#: elements/class-metabox.php:518 +#: elements/class-metabox.php:570 +#: elements/class-metabox.php:624 #: library/customizer/controls/class-spacing-control.php:42 msgid "Bottom" msgstr "" -#: elements/class-metabox.php:537 +#: elements/class-metabox.php:525 msgid "Padding" msgstr "" -#: elements/class-metabox.php:657 +#: elements/class-metabox.php:645 #: elements/class-post-type.php:87 #: sections/functions/metaboxes/views/sections-template.php:247 #: sections/functions/metaboxes/views/sections-template.php:252 msgid "Background Image" msgstr "" -#: elements/class-metabox.php:661 +#: elements/class-metabox.php:649 msgid "No Background Image" msgstr "" -#: elements/class-metabox.php:662 -#: elements/class-metabox.php:1235 +#: elements/class-metabox.php:650 +#: elements/class-metabox.php:1223 msgid "Featured Image" msgstr "" -#: elements/class-metabox.php:690 +#: elements/class-metabox.php:678 msgid "Change" msgstr "" -#: elements/class-metabox.php:695 -#: elements/class-metabox.php:895 -#: elements/class-metabox.php:921 -#: elements/class-metabox.php:947 -#: elements/class-metabox.php:973 -#: elements/class-metabox.php:1349 -#: elements/class-metabox.php:1377 -#: elements/class-metabox.php:1404 -#: elements/class-metabox.php:1454 -#: elements/class-metabox.php:1484 -#: elements/class-metabox.php:1513 -#: elements/class-metabox.php:1555 -#: elements/class-metabox.php:1581 -#: elements/class-metabox.php:1606 +#: elements/class-metabox.php:683 +#: elements/class-metabox.php:883 +#: elements/class-metabox.php:909 +#: elements/class-metabox.php:935 +#: elements/class-metabox.php:961 +#: elements/class-metabox.php:1337 +#: elements/class-metabox.php:1365 +#: elements/class-metabox.php:1392 +#: elements/class-metabox.php:1442 +#: elements/class-metabox.php:1472 +#: elements/class-metabox.php:1501 +#: elements/class-metabox.php:1543 +#: elements/class-metabox.php:1569 +#: elements/class-metabox.php:1594 #: sections/functions/metaboxes/views/sections-template.php:253 msgid "Remove" msgstr "" #. translators: Upload Custom Image or Fallback image -#: elements/class-metabox.php:706 +#: elements/class-metabox.php:694 msgid "Upload %s" msgstr "" -#: elements/class-metabox.php:717 +#: elements/class-metabox.php:705 msgid "Background Position" msgstr "" -#: elements/class-metabox.php:736 +#: elements/class-metabox.php:724 msgid "Parallax" msgstr "" -#: elements/class-metabox.php:745 +#: elements/class-metabox.php:733 msgid "Disable Featured Image" msgstr "" -#: elements/class-metabox.php:746 +#: elements/class-metabox.php:734 msgid "Disable the featured image on posts with this hero area." msgstr "" -#: elements/class-metabox.php:755 +#: elements/class-metabox.php:743 msgid "Background Overlay" msgstr "" -#: elements/class-metabox.php:756 +#: elements/class-metabox.php:744 msgid "Use the background color as a background overlay." msgstr "" -#: elements/class-metabox.php:783 -#: page-header/functions/metabox.php:375 +#: elements/class-metabox.php:771 +#: page-header/functions/metabox.php:376 #: sections/functions/metaboxes/views/sections-template.php:233 msgid "Link Color" msgstr "" -#: elements/class-metabox.php:792 -#: page-header/functions/metabox.php:380 +#: elements/class-metabox.php:780 +#: page-header/functions/metabox.php:381 #: sections/functions/metaboxes/views/sections-template.php:239 msgid "Link Color Hover" msgstr "" -#: elements/class-metabox.php:806 +#: elements/class-metabox.php:794 msgid "Merge with Content" msgstr "" -#: elements/class-metabox.php:807 +#: elements/class-metabox.php:795 msgid "Place your site header on top of the element below it." msgstr "" -#: elements/class-metabox.php:811 +#: elements/class-metabox.php:799 msgid "No Merge" msgstr "" -#: elements/class-metabox.php:812 +#: elements/class-metabox.php:800 msgid "Merge" msgstr "" -#: elements/class-metabox.php:813 +#: elements/class-metabox.php:801 msgid "Merge on Desktop Only" msgstr "" -#: elements/class-metabox.php:820 +#: elements/class-metabox.php:808 msgid "Offset Site Header Height" msgstr "" -#: elements/class-metabox.php:821 +#: elements/class-metabox.php:809 msgid "Add to the top padding of your Page Hero to prevent overlapping." msgstr "" -#: elements/class-metabox.php:848 +#: elements/class-metabox.php:836 msgid "Header Background" msgstr "" -#: elements/class-metabox.php:869 -#: page-header/functions/metabox.php:520 +#: elements/class-metabox.php:857 +#: page-header/functions/metabox.php:521 #: typography/functions/functions.php:580 msgid "Site Tagline" msgstr "" -#: elements/class-metabox.php:880 -#: elements/class-metabox.php:894 +#: elements/class-metabox.php:868 +#: elements/class-metabox.php:882 msgid "Site Logo" msgstr "" -#: elements/class-metabox.php:894 -#: elements/class-metabox.php:920 -#: elements/class-metabox.php:946 -#: elements/class-metabox.php:972 +#: elements/class-metabox.php:882 +#: elements/class-metabox.php:908 +#: elements/class-metabox.php:934 +#: elements/class-metabox.php:960 #: sections/functions/metaboxes/views/sections-template.php:252 msgid "Upload" msgstr "" -#: elements/class-metabox.php:906 -#: elements/class-metabox.php:920 -#: elements/class-metabox.php:946 -#: elements/class-metabox.php:972 +#: elements/class-metabox.php:894 +#: elements/class-metabox.php:908 +#: elements/class-metabox.php:934 +#: elements/class-metabox.php:960 msgid "Retina Logo" msgstr "" -#: elements/class-metabox.php:932 +#: elements/class-metabox.php:920 #: menu-plus/functions/generate-menu-plus.php:340 -#: page-header/functions/metabox.php:480 +#: page-header/functions/metabox.php:481 msgid "Navigation Logo" msgstr "" -#: elements/class-metabox.php:958 +#: elements/class-metabox.php:946 msgid "Mobile Header Logo" msgstr "" -#: elements/class-metabox.php:983 +#: elements/class-metabox.php:971 #: secondary-nav/functions/functions.php:330 msgid "Navigation Location" msgstr "" -#: elements/class-metabox.php:988 +#: elements/class-metabox.php:975 +#: elements/class-metabox.php:1064 +#: elements/class-metabox.php:1124 +#: elements/class-metabox.php:1260 +msgid "Default" +msgstr "" + +#: elements/class-metabox.php:976 #: secondary-nav/functions/functions.php:333 msgid "Below Header" msgstr "" -#: elements/class-metabox.php:989 +#: elements/class-metabox.php:977 #: secondary-nav/functions/functions.php:334 msgid "Above Header" msgstr "" -#: elements/class-metabox.php:990 +#: elements/class-metabox.php:978 #: secondary-nav/functions/functions.php:335 msgid "Float Right" msgstr "" -#: elements/class-metabox.php:991 +#: elements/class-metabox.php:979 #: secondary-nav/functions/functions.php:336 msgid "Float Left" msgstr "" -#: elements/class-metabox.php:994 +#: elements/class-metabox.php:982 #: secondary-nav/functions/functions.php:339 msgid "No Navigation" msgstr "" -#: elements/class-metabox.php:1001 +#: elements/class-metabox.php:989 msgid "Navigation Colors" msgstr "" -#: elements/class-metabox.php:1010 -#: page-header/functions/metabox.php:531 +#: elements/class-metabox.php:998 +#: page-header/functions/metabox.php:532 msgid "Navigation Background" msgstr "" -#: elements/class-metabox.php:1019 -#: page-header/functions/metabox.php:536 +#: elements/class-metabox.php:1007 +#: page-header/functions/metabox.php:537 msgid "Navigation Text" msgstr "" -#: elements/class-metabox.php:1028 -#: page-header/functions/metabox.php:541 +#: elements/class-metabox.php:1016 +#: page-header/functions/metabox.php:542 msgid "Navigation Background Hover" msgstr "" -#: elements/class-metabox.php:1037 -#: page-header/functions/metabox.php:546 +#: elements/class-metabox.php:1025 +#: page-header/functions/metabox.php:547 msgid "Navigation Text Hover" msgstr "" -#: elements/class-metabox.php:1046 -#: page-header/functions/metabox.php:551 +#: elements/class-metabox.php:1034 +#: page-header/functions/metabox.php:552 msgid "Navigation Background Current" msgstr "" -#: elements/class-metabox.php:1055 -#: page-header/functions/metabox.php:556 +#: elements/class-metabox.php:1043 +#: page-header/functions/metabox.php:557 msgid "Navigation Text Current" msgstr "" -#: elements/class-metabox.php:1070 +#: elements/class-metabox.php:1058 #: woocommerce/functions/customizer/customizer.php:227 #: woocommerce/functions/customizer/customizer.php:713 msgid "Sidebar Layout" msgstr "" -#: elements/class-metabox.php:1083 -#: elements/class-metabox.php:1090 -#: elements/class-metabox.php:1104 -#: elements/class-metabox.php:1111 -#: elements/class-metabox.php:1118 +#: elements/class-metabox.php:1071 +#: elements/class-metabox.php:1078 +#: elements/class-metabox.php:1092 +#: elements/class-metabox.php:1099 +#: elements/class-metabox.php:1106 msgctxt "Short name for meta box" msgid "Sidebar" msgstr "" -#: elements/class-metabox.php:1095 +#: elements/class-metabox.php:1083 msgid "No Sidebars" msgstr "" -#: elements/class-metabox.php:1097 +#: elements/class-metabox.php:1085 #: woocommerce/functions/customizer/customizer.php:232 #: woocommerce/functions/customizer/customizer.php:719 msgid "Content (no sidebars)" msgstr "" -#: elements/class-metabox.php:1102 +#: elements/class-metabox.php:1090 msgid "Both Sidebars" msgstr "" -#: elements/class-metabox.php:1109 +#: elements/class-metabox.php:1097 msgid "Both Sidebars on Left" msgstr "" -#: elements/class-metabox.php:1116 +#: elements/class-metabox.php:1104 msgid "Both Sidebars on Right" msgstr "" -#: elements/class-metabox.php:1143 +#: elements/class-metabox.php:1131 msgid "0 Widgets" msgstr "" -#: elements/class-metabox.php:1150 +#: elements/class-metabox.php:1138 msgid "1 Widget" msgstr "" -#: elements/class-metabox.php:1157 +#: elements/class-metabox.php:1145 msgid "2 Widgets" msgstr "" -#: elements/class-metabox.php:1164 +#: elements/class-metabox.php:1152 msgid "3 Widgets" msgstr "" -#: elements/class-metabox.php:1171 +#: elements/class-metabox.php:1159 msgid "4 Widgets" msgstr "" -#: elements/class-metabox.php:1178 +#: elements/class-metabox.php:1166 msgid "5 Widgets" msgstr "" -#: elements/class-metabox.php:1266 +#: elements/class-metabox.php:1254 msgid "Content Area" msgstr "" -#: elements/class-metabox.php:1279 +#: elements/class-metabox.php:1267 msgid "Full Width (no padding)" msgstr "" -#: elements/class-metabox.php:1286 +#: elements/class-metabox.php:1274 msgctxt "Width" msgid "Contained (no padding)" msgstr "" -#: elements/class-metabox.php:1293 +#: elements/class-metabox.php:1281 msgid "Content Width" msgstr "" -#: elements/class-metabox.php:1309 +#: elements/class-metabox.php:1297 msgid "Choose when this element should display." msgstr "" -#: elements/class-metabox.php:1407 +#: elements/class-metabox.php:1395 msgid "Add Location Rule" msgstr "" -#: elements/class-metabox.php:1413 +#: elements/class-metabox.php:1401 msgid "Exclude" msgstr "" -#: elements/class-metabox.php:1414 +#: elements/class-metabox.php:1402 msgid "Choose when this element should not display." msgstr "" -#: elements/class-metabox.php:1516 +#: elements/class-metabox.php:1504 msgid "Add Exclusion Rule" msgstr "" -#: elements/class-metabox.php:1522 +#: elements/class-metabox.php:1510 #: elements/class-post-type.php:174 #: elements/class-post-type.php:184 msgid "Users" msgstr "" -#: elements/class-metabox.php:1523 +#: elements/class-metabox.php:1511 msgid "Display this element for specific user roles." msgstr "" -#: elements/class-metabox.php:1609 +#: elements/class-metabox.php:1597 msgid "Add User Rule" msgstr "" -#: elements/class-metabox.php:1614 +#: elements/class-metabox.php:1602 msgid "Ignore Languages" msgstr "" -#: elements/class-metabox.php:1615 +#: elements/class-metabox.php:1603 msgid "Show this Element to all languages." msgstr "" -#: elements/class-metabox.php:1629 +#: elements/class-metabox.php:1617 msgid "Internal notes can be helpful to remember why this element was added." msgstr "" @@ -1670,27 +1649,27 @@ msgid "WooCommerce - Account" msgstr "" #: elements/class-metabox.php:2367 -#: page-header/functions/metabox.php:689 +#: page-header/functions/metabox.php:690 msgid "The content title of the current post/taxonomy." msgstr "" #: elements/class-metabox.php:2372 -#: page-header/functions/metabox.php:692 +#: page-header/functions/metabox.php:693 msgid "The published date of the current post." msgstr "" #: elements/class-metabox.php:2377 -#: page-header/functions/metabox.php:695 +#: page-header/functions/metabox.php:696 msgid "The author of the current post." msgstr "" #: elements/class-metabox.php:2382 -#: page-header/functions/metabox.php:698 +#: page-header/functions/metabox.php:699 msgid "The terms attached to the chosen taxonomy (category, post_tag, product_cat)." msgstr "" #: elements/class-metabox.php:2387 -#: page-header/functions/metabox.php:701 +#: page-header/functions/metabox.php:702 msgid "Custom post meta. Replace \"name\" with the name of your custom field." msgstr "" @@ -1705,8 +1684,8 @@ msgid "Element" msgstr "" #: elements/class-post-type.php:79 -#: elements/class-post-type.php:349 -#: elements/class-post-type.php:350 +#: elements/class-post-type.php:361 +#: elements/class-post-type.php:362 #: elements/elements.php:82 msgid "Elements" msgstr "" @@ -1798,48 +1777,49 @@ msgstr "" msgid "All types" msgstr "" -#: elements/class-post-type.php:308 +#: elements/class-post-type.php:320 msgid "Not set" msgstr "" -#: elements/class-post-type.php:409 +#: elements/class-post-type.php:421 msgid "Choose Element Type" msgstr "" -#: elements/class-post-type.php:419 +#: elements/class-post-type.php:431 msgid "Create" msgstr "" -#: elements/class-post-type.php:422 -#: menu-plus/functions/generate-menu-plus.php:1099 -#: menu-plus/functions/generate-menu-plus.php:1805 +#: elements/class-post-type.php:434 +#: menu-plus/functions/generate-menu-plus.php:1139 +#: menu-plus/functions/generate-menu-plus.php:1894 #: sections/functions/metaboxes/views/sections-template.php:69 #: sites/classes/class-site.php:260 #: sites/classes/class-site.php:510 msgid "Close" msgstr "" -#: general/class-external-file-css.php:98 +#: general/class-external-file-css.php:97 msgid "Dynamic CSS Print Method" msgstr "" -#: general/class-external-file-css.php:99 +#: general/class-external-file-css.php:98 msgid "Generating your dynamic CSS in an external file offers significant performance advantages." msgstr "" -#: general/class-external-file-css.php:102 +#: general/class-external-file-css.php:101 msgid "Inline Embedding" msgstr "" -#: general/class-external-file-css.php:103 +#: general/class-external-file-css.php:102 msgid "External File" msgstr "" -#: general/class-external-file-css.php:117 +#: general/class-external-file-css.php:116 msgid "Regenerate CSS File" msgstr "" -#: general/class-external-file-css.php:439 +#: general/class-external-file-css.php:442 +#: sites/sites.php:330 msgid "Security check failed." msgstr "" @@ -1992,7 +1972,7 @@ msgstr "" #: import-export/functions/functions.php:62 #: inc/reset.php:22 -#: page-header/functions/metabox.php:196 +#: page-header/functions/metabox.php:197 msgid "Advanced" msgstr "" @@ -2210,7 +2190,7 @@ msgid "Cart" msgstr "" #: inc/deprecated.php:619 -#: sites/sites.php:320 +#: sites/sites.php:312 msgid "Refresh Sites" msgstr "" @@ -2242,12 +2222,12 @@ msgstr "" #: typography/functions/functions.php:1186 #: typography/functions/functions.php:1333 #: typography/functions/functions.php:1489 -#: typography/functions/functions.php:1626 -#: typography/functions/functions.php:1793 -#: typography/functions/functions.php:1924 -#: typography/functions/functions.php:2055 -#: typography/functions/functions.php:2214 -#: typography/functions/functions.php:2409 +#: typography/functions/functions.php:1656 +#: typography/functions/functions.php:1846 +#: typography/functions/functions.php:2000 +#: typography/functions/functions.php:2124 +#: typography/functions/functions.php:2283 +#: typography/functions/functions.php:2478 #: typography/functions/secondary-nav-fonts.php:158 #: typography/functions/slideout-nav-fonts.php:125 #: typography/functions/woocommerce-fonts.php:117 @@ -2416,8 +2396,8 @@ msgid "Off Canvas Menu" msgstr "" #: menu-plus/functions/generate-menu-plus.php:34 -#: menu-plus/functions/generate-menu-plus.php:988 -#: menu-plus/functions/generate-menu-plus.php:998 +#: menu-plus/functions/generate-menu-plus.php:1028 +#: menu-plus/functions/generate-menu-plus.php:1038 #: secondary-nav/functions/functions.php:721 msgid "Menu" msgstr "" @@ -2483,7 +2463,6 @@ msgstr "" #: menu-plus/functions/generate-menu-plus.php:270 #: sites/sites.php:251 -#: sites/sites.php:269 msgid "None" msgstr "" @@ -2527,7 +2506,7 @@ msgstr "" #: menu-plus/functions/generate-menu-plus.php:473 #: menu-plus/functions/generate-menu-plus.php:495 -#: page-header/functions/metabox.php:191 +#: page-header/functions/metabox.php:192 msgid "Logo" msgstr "" @@ -2570,7 +2549,7 @@ msgstr "" #: page-header/functions/functions.php:820 #: page-header/functions/metabox.php:37 #: page-header/functions/metabox.php:57 -#: page-header/functions/metabox.php:757 +#: page-header/functions/metabox.php:758 #: page-header/functions/post-type.php:15 #: page-header/functions/post-type.php:29 #: page-header/functions/post-type.php:157 @@ -2622,198 +2601,198 @@ msgstr "" msgid "Taxonomies - Archives" msgstr "" -#: page-header/functions/metabox.php:139 -#: page-header/functions/metabox.php:743 +#: page-header/functions/metabox.php:140 +#: page-header/functions/metabox.php:744 msgid "No Page Headers found. Want to create one?" msgstr "" -#: page-header/functions/metabox.php:158 +#: page-header/functions/metabox.php:159 msgid "Content is required for the below settings to work." msgstr "" -#: page-header/functions/metabox.php:178 +#: page-header/functions/metabox.php:179 msgid "Image" msgstr "" -#: page-header/functions/metabox.php:186 +#: page-header/functions/metabox.php:187 msgid "Background Video" msgstr "" -#: page-header/functions/metabox.php:202 +#: page-header/functions/metabox.php:203 msgid "Add to excerpt" msgstr "" -#: page-header/functions/metabox.php:218 +#: page-header/functions/metabox.php:219 msgid "Currently using your featured image." msgstr "" -#: page-header/functions/metabox.php:229 +#: page-header/functions/metabox.php:230 msgid "Page Header Image" msgstr "" -#: page-header/functions/metabox.php:229 +#: page-header/functions/metabox.php:230 msgid "Insert Image" msgstr "" -#: page-header/functions/metabox.php:230 +#: page-header/functions/metabox.php:231 msgid "Choose Image" msgstr "" -#: page-header/functions/metabox.php:233 +#: page-header/functions/metabox.php:234 msgid "Remove Image" msgstr "" -#: page-header/functions/metabox.php:238 +#: page-header/functions/metabox.php:239 msgid "Or you can set the featured image." msgstr "" -#: page-header/functions/metabox.php:243 +#: page-header/functions/metabox.php:244 msgid "Image Link" msgstr "" -#: page-header/functions/metabox.php:248 +#: page-header/functions/metabox.php:249 msgid "Resize Image" msgstr "" -#: page-header/functions/metabox.php:250 +#: page-header/functions/metabox.php:251 #: sections/functions/metaboxes/views/sections-template.php:260 #: sections/functions/metaboxes/views/sections-template.php:268 msgid "Disable" msgstr "" -#: page-header/functions/metabox.php:251 +#: page-header/functions/metabox.php:252 #: sections/functions/metaboxes/views/sections-template.php:261 #: sections/functions/metaboxes/views/sections-template.php:269 msgid "Enable" msgstr "" -#: page-header/functions/metabox.php:256 +#: page-header/functions/metabox.php:257 msgid "These options are no longer available as of GP Premium 1.10.0." msgstr "" -#: page-header/functions/metabox.php:259 +#: page-header/functions/metabox.php:260 msgid "Image Width" msgstr "" -#: page-header/functions/metabox.php:264 +#: page-header/functions/metabox.php:265 msgid "Image Height" msgstr "" -#: page-header/functions/metabox.php:267 +#: page-header/functions/metabox.php:268 msgid "Use \"0\" or leave blank for proportional resizing." msgstr "" -#: page-header/functions/metabox.php:277 +#: page-header/functions/metabox.php:278 msgid "HTML and shortcodes allowed." msgstr "" -#: page-header/functions/metabox.php:284 +#: page-header/functions/metabox.php:285 msgid "Automatically add paragraphs" msgstr "" -#: page-header/functions/metabox.php:289 +#: page-header/functions/metabox.php:290 msgid "Add Padding" msgstr "" -#: page-header/functions/metabox.php:294 +#: page-header/functions/metabox.php:295 msgid "Add Background Image" msgstr "" -#: page-header/functions/metabox.php:299 +#: page-header/functions/metabox.php:300 msgid "Use background color as overlay" msgstr "" -#: page-header/functions/metabox.php:304 +#: page-header/functions/metabox.php:305 #: sections/functions/metaboxes/views/sections-template.php:257 msgid "Parallax Effect" msgstr "" -#: page-header/functions/metabox.php:314 +#: page-header/functions/metabox.php:315 msgid "Vertical center content" msgstr "" -#: page-header/functions/metabox.php:336 +#: page-header/functions/metabox.php:337 #: woocommerce/functions/customizer/customizer.php:429 msgid "Text Alignment" msgstr "" -#: page-header/functions/metabox.php:345 +#: page-header/functions/metabox.php:346 msgid "Top & Bottom Padding" msgstr "" -#: page-header/functions/metabox.php:354 +#: page-header/functions/metabox.php:355 msgid "Left & Right Padding" msgstr "" -#: page-header/functions/metabox.php:391 +#: page-header/functions/metabox.php:392 msgid "MP4 file" msgstr "" -#: page-header/functions/metabox.php:393 -#: page-header/functions/metabox.php:401 -#: page-header/functions/metabox.php:409 -msgid "Page Header Video" -msgstr "" - -#: page-header/functions/metabox.php:393 -#: page-header/functions/metabox.php:401 -#: page-header/functions/metabox.php:409 -msgid "Insert Video" -msgstr "" - #: page-header/functions/metabox.php:394 #: page-header/functions/metabox.php:402 #: page-header/functions/metabox.php:410 +msgid "Page Header Video" +msgstr "" + +#: page-header/functions/metabox.php:394 +#: page-header/functions/metabox.php:402 +#: page-header/functions/metabox.php:410 +msgid "Insert Video" +msgstr "" + +#: page-header/functions/metabox.php:395 +#: page-header/functions/metabox.php:403 +#: page-header/functions/metabox.php:411 msgid "Choose Video" msgstr "" -#: page-header/functions/metabox.php:399 +#: page-header/functions/metabox.php:400 msgid "OGV file" msgstr "" -#: page-header/functions/metabox.php:407 +#: page-header/functions/metabox.php:408 msgid "WEBM file" msgstr "" -#: page-header/functions/metabox.php:415 +#: page-header/functions/metabox.php:416 msgid "Overlay Color" msgstr "" -#: page-header/functions/metabox.php:431 +#: page-header/functions/metabox.php:432 msgid "Overwrite your site-wide logo/header on this page." msgstr "" -#: page-header/functions/metabox.php:441 +#: page-header/functions/metabox.php:442 msgid "Header / Logo" msgstr "" -#: page-header/functions/metabox.php:441 +#: page-header/functions/metabox.php:442 msgid "Insert Logo" msgstr "" -#: page-header/functions/metabox.php:442 -#: page-header/functions/metabox.php:481 +#: page-header/functions/metabox.php:443 +#: page-header/functions/metabox.php:482 msgid "Choose Logo" msgstr "" -#: page-header/functions/metabox.php:453 -#: page-header/functions/metabox.php:493 +#: page-header/functions/metabox.php:454 +#: page-header/functions/metabox.php:494 msgid "Remove Logo" msgstr "" -#: page-header/functions/metabox.php:470 +#: page-header/functions/metabox.php:471 msgid "Overwrite your navigation logo on this page." msgstr "" -#: page-header/functions/metabox.php:505 +#: page-header/functions/metabox.php:506 msgid "Merge with site header" msgstr "" -#: page-header/functions/metabox.php:511 +#: page-header/functions/metabox.php:512 msgid "Place content behind header (sliders etc..)" msgstr "" -#: page-header/functions/metabox.php:526 +#: page-header/functions/metabox.php:527 msgid "Custom Navigation Colors" msgstr "" @@ -3031,49 +3010,49 @@ msgid "No sections added!" msgstr "" #: sites/classes/class-site-restore.php:59 -#: sites/classes/class-site-restore.php:135 -#: sites/classes/class-site-restore.php:168 -#: sites/classes/class-site-restore.php:196 -#: sites/classes/class-site-restore.php:218 -#: sites/classes/class-site-restore.php:240 -#: sites/classes/class-site-restore.php:274 +#: sites/classes/class-site-restore.php:144 +#: sites/classes/class-site-restore.php:181 +#: sites/classes/class-site-restore.php:209 +#: sites/classes/class-site-restore.php:231 +#: sites/classes/class-site-restore.php:253 +#: sites/classes/class-site-restore.php:287 #: sites/classes/class-site.php:588 #: sites/classes/class-site.php:624 #: sites/classes/class-site.php:665 -#: sites/classes/class-site.php:831 -#: sites/classes/class-site.php:859 -#: sites/classes/class-site.php:904 -#: sites/classes/class-site.php:935 -#: sites/classes/class-site.php:1030 -#: sites/classes/class-site.php:1080 +#: sites/classes/class-site.php:847 +#: sites/classes/class-site.php:875 +#: sites/classes/class-site.php:920 +#: sites/classes/class-site.php:951 +#: sites/classes/class-site.php:1091 +#: sites/classes/class-site.php:1141 msgid "You are not allowed to perform this action" msgstr "" -#: sites/classes/class-site-restore.php:123 +#: sites/classes/class-site-restore.php:132 msgid "Theme options restored." msgstr "" -#: sites/classes/class-site-restore.php:156 +#: sites/classes/class-site-restore.php:169 msgid "Site options restored." msgstr "" -#: sites/classes/class-site-restore.php:184 +#: sites/classes/class-site-restore.php:197 msgid "Content restored." msgstr "" -#: sites/classes/class-site-restore.php:206 +#: sites/classes/class-site-restore.php:219 msgid "Plugins restored." msgstr "" -#: sites/classes/class-site-restore.php:228 +#: sites/classes/class-site-restore.php:241 msgid "Widgets restored." msgstr "" -#: sites/classes/class-site-restore.php:262 +#: sites/classes/class-site-restore.php:275 msgid "CSS restored." msgstr "" -#: sites/classes/class-site-restore.php:282 +#: sites/classes/class-site-restore.php:295 msgid "Completed clean-up." msgstr "" @@ -3251,11 +3230,11 @@ msgstr "" msgid "No theme options exist." msgstr "" -#: sites/classes/class-site.php:1014 +#: sites/classes/class-site.php:1075 msgid "Site options imported" msgstr "" -#: sites/classes/class-site.php:1059 +#: sites/classes/class-site.php:1120 msgid "Plugins activated" msgstr "" @@ -3350,48 +3329,43 @@ msgid "Support" msgstr "" #: sites/sites.php:248 -#: sites/sites.php:266 msgid "Page Builder:" msgstr "" -#: sites/sites.php:270 -msgid "Beaver Builder" -msgstr "" - -#: sites/sites.php:271 -msgid "Elementor" -msgstr "" - -#: sites/sites.php:292 +#: sites/sites.php:283 msgid "Existing Site Import Detected" msgstr "" -#: sites/sites.php:295 +#: sites/sites.php:286 msgid "It is highly recommended that you remove the last site you imported before importing a new one." msgstr "" -#: sites/sites.php:296 +#: sites/sites.php:287 msgid "This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS." msgstr "" -#: sites/sites.php:300 +#: sites/sites.php:291 msgid "Remove Imported Site" msgstr "" -#: sites/sites.php:301 +#: sites/sites.php:292 msgid "Skip" msgstr "" +#: sites/sites.php:314 +msgid "Reload Page" +msgstr "" + #: sites/sites.php:495 msgctxt "Module name" msgid "GeneratePress Site" msgstr "" -#: sites/sites.php:760 +#: sites/sites.php:771 msgid "No sites found." msgstr "" -#: sites/sites.php:761 +#: sites/sites.php:772 msgid "Why?" msgstr "" @@ -3477,10 +3451,10 @@ msgstr "" #: typography/functions/functions.php:1227 #: typography/functions/functions.php:1375 #: typography/functions/functions.php:1530 -#: typography/functions/functions.php:1660 -#: typography/functions/functions.php:1826 -#: typography/functions/functions.php:1957 -#: typography/functions/functions.php:2088 +#: typography/functions/functions.php:1683 +#: typography/functions/functions.php:1872 +#: typography/functions/functions.php:2026 +#: typography/functions/functions.php:2157 msgid "Line height" msgstr "" @@ -3498,8 +3472,8 @@ msgstr "" #: typography/functions/functions.php:1107 #: typography/functions/functions.php:1410 -#: typography/functions/functions.php:1695 -#: typography/functions/functions.php:2248 +#: typography/functions/functions.php:1718 +#: typography/functions/functions.php:2317 msgid "Bottom margin" msgstr "" @@ -3519,28 +3493,28 @@ msgstr "" msgid "Heading 3 (H3)" msgstr "" -#: typography/functions/functions.php:1765 +#: typography/functions/functions.php:1788 msgid "Heading 4 (H4)" msgstr "" -#: typography/functions/functions.php:1896 +#: typography/functions/functions.php:1942 msgid "Heading 5 (H5)" msgstr "" -#: typography/functions/functions.php:2027 +#: typography/functions/functions.php:2096 msgid "Heading 6 (H6)" msgstr "" -#: typography/functions/functions.php:2110 -#: typography/functions/functions.php:2124 +#: typography/functions/functions.php:2179 +#: typography/functions/functions.php:2193 msgid "Widgets" msgstr "" -#: typography/functions/functions.php:2186 +#: typography/functions/functions.php:2255 msgid "Widget Titles" msgstr "" -#: typography/functions/functions.php:2282 +#: typography/functions/functions.php:2351 msgid "Content font size" msgstr "" @@ -3732,7 +3706,7 @@ msgid "Display product meta data" msgstr "" #: woocommerce/functions/customizer/customizer.php:1005 -#: woocommerce/functions/functions.php:1258 +#: woocommerce/functions/functions.php:1265 msgid "Checkout" msgstr "" @@ -3744,32 +3718,32 @@ msgstr "" msgid "Remove unnecessary distractions like sidebars, footer widgets and sticky menus." msgstr "" -#: woocommerce/functions/functions.php:636 +#: woocommerce/functions/functions.php:643 msgid "View your shopping cart" msgstr "" -#: woocommerce/functions/functions.php:1175 +#: woocommerce/functions/functions.php:1182 msgid "Rated %s out of 5" msgstr "" -#: woocommerce/functions/functions.php:1177 +#: woocommerce/functions/functions.php:1184 msgid "Not yet rated" msgstr "" -#: woocommerce/functions/functions.php:1182 +#: woocommerce/functions/functions.php:1189 msgid "out of 5" msgstr "" -#: woocommerce/functions/functions.php:1244 +#: woocommerce/functions/functions.php:1251 msgid "Continue Shopping" msgstr "" -#: woocommerce/functions/functions.php:1249 +#: woocommerce/functions/functions.php:1256 msgid "Item added to cart." msgstr "" -#: woocommerce/functions/functions.php:1253 -#: woocommerce/functions/functions.php:1323 +#: woocommerce/functions/functions.php:1260 +#: woocommerce/functions/functions.php:1330 msgid "%d item" msgid_plural "%d items" msgstr[0] "" diff --git a/wp-content/plugins/gp-premium/elements/assets/admin/wp-color-picker-alpha.js b/wp-content/plugins/gp-premium/library/alpha-color-picker/wp-color-picker-alpha.js similarity index 89% rename from wp-content/plugins/gp-premium/elements/assets/admin/wp-color-picker-alpha.js rename to wp-content/plugins/gp-premium/library/alpha-color-picker/wp-color-picker-alpha.js index 3a7d5bb4..c3d5bd9d 100644 --- a/wp-content/plugins/gp-premium/elements/assets/admin/wp-color-picker-alpha.js +++ b/wp-content/plugins/gp-premium/library/alpha-color-picker/wp-color-picker-alpha.js @@ -20,16 +20,36 @@ _after = '
', _wrap = '
', _button = '', - // Prevent CSS issues in < WordPress 4.9 - _deprecated = ( wpColorPickerL10n.current !== undefined ); - // Declare some global variables when is deprecated or not + _before = '', + _wrappingLabel = '', + _wrappingLabelText = '', + _deprecated = false; + + if ( 'undefined' !== typeof wp.i18n ) { + var __ = wp.i18n.__, + _colorValue = __( 'Color value' ), + _selectColor = __( 'Select Color' ), + _defaultString = __( 'Default' ), + _defaultAriaLabel = __( 'Select default color' ), + _clearString = __( 'Clear' ), + _clearAriaLabel = __( 'Clear color' ); + } else if ( typeof wpColorPickerL10n !== "undefined" ) { + // wpColorPickerL10n is defined in <= WordPress 5.4 + // Prevent CSS issues in < WordPress 4.9. current can only be checked if we know wpColorPickerL10n is defined + _deprecated = ( typeof wpColorPickerL10n.current !== "undefined" ); if ( _deprecated ) { - var _before = ''; - } else { - var _before = '', - _wrappingLabel = '', - _wrappingLabelText = ''; + // Update _before if wpColorPickerL10n.current is defined (< WP 4.9) + _before = ''; } + + var _colorValue = wpColorPickerL10n.defaultLabel, + _selectColor = wpColorPickerL10n.pick, + _defaultString = wpColorPickerL10n.defaultString, + _defaultAriaLabel = wpColorPickerL10n.defaultAriaLabel, + _clearString = wpColorPickerL10n.clear, + _clearAriaLabel = wpColorPickerL10n.clearAriaLabel; + } + /** * Overwrite Color * for enable support rbga @@ -96,7 +116,7 @@ self.toggler = $( _before ) .insertBefore( el ) .css( { backgroundColor : self.initialValue } ) - .attr( 'title', wpColorPickerL10n.pick ) + .attr( 'title', _selectColor ) .attr( 'data-current', wpColorPickerL10n.current ); self.pickerContainer = $( _after ).insertAfter( el ); self.button = $( _button ).addClass('hidden'); @@ -111,7 +131,7 @@ // Insert the default label text. self.wrappingLabelText = $( _wrappingLabelText ) .insertBefore( el ) - .text( wpColorPickerL10n.defaultLabel ); + .text( _colorValue ); } /* @@ -129,7 +149,7 @@ .insertBefore( self.wrappingLabel ) .css( { backgroundColor: self.initialValue } ); // Set the toggle button span element text. - self.toggler.find( '.wp-color-result-text' ).text( wpColorPickerL10n.pick ); + self.toggler.find( '.wp-color-result-text' ).text( _selectColor ); // Set up the Iris container and insert it after the wrapping label. self.pickerContainer = $( _after ).insertAfter( self.wrappingLabel ); // Store a reference to the Clear/Default button. @@ -138,14 +158,14 @@ // Set up the Clear/Default button. if ( self.options.defaultColor ) { - self.button.addClass( 'wp-picker-default' ).val( wpColorPickerL10n.defaultString ); + self.button.addClass( 'wp-picker-default' ).val( _defaultString ); if ( ! _deprecated ) { - self.button.attr( 'aria-label', wpColorPickerL10n.defaultAriaLabel ); + self.button.attr( 'aria-label', _defaultAriaLabel ); } } else { - self.button.addClass( 'wp-picker-clear' ).val( wpColorPickerL10n.clear ); + self.button.addClass( 'wp-picker-clear' ).val( _clearString ); if ( ! _deprecated ) { - self.button.attr( 'aria-label', wpColorPickerL10n.clearAriaLabel ); + self.button.attr( 'aria-label', _clearAriaLabel ); } } @@ -375,7 +395,7 @@ self.controls.square.css( { 'margin-right': '0' } ); var emptyWidth = ( self.picker.width() - self.controls.square.width() - 20 ), stripsMargin = ( emptyWidth / 6 ), - stripsWidth = ( ( emptyWidth / 2 ) - stripsMargin ); + stripsWidth = ( ( emptyWidth / 2 ) - stripsMargin ) - 1; $.each( [ 'aContainer', 'strip' ], function( k, v ) { self.controls[v].width( stripsWidth ).css( { 'margin-left' : stripsMargin + 'px' } ); diff --git a/wp-content/plugins/gp-premium/library/alpha-color-picker/wp-color-picker-alpha.min.js b/wp-content/plugins/gp-premium/library/alpha-color-picker/wp-color-picker-alpha.min.js new file mode 100644 index 00000000..523044b1 --- /dev/null +++ b/wp-content/plugins/gp-premium/library/alpha-color-picker/wp-color-picker-alpha.min.js @@ -0,0 +1 @@ +!function(s){var p,o,r,a,i,n,t,l,c,d,g,h,u;s.wp.wpColorPicker.prototype._hasAlpha||(p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",o='
',r='
',a='',i='',n=!'',void 0!==wp.i18n?(t=wp.i18n.__,l=t("Color value"),c=t("Select Color"),d=t("Default"),g=t("Select default color"),h=t("Clear"),u=t("Clear color")):"undefined"!=typeof wpColorPickerL10n&&((n=void 0!==wpColorPickerL10n.current)&&(i=''),l=wpColorPickerL10n.defaultLabel,c=wpColorPickerL10n.pick,d=wpColorPickerL10n.defaultString,g=wpColorPickerL10n.defaultAriaLabel,h=wpColorPickerL10n.clear,u=wpColorPickerL10n.clearAriaLabel),Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var t=parseInt(this._color,10).toString(16);return this.error?"":(t.length<6&&(t=("00000"+t).substr(-6)),"#"+t)},s.widget("wp.wpColorPicker",s.wp.wpColorPicker,{_hasAlpha:!0,_create:function(){if(s.support.iris){var e=this,t=e.element;if(s.extend(e.options,t.data()),"hue"===e.options.type)return e._createHueOnly();e.close=s.proxy(e.close,e),e.initialValue=t.val(),t.addClass("wp-color-picker"),n?(t.hide().wrap(r),e.wrap=t.parent(),e.toggler=s(i).insertBefore(t).css({backgroundColor:e.initialValue}).attr("title",c).attr("data-current",wpColorPickerL10n.current),e.pickerContainer=s(o).insertAfter(t),e.button=s(a).addClass("hidden")):(t.parent("label").length||(t.wrap(""),e.wrappingLabelText=s('').insertBefore(t).text(l)),e.wrappingLabel=t.parent(),e.wrappingLabel.wrap(r),e.wrap=e.wrappingLabel.parent(),e.toggler=s(i).insertBefore(e.wrappingLabel).css({backgroundColor:e.initialValue}),e.toggler.find(".wp-color-result-text").text(c),e.pickerContainer=s(o).insertAfter(e.wrappingLabel),e.button=s(a)),e.options.defaultColor?(e.button.addClass("wp-picker-default").val(d),n||e.button.attr("aria-label",g)):(e.button.addClass("wp-picker-clear").val(h),n||e.button.attr("aria-label",u)),n?t.wrap('').after(e.button):(e.wrappingLabel.wrap('
@@ -325,18 +319,21 @@ function generate_sites_container() {
@@ -573,6 +573,8 @@ function generatepress_sites_do_site_options_export( $data ) { $data['site_options']['elementor_scheme_typography'] = get_option( 'elementor_scheme_typography' ); $data['site_options']['elementor_space_between_widgets'] = get_option( 'elementor_space_between_widgets' ); $data['site_options']['elementor_stretched_section_container'] = get_option( 'elementor_stretched_section_container' ); + $data['site_options']['elementor_load_fa4_shim'] = get_option( 'elementor_load_fa4_shim' ); + $data['site_options']['elementor_active_kit'] = get_option( 'elementor_active_kit' ); } // Beaver Builder. @@ -647,6 +649,72 @@ function generatepress_sites_do_site_options_export( $data ) { } +/** + * Get our sites from the site server. + * + * @since 1.12.0 + */ +function generate_get_sites_from_library() { + $remote_sites = get_transient( 'generatepress_sites' ); + $trusted_authors = get_transient( 'generatepress_sites_trusted_providers' ); + + if ( empty( $remote_sites ) ) { + $sites = array(); + + $data = wp_safe_remote_get( 'https://gpsites.co/wp-json/wp/v2/sites?per_page=100' ); + + if ( is_wp_error( $data ) ) { + set_transient( 'generatepress_sites', 'no results', 5 * MINUTE_IN_SECONDS ); + return; + } + + $data = json_decode( wp_remote_retrieve_body( $data ), true ); + + if ( ! is_array( $data ) ) { + set_transient( 'generatepress_sites', 'no results', 5 * MINUTE_IN_SECONDS ); + return; + } + + foreach ( (array) $data as $site ) { + $sites[ $site['name'] ] = array( + 'name' => $site['name'], + 'directory' => $site['directory'], + 'preview_url' => $site['preview_url'], + 'author_name' => $site['author_name'], + 'author_url' => $site['author_url'], + 'description' => $site['description'], + 'page_builder' => $site['page_builder'], + 'min_version' => $site['min_version'], + 'uploads_url' => $site['uploads_url'], + 'plugins' => $site['plugins'], + 'documentation' => $site['documentation'], + ); + } + + $sites = apply_filters( 'generate_add_sites', $sites ); + + set_transient( 'generatepress_sites', $sites, 24 * HOUR_IN_SECONDS ); + } + + if ( empty( $trusted_authors ) ) { + $trusted_authors = wp_safe_remote_get( 'https://gpsites.co/wp-json/sites/site' ); + + if ( is_wp_error( $trusted_authors ) || empty( $trusted_authors ) ) { + set_transient( 'generatepress_sites_trusted_providers', 'no results', 5 * MINUTE_IN_SECONDS ); + return; + } + + $trusted_authors = json_decode( wp_remote_retrieve_body( $trusted_authors ), true ); + + $authors = array(); + foreach ( (array) $trusted_authors['trusted_author'] as $author ) { + $authors[] = $author; + } + + set_transient( 'generatepress_sites_trusted_providers', $authors, 24 * HOUR_IN_SECONDS ); + } +} + add_action( 'current_screen', 'generatepress_sites_init', 5 ); /** * Fetch our sites and trusted authors. Stores them in their own transients. @@ -658,64 +726,7 @@ function generatepress_sites_init() { $screen = get_current_screen(); if ( 'appearance_page_generate-options' === $screen->id || 'appearance_page_generatepress-site-library' === $screen->id ) { - $remote_sites = get_transient( 'generatepress_sites' ); - $trusted_authors = get_transient( 'generatepress_sites_trusted_providers' ); - - if ( empty( $remote_sites ) ) { - $sites = array(); - - $data = wp_safe_remote_get( 'https://gpsites.co/wp-json/wp/v2/sites?per_page=100' ); - - if ( is_wp_error( $data ) ) { - set_transient( 'generatepress_sites', 'no results', 5 * MINUTE_IN_SECONDS ); - return; - } - - $data = json_decode( wp_remote_retrieve_body( $data ), true ); - - if ( ! is_array( $data ) ) { - set_transient( 'generatepress_sites', 'no results', 5 * MINUTE_IN_SECONDS ); - return; - } - - foreach ( (array) $data as $site ) { - $sites[ $site['name'] ] = array( - 'name' => $site['name'], - 'directory' => $site['directory'], - 'preview_url' => $site['preview_url'], - 'author_name' => $site['author_name'], - 'author_url' => $site['author_url'], - 'description' => $site['description'], - 'page_builder' => $site['page_builder'], - 'min_version' => $site['min_version'], - 'uploads_url' => $site['uploads_url'], - 'plugins' => $site['plugins'], - 'documentation' => $site['documentation'], - ); - } - - $sites = apply_filters( 'generate_add_sites', $sites ); - - set_transient( 'generatepress_sites', $sites, 24 * HOUR_IN_SECONDS ); - } - - if ( empty( $trusted_authors ) ) { - $trusted_authors = wp_safe_remote_get( 'https://gpsites.co/wp-json/sites/site' ); - - if ( is_wp_error( $trusted_authors ) || empty( $trusted_authors ) ) { - set_transient( 'generatepress_sites_trusted_providers', 'no results', 5 * MINUTE_IN_SECONDS ); - return; - } - - $trusted_authors = json_decode( wp_remote_retrieve_body( $trusted_authors ), true ); - - $authors = array(); - foreach ( (array) $trusted_authors['trusted_author'] as $author ) { - $authors[] = $author; - } - - set_transient( 'generatepress_sites_trusted_providers', $authors, 24 * HOUR_IN_SECONDS ); - } + generate_get_sites_from_library(); } } diff --git a/wp-content/plugins/gp-premium/spacing/functions/customizer/js/customizer.js b/wp-content/plugins/gp-premium/spacing/functions/customizer/js/customizer.js index cb7e3e5e..a5a4981c 100644 --- a/wp-content/plugins/gp-premium/spacing/functions/customizer/js/customizer.js +++ b/wp-content/plugins/gp-premium/spacing/functions/customizer/js/customizer.js @@ -87,6 +87,18 @@ generate_spacing_live_update( 'mobile_header_right', 'mobile_header_right', '.in generate_spacing_live_update( 'mobile_header_bottom', 'mobile_header_bottom', '.inside-header', 'padding-bottom', false, false, gp_spacing.mobile ); generate_spacing_live_update( 'mobile_header_left', 'mobile_header_left', '.inside-header', 'padding-left', false, false, gp_spacing.mobile ); +jQuery( window ).on( 'load', function() { + var containerAlignment = wp.customize( 'generate_settings[container_alignment]' ).get(); + + if ( gp_spacing.isFlex && 'text' === containerAlignment ) { + generate_spacing_live_update( 'header_left_sticky_nav', 'header_left', '.main-navigation.navigation-stick:not(.has-branding) .inside-navigation.grid-container', 'padding-left', false, false, gp_spacing.desktop ); + generate_spacing_live_update( 'header_right_sticky_nav', 'header_right', '.main-navigation.navigation-stick:not(.has-branding) .inside-navigation.grid-container', 'padding-right', false, false, gp_spacing.desktop ); + + generate_spacing_live_update( 'mobile_header_left_sticky_nav', 'mobile_header_left', '.main-navigation.navigation-stick:not(.has-branding) .inside-navigation.grid-container', 'padding-left', false, false, gp_spacing.mobile ); + generate_spacing_live_update( 'mobile_header_right_sticky_nav', 'mobile_header_right', '.main-navigation.navigation-stick:not(.has-branding) .inside-navigation.grid-container', 'padding-right', false, false, gp_spacing.mobile ); + } +} ); + /** * Content padding */ @@ -103,6 +115,17 @@ generate_spacing_live_update( 'content_right', 'content_right', content_areas, ' generate_spacing_live_update( 'content_bottom', 'content_bottom', content_areas, 'padding-bottom', false, false, gp_spacing.desktop ); generate_spacing_live_update( 'content_left', 'content_left', content_areas, 'padding-left', false, false, gp_spacing.desktop ); +jQuery( window ).on( 'load', function() { + var containerAlignment = wp.customize( 'generate_settings[container_alignment]' ).get(); + + if ( gp_spacing.isFlex && 'text' === containerAlignment ) { + generate_spacing_live_update( 'content_left_nav_as_header', 'content_left', '.main-navigation.has-branding .inside-navigation.grid-container, .main-navigation.has-branding .inside-navigation.grid-container', 'padding-left', false, false, gp_spacing.desktop ); + generate_spacing_live_update( 'content_right_nav_as_header', 'content_right', '.main-navigation.has-branding .inside-navigation.grid-container, .main-navigation.has-branding .inside-navigation.grid-container', 'padding-right', false, false, gp_spacing.desktop ); + } +} ); + +generate_spacing_live_update( 'one_container_post_content_bottom', 'content_bottom', '.one-container.archive .post:not(:last-child),.one-container.blog .post:not(:last-child)', 'padding-bottom' ); + /* Mobile content padding */ generate_spacing_live_update( 'mobile_content_top', 'mobile_content_top', content_areas, 'padding-top', false, false, gp_spacing.mobile ); generate_spacing_live_update( 'mobile_content_right', 'mobile_content_right', content_areas, 'padding-right', false, false, gp_spacing.mobile ); @@ -116,7 +139,7 @@ generate_spacing_live_update( 'content-margin-left-both', 'content_left', '.one- /* Content element separator */ -generate_spacing_live_update( 'content_element_separator_top', 'content_element_separator', '.post-image, .page-content, .entry-content, .entry-summary, footer.entry-meta', 'margin-top', false, false, false, 'em' ); +generate_spacing_live_update( 'content_element_separator_top', 'content_element_separator', '.post-image:not(:first-child), .page-content:not(:first-child), .entry-content:not(:first-child), .entry-summary:not(:first-child), footer.entry-meta', 'margin-top', false, false, false, 'em' ); generate_spacing_live_update( 'content_element_separator_bottom', 'content_element_separator', '.post-image-above-header .inside-article div.featured-image, .post-image-above-header .inside-article div.post-image', 'margin-bottom', false, false, false, 'em' ); /** @@ -278,26 +301,51 @@ generate_spacing_live_update( 'mobile_widget_right', 'mobile_widget_right', '.wi generate_spacing_live_update( 'mobile_widget_bottom', 'mobile_widget_bottom', '.widget-area .widget', 'padding-bottom', false, false, gp_spacing.mobile ); generate_spacing_live_update( 'mobile_widget_left', 'mobile_widget_left', '.widget-area .widget', 'padding-left', false, false, gp_spacing.mobile ); -/** - * Footer widget area - */ -generate_spacing_live_update( 'footer_widget_container_top', 'footer_widget_container_top', '.footer-widgets', 'padding-top', false, false, gp_spacing.desktop ); -generate_spacing_live_update( 'footer_widget_container_right', 'footer_widget_container_right', '.footer-widgets', 'padding-right', false, false, gp_spacing.desktop ); -generate_spacing_live_update( 'footer_widget_container_bottom', 'footer_widget_container_bottom', '.footer-widgets', 'padding-bottom', false, false, gp_spacing.desktop ); -generate_spacing_live_update( 'footer_widget_container_left', 'footer_widget_container_left', '.footer-widgets', 'padding-left', false, false, gp_spacing.desktop ); -generate_spacing_live_update( 'mobile_footer_widget_container_top', 'mobile_footer_widget_container_top', '.footer-widgets', 'padding-top', false, false, gp_spacing.mobile ); -generate_spacing_live_update( 'mobile_footer_widget_container_right', 'mobile_footer_widget_container_right', '.footer-widgets', 'padding-right', false, false, gp_spacing.mobile ); -generate_spacing_live_update( 'mobile_footer_widget_container_bottom', 'mobile_footer_widget_container_bottom', '.footer-widgets', 'padding-bottom', false, false, gp_spacing.mobile ); -generate_spacing_live_update( 'mobile_footer_widget_container_left', 'mobile_footer_widget_container_left', '.footer-widgets', 'padding-left', false, false, gp_spacing.mobile ); +if ( gp_spacing.isFlex ) { + /** + * Footer widget area + */ + generate_spacing_live_update( 'footer_widget_container_top', 'footer_widget_container_top', '.footer-widgets-container', 'padding-top', false, false, gp_spacing.desktop ); + generate_spacing_live_update( 'footer_widget_container_right', 'footer_widget_container_right', '.footer-widgets-container', 'padding-right', false, false, gp_spacing.desktop ); + generate_spacing_live_update( 'footer_widget_container_bottom', 'footer_widget_container_bottom', '.footer-widgets-container', 'padding-bottom', false, false, gp_spacing.desktop ); + generate_spacing_live_update( 'footer_widget_container_left', 'footer_widget_container_left', '.footer-widgets-container', 'padding-left', false, false, gp_spacing.desktop ); + + generate_spacing_live_update( 'mobile_footer_widget_container_top', 'mobile_footer_widget_container_top', '.footer-widgets-container', 'padding-top', false, false, gp_spacing.mobile ); + generate_spacing_live_update( 'mobile_footer_widget_container_right', 'mobile_footer_widget_container_right', '.footer-widgets-container', 'padding-right', false, false, gp_spacing.mobile ); + generate_spacing_live_update( 'mobile_footer_widget_container_bottom', 'mobile_footer_widget_container_bottom', '.footer-widgets-container', 'padding-bottom', false, false, gp_spacing.mobile ); + generate_spacing_live_update( 'mobile_footer_widget_container_left', 'mobile_footer_widget_container_left', '.footer-widgets-container', 'padding-left', false, false, gp_spacing.mobile ); + + /** + * Footer + */ + generate_spacing_live_update( 'footer_top', 'footer_top', '.inside-site-info', 'padding-top' ); + generate_spacing_live_update( 'footer_right', 'footer_right', '.inside-site-info', 'padding-right' ); + generate_spacing_live_update( 'footer_bottom', 'footer_bottom', '.inside-site-info', 'padding-bottom' ); + generate_spacing_live_update( 'footer_left', 'footer_left', '.inside-site-info', 'padding-left' ); +} else { + /** + * Footer widget area + */ + generate_spacing_live_update( 'footer_widget_container_top', 'footer_widget_container_top', '.footer-widgets', 'padding-top', false, false, gp_spacing.desktop ); + generate_spacing_live_update( 'footer_widget_container_right', 'footer_widget_container_right', '.footer-widgets', 'padding-right', false, false, gp_spacing.desktop ); + generate_spacing_live_update( 'footer_widget_container_bottom', 'footer_widget_container_bottom', '.footer-widgets', 'padding-bottom', false, false, gp_spacing.desktop ); + generate_spacing_live_update( 'footer_widget_container_left', 'footer_widget_container_left', '.footer-widgets', 'padding-left', false, false, gp_spacing.desktop ); + + generate_spacing_live_update( 'mobile_footer_widget_container_top', 'mobile_footer_widget_container_top', '.footer-widgets', 'padding-top', false, false, gp_spacing.mobile ); + generate_spacing_live_update( 'mobile_footer_widget_container_right', 'mobile_footer_widget_container_right', '.footer-widgets', 'padding-right', false, false, gp_spacing.mobile ); + generate_spacing_live_update( 'mobile_footer_widget_container_bottom', 'mobile_footer_widget_container_bottom', '.footer-widgets', 'padding-bottom', false, false, gp_spacing.mobile ); + generate_spacing_live_update( 'mobile_footer_widget_container_left', 'mobile_footer_widget_container_left', '.footer-widgets', 'padding-left', false, false, gp_spacing.mobile ); + + /** + * Footer + */ + generate_spacing_live_update( 'footer_top', 'footer_top', '.site-info', 'padding-top' ); + generate_spacing_live_update( 'footer_right', 'footer_right', '.site-info', 'padding-right' ); + generate_spacing_live_update( 'footer_bottom', 'footer_bottom', '.site-info', 'padding-bottom' ); + generate_spacing_live_update( 'footer_left', 'footer_left', '.site-info', 'padding-left' ); +} -/** - * Footer - */ -generate_spacing_live_update( 'footer_top', 'footer_top', '.site-info', 'padding-top' ); -generate_spacing_live_update( 'footer_right', 'footer_right', '.site-info', 'padding-right' ); -generate_spacing_live_update( 'footer_bottom', 'footer_bottom', '.site-info', 'padding-bottom' ); -generate_spacing_live_update( 'footer_left', 'footer_left', '.site-info', 'padding-left' ); /** * Separator @@ -317,7 +365,7 @@ if ( jQuery( 'body' ).hasClass( 'masonry-enabled' ) ) { if ( jQuery( 'body' ).hasClass( 'generate-columns-activated' ) ) { generate_spacing_live_update( 'columns_bottom', 'separator', '.generate-columns', 'margin-bottom' ); generate_spacing_live_update( 'columns_left', 'separator', '.generate-columns', 'padding-left' ); - generate_spacing_live_update( 'columns_container', 'separator', '.generate-columns-container', 'padding-left', 'negative' ); + generate_spacing_live_update( 'columns_container', 'separator', '.generate-columns-container', 'margin-left', 'negative' ); generate_spacing_live_update( 'columns_page_header_bottom', 'separator', '.generate-columns-container .page-header', 'margin-bottom' ); generate_spacing_live_update( 'columns_page_header_left', 'separator', '.generate-columns-container .page-header', 'margin-left' ); generate_spacing_live_update( 'columns_pagination', 'separator', '.separate-containers .generate-columns-container > .paging-navigation', 'margin-left' ); @@ -347,8 +395,14 @@ if ( jQuery( 'body' ).hasClass( 'both-right' ) ) { generate_spacing_live_update( 'both_right_sidebar_sepatator_top', 'separator', '.both-right.separate-containers .site-main', 'margin-top' ); generate_spacing_live_update( 'both_right_sidebar_sepatator_right', 'separator', '.both-right.separate-containers .site-main', 'margin-right' ); generate_spacing_live_update( 'both_right_sidebar_sepatator_bottom', 'separator', '.both-right.separate-containers .site-main', 'margin-bottom' ); - generate_spacing_live_update( 'both_right_left_sidebar', 'separator', '.both-right.separate-containers .inside-left-sidebar', 'margin-right', false, true ); - generate_spacing_live_update( 'both_right_right_sidebar', 'separator', '.both-right.separate-containers .inside-right-sidebar', 'margin-left', false, true ); + + if ( gp_spacing.isFlex ) { + generate_spacing_live_update( 'both_right_left_sidebar', 'separator', '.both-right .inside-left-sidebar', 'margin-right', false, true ); + generate_spacing_live_update( 'both_right_right_sidebar', 'separator', '.both-right .inside-right-sidebar', 'margin-left', false, true ); + } else { + generate_spacing_live_update( 'both_right_left_sidebar', 'separator', '.both-right.separate-containers .inside-left-sidebar', 'margin-right', false, true ); + generate_spacing_live_update( 'both_right_right_sidebar', 'separator', '.both-right.separate-containers .inside-right-sidebar', 'margin-left', false, true ); + } } /* Both sidebars left */ @@ -356,8 +410,14 @@ if ( jQuery( 'body' ).hasClass( 'both-left' ) ) { generate_spacing_live_update( 'both_left_sidebar_sepatator_top', 'separator', '.both-left.separate-containers .site-main', 'margin-top' ); generate_spacing_live_update( 'both_left_sidebar_sepatator_right', 'separator', '.both-left.separate-containers .site-main', 'margin-bottom' ); generate_spacing_live_update( 'both_left_sidebar_sepatator_bottom', 'separator', '.both-left.separate-containers .site-main', 'margin-left' ); - generate_spacing_live_update( 'both_left_left_sidebar', 'separator', '.both-left.separate-containers .inside-left-sidebar', 'margin-right', false, true ); - generate_spacing_live_update( 'both_left_right_sidebar', 'separator', '.both-left.separate-containers .inside-right-sidebar', 'margin-left', false, true ); + + if ( gp_spacing.isFlex ) { + generate_spacing_live_update( 'both_left_left_sidebar', 'separator', '.both-left .inside-left-sidebar', 'margin-right', false, true ); + generate_spacing_live_update( 'both_left_right_sidebar', 'separator', '.both-left .inside-right-sidebar', 'margin-left', false, true ); + } else { + generate_spacing_live_update( 'both_left_left_sidebar', 'separator', '.both-left.separate-containers .inside-left-sidebar', 'margin-right', false, true ); + generate_spacing_live_update( 'both_left_right_sidebar', 'separator', '.both-left.separate-containers .inside-right-sidebar', 'margin-left', false, true ); + } } /* Main element margin */ @@ -365,22 +425,34 @@ generate_spacing_live_update( 'site_main_separator_top', 'separator', '.separate generate_spacing_live_update( 'site_main_separator_bottom', 'separator', '.separate-containers .site-main', 'margin-bottom' ); /* Page header element */ -generate_spacing_live_update( 'page_header_separator_top', 'separator', - '.separate-containers .page-header-image, \ - .separate-containers .page-header-contained, \ - .separate-containers .page-header-image-single, \ - .separate-containers .page-header-content-single', 'margin-top' ); +if ( gp_spacing.isFlex ) { + generate_spacing_live_update( 'page_header_separator_top', 'separator', '.separate-containers .featured-image', 'margin-top' ); +} else { + generate_spacing_live_update( 'page_header_separator_top', 'separator', + '.separate-containers .page-header-image, \ + .separate-containers .page-header-contained, \ + .separate-containers .page-header-image-single, \ + .separate-containers .page-header-content-single', 'margin-top' ); +} /* Top and bottom sidebar margin */ generate_spacing_live_update( 'right_sidebar_separator_top', 'separator', '.separate-containers .inside-right-sidebar, .separate-containers .inside-left-sidebar', 'margin-top' ); generate_spacing_live_update( 'right_sidebar_separator_bottom', 'separator', '.separate-containers .inside-right-sidebar, .separate-containers .inside-left-sidebar', 'margin-bottom' ); /* Element separators */ -generate_spacing_live_update( 'content_separator', 'separator', - '.separate-containers .widget, \ - .separate-containers .site-main > *, \ - .separate-containers .page-header, \ - .widget-area .main-navigation', 'margin-bottom' ); +if ( gp_spacing.isFlex ) { + generate_spacing_live_update( 'content_separator', 'separator', + '.sidebar .widget, \ + .site-main > *, \ + .page-header, \ + .widget-area .main-navigation', 'margin-bottom' ); +} else { + generate_spacing_live_update( 'content_separator', 'separator', + '.separate-containers .widget, \ + .separate-containers .site-main > *, \ + .separate-containers .page-header, \ + .widget-area .main-navigation', 'margin-bottom' ); +} /** * Right sidebar width @@ -391,11 +463,22 @@ wp.customize( 'generate_spacing_settings[right_sidebar_width]', function( value if ( jQuery( '#right-sidebar' ).length ) { if ( gp_spacing.isFlex ) { - var rightSidebar = jQuery( '#right-sidebar' ); + var contentWidth = 100, + leftSidebar = jQuery( '#left-sidebar' ).length ? wp.customize.value('generate_spacing_settings[left_sidebar_width]')() : 0; - if ( rightSidebar.length ) { - rightSidebar.css( 'width', newval + '%' ); + if ( body.hasClass( 'right-sidebar' ) ) { + contentWidth = ( Number( contentWidth ) - Number( newval ) ); + } else if ( ! body.hasClass( 'left-sidebar' ) && ! body.hasClass( 'no-sidebar' ) ) { + var totalSidebarWidth = ( Number( leftSidebar ) + Number( newval ) ); + + contentWidth = ( Number( contentWidth ) - Number( totalSidebarWidth ) ); } + + jQuery( 'head' ).append( '' ); + + setTimeout(function() { + jQuery( 'style#right_sidebar_width' ).not( ':last' ).remove(); + }, 200 ); } else { // Left sidebar width var left_sidebar = ( jQuery( '#left-sidebar' ).length ) ? wp.customize.value('generate_spacing_settings[left_sidebar_width]')() : 0; @@ -466,11 +549,22 @@ wp.customize( 'generate_spacing_settings[left_sidebar_width]', function( value ) var body = jQuery( 'body' ); if ( jQuery( '#left-sidebar' ).length ) { if ( gp_spacing.isFlex ) { - var leftSidebar = jQuery( '#left-sidebar' ); + var contentWidth = 100, + rightSidebar = jQuery( '#right-sidebar' ).length ? wp.customize.value('generate_spacing_settings[right_sidebar_width]')() : 0; - if ( leftSidebar.length ) { - leftSidebar.css( 'width', newval + '%' ); + if ( body.hasClass( 'left-sidebar' ) ) { + contentWidth = ( Number( contentWidth ) - Number( newval ) ); + } else if ( ! body.hasClass( 'right-sidebar' ) && ! body.hasClass( 'no-sidebar' ) ) { + var totalSidebarWidth = ( Number( rightSidebar ) + Number( newval ) ); + + contentWidth = ( Number( contentWidth ) - Number( totalSidebarWidth ) ); } + + jQuery( 'head' ).append( '' ); + + setTimeout(function() { + jQuery( 'style#left_sidebar_width' ).not( ':last' ).remove(); + }, 200 ); } else { // Right sidebar width var right_sidebar = ( jQuery( '#right-sidebar' ).length ) ? wp.customize.value('generate_spacing_settings[right_sidebar_width]')() : 0; diff --git a/wp-content/plugins/gp-premium/spacing/functions/functions.php b/wp-content/plugins/gp-premium/spacing/functions/functions.php index fc6e7da4..8a6623fd 100644 --- a/wp-content/plugins/gp-premium/spacing/functions/functions.php +++ b/wp-content/plugins/gp-premium/spacing/functions/functions.php @@ -161,20 +161,23 @@ if ( ! function_exists( 'generate_spacing_premium_defaults' ) ) { $defaults['off_canvas_menu_item_height'] = ''; $defaults['content_element_separator'] = '2'; // em. - $defaults['mobile_header_top'] = ''; - $defaults['mobile_header_right'] = ''; - $defaults['mobile_header_bottom'] = ''; - $defaults['mobile_header_left'] = ''; + // These defaults were added to GeneratePress (free) in 3.0.0. + if ( defined( 'GENERATE_VERSION' ) && version_compare( GENERATE_VERSION, '3.0.0-alpha.1', '<' ) ) { + $defaults['mobile_header_top'] = ''; + $defaults['mobile_header_right'] = ''; + $defaults['mobile_header_bottom'] = ''; + $defaults['mobile_header_left'] = ''; - $defaults['mobile_widget_top'] = ''; - $defaults['mobile_widget_right'] = ''; - $defaults['mobile_widget_bottom'] = ''; - $defaults['mobile_widget_left'] = ''; + $defaults['mobile_widget_top'] = ''; + $defaults['mobile_widget_right'] = ''; + $defaults['mobile_widget_bottom'] = ''; + $defaults['mobile_widget_left'] = ''; - $defaults['mobile_footer_widget_container_top'] = ''; - $defaults['mobile_footer_widget_container_right'] = ''; - $defaults['mobile_footer_widget_container_bottom'] = ''; - $defaults['mobile_footer_widget_container_left'] = ''; + $defaults['mobile_footer_widget_container_top'] = ''; + $defaults['mobile_footer_widget_container_right'] = ''; + $defaults['mobile_footer_widget_container_bottom'] = ''; + $defaults['mobile_footer_widget_container_left'] = ''; + } return $defaults; } @@ -211,73 +214,79 @@ function generate_spacing_do_premium_css() { $premium_css->set_selector( '.main-navigation .main-nav ul li a,.main-navigation .menu-toggle,.main-navigation .mobile-bar-items a,.main-navigation .menu-bar-item > a' ); $premium_css->add_property( 'line-height', absint( $spacing_settings['mobile_menu_item_height'] ), false, 'px' ); - $premium_css->set_selector( '.main-navigation .site-logo.navigation-logo img, .mobile-header-navigation .site-logo.mobile-header-logo img, .navigation-search input' ); + $premium_css->set_selector( '.main-navigation .site-logo.navigation-logo img, .mobile-header-navigation .site-logo.mobile-header-logo img, .navigation-search input[type="search"]' ); $premium_css->add_property( 'height', absint( $spacing_settings['mobile_menu_item_height'] ), false, 'px' ); } $premium_css->stop_media_query(); - $premium_css->start_media_query( generate_premium_get_media_query( 'mobile' ) ); + // This CSS was added to GeneratePress (free) in 3.0.0. + if ( defined( 'GENERATE_VERSION' ) && version_compare( GENERATE_VERSION, '3.0.0-alpha.1', '<' ) ) { + $premium_css->start_media_query( generate_premium_get_media_query( 'mobile' ) ); - $premium_css->set_selector( '.inside-header' ); + $premium_css->set_selector( '.inside-header' ); - if ( '' !== $spacing_settings['mobile_header_top'] ) { - $premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_header_top'] ), false, 'px' ); + if ( '' !== $spacing_settings['mobile_header_top'] ) { + $premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_header_top'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_header_right'] ) { + $premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_header_right'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_header_bottom'] ) { + $premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_header_bottom'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_header_left'] ) { + $premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_header_left'] ), false, 'px' ); + } + + $premium_css->set_selector( '.widget-area .widget' ); + + if ( '' !== $spacing_settings['mobile_widget_top'] ) { + $premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_widget_top'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_widget_right'] ) { + $premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_widget_right'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_widget_bottom'] ) { + $premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_widget_bottom'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_widget_left'] ) { + $premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_widget_left'] ), false, 'px' ); + } + + $premium_css->set_selector( '.footer-widgets' ); + + if ( '' !== $spacing_settings['mobile_footer_widget_container_top'] ) { + $premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_footer_widget_container_top'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_footer_widget_container_right'] ) { + $premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_footer_widget_container_right'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_footer_widget_container_bottom'] ) { + $premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_footer_widget_container_bottom'] ), false, 'px' ); + } + + if ( '' !== $spacing_settings['mobile_footer_widget_container_left'] ) { + $premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_footer_widget_container_left'] ), false, 'px' ); + } + + $premium_css->stop_media_query(); + + $premium_css->set_selector( '.post-image, .page-content, .entry-content, .entry-summary, footer.entry-meta' ); + $premium_css->add_property( 'margin-top', floatval( $spacing_settings['content_element_separator'] ), '2', 'em' ); + } else { + $premium_css->set_selector( '.post-image:not(:first-child), .page-content:not(:first-child), .entry-content:not(:first-child), .entry-summary:not(:first-child), footer.entry-meta' ); + $premium_css->add_property( 'margin-top', floatval( $spacing_settings['content_element_separator'] ), '2', 'em' ); } - if ( '' !== $spacing_settings['mobile_header_right'] ) { - $premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_header_right'] ), false, 'px' ); - } - - if ( '' !== $spacing_settings['mobile_header_bottom'] ) { - $premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_header_bottom'] ), false, 'px' ); - } - - if ( '' !== $spacing_settings['mobile_header_left'] ) { - $premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_header_left'] ), false, 'px' ); - } - - $premium_css->set_selector( '.widget-area .widget' ); - - if ( '' !== $spacing_settings['mobile_widget_top'] ) { - $premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_widget_top'] ), false, 'px' ); - } - - if ( '' !== $spacing_settings['mobile_widget_right'] ) { - $premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_widget_right'] ), false, 'px' ); - } - - if ( '' !== $spacing_settings['mobile_widget_bottom'] ) { - $premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_widget_bottom'] ), false, 'px' ); - } - - if ( '' !== $spacing_settings['mobile_widget_left'] ) { - $premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_widget_left'] ), false, 'px' ); - } - - $premium_css->set_selector( '.footer-widgets' ); - - if ( '' !== $spacing_settings['mobile_footer_widget_container_top'] ) { - $premium_css->add_property( 'padding-top', absint( $spacing_settings['mobile_footer_widget_container_top'] ), false, 'px' ); - } - - if ( '' !== $spacing_settings['mobile_footer_widget_container_right'] ) { - $premium_css->add_property( 'padding-right', absint( $spacing_settings['mobile_footer_widget_container_right'] ), false, 'px' ); - } - - if ( '' !== $spacing_settings['mobile_footer_widget_container_bottom'] ) { - $premium_css->add_property( 'padding-bottom', absint( $spacing_settings['mobile_footer_widget_container_bottom'] ), false, 'px' ); - } - - if ( '' !== $spacing_settings['mobile_footer_widget_container_left'] ) { - $premium_css->add_property( 'padding-left', absint( $spacing_settings['mobile_footer_widget_container_left'] ), false, 'px' ); - } - - $premium_css->stop_media_query(); - - $premium_css->set_selector( '.post-image, .page-content, .entry-content, .entry-summary, footer.entry-meta' ); - $premium_css->add_property( 'margin-top', floatval( $spacing_settings['content_element_separator'] ), '2', 'em' ); - $premium_css->set_selector( '.post-image-above-header .inside-article div.featured-image, .post-image-above-header .inside-article div.post-image' ); $premium_css->add_property( 'margin-bottom', floatval( $spacing_settings['content_element_separator'] ), '2', 'em' ); @@ -293,7 +302,7 @@ function generate_spacing_do_premium_css() { $premium_css->set_selector( '.main-navigation.sticky-navigation-transition .main-nav > ul > li > a,.sticky-navigation-transition .menu-toggle,.main-navigation.sticky-navigation-transition .mobile-bar-items a, .sticky-navigation-transition .navigation-branding .main-title' ); $premium_css->add_property( 'line-height', absint( $spacing_settings['sticky_menu_item_height'] ), false, 'px' ); - $premium_css->set_selector( '.main-navigation.sticky-navigation-transition .site-logo img, .main-navigation.sticky-navigation-transition .navigation-search input, .main-navigation.sticky-navigation-transition .navigation-branding img' ); + $premium_css->set_selector( '.main-navigation.sticky-navigation-transition .site-logo img, .main-navigation.sticky-navigation-transition .navigation-search input[type="search"], .main-navigation.sticky-navigation-transition .navigation-branding img' ); $premium_css->add_property( 'height', absint( $spacing_settings['sticky_menu_item_height'] ), false, 'px' ); $premium_css->stop_media_query(); diff --git a/wp-content/plugins/gp-premium/typography/functions/functions.php b/wp-content/plugins/gp-premium/typography/functions/functions.php index b56b189e..24d22824 100644 --- a/wp-content/plugins/gp-premium/typography/functions/functions.php +++ b/wp-content/plugins/gp-premium/typography/functions/functions.php @@ -472,7 +472,7 @@ if ( ! function_exists( 'generate_fonts_customize_register' ) ) { array( 'default' => $defaults['tablet_site_title_font_size'], 'type' => 'option', - 'sanitize_callback' => 'absint', + 'sanitize_callback' => 'generate_premium_sanitize_empty_absint', 'transport' => 'postMessage', ) ); @@ -482,7 +482,7 @@ if ( ! function_exists( 'generate_fonts_customize_register' ) ) { array( 'default' => $defaults['mobile_site_title_font_size'], 'type' => 'option', - 'sanitize_callback' => 'absint', + 'sanitize_callback' => 'generate_premium_sanitize_empty_absint', 'transport' => 'postMessage', ) ); @@ -1618,6 +1618,42 @@ if ( ! function_exists( 'generate_fonts_customize_register' ) ) { ) ); + $h3_font_size_options = array( + 'desktop' => array( + 'min' => 10, + 'max' => 80, + 'step' => 1, + 'edit' => true, + 'unit' => 'px', + ), + ); + + $h3_font_size_settings = array( + 'desktop' => 'generate_settings[heading_3_font_size]', + ); + + if ( isset( $defaults['mobile_heading_3_font_size'] ) ) { + $wp_customize->add_setting( + 'generate_settings[mobile_heading_3_font_size]', + array( + 'default' => $defaults['mobile_heading_3_font_size'], + 'type' => 'option', + 'sanitize_callback' => 'generate_premium_sanitize_empty_absint', + 'transport' => 'postMessage', + ) + ); + + $h3_font_size_options['mobile'] = array( + 'min' => 10, + 'max' => 80, + 'step' => 1, + 'edit' => true, + 'unit' => 'px', + ); + + $h3_font_size_settings['mobile'] = 'generate_settings[mobile_heading_3_font_size]'; + } + $wp_customize->add_control( new GeneratePress_Pro_Range_Slider_Control( $wp_customize, @@ -1625,18 +1661,8 @@ if ( ! function_exists( 'generate_fonts_customize_register' ) ) { array( 'description' => __( 'Font size', 'gp-premium' ), 'section' => 'font_content_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_3_font_size]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 10, - 'max' => 80, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - ), + 'settings' => $h3_font_size_settings, + 'choices' => $h3_font_size_options, ) ) ); @@ -1785,6 +1811,42 @@ if ( ! function_exists( 'generate_fonts_customize_register' ) ) { ) ); + $h4_font_size_options = array( + 'desktop' => array( + 'min' => 10, + 'max' => 80, + 'step' => 1, + 'edit' => true, + 'unit' => 'px', + ), + ); + + $h4_font_size_settings = array( + 'desktop' => 'generate_settings[heading_4_font_size]', + ); + + if ( isset( $defaults['mobile_heading_4_font_size'] ) ) { + $wp_customize->add_setting( + 'generate_settings[mobile_heading_4_font_size]', + array( + 'default' => $defaults['mobile_heading_4_font_size'], + 'type' => 'option', + 'sanitize_callback' => 'generate_premium_sanitize_empty_absint', + 'transport' => 'postMessage', + ) + ); + + $h4_font_size_options['mobile'] = array( + 'min' => 10, + 'max' => 80, + 'step' => 1, + 'edit' => true, + 'unit' => 'px', + ); + + $h4_font_size_settings['mobile'] = 'generate_settings[mobile_heading_4_font_size]'; + } + $wp_customize->add_control( new GeneratePress_Pro_Range_Slider_Control( $wp_customize, @@ -1792,18 +1854,8 @@ if ( ! function_exists( 'generate_fonts_customize_register' ) ) { array( 'description' => __( 'Font size', 'gp-premium' ), 'section' => 'font_content_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_4_font_size]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 10, - 'max' => 80, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - ), + 'settings' => $h4_font_size_settings, + 'choices' => $h4_font_size_options, ) ) ); @@ -1916,6 +1968,42 @@ if ( ! function_exists( 'generate_fonts_customize_register' ) ) { ) ); + $h5_font_size_options = array( + 'desktop' => array( + 'min' => 10, + 'max' => 80, + 'step' => 1, + 'edit' => true, + 'unit' => 'px', + ), + ); + + $h5_font_size_settings = array( + 'desktop' => 'generate_settings[heading_5_font_size]', + ); + + if ( isset( $defaults['mobile_heading_5_font_size'] ) ) { + $wp_customize->add_setting( + 'generate_settings[mobile_heading_5_font_size]', + array( + 'default' => $defaults['mobile_heading_5_font_size'], + 'type' => 'option', + 'sanitize_callback' => 'generate_premium_sanitize_empty_absint', + 'transport' => 'postMessage', + ) + ); + + $h5_font_size_options['mobile'] = array( + 'min' => 10, + 'max' => 80, + 'step' => 1, + 'edit' => true, + 'unit' => 'px', + ); + + $h5_font_size_settings['mobile'] = 'generate_settings[mobile_heading_5_font_size]'; + } + $wp_customize->add_control( new GeneratePress_Pro_Range_Slider_Control( $wp_customize, @@ -1923,18 +2011,8 @@ if ( ! function_exists( 'generate_fonts_customize_register' ) ) { array( 'description' => __( 'Font size', 'gp-premium' ), 'section' => 'font_content_section', - 'settings' => array( - 'desktop' => 'generate_settings[heading_5_font_size]', - ), - 'choices' => array( - 'desktop' => array( - 'min' => 10, - 'max' => 80, - 'step' => 1, - 'edit' => true, - 'unit' => 'px', - ), - ), + 'settings' => $h5_font_size_settings, + 'choices' => $h5_font_size_options, ) ) ); @@ -2944,7 +3022,7 @@ function generate_typography_get_premium_css() { $premium_css->start_media_query( generate_premium_get_media_query( 'tablet' ) ); if ( '' !== $generate_settings['tablet_navigation_font_size'] ) { - $premium_css->set_selector( '.main-navigation:not(.slideout-navigation) a, .menu-toggle, .main-navigation .menu-bar-items' ); + $premium_css->set_selector( '.main-navigation:not(.slideout-navigation) a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items' ); $premium_css->add_property( 'font-size', absint( $generate_settings['tablet_navigation_font_size'] ), false, 'px' ); $tablet_subnav_font_size = $generate_settings['tablet_navigation_font_size'] - 1; @@ -2982,8 +3060,8 @@ function generate_typography_get_premium_css() { $premium_css->start_media_query( generate_premium_get_media_query( 'mobile-menu' ) ); - if ( '' !== $generate_settings['mobile_navigation_font_size'] ) { - $premium_css->set_selector( '.main-navigation:not(.slideout-navigation) a, .menu-toggle, .main-navigation .menu-bar-items' ); + if ( ! empty( $generate_settings['mobile_navigation_font_size'] ) ) { + $premium_css->set_selector( '.main-navigation:not(.slideout-navigation) a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items' ); $premium_css->add_property( 'font-size', absint( $generate_settings['mobile_navigation_font_size'] ), false, 'px' ); $mobile_subnav_font_size = $generate_settings['mobile_navigation_font_size'] - 1; @@ -3003,7 +3081,7 @@ function generate_typography_get_premium_css() { ); if ( $menu_settings['navigation_as_header'] || $menu_settings['sticky_navigation_logo'] || 'enable' === $menu_settings['mobile_header'] ) { - if ( '' !== $generate_settings['mobile_site_title_font_size'] ) { + if ( ! empty( $generate_settings['mobile_site_title_font_size'] ) ) { $premium_css->set_selector( '.navigation-branding .main-title' ); $premium_css->add_property( 'font-size', absint( $generate_settings['mobile_site_title_font_size'] ), false, 'px' ); } diff --git a/wp-content/plugins/gp-premium/typography/functions/js/customizer.js b/wp-content/plugins/gp-premium/typography/functions/js/customizer.js index bdcb4d27..f214b655 100644 --- a/wp-content/plugins/gp-premium/typography/functions/js/customizer.js +++ b/wp-content/plugins/gp-premium/typography/functions/js/customizer.js @@ -181,7 +181,8 @@ gp_premium_typography_live_update( 'archive_post_title_line_height', 'h2.entry-t /** * H3 font size, weight and transform */ -gp_premium_typography_live_update( 'heading_3_font_size', 'h3', 'font-size', 'px' ); +gp_premium_typography_live_update( 'heading_3_font_size', 'h3', 'font-size', 'px', gp_typography.desktop ); +gp_premium_typography_live_update( 'mobile_heading_3_font_size', 'h3', 'font-size', 'px', gp_typography.mobile ); gp_premium_typography_live_update( 'heading_3_weight', 'h3', 'font-weight' ); gp_premium_typography_live_update( 'heading_3_transform', 'h3', 'text-transform' ); gp_premium_typography_live_update( 'heading_3_line_height', 'h3', 'line-height', 'em' ); @@ -190,7 +191,8 @@ gp_premium_typography_live_update( 'heading_3_margin_bottom', 'h3', 'margin-bott /** * H4 font size, weight and transform */ -gp_premium_typography_live_update( 'heading_4_font_size', 'h4', 'font-size', 'px' ); +gp_premium_typography_live_update( 'heading_4_font_size', 'h4', 'font-size', 'px', gp_typography.desktop ); +gp_premium_typography_live_update( 'mobile_heading_4_font_size', 'h4', 'font-size', 'px', gp_typography.mobile ); gp_premium_typography_live_update( 'heading_4_weight', 'h4', 'font-weight' ); gp_premium_typography_live_update( 'heading_4_transform', 'h4', 'text-transform' ); gp_premium_typography_live_update( 'heading_4_line_height', 'h4', 'line-height', 'em' ); @@ -198,7 +200,8 @@ gp_premium_typography_live_update( 'heading_4_line_height', 'h4', 'line-height', /** * H5 font size, weight and transform */ -gp_premium_typography_live_update( 'heading_5_font_size', 'h5', 'font-size', 'px' ); +gp_premium_typography_live_update( 'heading_5_font_size', 'h5', 'font-size', 'px', gp_typography.desktop ); +gp_premium_typography_live_update( 'mobile_heading_5_font_size', 'h5', 'font-size', 'px', gp_typography.mobile ); gp_premium_typography_live_update( 'heading_5_weight', 'h5', 'font-weight' ); gp_premium_typography_live_update( 'heading_5_transform', 'h5', 'text-transform' ); gp_premium_typography_live_update( 'heading_5_line_height', 'h5', 'line-height', 'em' ); diff --git a/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.css b/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.css index 8a9bd6be..638392d2 100644 --- a/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.css +++ b/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.css @@ -184,31 +184,26 @@ .wc-columns-container.wc-columns-6 .products, .wc-related-upsell-columns-6 .related ul.products, .wc-related-upsell-columns-6 .up-sells ul.products { - -ms-grid-columns: 1fr 50px 1fr 50px 1fr 50px 1fr 50px 1fr 50px 1fr; grid-template-columns: repeat(6, minmax(0, 1fr)); } .wc-columns-container.wc-columns-5 .products, .wc-related-upsell-columns-5 .related ul.products, .wc-related-upsell-columns-5 .up-sells ul.products { - -ms-grid-columns: 1fr 50px 1fr 50px 1fr 50px 1fr 50px 1fr; grid-template-columns: repeat(5, minmax(0, 1fr)); } .woocommerce .wc-columns-container.wc-columns-4 .products, .wc-related-upsell-columns-4 .related ul.products, .wc-related-upsell-columns-4 .up-sells ul.products { - -ms-grid-columns: 1fr [4]; grid-template-columns: repeat(4, minmax(0, 1fr)); } .woocommerce .wc-columns-container.wc-columns-3 .products, .wc-related-upsell-columns-3 .related ul.products, .wc-related-upsell-columns-3 .up-sells ul.products { - -ms-grid-columns: 1fr [3]; grid-template-columns: repeat(3, minmax(0, 1fr)); } .woocommerce .wc-columns-container.wc-columns-2 .products, .wc-related-upsell-columns-2 .related ul.products, .wc-related-upsell-columns-2 .up-sells ul.products { - -ms-grid-columns: 1fr [2]; grid-template-columns: repeat(2, minmax(0, 1fr)); } .woocommerce .wc-columns-container.wc-columns-1 .products, @@ -743,6 +738,15 @@ nav span.count { top: 0; } +.wc-has-gallery picture.secondary-image { + width: 100%; + height: 100%; +} + +.wc-product-image:hover .secondary-image { + opacity: 1; +} + .woocommerce ul.products li.product a img { margin-bottom: 0; } diff --git a/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.min.css b/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.min.css index 4944249c..41b82e85 100644 --- a/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.min.css +++ b/wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce.min.css @@ -1 +1 @@ -@supports (display:grid){.woocommerce ul.products li.product{display:flex;flex-direction:column}}.woocommerce ul.products li.product.woocommerce-image-align-left,.woocommerce ul.products li.product.woocommerce-image-align-right{display:block}.woocommerce ul.products li.product .woocommerce-LoopProduct-link{display:block;margin-bottom:auto}.woocommerce ul.products li.product .button{margin-left:auto;margin-right:auto}.woocommerce ul.products li.product.woocommerce-text-align-left .button{margin-left:0}.woocommerce ul.products li.product.woocommerce-text-align-right .button{margin-right:0}.woocommerce ul.products li.product .woocommerce-LoopProduct-link>:not(:first-child){margin-top:10px;margin-bottom:0}.woocommerce ul.products li.product .woocommerce-LoopProduct-link>.secondary-image+img{margin-top:0}.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{position:relative;border-radius:0;min-height:15px;min-width:initial;font-weight:inherit;font-size:inherit;padding:8px 13px;line-height:1;display:inline-block;top:auto;left:auto;font-size:80%;text-transform:uppercase;font-weight:700}.woocommerce ul.products li.product.sales-flash-overlay .onsale{position:absolute;top:0;right:0;margin:0}.single-product span.onsale{margin-bottom:15px}.woocommerce-product-gallery{margin-right:4%}.rtl .woocommerce-product-gallery{margin-right:0;margin-left:4%}.woocommerce div.product div.images .flex-control-thumbs li{max-width:100px;padding-top:5px;padding-right:5px;box-sizing:border-box}.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0}.woocommerce .page-header-image-single{display:none}.woocommerce .entry-content,.woocommerce .product .entry-summary{margin-top:0}.related.products{clear:both}.checkout-subscribe-prompt.clear{visibility:visible;height:initial;width:initial}.woocommerce .add_to_cart_button+.added_to_cart{display:none}.woocommerce-result-count{font-size:14px;padding:10px 0;border:1px solid transparent}.woocommerce-ordering select{font-size:14px;font-weight:500;padding:10px 40px 10px 12px;-webkit-appearance:none;-moz-appearance:none;width:100%;background:0 0;border-color:rgba(0,0,0,.1);color:inherit;cursor:pointer}.woocommerce-ordering select::-ms-expand{display:none}.woocommerce-ordering:after{content:"\e903";font-family:"GP Premium";display:inline-block;position:absolute;pointer-events:none;color:inherit;top:10px;right:15px;font-size:16px}.woocommerce-ordering select option{color:initial}.woocommerce .woocommerce-ordering,.woocommerce .woocommerce-result-count{margin-bottom:30px}.woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap}@supports (display:grid){#wc-column-container .product{float:none;width:auto;margin:0}.woocommerce .related ul.products::after,.woocommerce .related ul.products::before,.woocommerce .up-sells ul.products::after,.woocommerce .up-sells ul.products::before,.woocommerce .wc-columns-container .products::after,.woocommerce .wc-columns-container .products::before{display:none}.wc-columns-container .products,.woocommerce .related ul.products,.woocommerce .up-sells ul.products{display:-ms-grid;display:grid;grid-gap:50px;width:100%}.wc-columns-container.wc-columns-6 .products,.wc-related-upsell-columns-6 .related ul.products,.wc-related-upsell-columns-6 .up-sells ul.products{-ms-grid-columns:1fr 50px 1fr 50px 1fr 50px 1fr 50px 1fr 50px 1fr;grid-template-columns:repeat(6,minmax(0,1fr))}.wc-columns-container.wc-columns-5 .products,.wc-related-upsell-columns-5 .related ul.products,.wc-related-upsell-columns-5 .up-sells ul.products{-ms-grid-columns:1fr 50px 1fr 50px 1fr 50px 1fr 50px 1fr;grid-template-columns:repeat(5,minmax(0,1fr))}.wc-related-upsell-columns-4 .related ul.products,.wc-related-upsell-columns-4 .up-sells ul.products,.woocommerce .wc-columns-container.wc-columns-4 .products{-ms-grid-columns:1fr[4];grid-template-columns:repeat(4,minmax(0,1fr))}.wc-related-upsell-columns-3 .related ul.products,.wc-related-upsell-columns-3 .up-sells ul.products,.woocommerce .wc-columns-container.wc-columns-3 .products{-ms-grid-columns:1fr[3];grid-template-columns:repeat(3,minmax(0,1fr))}.wc-related-upsell-columns-2 .related ul.products,.wc-related-upsell-columns-2 .up-sells ul.products,.woocommerce .wc-columns-container.wc-columns-2 .products{-ms-grid-columns:1fr[2];grid-template-columns:repeat(2,minmax(0,1fr))}.wc-related-upsell-columns-1 .related ul.products,.wc-related-upsell-columns-1 .up-sells ul.products,.woocommerce .wc-columns-container.wc-columns-1 .products{width:100%}.woocommerce .wc-columns-1 ul.products li.product,.woocommerce-page .wc-columns-1 ul.products li.product{margin-left:0;margin-right:0}}#wc-mini-cart ul.woocommerce-mini-cart{position:relative;left:auto;right:auto;opacity:1;pointer-events:auto;height:auto;width:auto;float:none;background-color:transparent;box-shadow:0 0 0;visibility:visible}.wc-mini-cart{position:absolute;width:300px;right:0;box-shadow:0 2px 2px rgba(0,0,0,.1);z-index:99999;left:-99999px;opacity:0;height:0;overflow:hidden;pointer-events:none;transition:opacity 80ms linear;transition-delay:0s;visibility:hidden}.wc-menu-item.sfHover .wc-mini-cart,.wc-menu-item:hover .wc-mini-cart{left:auto;opacity:1;transition-delay:150ms;pointer-events:auto;height:auto;overflow:visible;visibility:visible}.sidebar .wc-mini-cart{right:100%;top:0}.sidebar .wc-mini-cart .widget{background:0 0}body:not(.using-mouse) .wc-menu-item.sfHover .wc-mini-cart{display:none}.wc-menu-item .sub-menu{left:auto;right:0;width:300px}.wc-menu-item .wc-mini-cart .widget_shopping_cart_content li.sfHover a,.wc-menu-item .wc-mini-cart .widget_shopping_cart_content li:hover a{background:0 0}.wc-menu-item .wc-mini-cart .widget_shopping_cart{padding:15px}.woocommerce.widget_shopping_cart .cart_list li{padding:0 0 0 4em;margin:0;box-sizing:border-box;min-height:3em}.woocommerce.widget_shopping_cart{font-size:14px}.widget_shopping_cart .woocommerce-mini-cart__buttons{margin-bottom:0;display:flex}.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons a{margin:0;width:calc(50% - 10px);text-align:center;padding:10px 15px;line-height:inherit;font-size:14px}.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons a:first-child{margin-right:2px}.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons a:last-child{margin-left:2px}.woocommerce.widget_shopping_cart .cart_list li a.remove{right:0;left:auto;height:20px;width:20px;border-width:1px;border-style:solid;border-radius:50%;padding:0;font-size:16px;line-height:17px;font-weight:400;position:relative;float:right}.woocommerce ul.cart_list li img{position:absolute;left:0;width:3em;height:auto;top:0;margin-left:0}#wc-mini-cart .woocommerce-mini-cart-item a{padding:0}.woocommerce-mini-cart-item .quantity{font-size:12px;display:block}.woocommerce.widget_shopping_cart .total{margin:15px 0;padding:15px;background:rgba(0,0,0,.05);border:0;font-size:14px}#wc-mini-cart .total{padding:15px;margin:15px -15px 15px;text-align:left}#generate-slideout-menu .total{padding:10px 20px;margin:20px -20px 20px}#generate-slideout-menu.do-overlay .total{margin:20px 0}.woocommerce.widget_shopping_cart a.button.wc-forward:after{display:none}.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item:not(:last-child){margin-bottom:15px}.rtl .wc-mini-cart .woocommerce.widget_shopping_cart .cart_list li{padding:0 4em 0 0}.rtl .wc-mini-cart .woocommerce.widget_shopping_cart .cart_list li a.remove{float:left}.rtl .wc-mini-cart .woocommerce ul.cart_list li img{right:0}.slideout-widget .widget_shopping_cart_content,.slideout-widget .widget_shopping_cart_content a{font-size:14px}#generate-slideout-menu.do-overlay li.woocommerce-mini-cart-item{text-align:left}#wc-mini-cart a:not(.button){font-family:inherit}.wc-menu-item:not(.has-items) .wc-mini-cart{display:none}.woocommerce-mini-cart__empty-message{margin-bottom:0}.secondary-nav-aligned-center .secondary-navigation ul.woocommerce-mini-cart,.secondary-nav-aligned-right .secondary-navigation ul.woocommerce-mini-cart{font-size:inherit}#wc-mini-cart .widgettitle{display:none}@supports (display:grid){.woocommerce .related ul.products li.product,.woocommerce .up-sells ul.products li.product{width:auto;margin-left:0;margin-right:0;margin-bottom:0}}.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-radius:0;font-weight:inherit;font-size:inherit;line-height:inherit;padding:10px 20px}ul.products .woocommerce-text-align-center{text-align:center}ul.products li.product.woocommerce-text-align-center .price,ul.products li.product.woocommerce-text-align-center .star-rating{margin-left:auto;margin-right:auto}ul.products li.product.woocommerce-text-align-right .price,ul.products li.product.woocommerce-text-align-right .star-rating{margin-left:auto}.woocommerce .star-rating:before{color:rgba(0,0,0,.4)}.woocommerce p.stars a{color:rgba(0,0,0,.4)}.woocommerce p.stars.selected a:before{color:#ffa200}.woocommerce ul.products li.product .price del{display:inline;padding-right:10px}ul.products .woocommerce-text-align-right{text-align:right}.woocommerce #content div.product div.images,.woocommerce div.product div.images,.woocommerce-page #content div.product div.images,.woocommerce-page div.product div.images{width:50%}.woocommerce #content div.product div.summary,.woocommerce div.product div.summary,.woocommerce-page #content div.product div.summary,.woocommerce-page div.product div.summary{width:auto;float:none;overflow:hidden}.product_meta{font-size:80%;border-top:1px solid rgba(0,0,0,.1);padding-top:30px}.product_meta>span{display:block}.up-sells{margin-top:40px}.add-to-cart-panel form.cart,.woocommerce div.product form.cart{display:flex;flex-wrap:wrap}.woocommerce div.product form.cart>:not(.quantity):not(.single_add_to_cart_button){width:100%}.add-to-cart-panel form.cart{flex-shrink:0}.woocommerce .quantity .qty{height:100%;width:auto;max-width:80px;background:0 0;border:1px solid rgba(0,0,0,.1);padding:0 10px;height:50px}.do-quantity-buttons .quantity:not(.buttons-added) .qty{width:50px}.add-to-cart-panel .cart.do-quantity-buttons div.quantity,.do-quantity-buttons div.quantity{display:flex;align-items:center}.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):after,.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):before,.woocommerce form .quantity.buttons-added .minus,.woocommerce form .quantity.buttons-added .plus,.woocommerce form .quantity.buttons-added .qty{display:block;width:50px;height:100%;min-height:50px;background-color:transparent;border:1px solid rgba(0,0,0,.1);margin:0;padding:0;text-align:center;vertical-align:middle;-moz-appearance:textfield!important;-webkit-appearance:none;border-radius:0;color:inherit;box-sizing:border-box}.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):after,.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):before,.woocommerce form .quantity.buttons-added .minus,.woocommerce form .quantity.buttons-added .plus{display:flex;align-items:center;justify-content:center}.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):before{content:"-";border-right:0}.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):after{content:"+";border-left:0}.woocommerce form .quantity.buttons-added .qty:focus{border-color:rgba(0,0,0,.1)}.do-quantity-buttons form .quantity input[type=number]::-webkit-inner-spin-button,.do-quantity-buttons form .quantity input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.do-quantity-buttons form .quantity:not(.buttons-added):before,.woocommerce form .quantity.buttons-added .minus{border-right-width:0}.do-quantity-buttons form .quantity:not(.buttons-added):after,.woocommerce form .quantity.buttons-added .plus{border-left-width:0}.do-quantity-buttons .elementor-add-to-cart form .quantity:not(.buttons-added):after,.do-quantity-buttons .elementor-add-to-cart form .quantity:not(.buttons-added):before,.do-quantity-buttons form .quantity.hidden{display:none}.woocommerce div.product form.cart div.quantity.hidden{margin:0}.woocommerce div.product .woocommerce-tabs ul.tabs li::after,.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none;border:0}.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;margin-left:0;padding-left:0}.woocommerce div.product .woocommerce-tabs ul.tabs li{background-color:rgba(0,0,0,.02);margin:0;border-radius:0;border-width:1px 1px 0 0;border-color:rgba(0,0,0,.08)}.woocommerce div.product .woocommerce-tabs ul.tabs li:first-child{border-left-width:1px}.woocommerce-ordering{float:left;margin-right:1em;margin-bottom:0;position:relative;padding:0}nav li.wc-menu-item{float:right}.cart-contents>span{line-height:0}.cart-contents>span:not(:empty){margin-left:10px}.rtl .cart-contents>span:not(:empty){margin-left:0;margin-right:10px}.cart-contents>span.gp-icon{margin-left:0}.rtl .cart-contents>span.gp-icon{margin-right:0}nav span.count{font-size:.8em;opacity:.5}.woocommerce a.remove{color:inherit!important;background:0 0!important;border:1px solid!important;border-color:inherit;font-weight:400;font-size:16px;width:20px;height:20px;line-height:17px;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"!important}.woocommerce a.remove:hover{color:inherit!important;background:0 0!important;opacity:.7}.woocommerce .star-rating:before{opacity:.25;content:"SSSSS"}.woocommerce div.product .woocommerce-product-rating{margin:1em 0}.woocommerce div.product p.price,.woocommerce div.product span.price{color:inherit}.wc-has-gallery .secondary-image{position:absolute;opacity:0;transition:opacity .1s ease-in-out;left:50%;transform:translate(-50%,0);top:0}.woocommerce ul.products li.product a img{margin-bottom:0}.woocommerce div.product .woocommerce-tabs ul.tabs li a,.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:initial}.woocommerce div.product p.price,.woocommerce ul.products li.product .price{font-weight:700}div.woocommerce-error a.button,div.woocommerce-error a.button:focus,div.woocommerce-error a.button:hover,div.woocommerce-info a.button,div.woocommerce-info a.button:focus,div.woocommerce-info a.button:hover,div.woocommerce-message a.button,div.woocommerce-message a.button:focus,div.woocommerce-message a.button:hover{background:0 0;padding:0}.woocommerce-error a,.woocommerce-info a,.woocommerce-message a{font-weight:700}.woocommerce-error,.woocommerce-info,.woocommerce-message{padding:20px 30px;border:0;border-left:10px solid rgba(0,0,0,.3)}.woocommerce-error::before,.woocommerce-info::before,.woocommerce-message::before{display:none}a.button.wc-forward:after{content:"\e901";font-family:"GP Premium";line-height:1em;speak:none;padding-left:10px;position:relative;top:2px}.rtl a.button.wc-forward:after{display:none}.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{float:none;width:100%;margin:0}.woocommerce-checkout .col2-set{width:52.9411764706%;float:left;margin-right:5.8823529412%}.rtl.woocommerce-checkout .col2-set{float:right;margin-right:0;margin-left:5.8823529412%}#customer_details+#wc_checkout_add_ons,#order_review,#order_review_heading{width:41.1764705882%;float:right;margin-right:0}.woocommerce-additional-fields>h3{margin-top:20px}.woocommerce table.shop_table,.woocommerce table.shop_table tfoot td,.woocommerce table.shop_table tfoot th{border:0;border-radius:0}.woocommerce table.shop_table th{background-color:rgba(0,0,0,.03)}.woocommerce table.shop_table td,.woocommerce table.shop_table th{padding:20px;border:0}.woocommerce table.shop_table td{background-color:rgba(0,0,0,.005);border-bottom:1px solid rgba(0,0,0,.1)}#add_payment_method .cart-collaterals .cart_totals tr td,#add_payment_method .cart-collaterals .cart_totals tr th,.woocommerce-cart .cart-collaterals .cart_totals tr td,.woocommerce-cart .cart-collaterals .cart_totals tr th,.woocommerce-checkout .cart-collaterals .cart_totals tr td,.woocommerce-checkout .cart-collaterals .cart_totals tr th{border-top:0}#add_payment_method #payment,#add_payment_method #payment div.payment_box,.woocommerce-cart #payment,.woocommerce-cart #payment div.payment_box,.woocommerce-checkout #payment,.woocommerce-checkout #payment div.payment_box{background-color:transparent;color:inherit}#add_payment_method #payment div.payment_box:before,.woocommerce-cart #payment div.payment_box:before,.woocommerce-checkout #payment div.payment_box:before{display:none}#payment .payment_methods>.wc_payment_method>label{padding:20px;background-color:rgba(0,0,0,.04);display:block;cursor:pointer}#payment .payment_methods li.wc_payment_method>input[type=radio]:first-child:checked+label{font-weight:700;background-color:rgba(0,0,0,.07)}#payment .payment_methods li.wc_payment_method>input[type=radio]:first-child{clip:rect(1px,1px,1px,1px);position:absolute!important}#payment .payment_methods>.wc_payment_method>label:before{display:inline-block;font-size:inherit;-webkit-font-smoothing:antialiased;content:"\e902";margin-right:.5407911001em;transition:color,ease,.2s;font-family:"GP Premium"}#payment .payment_methods li.wc_payment_method>input[type=radio]:first-child:checked+label:before{content:"\e904"}#add_payment_method #payment ul.payment_methods,.woocommerce-cart #payment ul.payment_methods,.woocommerce-checkout #payment ul.payment_methods{padding:0;border:0}.woocommerce #payment #place_order,.woocommerce-page #payment #place_order{float:none;width:100%;padding-top:20px;padding-bottom:20px;font-weight:700;font-size:150%}#add_payment_method #payment div.form-row,.woocommerce-cart #payment div.form-row,.woocommerce-checkout #payment div.form-row{padding-left:0;padding-right:0;padding-top:0}#add_payment_method #payment ul.payment_methods li img,.woocommerce-cart #payment ul.payment_methods li img,.woocommerce-checkout #payment ul.payment_methods li img{float:right}#add_payment_method #payment .payment_method_paypal .about_paypal,.woocommerce-cart #payment .payment_method_paypal .about_paypal,.woocommerce-checkout #payment .payment_method_paypal .about_paypal{float:none;display:inline-block;line-height:1}a.checkout-button:after{display:none}.woocommerce #content table.cart td.actions .input-text,.woocommerce table.cart td.actions .input-text,.woocommerce-page #content table.cart td.actions .input-text,.woocommerce-page table.cart td.actions .input-text{width:150px;padding:10px 15px}.woocommerce .coupon .button{border:1px solid transparent}.woocommerce ul.products li.product .woocommerce-product-details__short-description p:last-child{margin-bottom:0}.wc-product-image{text-align:center}.woocommerce-text-align-left .wc-product-image{text-align:left}.woocommerce-text-align-right .wc-product-image{text-align:right}.inside-wc-product-image{position:relative;display:inline-block}.woocommerce ul.products li.product.woocommerce-image-align-left .wc-product-image{float:left;margin-right:2em}.woocommerce ul.products li.product.woocommerce-image-align-right .wc-product-image{float:right;margin-left:2em}.woocommerce ul.products li.product.woocommerce-image-align-left a .wc-product-image img,.woocommerce ul.products li.product.woocommerce-image-align-right a .wc-product-image img{width:auto}.woocommerce-cart ul.products li.product.woocommerce-image-align-left .wc-product-image,.woocommerce-cart ul.products li.product.woocommerce-image-align-right .wc-product-image{float:none;margin:0}.woocommerce-cart ul.products li.product.woocommerce-image-align-left a .wc-product-image img,.woocommerce-cart ul.products li.product.woocommerce-image-align-right a .wc-product-image img{width:100%}.woocommerce .widget_price_filter .price_slider_amount .button{font-size:1em;line-height:normal}.woocommerce .related ul.products li.product a img,.woocommerce .up-sells ul.products li.product a img{margin-bottom:0}.woocommerce-review-link{font-size:80%}.woocommerce-Reviews .comment-reply-title{font-size:120%;font-weight:700;display:block;margin-bottom:10px}.woocommerce-MyAccount-navigation ul{margin:0;border-top:1px solid rgba(0,0,0,.1)}.site-main .woocommerce-MyAccount-navigation li{margin:0;padding:0}.woocommerce-MyAccount-navigation li a{display:block;padding:20px 0;border-bottom:1px solid rgba(0,0,0,.1);font-size:85%}.woocommerce-MyAccount-navigation li.is-active a{font-weight:700}.woocommerce-MyAccount-navigation li a:hover{border-bottom:1px solid rgba(0,0,0,.2)}.woocommerce-MyAccount-navigation li.is-active a:after{font-family:"GP Premium";content:"\e901";float:right;font-weight:700;font-size:115%}.woocommerce-account .woocommerce-MyAccount-navigation{width:25%}.woocommerce #payment .terms{padding:20px}h2.woocommerce-loop-category__title mark{background:0 0;font-size:80%;opacity:.5}.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{padding:0;margin:0 0 1.5em;border:0}#ship-to-different-address{padding:3px;font-size:inherit}.woocommerce-image-align-left .products ul,.woocommerce-image-align-left .products ul:after,.woocommerce-image-align-left ul.products,.woocommerce-image-align-left ul.products:after,.woocommerce-image-align-right .products ul,.woocommerce-image-align-right .products ul:after,.woocommerce-image-align-right ul.products,.woocommerce-image-align-right ul.products:after{clear:none}.woocommerce nav.woocommerce-pagination{margin-top:60px;clear:both}.woocommerce input.button:disabled,.woocommerce input.button:disabled:hover,.woocommerce input.button:disabled[disabled],.woocommerce input.button:disabled[disabled]:hover{background-color:transparent;color:initial;opacity:.3}.entry-summary+.up-sells{clear:both}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea{line-height:1.5}.main-navigation a.cart-contents:not(.has-svg-icon):before,.secondary-navigation a.cart-contents:not(.has-svg-icon):before{content:"\f07a";display:inline-block;font-family:"GP Premium";speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.main-navigation a.cart-contents:not(.has-svg-icon).shopping-bag:before,.secondary-navigation a.cart-contents:not(.has-svg-icon).shopping-bag:before{content:"\f290"}.main-navigation a.cart-contents:not(.has-svg-icon).shopping-basket:before,.secondary-navigation a.cart-contents:not(.has-svg-icon).shopping-basket:before{content:"\f291"}.cart-contents>span.number-of-items{font-size:11px;display:inline-block;background:rgba(255,255,255,.1);line-height:1.7em;height:1.7em;width:1.7em;text-align:center;border-radius:50%;margin-left:5px;position:relative;top:-5px;display:none}.cart-contents>span.number-of-items.no-items{display:none}.woocommerce-MyAccount-navigation ul{list-style-type:none}form.checkout:after,form.checkout:before{content:'';display:table}form.checkout:after{clear:both}.add-to-cart-panel{position:fixed;top:0;left:0;right:0;background:#fff;padding:20px;opacity:0;transition:opacity .5s ease-in-out,transform .5s ease-in-out;box-shadow:0 2px 2px -2px rgba(0,0,0,.2);z-index:50;font-size:90%;box-sizing:border-box;transform:translateY(-100%)}.add-to-cart-panel.item-added,.add-to-cart-panel.show-sticky-add-to-cart{opacity:1}.add-to-cart-panel>div{display:flex;align-items:center}.add-to-cart-panel .continue-shopping{margin-right:auto}.add-to-cart-panel .continue-shopping .gp-icon{display:none}.add-to-cart-panel .cart-info{margin-right:20px}.add-to-cart-panel img{height:50px;width:auto;vertical-align:middle}.add-to-cart-panel .product-title{margin-left:20px;margin-right:auto;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.add-to-cart-panel .product-price{margin-right:20px}.add-to-cart-panel div.quantity{margin-right:4px}.add-to-cart-panel .cart-data{font-size:12px}.add-to-cart-panel del{opacity:.4}.do-quantity-buttons input.qty::-webkit-inner-spin-button,.do-quantity-buttons input.qty::-webkit-outer-spin-button{-webkit-appearance:none}.wc-menu-cart-activated .menu-toggle{text-align:left} \ No newline at end of file +@supports (display:grid){.woocommerce ul.products li.product{display:flex;flex-direction:column}}.woocommerce ul.products li.product.woocommerce-image-align-left,.woocommerce ul.products li.product.woocommerce-image-align-right{display:block}.woocommerce ul.products li.product .woocommerce-LoopProduct-link{display:block;margin-bottom:auto}.woocommerce ul.products li.product .button{margin-left:auto;margin-right:auto}.woocommerce ul.products li.product.woocommerce-text-align-left .button{margin-left:0}.woocommerce ul.products li.product.woocommerce-text-align-right .button{margin-right:0}.woocommerce ul.products li.product .woocommerce-LoopProduct-link>:not(:first-child){margin-top:10px;margin-bottom:0}.woocommerce ul.products li.product .woocommerce-LoopProduct-link>.secondary-image+img{margin-top:0}.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{position:relative;border-radius:0;min-height:15px;min-width:initial;font-weight:inherit;font-size:inherit;padding:8px 13px;line-height:1;display:inline-block;top:auto;left:auto;font-size:80%;text-transform:uppercase;font-weight:700}.woocommerce ul.products li.product.sales-flash-overlay .onsale{position:absolute;top:0;right:0;margin:0}.single-product span.onsale{margin-bottom:15px}.woocommerce-product-gallery{margin-right:4%}.rtl .woocommerce-product-gallery{margin-right:0;margin-left:4%}.woocommerce div.product div.images .flex-control-thumbs li{max-width:100px;padding-top:5px;padding-right:5px;box-sizing:border-box}.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0}.woocommerce .page-header-image-single{display:none}.woocommerce .entry-content,.woocommerce .product .entry-summary{margin-top:0}.related.products{clear:both}.checkout-subscribe-prompt.clear{visibility:visible;height:initial;width:initial}.woocommerce .add_to_cart_button+.added_to_cart{display:none}.woocommerce-result-count{font-size:14px;padding:10px 0;border:1px solid transparent}.woocommerce-ordering select{font-size:14px;font-weight:500;padding:10px 40px 10px 12px;-webkit-appearance:none;-moz-appearance:none;width:100%;background:0 0;border-color:rgba(0,0,0,.1);color:inherit;cursor:pointer}.woocommerce-ordering select::-ms-expand{display:none}.woocommerce-ordering:after{content:"\e903";font-family:"GP Premium";display:inline-block;position:absolute;pointer-events:none;color:inherit;top:10px;right:15px;font-size:16px}.woocommerce-ordering select option{color:initial}.woocommerce .woocommerce-ordering,.woocommerce .woocommerce-result-count{margin-bottom:30px}.woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap}@supports (display:grid){#wc-column-container .product{float:none;width:auto;margin:0}.woocommerce .related ul.products::after,.woocommerce .related ul.products::before,.woocommerce .up-sells ul.products::after,.woocommerce .up-sells ul.products::before,.woocommerce .wc-columns-container .products::after,.woocommerce .wc-columns-container .products::before{display:none}.wc-columns-container .products,.woocommerce .related ul.products,.woocommerce .up-sells ul.products{display:-ms-grid;display:grid;grid-gap:50px;width:100%}.wc-columns-container.wc-columns-6 .products,.wc-related-upsell-columns-6 .related ul.products,.wc-related-upsell-columns-6 .up-sells ul.products{grid-template-columns:repeat(6,minmax(0,1fr))}.wc-columns-container.wc-columns-5 .products,.wc-related-upsell-columns-5 .related ul.products,.wc-related-upsell-columns-5 .up-sells ul.products{grid-template-columns:repeat(5,minmax(0,1fr))}.wc-related-upsell-columns-4 .related ul.products,.wc-related-upsell-columns-4 .up-sells ul.products,.woocommerce .wc-columns-container.wc-columns-4 .products{grid-template-columns:repeat(4,minmax(0,1fr))}.wc-related-upsell-columns-3 .related ul.products,.wc-related-upsell-columns-3 .up-sells ul.products,.woocommerce .wc-columns-container.wc-columns-3 .products{grid-template-columns:repeat(3,minmax(0,1fr))}.wc-related-upsell-columns-2 .related ul.products,.wc-related-upsell-columns-2 .up-sells ul.products,.woocommerce .wc-columns-container.wc-columns-2 .products{grid-template-columns:repeat(2,minmax(0,1fr))}.wc-related-upsell-columns-1 .related ul.products,.wc-related-upsell-columns-1 .up-sells ul.products,.woocommerce .wc-columns-container.wc-columns-1 .products{width:100%}.woocommerce .wc-columns-1 ul.products li.product,.woocommerce-page .wc-columns-1 ul.products li.product{margin-left:0;margin-right:0}}#wc-mini-cart ul.woocommerce-mini-cart{position:relative;left:auto;right:auto;opacity:1;pointer-events:auto;height:auto;width:auto;float:none;background-color:transparent;box-shadow:0 0 0;visibility:visible}.wc-mini-cart{position:absolute;width:300px;right:0;box-shadow:0 2px 2px rgba(0,0,0,.1);z-index:99999;left:-99999px;opacity:0;height:0;overflow:hidden;pointer-events:none;transition:opacity 80ms linear;transition-delay:0s;visibility:hidden}.wc-menu-item.sfHover .wc-mini-cart,.wc-menu-item:hover .wc-mini-cart{left:auto;opacity:1;transition-delay:150ms;pointer-events:auto;height:auto;overflow:visible;visibility:visible}.sidebar .wc-mini-cart{right:100%;top:0}.sidebar .wc-mini-cart .widget{background:0 0}body:not(.using-mouse) .wc-menu-item.sfHover .wc-mini-cart{display:none}.wc-menu-item .sub-menu{left:auto;right:0;width:300px}.wc-menu-item .wc-mini-cart .widget_shopping_cart_content li.sfHover a,.wc-menu-item .wc-mini-cart .widget_shopping_cart_content li:hover a{background:0 0}.wc-menu-item .wc-mini-cart .widget_shopping_cart{padding:15px}.woocommerce.widget_shopping_cart .cart_list li{padding:0 0 0 4em;margin:0;box-sizing:border-box;min-height:3em}.woocommerce.widget_shopping_cart{font-size:14px}.widget_shopping_cart .woocommerce-mini-cart__buttons{margin-bottom:0;display:flex}.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons a{margin:0;width:calc(50% - 10px);text-align:center;padding:10px 15px;line-height:inherit;font-size:14px}.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons a:first-child{margin-right:2px}.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons a:last-child{margin-left:2px}.woocommerce.widget_shopping_cart .cart_list li a.remove{right:0;left:auto;height:20px;width:20px;border-width:1px;border-style:solid;border-radius:50%;padding:0;font-size:16px;line-height:17px;font-weight:400;position:relative;float:right}.woocommerce ul.cart_list li img{position:absolute;left:0;width:3em;height:auto;top:0;margin-left:0}#wc-mini-cart .woocommerce-mini-cart-item a{padding:0}.woocommerce-mini-cart-item .quantity{font-size:12px;display:block}.woocommerce.widget_shopping_cart .total{margin:15px 0;padding:15px;background:rgba(0,0,0,.05);border:0;font-size:14px}#wc-mini-cart .total{padding:15px;margin:15px -15px 15px;text-align:left}#generate-slideout-menu .total{padding:10px 20px;margin:20px -20px 20px}#generate-slideout-menu.do-overlay .total{margin:20px 0}.woocommerce.widget_shopping_cart a.button.wc-forward:after{display:none}.woocommerce.widget_shopping_cart .cart_list li.woocommerce-mini-cart-item:not(:last-child){margin-bottom:15px}.rtl .wc-mini-cart .woocommerce.widget_shopping_cart .cart_list li{padding:0 4em 0 0}.rtl .wc-mini-cart .woocommerce.widget_shopping_cart .cart_list li a.remove{float:left}.rtl .wc-mini-cart .woocommerce ul.cart_list li img{right:0}.slideout-widget .widget_shopping_cart_content,.slideout-widget .widget_shopping_cart_content a{font-size:14px}#generate-slideout-menu.do-overlay li.woocommerce-mini-cart-item{text-align:left}#wc-mini-cart a:not(.button){font-family:inherit}.wc-menu-item:not(.has-items) .wc-mini-cart{display:none}.woocommerce-mini-cart__empty-message{margin-bottom:0}.secondary-nav-aligned-center .secondary-navigation ul.woocommerce-mini-cart,.secondary-nav-aligned-right .secondary-navigation ul.woocommerce-mini-cart{font-size:inherit}#wc-mini-cart .widgettitle{display:none}@supports (display:grid){.woocommerce .related ul.products li.product,.woocommerce .up-sells ul.products li.product{width:auto;margin-left:0;margin-right:0;margin-bottom:0}}.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-radius:0;font-weight:inherit;font-size:inherit;line-height:inherit;padding:10px 20px}ul.products .woocommerce-text-align-center{text-align:center}ul.products li.product.woocommerce-text-align-center .price,ul.products li.product.woocommerce-text-align-center .star-rating{margin-left:auto;margin-right:auto}ul.products li.product.woocommerce-text-align-right .price,ul.products li.product.woocommerce-text-align-right .star-rating{margin-left:auto}.woocommerce .star-rating:before{color:rgba(0,0,0,.4)}.woocommerce p.stars a{color:rgba(0,0,0,.4)}.woocommerce p.stars.selected a:before{color:#ffa200}.woocommerce ul.products li.product .price del{display:inline;padding-right:10px}ul.products .woocommerce-text-align-right{text-align:right}.woocommerce #content div.product div.images,.woocommerce div.product div.images,.woocommerce-page #content div.product div.images,.woocommerce-page div.product div.images{width:50%}.woocommerce #content div.product div.summary,.woocommerce div.product div.summary,.woocommerce-page #content div.product div.summary,.woocommerce-page div.product div.summary{width:auto;float:none;overflow:hidden}.product_meta{font-size:80%;border-top:1px solid rgba(0,0,0,.1);padding-top:30px}.product_meta>span{display:block}.up-sells{margin-top:40px}.add-to-cart-panel form.cart,.woocommerce div.product form.cart{display:flex;flex-wrap:wrap}.woocommerce div.product form.cart>:not(.quantity):not(.single_add_to_cart_button){width:100%}.add-to-cart-panel form.cart{flex-shrink:0}.woocommerce .quantity .qty{height:100%;width:auto;max-width:80px;background:0 0;border:1px solid rgba(0,0,0,.1);padding:0 10px;height:50px}.do-quantity-buttons .quantity:not(.buttons-added) .qty{width:50px}.add-to-cart-panel .cart.do-quantity-buttons div.quantity,.do-quantity-buttons div.quantity{display:flex;align-items:center}.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):after,.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):before,.woocommerce form .quantity.buttons-added .minus,.woocommerce form .quantity.buttons-added .plus,.woocommerce form .quantity.buttons-added .qty{display:block;width:50px;height:100%;min-height:50px;background-color:transparent;border:1px solid rgba(0,0,0,.1);margin:0;padding:0;text-align:center;vertical-align:middle;-moz-appearance:textfield!important;-webkit-appearance:none;border-radius:0;color:inherit;box-sizing:border-box}.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):after,.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):before,.woocommerce form .quantity.buttons-added .minus,.woocommerce form .quantity.buttons-added .plus{display:flex;align-items:center;justify-content:center}.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):before{content:"-";border-right:0}.do-quantity-buttons form .quantity:not(.buttons-added):not(.hidden):after{content:"+";border-left:0}.woocommerce form .quantity.buttons-added .qty:focus{border-color:rgba(0,0,0,.1)}.do-quantity-buttons form .quantity input[type=number]::-webkit-inner-spin-button,.do-quantity-buttons form .quantity input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.do-quantity-buttons form .quantity:not(.buttons-added):before,.woocommerce form .quantity.buttons-added .minus{border-right-width:0}.do-quantity-buttons form .quantity:not(.buttons-added):after,.woocommerce form .quantity.buttons-added .plus{border-left-width:0}.do-quantity-buttons .elementor-add-to-cart form .quantity:not(.buttons-added):after,.do-quantity-buttons .elementor-add-to-cart form .quantity:not(.buttons-added):before,.do-quantity-buttons form .quantity.hidden{display:none}.woocommerce div.product form.cart div.quantity.hidden{margin:0}.woocommerce div.product .woocommerce-tabs ul.tabs li::after,.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none;border:0}.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;margin-left:0;padding-left:0}.woocommerce div.product .woocommerce-tabs ul.tabs li{background-color:rgba(0,0,0,.02);margin:0;border-radius:0;border-width:1px 1px 0 0;border-color:rgba(0,0,0,.08)}.woocommerce div.product .woocommerce-tabs ul.tabs li:first-child{border-left-width:1px}.woocommerce-ordering{float:left;margin-right:1em;margin-bottom:0;position:relative;padding:0}nav li.wc-menu-item{float:right}.cart-contents>span{line-height:0}.cart-contents>span:not(:empty){margin-left:10px}.rtl .cart-contents>span:not(:empty){margin-left:0;margin-right:10px}.cart-contents>span.gp-icon{margin-left:0}.rtl .cart-contents>span.gp-icon{margin-right:0}nav span.count{font-size:.8em;opacity:.5}.woocommerce a.remove{color:inherit!important;background:0 0!important;border:1px solid!important;border-color:inherit;font-weight:400;font-size:16px;width:20px;height:20px;line-height:17px;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"!important}.woocommerce a.remove:hover{color:inherit!important;background:0 0!important;opacity:.7}.woocommerce .star-rating:before{opacity:.25;content:"SSSSS"}.woocommerce div.product .woocommerce-product-rating{margin:1em 0}.woocommerce div.product p.price,.woocommerce div.product span.price{color:inherit}.wc-has-gallery .secondary-image{position:absolute;opacity:0;transition:opacity .1s ease-in-out;left:50%;transform:translate(-50%,0);top:0}.wc-has-gallery picture.secondary-image{width:100%;height:100%}.wc-product-image:hover .secondary-image{opacity:1}.woocommerce ul.products li.product a img{margin-bottom:0}.woocommerce div.product .woocommerce-tabs ul.tabs li a,.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:initial}.woocommerce div.product p.price,.woocommerce ul.products li.product .price{font-weight:700}div.woocommerce-error a.button,div.woocommerce-error a.button:focus,div.woocommerce-error a.button:hover,div.woocommerce-info a.button,div.woocommerce-info a.button:focus,div.woocommerce-info a.button:hover,div.woocommerce-message a.button,div.woocommerce-message a.button:focus,div.woocommerce-message a.button:hover{background:0 0;padding:0}.woocommerce-error a,.woocommerce-info a,.woocommerce-message a{font-weight:700}.woocommerce-error,.woocommerce-info,.woocommerce-message{padding:20px 30px;border:0;border-left:10px solid rgba(0,0,0,.3)}.woocommerce-error::before,.woocommerce-info::before,.woocommerce-message::before{display:none}a.button.wc-forward:after{content:"\e901";font-family:"GP Premium";line-height:1em;speak:none;padding-left:10px;position:relative;top:2px}.rtl a.button.wc-forward:after{display:none}.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{float:none;width:100%;margin:0}.woocommerce-checkout .col2-set{width:52.9411764706%;float:left;margin-right:5.8823529412%}.rtl.woocommerce-checkout .col2-set{float:right;margin-right:0;margin-left:5.8823529412%}#customer_details+#wc_checkout_add_ons,#order_review,#order_review_heading{width:41.1764705882%;float:right;margin-right:0}.woocommerce-additional-fields>h3{margin-top:20px}.woocommerce table.shop_table,.woocommerce table.shop_table tfoot td,.woocommerce table.shop_table tfoot th{border:0;border-radius:0}.woocommerce table.shop_table th{background-color:rgba(0,0,0,.03)}.woocommerce table.shop_table td,.woocommerce table.shop_table th{padding:20px;border:0}.woocommerce table.shop_table td{background-color:rgba(0,0,0,.005);border-bottom:1px solid rgba(0,0,0,.1)}#add_payment_method .cart-collaterals .cart_totals tr td,#add_payment_method .cart-collaterals .cart_totals tr th,.woocommerce-cart .cart-collaterals .cart_totals tr td,.woocommerce-cart .cart-collaterals .cart_totals tr th,.woocommerce-checkout .cart-collaterals .cart_totals tr td,.woocommerce-checkout .cart-collaterals .cart_totals tr th{border-top:0}#add_payment_method #payment,#add_payment_method #payment div.payment_box,.woocommerce-cart #payment,.woocommerce-cart #payment div.payment_box,.woocommerce-checkout #payment,.woocommerce-checkout #payment div.payment_box{background-color:transparent;color:inherit}#add_payment_method #payment div.payment_box:before,.woocommerce-cart #payment div.payment_box:before,.woocommerce-checkout #payment div.payment_box:before{display:none}#payment .payment_methods>.wc_payment_method>label{padding:20px;background-color:rgba(0,0,0,.04);display:block;cursor:pointer}#payment .payment_methods li.wc_payment_method>input[type=radio]:first-child:checked+label{font-weight:700;background-color:rgba(0,0,0,.07)}#payment .payment_methods li.wc_payment_method>input[type=radio]:first-child{clip:rect(1px,1px,1px,1px);position:absolute!important}#payment .payment_methods>.wc_payment_method>label:before{display:inline-block;font-size:inherit;-webkit-font-smoothing:antialiased;content:"\e902";margin-right:.5407911001em;transition:color,ease,.2s;font-family:"GP Premium"}#payment .payment_methods li.wc_payment_method>input[type=radio]:first-child:checked+label:before{content:"\e904"}#add_payment_method #payment ul.payment_methods,.woocommerce-cart #payment ul.payment_methods,.woocommerce-checkout #payment ul.payment_methods{padding:0;border:0}.woocommerce #payment #place_order,.woocommerce-page #payment #place_order{float:none;width:100%;padding-top:20px;padding-bottom:20px;font-weight:700;font-size:150%}#add_payment_method #payment div.form-row,.woocommerce-cart #payment div.form-row,.woocommerce-checkout #payment div.form-row{padding-left:0;padding-right:0;padding-top:0}#add_payment_method #payment ul.payment_methods li img,.woocommerce-cart #payment ul.payment_methods li img,.woocommerce-checkout #payment ul.payment_methods li img{float:right}#add_payment_method #payment .payment_method_paypal .about_paypal,.woocommerce-cart #payment .payment_method_paypal .about_paypal,.woocommerce-checkout #payment .payment_method_paypal .about_paypal{float:none;display:inline-block;line-height:1}a.checkout-button:after{display:none}.woocommerce #content table.cart td.actions .input-text,.woocommerce table.cart td.actions .input-text,.woocommerce-page #content table.cart td.actions .input-text,.woocommerce-page table.cart td.actions .input-text{width:150px;padding:10px 15px}.woocommerce .coupon .button{border:1px solid transparent}.woocommerce ul.products li.product .woocommerce-product-details__short-description p:last-child{margin-bottom:0}.wc-product-image{text-align:center}.woocommerce-text-align-left .wc-product-image{text-align:left}.woocommerce-text-align-right .wc-product-image{text-align:right}.inside-wc-product-image{position:relative;display:inline-block}.woocommerce ul.products li.product.woocommerce-image-align-left .wc-product-image{float:left;margin-right:2em}.woocommerce ul.products li.product.woocommerce-image-align-right .wc-product-image{float:right;margin-left:2em}.woocommerce ul.products li.product.woocommerce-image-align-left a .wc-product-image img,.woocommerce ul.products li.product.woocommerce-image-align-right a .wc-product-image img{width:auto}.woocommerce-cart ul.products li.product.woocommerce-image-align-left .wc-product-image,.woocommerce-cart ul.products li.product.woocommerce-image-align-right .wc-product-image{float:none;margin:0}.woocommerce-cart ul.products li.product.woocommerce-image-align-left a .wc-product-image img,.woocommerce-cart ul.products li.product.woocommerce-image-align-right a .wc-product-image img{width:100%}.woocommerce .widget_price_filter .price_slider_amount .button{font-size:1em;line-height:normal}.woocommerce .related ul.products li.product a img,.woocommerce .up-sells ul.products li.product a img{margin-bottom:0}.woocommerce-review-link{font-size:80%}.woocommerce-Reviews .comment-reply-title{font-size:120%;font-weight:700;display:block;margin-bottom:10px}.woocommerce-MyAccount-navigation ul{margin:0;border-top:1px solid rgba(0,0,0,.1)}.site-main .woocommerce-MyAccount-navigation li{margin:0;padding:0}.woocommerce-MyAccount-navigation li a{display:block;padding:20px 0;border-bottom:1px solid rgba(0,0,0,.1);font-size:85%}.woocommerce-MyAccount-navigation li.is-active a{font-weight:700}.woocommerce-MyAccount-navigation li a:hover{border-bottom:1px solid rgba(0,0,0,.2)}.woocommerce-MyAccount-navigation li.is-active a:after{font-family:"GP Premium";content:"\e901";float:right;font-weight:700;font-size:115%}.woocommerce-account .woocommerce-MyAccount-navigation{width:25%}.woocommerce #payment .terms{padding:20px}h2.woocommerce-loop-category__title mark{background:0 0;font-size:80%;opacity:.5}.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{padding:0;margin:0 0 1.5em;border:0}#ship-to-different-address{padding:3px;font-size:inherit}.woocommerce-image-align-left .products ul,.woocommerce-image-align-left .products ul:after,.woocommerce-image-align-left ul.products,.woocommerce-image-align-left ul.products:after,.woocommerce-image-align-right .products ul,.woocommerce-image-align-right .products ul:after,.woocommerce-image-align-right ul.products,.woocommerce-image-align-right ul.products:after{clear:none}.woocommerce nav.woocommerce-pagination{margin-top:60px;clear:both}.woocommerce input.button:disabled,.woocommerce input.button:disabled:hover,.woocommerce input.button:disabled[disabled],.woocommerce input.button:disabled[disabled]:hover{background-color:transparent;color:initial;opacity:.3}.entry-summary+.up-sells{clear:both}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea{line-height:1.5}.main-navigation a.cart-contents:not(.has-svg-icon):before,.secondary-navigation a.cart-contents:not(.has-svg-icon):before{content:"\f07a";display:inline-block;font-family:"GP Premium";speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.main-navigation a.cart-contents:not(.has-svg-icon).shopping-bag:before,.secondary-navigation a.cart-contents:not(.has-svg-icon).shopping-bag:before{content:"\f290"}.main-navigation a.cart-contents:not(.has-svg-icon).shopping-basket:before,.secondary-navigation a.cart-contents:not(.has-svg-icon).shopping-basket:before{content:"\f291"}.cart-contents>span.number-of-items{font-size:11px;display:inline-block;background:rgba(255,255,255,.1);line-height:1.7em;height:1.7em;width:1.7em;text-align:center;border-radius:50%;margin-left:5px;position:relative;top:-5px;display:none}.cart-contents>span.number-of-items.no-items{display:none}.woocommerce-MyAccount-navigation ul{list-style-type:none}form.checkout:after,form.checkout:before{content:'';display:table}form.checkout:after{clear:both}.add-to-cart-panel{position:fixed;top:0;left:0;right:0;background:#fff;padding:20px;opacity:0;transition:opacity .5s ease-in-out,transform .5s ease-in-out;box-shadow:0 2px 2px -2px rgba(0,0,0,.2);z-index:50;font-size:90%;box-sizing:border-box;transform:translateY(-100%)}.add-to-cart-panel.item-added,.add-to-cart-panel.show-sticky-add-to-cart{opacity:1}.add-to-cart-panel>div{display:flex;align-items:center}.add-to-cart-panel .continue-shopping{margin-right:auto}.add-to-cart-panel .continue-shopping .gp-icon{display:none}.add-to-cart-panel .cart-info{margin-right:20px}.add-to-cart-panel img{height:50px;width:auto;vertical-align:middle}.add-to-cart-panel .product-title{margin-left:20px;margin-right:auto;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.add-to-cart-panel .product-price{margin-right:20px}.add-to-cart-panel div.quantity{margin-right:4px}.add-to-cart-panel .cart-data{font-size:12px}.add-to-cart-panel del{opacity:.4}.do-quantity-buttons input.qty::-webkit-inner-spin-button,.do-quantity-buttons input.qty::-webkit-outer-spin-button{-webkit-appearance:none}.wc-menu-cart-activated .menu-toggle{text-align:left} \ No newline at end of file diff --git a/wp-content/plugins/gp-premium/woocommerce/functions/functions.php b/wp-content/plugins/gp-premium/woocommerce/functions/functions.php index a563bc33..9c647043 100644 --- a/wp-content/plugins/gp-premium/woocommerce/functions/functions.php +++ b/wp-content/plugins/gp-premium/woocommerce/functions/functions.php @@ -203,7 +203,14 @@ function generatepress_wc_scripts() { wp_enqueue_style( 'generate-woocommerce', plugin_dir_url( __FILE__ ) . "css/woocommerce{$suffix}.css", array(), GENERATE_WOOCOMMERCE_VERSION ); wp_enqueue_style( 'generate-woocommerce-mobile', plugin_dir_url( __FILE__ ) . "css/woocommerce-mobile{$suffix}.css", array(), GENERATE_WOOCOMMERCE_VERSION, generate_premium_get_media_query( 'mobile' ) ); - wp_enqueue_script( 'generate-woocommerce', plugin_dir_url( __FILE__ ) . "js/woocommerce{$suffix}.js", array( 'jquery' ), GENERATE_WOOCOMMERCE_VERSION, true ); + if ( + generatepress_wc_get_setting( 'cart_menu_item' ) || + generatepress_wc_get_setting( 'off_canvas_panel_on_add_to_cart' ) || + generatepress_wc_show_sticky_add_to_cart() || + generatepress_wc_get_setting( 'quantity_buttons' ) + ) { + wp_enqueue_script( 'generate-woocommerce', plugin_dir_url( __FILE__ ) . "js/woocommerce{$suffix}.js", array( 'jquery' ), GENERATE_WOOCOMMERCE_VERSION, true ); + } $show_add_to_cart_panel = false; diff --git a/wp-content/plugins/gp-premium/woocommerce/functions/js/woocommerce.js b/wp-content/plugins/gp-premium/woocommerce/functions/js/woocommerce.js index d7298b52..47098113 100644 --- a/wp-content/plugins/gp-premium/woocommerce/functions/js/woocommerce.js +++ b/wp-content/plugins/gp-premium/woocommerce/functions/js/woocommerce.js @@ -24,14 +24,6 @@ jQuery( document ).ready( function( $ ) { }; }; - $( '.wc-has-gallery .wc-product-image' ).hover( - function() { - $( this ).find( '.secondary-image' ).css( 'opacity','1' ); - }, function() { - $( this ).find( '.secondary-image' ).css( 'opacity','0' ); - } - ); - $( 'body' ).on( 'added_to_cart', function() { if ( ! $( '.wc-menu-item' ).hasClass( 'has-items' ) ) { $( '.wc-menu-item' ).addClass( 'has-items' ); @@ -181,7 +173,7 @@ jQuery( document ).ready( function( $ ) { } } ); - function generateQuantityButtons( quantitySelector ) { + function generateQuantityButtons() { var quantityBoxes, cart = $( '.woocommerce div.product form.cart' ); @@ -190,95 +182,95 @@ jQuery( document ).ready( function( $ ) { return; } - if ( ! quantitySelector ) { - quantitySelector = '.qty'; - } + quantityBoxes = $( '.cart div.quantity:not(.buttons-added), .cart td.quantity:not(.buttons-added)' ).find( '.qty' ); - quantityBoxes = $( 'div.quantity:not(.buttons-added), td.quantity:not(.buttons-added)' ).find( quantitySelector ); + if ( quantityBoxes ) { + $.each( quantityBoxes, function( key, value ) { + var box = $( value ); - if ( quantityBoxes && 'date' !== quantityBoxes.prop( 'type' ) && 'hidden' !== quantityBoxes.prop( 'type' ) ) { + if ( 'date' !== box.prop( 'type' ) && 'hidden' !== box.prop( 'type' ) ) { + // Add plus and minus icons + box.parent().addClass( 'buttons-added' ).prepend('-'); + box.after('+'); - // Add plus and minus icons - quantityBoxes.parent().addClass( 'buttons-added' ).prepend('-'); - quantityBoxes.after('+'); + // Target quantity inputs on product pages + $( 'input.qty:not(.product-quantity input.qty)' ).each( function() { + var min = parseFloat( $( this ).attr( 'min' ) ); - // Target quantity inputs on product pages - $( 'input' + quantitySelector + ':not(.product-quantity input' + quantitySelector + ')' ).each( function() { - var min = parseFloat( $( this ).attr( 'min' ) ); + if ( min && min > 0 && parseFloat( $( this ).val() ) < min ) { + $( this ).val( min ); + } + } ); - if ( min && min > 0 && parseFloat( $( this ).val() ) < min ) { - $( this ).val( min ); - } - }); + // Quantity input + if ( $( 'body' ).hasClass( 'single-product' ) && ! cart.hasClass( 'grouped_form' ) ) { + var quantityInput = $( '.woocommerce form input[type=number].qty' ); - // Quantity input - if ( $( 'body' ).hasClass( 'single-product' ) && ! cart.hasClass( 'grouped_form' ) ) { - var quantityInput = $( '.woocommerce form input[type=number].qty' ); - quantityInput.on( 'keyup', function() { - var qty_val = $( this ).val(); - quantityInput.val( qty_val ); - }); - } - - $( '.plus, .minus' ).unbind( 'click' ); - - $( '.plus, .minus' ).on( 'click', function() { - - // Quantity - var quantityBox; - - // If floating bar is enabled - if ( $( 'body' ).hasClass( 'single-product' ) && ! cart.hasClass( 'grouped_form' ) && ! cart.hasClass( 'cart_group' ) ) { - quantityBox = $( '.plus, .minus' ).closest( '.quantity' ).find( quantitySelector ); - } else { - quantityBox = $( this ).closest( '.quantity' ).find( quantitySelector ); - } - - // Get values - var currentQuantity = parseFloat( quantityBox.val() ), - maxQuantity = parseFloat( quantityBox.attr( 'max' ) ), - minQuantity = parseFloat( quantityBox.attr( 'min' ) ), - step = quantityBox.attr( 'step' ); - - // Fallback default values - if ( ! currentQuantity || '' === currentQuantity || 'NaN' === currentQuantity ) { - currentQuantity = 0; - } - - if ( '' === maxQuantity || 'NaN' === maxQuantity ) { - maxQuantity = ''; - } - - if ( '' === minQuantity || 'NaN' === minQuantity ) { - minQuantity = 0; - } - - if ( 'any' === step || '' === step || undefined === step || 'NaN' === parseFloat( step ) ) { - step = 1; - } - - // Change the value - if ( $( this ).is( '.plus' ) ) { - - if ( maxQuantity && ( maxQuantity == currentQuantity || currentQuantity > maxQuantity ) ) { - quantityBox.val( maxQuantity ); - } else { - quantityBox.val( currentQuantity + parseFloat( step ) ); + quantityInput.on( 'keyup', function() { + var qty_val = $( this ).val(); + quantityInput.val( qty_val ); + } ); } - } else { + $( '.plus, .minus' ).unbind( 'click' ); - if ( minQuantity && ( minQuantity == currentQuantity || currentQuantity < minQuantity ) ) { - quantityBox.val( minQuantity ); - } else if ( currentQuantity > 0 ) { - quantityBox.val( currentQuantity - parseFloat( step ) ); - } + $( '.plus, .minus' ).on( 'click', function() { + // Quantity + var quantityBox; + // If floating bar is enabled + if ( $( 'body' ).hasClass( 'single-product' ) && ! cart.hasClass( 'grouped_form' ) && ! cart.hasClass( 'cart_group' ) ) { + quantityBox = $( '.plus, .minus' ).closest( '.quantity' ).find( '.qty' ); + } else { + quantityBox = $( this ).closest( '.quantity' ).find( '.qty' ); + } + + // Get values + var currentQuantity = parseFloat( quantityBox.val() ), + maxQuantity = parseFloat( quantityBox.attr( 'max' ) ), + minQuantity = parseFloat( quantityBox.attr( 'min' ) ), + step = quantityBox.attr( 'step' ); + + // Fallback default values + if ( ! currentQuantity || '' === currentQuantity || 'NaN' === currentQuantity ) { + currentQuantity = 0; + } + + if ( '' === maxQuantity || 'NaN' === maxQuantity ) { + maxQuantity = ''; + } + + if ( '' === minQuantity || 'NaN' === minQuantity ) { + minQuantity = 0; + } + + if ( 'any' === step || '' === step || undefined === step || 'NaN' === parseFloat( step ) ) { + step = 1; + } + + // Change the value + if ( $( this ).is( '.plus' ) ) { + + if ( maxQuantity && ( maxQuantity == currentQuantity || currentQuantity > maxQuantity ) ) { + quantityBox.val( maxQuantity ); + } else { + quantityBox.val( currentQuantity + parseFloat( step ) ); + } + + } else { + + if ( minQuantity && ( minQuantity == currentQuantity || currentQuantity < minQuantity ) ) { + quantityBox.val( minQuantity ); + } else if ( currentQuantity > 0 ) { + quantityBox.val( currentQuantity - parseFloat( step ) ); + } + + } + + // Trigger change event + quantityBox.trigger( 'change' ); + } ); } - - // Trigger change event - quantityBox.trigger( 'change' ); - } ); } } diff --git a/wp-content/plugins/gp-premium/woocommerce/functions/js/woocommerce.min.js b/wp-content/plugins/gp-premium/woocommerce/functions/js/woocommerce.min.js index 349992e1..64537212 100644 --- a/wp-content/plugins/gp-premium/woocommerce/functions/js/woocommerce.min.js +++ b/wp-content/plugins/gp-premium/woocommerce/functions/js/woocommerce.min.js @@ -1 +1 @@ -jQuery(document).ready(function(l){var t=function(s,o,n){var r,i;return o||(o=250),function(){var t=n||this,a=+new Date,e=arguments;r&&a-'),t.after('+'),l("input"+n+":not(.product-quantity input"+n+")").each(function(){var t=parseFloat(l(this).attr("min"));t&&0-'),s.after('+'),c("input.qty:not(.product-quantity input.qty)").each(function(){var t=parseFloat(c(this).attr("min"));t&&0