add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-quantity-plusnminus]', array( 'default' => alagu_get_option( 'dt-woo-quantity-plusnminus' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_tweek' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Switch( $wp_customize, ALAGU_THEME_SETTINGS . '[dt-woo-quantity-plusnminus]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable Plus / Minus Button - Quantity', 'alagu'), 'section' => 'woocommerce-others-section', 'choices' => array( 'on' => esc_html__( 'Yes', 'alagu' ), 'off' => esc_html__( 'No', 'alagu' ) ) ) ) ); /** * Divider : Separator */ $wp_customize->add_control( new ALAGU_Customize_Control_Separator( $wp_customize, ALAGU_THEME_SETTINGS . '[shop-page-separator1]', array( 'type' => 'dt-separator', 'section' => 'woocommerce-others-section', 'settings' => array() ) ) ); /** * Option : Add To Cart Custom Action */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-addtocart-custom-action]', array( 'default' => alagu_get_option( 'dt-woo-addtocart-custom-action' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control( $wp_customize, ALAGU_THEME_SETTINGS . '[dt-woo-addtocart-custom-action]', array( 'type' => 'select', 'label' => esc_html__( 'Add To Cart Custom Action', 'alagu'), 'section' => 'woocommerce-others-section', 'choices' => apply_filters( 'alagu_others_addtocart_custom_action', array( '' => esc_html__('None', 'alagu'), 'sidebar_widget' => esc_html__('Sidebar Widget', 'alagu'), 'notification_widget' => esc_html__('Notification Widget', 'alagu'), ) ) ) ) ); /** * Option : Cross Sell Product Column */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-cross-sell-column]', array( 'default' => alagu_get_option( 'dt-woo-cross-sell-column' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( new ALAGU_Customize_Control_Radio_Image( $wp_customize, ALAGU_THEME_SETTINGS . '[dt-woo-cross-sell-column]', array( 'type' => 'dt-radio-image', 'label' => esc_html__( 'Cross Sell Product Column', 'alagu'), 'section' => 'woocommerce-others-section', 'choices' => apply_filters( 'alagu_cross_sell_column_options', array( 2 => array( 'label' => esc_html__( 'One Half Column', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/woocommerce/one-half-column.png' ), 3 => array( 'label' => esc_html__( 'One Third Column', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/woocommerce/one-third-column.png' ), 4 => array( 'label' => esc_html__( 'One Fourth Column', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/woocommerce/one-fourth-column.png' ), ) ) ) ) ); /** * Option : Cross Sell Title */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-cross-sell-title]', array( 'default' => alagu_get_option( 'dt-woo-cross-sell-title' ), 'type' => 'option', 'sanitize_callback' => 'wp_filter_nohtml_kses', ) ); $wp_customize->add_control( ALAGU_THEME_SETTINGS . '[dt-woo-cross-sell-title]', array( 'type' => 'text', 'section' => 'woocommerce-others-section', 'label' => esc_html__( 'Cross Sell Title', 'alagu' ) ) ); if ( ! defined( 'ALAGU_PRO_VER' ) ) { /** * Divider : Separator 1 */ $wp_customize->add_control( new ALAGU_Customize_Control_Separator( $wp_customize, ALAGU_THEME_SETTINGS . '[dt-woo-others-pro-separator]', array( 'type' => 'dt-separator', 'section' => 'woocommerce-others-section', 'settings' => array(), 'priority' => 999, 'description' => '
' . __( 'More Options Available in Alagu Pro!', 'alagu' ) . '
' . __( 'Learn More', 'alagu' ) . '', ) ) ); } do_action( 'alagu-woo-cart-pro-settings' );