add_section( 'main_header_setting', array( 'title' => esc_html__( 'Header Settings', 'bozu' ), 'priority' => 10, 'capability' => 'edit_theme_options', 'panel' => 'theme_option_panel', ) ); $wp_customize->add_setting('ed_top_bar_date', array( 'default' => $bozu_default['ed_top_bar_date'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bozu_sanitize_checkbox', ) ); $wp_customize->add_control('ed_top_bar_date', array( 'label' => esc_html__('Enable Current Date', 'bozu'), 'section' => 'main_header_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'top_date_format', array( 'default' => $bozu_default['top_date_format'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'top_date_format', array( 'label' => esc_html__( 'Ticker Date Format', 'bozu' ), 'section' => 'main_header_setting', 'type' => 'text', ) ); $wp_customize->add_setting('ed_top_bar_clock', array( 'default' => $bozu_default['ed_top_bar_clock'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bozu_sanitize_checkbox', ) ); $wp_customize->add_control('ed_top_bar_clock', array( 'label' => esc_html__('Enable Clock', 'bozu'), 'section' => 'main_header_setting', 'type' => 'checkbox', ) ); // Enable Disable Search. $wp_customize->add_setting('ed_header_search', array( 'default' => $bozu_default['ed_header_search'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bozu_sanitize_checkbox', ) ); $wp_customize->add_control('ed_header_search', array( 'label' => esc_html__('Enable Search', 'bozu'), 'section' => 'main_header_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_desktop_menu', array( 'default' => $bozu_default['ed_desktop_menu'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bozu_sanitize_checkbox', ) ); $wp_customize->add_control('ed_desktop_menu', array( 'label' => esc_html__('Show Desktop Menu', 'bozu'), 'section' => 'main_header_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_header_search_recent_posts', array( 'default' => $bozu_default['ed_header_search_recent_posts'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bozu_sanitize_checkbox', ) ); $wp_customize->add_control('ed_header_search_recent_posts', array( 'label' => esc_html__('Enable Recent Posts on Search Area', 'bozu'), 'section' => 'main_header_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'recent_post_title_search', array( 'default' => $bozu_default['recent_post_title_search'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'recent_post_title_search', array( 'label' => esc_html__( 'Related Posts Section Title', 'bozu' ), 'section' => 'main_header_setting', 'type' => 'text', ) ); $wp_customize->add_setting('ed_header_search_top_category', array( 'default' => $bozu_default['ed_header_search_top_category'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bozu_sanitize_checkbox', ) ); $wp_customize->add_control('ed_header_search_top_category', array( 'label' => esc_html__('Enable Top Category on Search Area', 'bozu'), 'section' => 'main_header_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'top_category_title_search', array( 'default' => $bozu_default['top_category_title_search'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'top_category_title_search', array( 'label' => esc_html__( 'Top Category Section Title', 'bozu' ), 'section' => 'main_header_setting', 'type' => 'text', ) );