add_section('swiftpress_product_section', array( 'priority' => 6, 'title' =>__('Product Section', 'swiftpress'), 'panel' => 'swiftpress_home_options' )); $wp_customize->add_setting( 'product_enable', array( 'capability' => 'edit_theme_options', 'default' => '1', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'product_enable', array( 'settings' => 'product_enable', 'label' => __( 'Enable/Disable Product Section', 'swiftpress' ), 'section' => 'swiftpress_product_section', 'type' => 'radio', 'choices' => array( '1' => __( 'Enable', 'swiftpress' ), '2' => __( 'Disable', 'swiftpress' ), ), 'priority' => 20 ) ); $wp_customize->add_setting('product_title',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'capability' => 'edit_theme_options', 'default' => __('Our Product','swiftpress'), 'transport'=> 'postMessage' )); $wp_customize->add_control('product_title',array( 'label' =>__('Product Title', 'swiftpress'), 'section' => 'swiftpress_product_section', 'type' => 'text', 'capability' => 'edit_theme_options', 'priority' => 20 )); $wp_customize->add_setting('product_content',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'capability' => 'edit_theme_options', 'transport'=> 'postMessage', 'default' => __('Product to Swift Plus , Simple yet complete theme for business','swiftpress') )); $wp_customize->add_control('product_content',array( 'label' =>__('Product Description', 'swiftpress'), 'section' => 'swiftpress_product_section', 'type' => 'textarea', 'capability' => 'edit_theme_options', 'priority' => 20 )); $wp_customize->add_setting('swiftpress_product_category_display',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_category', 'capability' => 'edit_theme_options', 'default' => '1' )); $wp_customize->add_control(new swiftpress_Customize_Dropdown_Taxonomies_Control($wp_customize,'swiftpress_product_category_display',array( 'label' => __('Choose product category','swiftpress'), 'section' => 'swiftpress_product_section', 'settings' => 'swiftpress_product_category_display', 'type'=> 'dropdown-taxonomies', 'priority' => 20 ) ));