add_section('services', array('title' => esc_html__('Home Service Section', 'bizstart'), 'description' => '', 'panel' => 'frontpage', 'priority' => 140, ) ); $wp_customize->add_setting( 'bizstart_services_section_hideshow', array( 'default' => 'hide', 'sanitize_callback' => 'bizstart_services_sanitize_select', ) ); $bizstart_services_section_hide_show_option = bizstart_services_section_option(); $wp_customize->add_control( 'bizstart_services_section_hideshow', array( 'type' => 'radio', 'label' => esc_html__('Services Option', 'bizstart'), 'description' => esc_html__('Show/hide option Section.', 'bizstart'), 'section' => 'services', 'choices' => $bizstart_services_section_hide_show_option, 'priority' => 1 ) ); // Services title $wp_customize->add_setting('bizstart-services_title', array( 'default' => '', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bizstart-services_title', array( 'label' => esc_html__('Services Section Title', 'bizstart'), 'section' => 'services', 'priority' => 3 )); $wp_customize->add_setting('bizstart-services_subtitle', array( 'default' => '', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bizstart-services_subtitle', array( 'label' => esc_html__('Service Description', 'bizstart'), 'section' => 'services', 'type' => 'textarea', 'priority' => 4 )); $service_no = 6; for( $i = 1; $i <= $service_no; $i++ ) { $bizstart_servicepage = 'bizstart_service_page_' . $i; $bizstart_serviceicon = 'bizstart_page_service_icon_' . $i; // Setting - Feature Icon $wp_customize->add_setting( $bizstart_serviceicon, array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( $bizstart_serviceicon, array( 'label' => esc_html__( 'Service Icon ', 'bizstart' ).$i, 'description' => __('Select a icon in this list Font Awesome icons and enter the class name','bizstart'), 'section' => 'services', 'type' => 'text', 'priority' => 100, ) ); $wp_customize->add_setting( $bizstart_servicepage, array( 'default' => 1, 'sanitize_callback' => 'bizstart_sanitize_dropdown_pages', ) ); $wp_customize->add_control( $bizstart_servicepage, array( 'label' => esc_html__( 'Service Page ', 'bizstart' ) .$i, 'section' => 'services', 'type' => 'dropdown-pages', 'priority' => 100, ) ); } ?>