add_panel( 'businesso_service_options', array( 'priority' => 2, 'capability' => 'edit_theme_options', 'title' => __('Service Settings', 'businesso'), ) ); $wp_customize->add_section( 'service_section_head' , array( 'title' => __('Service Heading ', 'businesso'), 'panel' => 'businesso_service_options', 'priority' => 50, ) ); //Hide Index Service Section $wp_customize->add_setting( 'businesso_option[service_section_enabled]', array( 'default' => 1, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'businesso_option[service_section_enabled]', array( 'label' => __('Hide Home Service Section','businesso'), 'section' => 'service_section_head', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'businesso_option[service_heading_title]', array( 'default' => __('Why Choose Us','businesso'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'businesso_option[service_heading_title]', array( 'label' => __('Service Heading Title','businesso'), 'section' => 'service_section_head', 'type' => 'text', ) ); //service section one $wp_customize->add_section( 'service_section_one' , array( 'title' => __('Service Section one', 'businesso'), 'panel' => 'businesso_service_options', 'priority' => 100, 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_setting( 'businesso_option[service_one_icon]', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'fa-desktop', 'capability' => 'edit_theme_options', 'type' => 'option', )); $wp_customize->add_control( 'businesso_option[service_one_icon]', array( 'label' => __('Service icon', 'businesso'), 'style' => 'background-color: red', 'section' => 'service_section_one', 'type' => 'text', 'description'=>__('Add More FontAwesome Icons','businesso'), )); $wp_customize->add_setting( 'businesso_option[service_one_title]', array( 'default' => __('Responsive','businesso'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'businesso_option[service_one_title]', array( 'label' => __('Title one','businesso'), 'section' => 'service_section_one', 'type' => 'text', ) ); $wp_customize->add_setting( 'businesso_option[service_one_description]', array( 'default' => __('Lorem Ipsum which looks reason able. The generated Lorem Ipsum is therefore always free.Lorem Ipsum which looks reason able. The generated Lorem Ipsum is therefore always free.','businesso'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'businesso_option[service_one_description]', array( 'label' => __('Description One','businesso'), 'section' => 'service_section_one', 'type' => 'text', ) ); //Second service $wp_customize->add_section( 'service_section_two' , array( 'title' => __('Service Section Two', 'businesso'), 'panel' => 'businesso_service_options', 'priority' => 200, ) ); $wp_customize->add_setting( 'businesso_option[service_two_icon]', array( 'type' =>'option', 'default' => 'fa-leaf', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'businesso_option[service_two_icon]', array( 'label' => __('Icon Two Like: fa-group','businesso'), 'section' => 'service_section_two', 'type' => 'text', 'description'=>__('Add More FontAwesome Icons','businesso'), ) ); $wp_customize->add_setting( 'businesso_option[service_two_title]', array( 'default' => __('Print Design','businesso'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'businesso_option[service_two_title]', array( 'label' => __('Title two' ,'businesso'), 'section' => 'service_section_two', 'type' => 'text', ) ); $wp_customize->add_setting( 'businesso_option[service_two_description]', array( 'default' => __('Lorem Ipsum which looks reason able. The generated Lorem Ipsum is therefore always free.Lorem Ipsum which looks reason able. The generated Lorem Ipsum is therefore always free.','businesso'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'businesso_option[service_two_description]', array( 'label' => __('Description two','businesso'), 'section' => 'service_section_two', 'type' => 'text', ) ); //Third Service section $wp_customize->add_section( 'service_section_three' , array( 'title' => __('Service Section Three', 'businesso'), 'panel' => 'businesso_service_options', 'priority' => 300, ) ); $wp_customize->add_setting( 'businesso_option[service_three_icon]', array( 'default' => 'fa-cogs', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'businesso_option[service_three_icon]', array( 'label' => __('Icon three Like: fa-group','businesso'), 'section' => 'service_section_three', 'type' => 'text', 'description'=>__('Add More FontAwesome Icons','businesso'), ) ); $wp_customize->add_setting( 'businesso_option[service_three_title]', array( 'default' => __('Easy to Customize','businesso'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' =>'option', ) ); $wp_customize->add_control( 'businesso_option[service_three_title]', array( 'label' => __('Title three','businesso'), 'section' => 'service_section_three', 'type' => 'text', ) ); $wp_customize->add_setting( 'businesso_option[service_three_description]', array( 'default' => __('Lorem Ipsum which looks reason able. The generated Lorem Ipsum is therefore always free.Lorem Ipsum which looks reason able. The generated Lorem Ipsum is therefore always free.','businesso'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' =>'option', ) ); $wp_customize->add_control( 'businesso_option[service_three_description]', array( 'label' => __('Description three','businesso'), 'section' => 'service_section_three', 'type' => 'text', ) ); class WP_service_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>