add_section('swiftpress_welcome_section', array( 'priority' => 6, 'title' =>__('Welcome Section', 'swiftpress'), 'panel' => 'swiftpress_home_options' )); $wp_customize->add_setting( 'welcome_enable', array( 'capability' => 'edit_theme_options', 'default' => '1', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'welcome_enable', array( 'settings' => 'welcome_enable', 'label' => __( 'Enable/Disable Welcome Section', 'swiftpress' ), 'section' => 'swiftpress_welcome_section', 'type' => 'radio', 'choices' => array( '1' => __( 'Enable', 'swiftpress' ), '2' => __( 'Disable', 'swiftpress' ), ), 'priority' => 20 ) ); $wp_customize->add_setting('welcome_title',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'capability' => 'edit_theme_options', 'default' => __('Welcome To swiftpress','swiftpress'), 'transport'=>'postMessage' )); $wp_customize->add_control('welcome_title',array( 'label' =>__('Welcome Title', 'swiftpress'), 'section' => 'swiftpress_welcome_section', 'type' => 'text', 'capability' => 'edit_theme_options', 'priority' => 20 )); $wp_customize->add_setting('welcome_content',array( 'sanitize_callback' => 'swiftpress_theme_sanitize_text', 'capability' => 'edit_theme_options', 'transport'=>'postMessage', 'default' => __('Welcome to Swift Plus , Simple yet swiftpress theme for business','swiftpress') )); $wp_customize->add_control('welcome_content',array( 'label' =>__('Welcome Description', 'swiftpress'), 'section' => 'swiftpress_welcome_section', 'type' => 'textarea', 'capability' => 'edit_theme_options', 'priority' => 20 )); $wp_customize->add_setting( 'swiftpress_welcome_section_icon1', array( 'capability' => 'edit_theme_options', 'default' => 'fa fa-magic', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'swiftpress_welcome_section_icon1', array( 'label' => __( 'Icon For Welcome 1', 'swiftpress' ), 'description' => sprintf( __( 'Use font awesome icon: Eg: %s. %sSee more here%s', 'swiftpress' ), 'fa fa-magic','','' ), 'section' => 'swiftpress_welcome_section', 'type' => 'text', 'priority' => 20, 'settings' => 'swiftpress_welcome_section_icon1', ) ); $wp_customize->add_setting( 'swiftpress_welcome_section_icon2', array( 'capability' => 'edit_theme_options', 'default' => 'fa fa-magic', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'swiftpress_welcome_section_icon2', array( 'label' => __( 'Icon For Welcome 2', 'swiftpress' ), 'section' => 'swiftpress_welcome_section', 'type' => 'text', 'priority' => 20, 'settings' => 'swiftpress_welcome_section_icon2', ) ); $wp_customize->add_setting( 'swiftpress_welcome_section_icon3', array( 'capability' => 'edit_theme_options', 'default' => 'fa fa-magic', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'swiftpress_welcome_section_icon3', array( 'label' => __( 'Icon For Welcome 3', 'swiftpress' ), 'section' => 'swiftpress_welcome_section', 'type' => 'text', 'priority' => 20, 'settings' => 'swiftpress_welcome_section_icon3', ) ); $wp_customize->add_setting( 'swiftpress_welcome_section_icon4', array( 'capability' => 'edit_theme_options', 'default' => 'fa fa-magic', 'sanitize_callback' => 'swiftpress_theme_sanitize_text' ) ); $wp_customize->add_control( 'swiftpress_welcome_section_icon4', array( 'label' => __( 'Icon For Welcome 4', 'swiftpress' ), 'section' => 'swiftpress_welcome_section', 'type' => 'text', 'priority' => 20, 'settings' => 'swiftpress_welcome_section_icon4', ) ); $wp_customize->add_setting( 'swiftpress_welcome_section_page1', array( 'capability' => 'edit_theme_options', 'default' => 0, 'sanitize_callback' => 'swiftpress_sanitize_post' ) ); $wp_customize->add_control( 'swiftpress_welcome_section_page1', array( 'label' => __( 'Select Page For Welcome 1', 'swiftpress' ), 'section' => 'swiftpress_welcome_section', 'type' => 'dropdown-pages', 'priority' => 20, 'settings' => 'swiftpress_welcome_section_page1', ) ); $wp_customize->add_setting( 'swiftpress_welcome_section_page2', array( 'capability' => 'edit_theme_options', 'default' => 0, 'sanitize_callback' => 'swiftpress_sanitize_post' ) ); $wp_customize->add_control( 'swiftpress_welcome_section_page2', array( 'label' => __( 'Select Page For Welcome 2', 'swiftpress' ), 'section' => 'swiftpress_welcome_section', 'type' => 'dropdown-pages', 'priority' => 20, 'settings' => 'swiftpress_welcome_section_page2', ) ); $wp_customize->add_setting( 'swiftpress_welcome_section_page3', array( 'capability' => 'edit_theme_options', 'default' => 0, 'sanitize_callback' => 'swiftpress_sanitize_post' ) ); $wp_customize->add_control( 'swiftpress_welcome_section_page3', array( 'label' => __( 'Select Page For Welcome 3', 'swiftpress' ), 'section' => 'swiftpress_welcome_section', 'type' => 'dropdown-pages', 'priority' => 20, 'settings' => 'swiftpress_welcome_section_page3', ) ); $wp_customize->add_setting( 'swiftpress_welcome_section_page4', array( 'capability' => 'edit_theme_options', 'default' => 0, 'sanitize_callback' => 'swiftpress_sanitize_post' ) ); $wp_customize->add_control( 'swiftpress_welcome_section_page4', array( 'label' => __( 'Select Page For Welcome 4', 'swiftpress' ), 'section' => 'swiftpress_welcome_section', 'type' => 'dropdown-pages', 'priority' => 20, 'settings' => 'swiftpress_welcome_section_page4', ) );