add_section('swiftpress_testimonial_section', array( 'priority' => 6, 'title' =>__('Testimonial Section', 'swiftpress'), 'panel' => 'swiftpress_home_options' )); $wp_customize->add_setting( 'testimonial_enable', array( 'capability' => 'edit_theme_options', 'default' => '1', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'testimonial_enable', array( 'settings' => 'testimonial_enable', 'label' => __( 'Enable/Disable Testimonial Section', 'swiftpress' ), 'section' => 'swiftpress_testimonial_section', 'type' => 'radio', 'choices' => array( '1' => __( 'Enable', 'swiftpress' ), '2' => __( 'Disable', 'swiftpress' ), ), 'priority' => 20 ) ); $wp_customize->add_setting('testimonial_title',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'capability' => 'edit_theme_options', 'default' => __('Testimonial ','swiftpress'), 'transport'=>'postMessage' )); $wp_customize->add_control('testimonial_title',array( 'label' =>__('Testimonial Title', 'swiftpress'), 'section' => 'swiftpress_testimonial_section', 'type' => 'text', 'capability' => 'edit_theme_options', 'priority' => 20 )); $wp_customize->add_setting('testimonial_content',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'capability' => 'edit_theme_options', 'transport'=>'postMessage', 'default' => __('Welcome to Swift Plus Testimonial , Simple yet complete theme for business','swiftpress') )); $wp_customize->add_control('testimonial_content',array( 'label' =>__('Testimonial Description', 'swiftpress'), 'section' => 'swiftpress_testimonial_section', 'type' => 'textarea', 'capability' => 'edit_theme_options', 'priority' => 20 )); $wp_customize->add_setting( 'testimonial_no_of_posts', array( 'capability' => 'edit_theme_options', 'default' => '4', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'testimonial_no_of_posts', array( 'settings' => 'testimonial_no_of_posts', 'label' => __( 'No Of Posts To Show On Testimonial Section', 'swiftpress' ), 'section' => 'swiftpress_testimonial_section', 'type' => 'select', 'choices' => array( '4' => __( '4', 'swiftpress' ), '8' => __( '8', 'swiftpress' ), '12' => __( '12', 'swiftpress' ), ), 'priority' => 20 ) ); $wp_customize->add_setting('swiftpress_testimonial_category_display',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_category', 'capability' => 'edit_theme_options', 'default' => '' )); $wp_customize->add_control(new swiftpress_Customize_Dropdown_Taxonomies_Control($wp_customize,'swiftpress_testimonial_category_display',array( 'label' => __('Choose testimonial category','swiftpress'), 'section' => 'swiftpress_testimonial_section', 'settings' => 'swiftpress_testimonial_category_display', 'type'=> 'dropdown-taxonomies', 'priority' => 20 ) ));