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. ?>