add_section('swiftpress_team_section', array( 'priority' => 6, 'title' =>__('Team Section', 'swiftpress'), 'panel' => 'swiftpress_home_options' )); $wp_customize->add_setting( 'team_enable', array( 'capability' => 'edit_theme_options', 'default' => '1', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'team_enable', array( 'settings' => 'team_enable', 'label' => __( 'Enable/Disable Team Section', 'swiftpress' ), 'section' => 'swiftpress_team_section', 'type' => 'radio', 'choices' => array( '1' => __( 'Enable', 'swiftpress' ), '2' => __( 'Disable', 'swiftpress' ), ), 'priority' => 20 ) ); $wp_customize->add_setting('team_title',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'capability' => 'edit_theme_options', 'default' => __('Team ','swiftpress'), 'transport'=> 'postMessage' )); $wp_customize->add_control('team_title',array( 'label' =>__('Team Title', 'swiftpress'), 'section' => 'swiftpress_team_section', 'type' => 'text', 'capability' => 'edit_theme_options', 'priority' => 20 )); $wp_customize->add_setting('team_content',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'capability' => 'edit_theme_options', 'transport'=> 'postMessage', 'default' => __('Welcome to Swift Plus Team , Simple yet complete theme for business','swiftpress') )); $wp_customize->add_control('team_content',array( 'label' =>__('Team Description', 'swiftpress'), 'section' => 'swiftpress_team_section', 'type' => 'textarea', 'capability' => 'edit_theme_options', 'priority' => 20 )); $wp_customize->add_setting( 'team_no_of_posts', array( 'capability' => 'edit_theme_options', 'default' => '4', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'team_no_of_posts', array( 'settings' => 'team_no_of_posts', 'label' => __( 'No Of Posts To Show On Team Section', 'swiftpress' ), 'section' => 'swiftpress_team_section', 'type' => 'select', 'choices' => array( '4' => __( '4', 'swiftpress' ), '8' => __( '8', 'swiftpress' ), '12' => __( '12', 'swiftpress' ), ), 'priority' => 20 ) ); $wp_customize->add_setting('swiftpress_team_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_team_category_display',array( 'label' => __('Choose team category','swiftpress'), 'section' => 'swiftpress_team_section', 'settings' => 'swiftpress_team_category_display', 'type'=> 'dropdown-taxonomies', 'priority' => 20 ) ));