add_section(
'botiga_section_catalog_general',
array(
'title' => esc_html__( 'General', 'botiga'),
'panel' => 'woocommerce',
'priority' => 1
)
);
$wp_customize->get_control( 'woocommerce_shop_page_display' )->section = 'botiga_section_catalog_general';
$wp_customize->get_control( 'woocommerce_category_archive_display' )->section = 'botiga_section_catalog_general';
$wp_customize->get_control( 'woocommerce_default_catalog_orderby' )->section = 'botiga_section_catalog_general';
$wp_customize->add_setting(
'botiga_product_catalog_tabs',
array(
'default' => '',
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control(
new Botiga_Tab_Control (
$wp_customize,
'botiga_product_catalog_tabs',
array(
'label' => '',
'section' => 'woocommerce_product_catalog',
'controls_general' => json_encode( array( '#customize-control-shop_breadcrumbs','#customize-control-woocommerce_catalog_rows','#customize-control-woocommerce_catalog_columns','#customize-control-accordion_shop_layout','#customize-control-shop_archive_layout','#customize-control-shop_archive_sidebar','#customize-control-shop_archive_divider_1','#customize-control-shop_page_elements_title','#customize-control-shop_page_title','#customize-control-shop_product_sorting','#customize-control-shop_results_count','#customize-control-accordion_shop_product_card','#customize-control-shop_product_card_layout','#customize-control-shop_product_add_to_cart_layout','#customize-control-shop_product_quickview_layout','#customize-control-shop_card_elements','#customize-control-shop_product_alignment','#customize-control-shop_product_element_spacing','#customize-control-accordion_shop_sale_tag','#customize-control-shop_product_sale_tag_layout','#customize-control-shop_sale_tag_spacing','#customize-control-shop_sale_tag_radius','#customize-control-sale_badge_text','#customize-control-sale_badge_percent','#customize-control-sale_percentage_text','#customize-control-accordion_shop_categories','#customize-control-shop_categories_layout','#customize-control-shop_categories_alignment','#customize-control-shop_categories_radius','#customize-control-shop_cart_layout','#customize-control-shop_checkout_layout', ) ),
'controls_design' => json_encode( array( '#customize-control-shop_product_product_title','#customize-control-accordion_shop_styling_card','#customize-control-shop_product_card_style','#customize-control-shop_product_card_radius','#customize-control-shop_product_card_thumb_radius','#customize-control-shop_product_card_background','#customize-control-shop_product_card_border_size','#customize-control-shop_product_card_border_color','#customize-control-accordion_shop_styling_sale','#customize-control-single_product_sale_background_color','#customize-control-single_product_sale_color', ) ),
'priority' => -10
)
)
);
//Layout
$wp_customize->add_setting( 'accordion_shop_layout',
array(
'sanitize_callback' => 'esc_attr',
)
);
$wp_customize->add_control(
new Botiga_Accordion_Control(
$wp_customize,
'accordion_shop_layout',
array(
'label' => esc_html__( 'Layout', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'until' => 'shop_breadcrumbs',
'priority' => -1
)
)
);
$wp_customize->add_setting( 'shop_archive_layout',
array(
'default' => 'product-grid',
'sanitize_callback' => 'botiga_sanitize_text'
)
);
$wp_customize->add_control( new Botiga_Radio_Buttons( $wp_customize, 'shop_archive_layout',
array(
'label' => esc_html__( 'Layout type', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'choices' => array(
'product-grid' => esc_html__( 'Grid', 'botiga' ),
'product-list' => esc_html__( 'List', 'botiga' ),
),
)
) );
$wp_customize->add_setting( 'shop_archive_sidebar',
array(
'default' => 'no-sidebar',
'sanitize_callback' => 'botiga_sanitize_text'
)
);
$wp_customize->add_control( new Botiga_Radio_Buttons( $wp_customize, 'shop_archive_sidebar',
array(
'label' => esc_html__( 'Sidebar', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'choices' => array(
'no-sidebar' => esc_html__( 'No sidebar', 'botiga' ),
'sidebar-left' => esc_html__( 'Left', 'botiga' ),
'sidebar-right' => esc_html__( 'Right', 'botiga' ),
)
)
) );
$wp_customize->add_setting( 'shop_archive_divider_1',
array(
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control( new Botiga_Divider_Control( $wp_customize, 'shop_archive_divider_1',
array(
'section' => 'woocommerce_product_catalog',
)
)
);
//Page elements
$wp_customize->add_setting( 'shop_page_elements_title',
array(
'default' => '',
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control( new Botiga_Text_Control( $wp_customize, 'shop_page_elements_title',
array(
'label' => esc_html__( 'Page elements', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
$wp_customize->add_setting(
'shop_page_title',
array(
'default' => 1,
'sanitize_callback' => 'botiga_sanitize_checkbox',
)
);
$wp_customize->add_control(
new Botiga_Toggle_Control(
$wp_customize,
'shop_page_title',
array(
'label' => esc_html__( 'Page title', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
$wp_customize->add_setting(
'shop_product_sorting',
array(
'default' => 1,
'sanitize_callback' => 'botiga_sanitize_checkbox',
)
);
$wp_customize->add_control(
new Botiga_Toggle_Control(
$wp_customize,
'shop_product_sorting',
array(
'label' => esc_html__( 'Product sorting', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
$wp_customize->add_setting(
'shop_results_count',
array(
'default' => 1,
'sanitize_callback' => 'botiga_sanitize_checkbox',
)
);
$wp_customize->add_control(
new Botiga_Toggle_Control(
$wp_customize,
'shop_results_count',
array(
'label' => esc_html__( 'Results count', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
$wp_customize->add_setting(
'shop_breadcrumbs',
array(
'default' => 1,
'sanitize_callback' => 'botiga_sanitize_checkbox',
)
);
$wp_customize->add_control(
new Botiga_Toggle_Control(
$wp_customize,
'shop_breadcrumbs',
array(
'label' => esc_html__( 'Display breadcrumbs', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
//Product card
$wp_customize->add_setting( 'accordion_shop_product_card',
array(
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control(
new Botiga_Accordion_Control(
$wp_customize,
'accordion_shop_product_card',
array(
'label' => esc_html__( 'Product card', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'until' => 'shop_product_element_spacing',
)
)
);
$wp_customize->add_setting(
'shop_product_card_layout',
array(
'default' => 'layout1',
'sanitize_callback' => 'sanitize_key',
)
);
$wp_customize->add_control(
new Botiga_Radio_Images(
$wp_customize,
'shop_product_card_layout',
array(
'label' => esc_html__( 'Layout', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'cols' => 3,
'choices' => array(
'layout1' => array(
'label' => esc_html__( 'Layout 1', 'botiga' ),
'url' => '%s/assets/img/pc1.svg'
),
'layout2' => array(
'label' => esc_html__( 'Layout 2', 'botiga' ),
'url' => '%s/assets/img/pc2.svg'
),
)
)
)
);
$wp_customize->add_setting(
'shop_product_add_to_cart_layout',
array(
'default' => 'layout3',
'sanitize_callback' => 'sanitize_key',
)
);
$wp_customize->add_control(
new Botiga_Radio_Images(
$wp_customize,
'shop_product_add_to_cart_layout',
array(
'label' => esc_html__( 'Add to cart button', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'cols' => 3,
'choices' => array(
'layout1' => array(
'label' => esc_html__( 'Layout 1', 'botiga' ),
'url' => '%s/assets/img/ac1.svg'
),
'layout2' => array(
'label' => esc_html__( 'Layout 2', 'botiga' ),
'url' => '%s/assets/img/ac2.svg'
),
'layout3' => array(
'label' => esc_html__( 'Layout 3', 'botiga' ),
'url' => '%s/assets/img/ac3.svg'
),
'layout4' => array(
'label' => esc_html__( 'Layout 4', 'botiga' ),
'url' => '%s/assets/img/ac4.svg'
),
)
)
)
);
$wp_customize->add_setting(
'shop_product_quickview_layout',
array(
'default' => 'layout1',
'sanitize_callback' => 'sanitize_key',
)
);
$wp_customize->add_control(
new Botiga_Radio_Images(
$wp_customize,
'shop_product_quickview_layout',
array(
'label' => esc_html__( 'Quick view', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'cols' => 3,
'choices' => array(
'layout1' => array(
'label' => esc_html__( 'Layout 1', 'botiga' ),
'url' => '%s/assets/img/qw1.svg'
),
'layout2' => array(
'label' => esc_html__( 'Layout 2', 'botiga' ),
'url' => '%s/assets/img/qw2.svg'
),
'layout3' => array(
'label' => esc_html__( 'Layout 3', 'botiga' ),
'url' => '%s/assets/img/qw3.svg'
),
)
)
)
);
$wp_customize->add_setting( 'shop_card_elements', array(
'default' => array( 'woocommerce_template_loop_product_title', 'woocommerce_template_loop_price' ),
'sanitize_callback' => 'botiga_sanitize_product_loop_components'
) );
$wp_customize->add_control( new \Kirki\Control\Sortable( $wp_customize, 'shop_card_elements', array(
'label' => esc_html__( 'Card elements', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'choices' => array(
'woocommerce_template_loop_product_title' => esc_html__( 'Title', 'botiga' ),
'woocommerce_template_loop_rating' => esc_html__( 'Reviews', 'botiga' ),
'woocommerce_template_loop_price' => esc_html__( 'Price', 'botiga' ),
'botiga_loop_product_category' => esc_html__( 'Category', 'botiga' ),
'botiga_loop_product_description' => esc_html__( 'Short description', 'botiga' ),
)
) ) );
$wp_customize->add_setting( 'shop_product_alignment',
array(
'default' => 'center',
'sanitize_callback' => 'botiga_sanitize_text'
)
);
$wp_customize->add_control( new Botiga_Radio_Buttons( $wp_customize, 'shop_product_alignment',
array(
'label' => esc_html__( 'Text alignment', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'choices' => array(
'left' => '',
'center' => '',
'right' => '',
)
)
) );
$wp_customize->add_setting( 'shop_product_element_spacing', array(
'default' => 12,
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
) );
$wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'shop_product_element_spacing',
array(
'label' => esc_html__( 'Elements spacing', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'is_responsive' => 0,
'settings' => array (
'size_desktop' => 'shop_product_element_spacing',
),
'input_attrs' => array (
'min' => 0,
'max' => 100
)
)
) );
//Sale tag
$wp_customize->add_setting( 'accordion_shop_sale_tag',
array(
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control(
new Botiga_Accordion_Control(
$wp_customize,
'accordion_shop_sale_tag',
array(
'label' => esc_html__( 'Sale tag', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'until' => 'sale_percentage_text',
)
)
);
$wp_customize->add_setting(
'shop_product_sale_tag_layout',
array(
'default' => 'layout1',
'sanitize_callback' => 'sanitize_key',
)
);
$wp_customize->add_control(
new Botiga_Radio_Images(
$wp_customize,
'shop_product_sale_tag_layout',
array(
'label' => esc_html__( 'Layout', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'cols' => 3,
'choices' => array(
'layout1' => array(
'label' => esc_html__( 'Layout 1', 'botiga' ),
'url' => '%s/assets/img/sale1.svg'
),
'layout2' => array(
'label' => esc_html__( 'Layout 2', 'botiga' ),
'url' => '%s/assets/img/sale2.svg'
),
)
)
)
);
$wp_customize->add_setting( 'shop_sale_tag_spacing', array(
'default' => 20,
'sanitize_callback' => 'absint',
) );
$wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'shop_sale_tag_spacing',
array(
'label' => esc_html__( 'Spacing', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'is_responsive' => 0,
'settings' => array (
'size_desktop' => 'shop_sale_tag_spacing',
),
'input_attrs' => array (
'min' => 0,
'max' => 100
)
)
) );
$wp_customize->add_setting( 'shop_sale_tag_radius', array(
'default' => 0,
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
) );
$wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'shop_sale_tag_radius',
array(
'label' => esc_html__( 'Border radius', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'is_responsive' => 0,
'settings' => array (
'size_desktop' => 'shop_sale_tag_radius',
),
'input_attrs' => array (
'min' => 0,
'max' => 100
)
)
) );
$wp_customize->add_setting(
'sale_badge_text',
array(
'sanitize_callback' => 'botiga_sanitize_text',
'default' => esc_html__( 'Sale!', 'botiga' ),
)
);
$wp_customize->add_control( 'sale_badge_text', array(
'label' => esc_html__( 'Badge text', 'botiga' ),
'type' => 'text',
'section' => 'woocommerce_product_catalog',
) );
$wp_customize->add_setting(
'sale_badge_percent',
array(
'default' => 0,
'sanitize_callback' => 'botiga_sanitize_checkbox',
)
);
$wp_customize->add_control(
new Botiga_Toggle_Control(
$wp_customize,
'sale_badge_percent',
array(
'label' => esc_html__( 'Display sale percentage', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
$wp_customize->add_setting(
'sale_percentage_text',
array(
'sanitize_callback' => 'botiga_sanitize_text',
'default' => '-{value}%',
)
);
$wp_customize->add_control( 'sale_percentage_text', array(
'label' => esc_html__( 'Sale percentage text', 'botiga' ),
'description' => wp_kses_post( __( 'You may use the {value} tag. E.g. {value}% OFF!', 'botiga' ) ),
'type' => 'text',
'section' => 'woocommerce_product_catalog',
'active_callback' => 'botiga_callback_sale_percentage'
) );
//Categories
$wp_customize->add_setting( 'accordion_shop_categories',
array(
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control(
new Botiga_Accordion_Control(
$wp_customize,
'accordion_shop_categories',
array(
'label' => esc_html__( 'Categories', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'until' => 'shop_categories_radius',
)
)
);
$wp_customize->add_setting(
'shop_categories_layout',
array(
'default' => 'layout1',
'sanitize_callback' => 'sanitize_key',
)
);
$wp_customize->add_control(
new Botiga_Radio_Images(
$wp_customize,
'shop_categories_layout',
array(
'label' => esc_html__( 'Layout', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'cols' => 3,
'choices' => array(
'layout1' => array(
'label' => esc_html__( 'Layout 1', 'botiga' ),
'url' => '%s/assets/img/pcat1.svg'
),
'layout2' => array(
'label' => esc_html__( 'Layout 2', 'botiga' ),
'url' => '%s/assets/img/pcat2.svg'
),
'layout3' => array(
'label' => esc_html__( 'Layout 3', 'botiga' ),
'url' => '%s/assets/img/pcat3.svg'
),
'layout4' => array(
'label' => esc_html__( 'Layout 4', 'botiga' ),
'url' => '%s/assets/img/pcat4.svg'
),
'layout5' => array(
'label' => esc_html__( 'Layout 5', 'botiga' ),
'url' => '%s/assets/img/pcat5.svg'
),
)
)
)
);
$wp_customize->add_setting( 'shop_categories_alignment',
array(
'default' => 'center',
'sanitize_callback' => 'botiga_sanitize_text'
)
);
$wp_customize->add_control( new Botiga_Radio_Buttons( $wp_customize, 'shop_categories_alignment',
array(
'label' => esc_html__( 'Text alignment', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'choices' => array(
'left' => '',
'center' => '',
'right' => '',
)
)
) );
$wp_customize->add_setting( 'shop_categories_radius', array(
'default' => 0,
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
) );
$wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'shop_categories_radius',
array(
'label' => esc_html__( 'Border radius', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'is_responsive' => 0,
'settings' => array (
'size_desktop' => 'shop_categories_radius',
),
'input_attrs' => array (
'min' => 0,
'max' => 100
)
)
) );
//Cart
$wp_customize->add_section(
'botiga_section_shop_cart',
array(
'title' => esc_html__( 'Cart', 'botiga'),
'panel' => 'woocommerce',
'priority' => 11
)
);
$wp_customize->add_setting(
'shop_cart_layout',
array(
'default' => 'layout1',
'sanitize_callback' => 'sanitize_key',
)
);
$wp_customize->add_control(
new Botiga_Radio_Images(
$wp_customize,
'shop_cart_layout',
array(
'label' => esc_html__( 'Layout', 'botiga' ),
'section' => 'botiga_section_shop_cart',
'cols' => 2,
'choices' => array(
'layout1' => array(
'label' => esc_html__( 'Layout 1', 'botiga' ),
'url' => '%s/assets/img/cart1.svg'
),
'layout2' => array(
'label' => esc_html__( 'Layout 2', 'botiga' ),
'url' => '%s/assets/img/cart2.svg'
),
)
)
)
);
//Checkout
$wp_customize->add_setting(
'shop_checkout_layout',
array(
'default' => 'layout1',
'sanitize_callback' => 'sanitize_key',
)
);
$wp_customize->add_control(
new Botiga_Radio_Images(
$wp_customize,
'shop_checkout_layout',
array(
'label' => esc_html__( 'Layout', 'botiga' ),
'section' => 'woocommerce_checkout',
'cols' => 2,
'choices' => array(
'layout1' => array(
'label' => esc_html__( 'Layout 1', 'botiga' ),
'url' => '%s/assets/img/checkout1.svg'
),
'layout2' => array(
'label' => esc_html__( 'Layout 2', 'botiga' ),
'url' => '%s/assets/img/checkout2.svg'
),
)
)
)
);
/**
* Styling
*/
//Product card
$wp_customize->add_setting( 'accordion_shop_styling_card',
array(
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control(
new Botiga_Accordion_Control(
$wp_customize,
'accordion_shop_styling_card',
array(
'label' => esc_html__( 'Product card', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'until' => 'shop_product_card_border_color',
)
)
);
$wp_customize->add_setting(
'shop_product_card_style',
array(
'default' => 'layout1',
'sanitize_callback' => 'sanitize_key',
)
);
$wp_customize->add_control(
new Botiga_Radio_Images(
$wp_customize,
'shop_product_card_style',
array(
'label' => esc_html__( 'Card Style', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'cols' => 3,
'choices' => array(
'layout1' => array(
'label' => esc_html__( 'Layout 1', 'botiga' ),
'url' => '%s/assets/img/card1.svg'
),
'layout2' => array(
'label' => esc_html__( 'Layout 2', 'botiga' ),
'url' => '%s/assets/img/card2.svg'
),
'layout3' => array(
'label' => esc_html__( 'Layout 3', 'botiga' ),
'url' => '%s/assets/img/card3.svg'
),
)
)
)
);
$wp_customize->add_setting( 'shop_product_card_radius', array(
'default' => 0,
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
) );
$wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'shop_product_card_radius',
array(
'label' => esc_html__( 'Card radius', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'is_responsive' => 0,
'settings' => array (
'size_desktop' => 'shop_product_card_radius',
),
'input_attrs' => array (
'min' => 0,
'max' => 100
)
)
) );
$wp_customize->add_setting( 'shop_product_card_thumb_radius', array(
'default' => 0,
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
) );
$wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'shop_product_card_thumb_radius',
array(
'label' => esc_html__( 'Image radius', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'is_responsive' => 0,
'settings' => array (
'size_desktop' => 'shop_product_card_thumb_radius',
),
'input_attrs' => array (
'min' => 0,
'max' => 100
)
)
) );
$wp_customize->add_setting(
'shop_product_card_background',
array(
'default' => '',
'sanitize_callback' => 'botiga_sanitize_hex_rgba',
'transport' => 'postMessage'
)
);
$wp_customize->add_control(
new Botiga_Alpha_Color(
$wp_customize,
'shop_product_card_background',
array(
'label' => esc_html__( 'Card background', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
$wp_customize->add_setting(
'shop_product_product_title',
array(
'default' => '',
'sanitize_callback' => 'botiga_sanitize_hex_rgba',
'transport' => 'postMessage'
)
);
$wp_customize->add_control(
new Botiga_Alpha_Color(
$wp_customize,
'shop_product_product_title',
array(
'label' => esc_html__( 'Product title', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
$wp_customize->add_setting( 'shop_product_card_border_size', array(
'default' => 1,
'transport' => 'postMessage',
'sanitize_callback' => 'absint',
) );
$wp_customize->add_control( new Botiga_Responsive_Slider( $wp_customize, 'shop_product_card_border_size',
array(
'label' => esc_html__( 'Border size', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'is_responsive' => 0,
'settings' => array (
'size_desktop' => 'shop_product_card_border_size',
),
'input_attrs' => array (
'min' => 0,
'max' => 100
)
)
) );
$wp_customize->add_setting(
'shop_product_card_border_color',
array(
'default' => '#eee',
'sanitize_callback' => 'botiga_sanitize_hex_rgba',
'transport' => 'postMessage'
)
);
$wp_customize->add_control(
new Botiga_Alpha_Color(
$wp_customize,
'shop_product_card_border_color',
array(
'label' => esc_html__( 'Border color', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
//Sale tag
$wp_customize->add_setting( 'accordion_shop_styling_sale',
array(
'sanitize_callback' => 'esc_attr'
)
);
$wp_customize->add_control(
new Botiga_Accordion_Control(
$wp_customize,
'accordion_shop_styling_sale',
array(
'label' => esc_html__( 'Sale tag', 'botiga' ),
'section' => 'woocommerce_product_catalog',
'until' => 'single_product_sale_color',
)
)
);
$wp_customize->add_setting(
'single_product_sale_background_color',
array(
'default' => '#212121',
'sanitize_callback' => 'botiga_sanitize_hex_rgba',
'transport' => 'postMessage'
)
);
$wp_customize->add_control(
new Botiga_Alpha_Color(
$wp_customize,
'single_product_sale_background_color',
array(
'label' => esc_html__( 'Background color', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);
$wp_customize->add_setting(
'single_product_sale_color',
array(
'default' => '#ffffff',
'sanitize_callback' => 'botiga_sanitize_hex_rgba',
'transport' => 'postMessage'
)
);
$wp_customize->add_control(
new Botiga_Alpha_Color(
$wp_customize,
'single_product_sale_color',
array(
'label' => esc_html__( 'Color', 'botiga' ),
'section' => 'woocommerce_product_catalog',
)
)
);