add_section( 'section_home_message', array( 'title' => __( 'Author Introduction Section', 'blogbell' ), 'priority' => 20, 'capability' => 'edit_theme_options', 'panel' => 'home_page_panel', ) ); $wp_customize->add_setting( 'theme_options[disable_message_section]', array( 'default' => $default['disable_message_section'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blogbell_sanitize_switch_control', ) ); $wp_customize->add_control( new BlogBell_Switch_Control( $wp_customize, 'theme_options[disable_message_section]', array( 'label' => __('Enable/Disable Author Section', 'blogbell'), 'section' => 'section_home_message', 'settings' => 'theme_options[disable_message_section]', 'on_off_label' => blogbell_switch_options(), ) ) ); // message title setting and control $wp_customize->add_setting( 'theme_options[message_custom_title]', array( 'default' => $default['message_custom_title'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'theme_options[message_custom_title]', array( 'label' => __( 'Title ', 'blogbell' ), 'section' => 'section_home_message', 'active_callback' => 'blogbell_message_active', 'type' => 'text', ) ); // message title setting and control $wp_customize->add_setting( 'theme_options[message_custom_img]', array( 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'theme_options[message_custom_img]', array( 'label' => esc_html__( 'Select Image ', 'blogbell' ), 'section' => 'section_home_message', 'settings' => 'theme_options[message_custom_img]', 'active_callback' => 'blogbell_message_active', ) ) ); // message title setting and control $wp_customize->add_setting( 'theme_options[message_custom_content]', array( 'default' => $default['message_custom_content'], 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_textarea_field', ) ); $wp_customize->add_control( 'theme_options[message_custom_content]', array( 'label' => __( 'Content ', 'blogbell' ), 'section' => 'section_home_message', 'settings' => 'theme_options[message_custom_content]', 'active_callback' => 'blogbell_message_active', 'type' => 'textarea', ) );