add_section( 'intro_section_settings', array( 'title' => esc_html__( 'Intro Section', 'bizprime' ), 'priority' => 120, 'capability' => 'edit_theme_options', 'panel' => 'theme_front_page_section', ) ); // Setting - show-work-process-section. $wp_customize->add_setting( 'theme_options[show-our-intro-section]', array( 'default' => $default['show-our-intro-section'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizprime_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[show-our-intro-section]', array( 'label' => esc_html__( 'Enable Intro Section', 'bizprime' ), 'section' => 'intro_section_settings', 'type' => 'checkbox', 'priority' => 100, ) ); // Setting - show-intro-section. $wp_customize->add_setting( 'theme_options[select-intro-main-page]', array( 'default' => $default['select-intro-main-page'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizprime_sanitize_dropdown_pages', ) ); $wp_customize->add_control( 'theme_options[select-intro-main-page]', array( 'label' => esc_html__( 'Select Main Intro Page', 'bizprime' ), 'section' => 'intro_section_settings', 'type' => 'dropdown-pages', 'priority' => 130, ) ); /*content excerpt in intro*/ $wp_customize->add_setting( 'theme_options[number-of-content-home-intro]', array( 'default' => $default['number-of-content-home-intro'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizprime_sanitize_positive_integer', ) ); $wp_customize->add_control( 'theme_options[number-of-content-home-intro]', array( 'label' => esc_html__( 'Select No Words Of Intro', 'bizprime' ), 'section' => 'intro_section_settings', 'type' => 'number', 'priority' => 180, 'input_attrs' => array( 'min' => 1, 'max' => 200, 'style' => 'width: 150px;' ), ) ); /*No of font icon*/ /*intro from page*/ for ( $i=1; $i <= 3 ; $i++ ) { $wp_customize->add_setting( 'theme_options[number-of-home-intro-icon-'. $i .']', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'theme_options[number-of-home-intro-icon-'. $i .']', array( 'input_attrs' => array( 'style' => 'width: 250px;' ), 'label' => esc_html__( 'Font Icon', 'bizprime' ) . ' - ' . $i , 'description' => sprintf( __( 'Use icomoon icon: Eg: %s. %sSee more here%s', 'bizprime' ), 'ion-android-bulb','','' ), 'priority' => '120' . $i, 'section' => 'intro_section_settings', 'type' => 'text', 'priority' => 180, ) ); $wp_customize->add_setting( 'theme_options[select-page-for-intro-'. $i .']', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizprime_sanitize_dropdown_pages', ) ); $wp_customize->add_control( 'theme_options[select-page-for-intro-'. $i .']', array( 'input_attrs' => array( 'style' => 'width: 50px;' ), 'label' => __( 'Intro From Page', 'bizprime' ) . ' - ' . $i , 'priority' => '120' . $i, 'section' => 'intro_section_settings', 'type' => 'dropdown-pages', 'priority' => 180, ) ); }