add_section('swiftpress_client_section', array( 'priority' => 6, 'title' =>__('Client Section', 'swiftpress'), 'panel' => 'swiftpress_home_options' )); $wp_customize->add_setting( 'client_enable', array( 'capability' => 'edit_theme_options', 'default' => '1', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'client_enable', array( 'settings' => 'client_enable', 'label' => __( 'Enable/Disable Client Section', 'swiftpress' ), 'section' => 'swiftpress_client_section', 'type' => 'radio', 'choices' => array( '1' => __( 'Enable', 'swiftpress' ), '2' => __( 'Disable', 'swiftpress' ), ), 'priority' => 20 ) ); $wp_customize->add_setting( 'client_no_of_posts', array( 'capability' => 'edit_theme_options', 'default' => '7', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'client_no_of_posts', array( 'settings' => 'client_no_of_posts', 'label' => __( 'No Of Posts To Show On Client Section', 'swiftpress' ), 'section' => 'swiftpress_client_section', 'type' => 'select', 'choices' => array( '5' => __( '5', 'swiftpress' ), '7' => __( '7', 'swiftpress' ), '9' => __( '9', 'swiftpress' ), '11' => __( '11', 'swiftpress' ), '13' => __( '13', 'swiftpress' ), '15' => __( '15', 'swiftpress' ), ), 'priority' => 20 ) ); $wp_customize->add_setting('swiftpress_client_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_client_category_display',array( 'label' => __('Choose client category','swiftpress'), 'section' => 'swiftpress_client_section', 'settings' => 'swiftpress_client_category_display', 'type'=> 'dropdown-taxonomies', 'priority' => 20 ) ));