add_setting( ASTRA_THEME_SETTINGS . '[shop-grids]', array( 'default' => array( 'desktop' => 4, 'tablet' => 3, 'mobile' => 2, ), 'type' => 'option', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), ) ); $wp_customize->add_control( new Astra_Control_Responsive_Slider( $wp_customize, ASTRA_THEME_SETTINGS . '[shop-grids]', array( 'type' => 'ast-responsive-slider', 'section' => 'section-woo-shop', 'priority' => 10, 'label' => __( 'Shop Columns', 'astra' ), 'input_attrs' => array( 'step' => 1, 'min' => 1, 'max' => 6, ), ) ) ); /** * Option: Products Per Page */ $wp_customize->add_setting( ASTRA_THEME_SETTINGS . '[shop-no-of-products]', array( 'default' => astra_get_option( 'shop-no-of-products' ), 'type' => 'option', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( ASTRA_THEME_SETTINGS . '[shop-no-of-products]', array( 'section' => 'section-woo-shop', 'label' => __( 'Products Per Page', 'astra' ), 'type' => 'number', 'priority' => 15, 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 50, ), ) ); /** * Option: Product Hover Style */ $wp_customize->add_setting( ASTRA_THEME_SETTINGS . '[shop-hover-style]', array( 'default' => astra_get_option( 'shop-hover-style' ), 'type' => 'option', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( ASTRA_THEME_SETTINGS . '[shop-hover-style]', array( 'type' => 'select', 'section' => 'section-woo-shop', 'priority' => 20, 'label' => __( 'Product Image Hover Style', 'astra' ), 'choices' => apply_filters( 'astra_woo_shop_hover_style', array( '' => __( 'None', 'astra' ), 'swap' => __( 'Swap Images', 'astra' ), ) ), ) ); /** * Option: Single Post Meta */ $wp_customize->add_setting( ASTRA_THEME_SETTINGS . '[shop-product-structure]', array( 'default' => astra_get_option( 'shop-product-structure' ), 'type' => 'option', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), ) ); $wp_customize->add_control( new Astra_Control_Sortable( $wp_customize, ASTRA_THEME_SETTINGS . '[shop-product-structure]', array( 'type' => 'ast-sortable', 'section' => 'section-woo-shop', 'priority' => 30, 'label' => __( 'Shop Product Structure', 'astra' ), 'choices' => array( 'title' => __( 'Title', 'astra' ), 'price' => __( 'Price', 'astra' ), 'ratings' => __( 'Ratings', 'astra' ), 'short_desc' => __( 'Short Description', 'astra' ), 'add_cart' => __( 'Add To Cart', 'astra' ), 'category' => __( 'Category', 'astra' ), ), ) ) ); /** * Option: Woocommerce Shop Archive Content Divider */ $wp_customize->add_control( new Astra_Control_Divider( $wp_customize, ASTRA_THEME_SETTINGS . '[shop-archive-width-divider]', array( 'section' => 'section-woo-shop', 'type' => 'ast-divider', 'priority' => 220, 'settings' => array(), ) ) ); /** * Option: Shop Archive Content Width */ $wp_customize->add_setting( ASTRA_THEME_SETTINGS . '[shop-archive-width]', array( 'default' => astra_get_option( 'shop-archive-width' ), 'type' => 'option', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( ASTRA_THEME_SETTINGS . '[shop-archive-width]', array( 'type' => 'select', 'section' => 'section-woo-shop', 'priority' => 220, 'label' => __( 'Shop Archive Content Width', 'astra' ), 'choices' => array( 'default' => __( 'Default', 'astra' ), 'custom' => __( 'Custom', 'astra' ), ), ) ); /** * Option: Enter Width */ $wp_customize->add_setting( ASTRA_THEME_SETTINGS . '[shop-archive-max-width]', array( 'default' => 1200, 'type' => 'option', 'transport' => 'postMessage', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number' ), ) ); $wp_customize->add_control( new Astra_Control_Slider( $wp_customize, ASTRA_THEME_SETTINGS . '[shop-archive-max-width]', array( 'type' => 'ast-slider', 'section' => 'section-woo-shop', 'priority' => 225, 'label' => __( 'Enter Width', 'astra' ), 'suffix' => '', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), ) ) );