From ddb006d603315902816a324a336fdfa4e1186ffa Mon Sep 17 00:00:00 2001 From: francgrasso Date: Wed, 8 Jul 2020 16:24:53 +0200 Subject: [PATCH] version 1.2.13 --- customizer-css.css | 38 +++++++++ inc/class-customizer-alpha-color-control.php | 8 +- inc/customizer.php | 83 ++++++++++++++++++++ inc/sidebars.php | 22 ++++++ inc/template-functions.php | 4 + js/customizer.js | 2 +- readme.txt | 14 +++- sass/style.scss | 2 +- sidebar.php | 4 + style.css | 2 +- 10 files changed, 171 insertions(+), 8 deletions(-) diff --git a/customizer-css.css b/customizer-css.css index 998c7fc..59be82e 100644 --- a/customizer-css.css +++ b/customizer-css.css @@ -19,6 +19,8 @@ ul#sub-accordion-panel-yith_proteo_shop_options > li.panel-meta span.preview-not #customize-control-yith_proteo_default_sidebar_position span.customize-inside-control-row, #customize-control-yith_proteo_blog_page_sidebar_position span.customize-inside-control-row, +#customize-control-yith_proteo_blog_category_sidebar_position span.customize-inside-control-row, +#customize-control-yith_proteo_blog_tag_sidebar_position span.customize-inside-control-row, #customize-control-yith_proteo_product_page_sidebar_position span.customize-inside-control-row, #customize-control-yith_proteo_product_category_page_sidebar_position span.customize-inside-control-row, #customize-control-yith_proteo_product_tag_page_sidebar_position span.customize-inside-control-row, @@ -32,6 +34,12 @@ ul#sub-accordion-panel-yith_proteo_shop_options > li.panel-meta span.preview-not #_customize-input-yith_proteo_blog_page_sidebar_position-radio-right, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-left, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-no-sidebar, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-right, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-left, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-no-sidebar, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-right, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-left, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-no-sidebar, #_customize-input-yith_proteo_product_page_sidebar_position-radio-right, #_customize-input-yith_proteo_product_page_sidebar_position-radio-left, #_customize-input-yith_proteo_product_page_sidebar_position-radio-no-sidebar, @@ -54,6 +62,12 @@ ul#sub-accordion-panel-yith_proteo_shop_options > li.panel-meta span.preview-not #_customize-input-yith_proteo_blog_page_sidebar_position-radio-right + label, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-left + label, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-no-sidebar + label, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-right + label, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-left + label, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-no-sidebar + label, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-right + label, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-left + label, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-no-sidebar + label, #_customize-input-yith_proteo_product_page_sidebar_position-radio-right + label, #_customize-input-yith_proteo_product_page_sidebar_position-radio-left + label, #_customize-input-yith_proteo_product_page_sidebar_position-radio-no-sidebar + label, @@ -72,6 +86,8 @@ ul#sub-accordion-panel-yith_proteo_shop_options > li.panel-meta span.preview-not #_customize-input-yith_proteo_default_sidebar_position-radio-right + label:before, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-right + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-right + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-right + label:before, #_customize-input-yith_proteo_product_page_sidebar_position-radio-right + label:before, #_customize-input-yith_proteo_product_category_page_sidebar_position-radio-right + label:before, #_customize-input-yith_proteo_product_tag_page_sidebar_position-radio-right + label:before, @@ -89,6 +105,8 @@ ul#sub-accordion-panel-yith_proteo_shop_options > li.panel-meta span.preview-not #_customize-input-yith_proteo_default_sidebar_position-radio-left + label:before, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-left + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-left + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-left + label:before, #_customize-input-yith_proteo_product_page_sidebar_position-radio-left + label:before, #_customize-input-yith_proteo_product_category_page_sidebar_position-radio-left + label:before, #_customize-input-yith_proteo_product_tag_page_sidebar_position-radio-left + label:before, @@ -106,6 +124,8 @@ ul#sub-accordion-panel-yith_proteo_shop_options > li.panel-meta span.preview-not #_customize-input-yith_proteo_default_sidebar_position-radio-no-sidebar + label:before, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-no-sidebar + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-no-sidebar + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-no-sidebar + label:before, #_customize-input-yith_proteo_product_page_sidebar_position-radio-no-sidebar + label:before, #_customize-input-yith_proteo_product_category_page_sidebar_position-radio-no-sidebar + label:before, #_customize-input-yith_proteo_product_tag_page_sidebar_position-radio-no-sidebar + label:before, @@ -133,6 +153,18 @@ ul#sub-accordion-panel-yith_proteo_shop_options > li.panel-meta span.preview-not #_customize-input-yith_proteo_blog_page_sidebar_position-radio-right:hover + label:before, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-left:hover + label:before, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-no-sidebar:hover + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-right:checked + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-left:checked + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-no-sidebar:checked + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-right:hover + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-left:hover + label:before, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-no-sidebar:hover + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-right:checked + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-left:checked + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-no-sidebar:checked + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-right:hover + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-left:hover + label:before, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-no-sidebar:hover + label:before, #_customize-input-yith_proteo_product_page_sidebar_position-radio-right:checked + label:before, #_customize-input-yith_proteo_product_page_sidebar_position-radio-left:checked + label:before, #_customize-input-yith_proteo_product_page_sidebar_position-radio-no-sidebar:checked + label:before, @@ -166,6 +198,12 @@ ul#sub-accordion-panel-yith_proteo_shop_options > li.panel-meta span.preview-not #_customize-input-yith_proteo_blog_page_sidebar_position-radio-right:checked + label, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-left:checked + label, #_customize-input-yith_proteo_blog_page_sidebar_position-radio-no-sidebar:checked + label, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-right:checked + label, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-left:checked + label, +#_customize-input-yith_proteo_blog_category_sidebar_position-radio-no-sidebar:checked + label, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-right:checked + label, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-left:checked + label, +#_customize-input-yith_proteo_blog_tag_sidebar_position-radio-no-sidebar:checked + label, #_customize-input-yith_proteo_product_page_sidebar_position-radio-right:checked + label, #_customize-input-yith_proteo_product_page_sidebar_position-radio-left:checked + label, #_customize-input-yith_proteo_product_page_sidebar_position-radio-no-sidebar:checked + label, diff --git a/inc/class-customizer-alpha-color-control.php b/inc/class-customizer-alpha-color-control.php index 8210833..6221c8a 100644 --- a/inc/class-customizer-alpha-color-control.php +++ b/inc/class-customizer-alpha-color-control.php @@ -76,6 +76,10 @@ public function enqueue() { * Render the control. */ public function render_content() { + // Output the label and description if they were passed in. + if ( isset( $this->label ) && '' !== $this->label ) { + echo '' . esc_html( sanitize_text_field( $this->label ) ) . ''; + } // Process the palette. if ( is_array( $this->palette ) ) { $palette = implode( '|', $this->palette ); @@ -88,10 +92,6 @@ public function render_content() { // Begin the output. ?>