add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-enable-breadcrumb]', array( 'default' => alagu_get_option( 'dt-woo-tag-archive-enable-breadcrumb' ), '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-tag-archive-enable-breadcrumb]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Enable Breadcrumb', 'alagu'), 'section' => 'woocommerce-tag-archive-section', 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ) ) ) ); /** * Option : Page Layout */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-layout]', array( 'default' => alagu_get_option( 'dt-woo-tag-archive-layout' ), '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-tag-archive-layout]', array( 'type' => 'dt-radio-image', 'label' => esc_html__( 'Layout', 'alagu'), 'section' => 'woocommerce-tag-archive-section', 'choices' => apply_filters( 'alagu_tag_archive_layout_options', array( 'content-full-width' => array( 'label' => esc_html__( 'Without Sidebar', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/woocommerce/without-sidebar.png' ), 'with-left-sidebar' => array( 'label' => esc_html__( 'Left Sidebar', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/woocommerce/left-sidebar.png' ), 'with-right-sidebar' => array( 'label' => esc_html__( 'Right Sidebar', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/woocommerce/right-sidebar.png' ), ) ) ) ) ); /** * Option : Show Standard Sidebar */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-show-standard-sidebar]', array( 'default' => alagu_get_option( 'dt-woo-tag-archive-show-standard-sidebar' ), '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-tag-archive-show-standard-sidebar]', array( 'type' => 'dt-switch', 'label' => esc_html__( 'Show Standard Sidebar', 'alagu'), 'section' => 'woocommerce-tag-archive-section', 'choices' => array( 'on' => esc_attr__( 'Yes', 'alagu' ), 'off' => esc_attr__( 'No', 'alagu' ) ), 'dependency' => array( 'dt-woo-tag-archive-layout', 'any', 'with-left-sidebar,with-right-sidebar' ) ) ) ); /** * Option : Widget Areas */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-widgetareas]', array( 'default' => alagu_get_option( 'dt-woo-tag-archive-widgetareas' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_choices' ), ) ); $wp_customize->add_control( ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-widgetareas]', array( 'type' => 'select', 'label' => esc_html__( 'Choose Custom Widget Area', 'alagu'), 'section' => 'woocommerce-tag-archive-section', 'choices' => apply_filters( 'alagu_tag_archive_widgetareas', alagu_customizer_custom_widgets() ), 'dependency' => array( 'dt-woo-tag-archive-layout', 'any', 'with-left-sidebar,with-right-sidebar' ), 'description' => esc_html__('You can choose custom widget areas in premium version only.','alagu'), ) ); /** * Option : Products Per Page */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-product-per-page]', array( 'default' => alagu_get_option( 'dt-woo-tag-archive-product-per-page' ), 'type' => 'option', 'sanitize_callback' => array( 'ALAGU_Customizer_Sanitizes', 'sanitize_number_n_blank' ), ) ); $wp_customize->add_control( ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-product-per-page]', array( 'type' => 'number', 'section' => 'woocommerce-tag-archive-section', 'label' => esc_html__( 'Products Per Page', 'alagu' ) ) ); /** * Option : Product Layout */ $wp_customize->add_setting( ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-product-layout]', array( 'default' => alagu_get_option( 'dt-woo-tag-archive-product-layout' ), '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-tag-archive-product-layout]', array( 'type' => 'dt-radio-image', 'label' => esc_html__( 'Product Layout', 'alagu'), 'section' => 'woocommerce-tag-archive-section', 'choices' => apply_filters( 'alagu_tag_archive_product_layout_options', array( 1 => array( 'label' => esc_html__( 'One Column', 'alagu' ), 'path' => ALAGU_THEME_URI . '/inc/customizer/assets/images/woocommerce/one-column.png' ), 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' ), ) ) ) ) ); if ( ! defined( 'ALAGU_PRO_VER' ) ) { /** * Divider : Separator 1 */ $wp_customize->add_control( new ALAGU_Customize_Control_Separator( $wp_customize, ALAGU_THEME_SETTINGS . '[dt-woo-tag-archive-pro-separator]', array( 'type' => 'dt-separator', 'section' => 'woocommerce-tag-archive-section', 'settings' => array(), 'priority' => 999, 'description' => '
' . __( 'More Options Available in Alagu Pro!', 'alagu' ) . '
' . __( 'Learn More', 'alagu' ) . '', ) ) ); } do_action( 'alagu-woo-product-tag-archive-pro-settings' );