add_panel( 'my_panel', [ 'title' => __('Theme Options', 'bansta'), 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'priority' => 98 ]); //Before Content Big Grids & Sliders $wp_customize->add_section( 'bansta_section_big_grid', [ 'title' => __('Grid/Slider', 'bansta'), 'panel' => 'my_panel', 'priority' => 13, ]); $wp_customize->add_setting( 'show_hide_big_grid', [ 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'show_hide_big_grid', [ 'settings' => 'show_hide_big_grid', 'label' => __( 'Hide/Show Big Grid', 'bansta' ), 'section' => 'bansta_section_big_grid', 'type' => 'toggle' ])); $wp_customize->add_setting( 'before_content_grid', [ 'default' => $bansta_defaults['before_content_grid'], 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh', ]); $wp_customize->add_control( 'before_content_grid', [ 'label' => __('Select Grid', 'bansta'), 'settings' => 'before_content_grid', 'section' => 'bansta_section_big_grid', 'type' => 'select', 'choices' => [ 'default' => __('Default', 'bansta' ), 'grid-2' => __('Grid-2', 'bansta' ), 'grid-3' => __('Grid-3', 'bansta' ), 'grid-4' => __('Grid-4', 'bansta' ) ], 'active_callback' => fn() => get_theme_mod( 'show_hide_big_grid' ) ]); //front page section $wp_customize->add_section( 'bansta_section_frontpage', [ 'title' => __('Front Page', 'bansta'), 'panel' => 'my_panel', 'priority' => 13, ]); $wp_customize->add_setting( 'bansta_front_page', [ 'default' => $bansta_defaults['bansta_front_page'], 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh', ]); $wp_customize->add_control( 'bansta_front_page', [ 'label' => __('Front Layout', 'bansta'), 'settings' => 'bansta_front_page', 'section' => 'bansta_section_frontpage', 'type' => 'select', 'choices' => [ 'home-default' => __('Default', 'bansta'), 'home-grid2' => __('Grid-2', 'bansta'), 'home-card1' => __('Card-1', 'bansta'), ] ]); //blog sidebar $wp_customize->add_setting( 'blog_sidebar', [ 'default' => $bansta_defaults['blog_sidebar'], 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh', ]); $wp_customize->add_control( 'blog_sidebar', [ 'label' => __('Blog Sidebar', 'bansta'), 'section' => 'bansta_section_frontpage', 'settings' => 'blog_sidebar', 'type' => 'radio', 'choices' => [ 'left-sidebar' => __('Left Sidebar', 'bansta'), 'right-sidebar' => __('Right Sidebar', 'bansta'), 'no-sidebar' => __('No Sidebar', 'bansta'), ] ]); $wp_customize->add_setting( 'post_front_featured_image_size', [ 'default' => $bansta_defaults['post_front_featured_image_size'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_select' ] ); $wp_customize->add_control( 'post_front_featured_image_size', [ 'settings' => 'post_front_featured_image_size', 'label' => esc_html__('Post Thumbnail theme_mod', 'bansta'), 'section' => 'bansta_section_frontpage', 'type' => 'select', 'active_callback' => fn() => get_theme_mod('post_front_hide_show_featured_image', true), 'choices' => [ 'thumbnail' => esc_html__('Thumbnail', 'bansta'), 'medium' => esc_html__('Medium', 'bansta'), 'large' => esc_html__('Large', 'bansta'), 'full' => esc_html__('Full / Original', 'bansta'), ] ] ); $wp_customize->add_setting( 'post_snippet_excerpt_size', [ 'sanitize_callback' => 'absint', 'default' => $bansta_defaults['post_snippet_excerpt_size'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', ] ); $wp_customize->add_control( 'post_snippet_excerpt_size', [ 'settings' => 'post_snippet_excerpt_size', 'type' => 'text', 'section' => 'bansta_section_frontpage', 'label' => esc_html__('Excerpt Size', 'bansta'), 'active_callback' => fn() => get_theme_mod('show_hide_post_excerpt', true) ] ); $wp_customize->add_setting( 'post_front_hide_show_featured_image', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'post_front_hide_show_featured_image', [ 'settings' => 'post_front_hide_show_featured_image', 'label' => __( 'Hide/Show Featured Image', 'bansta' ), 'section' => 'bansta_section_frontpage', 'type' => 'toggle' ])); $wp_customize->add_setting( 'post_show_hide_categories', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'post_show_hide_categories', [ 'settings' => 'post_show_hide_categories', 'label' => __( 'Hide/Show Categories', 'bansta' ), 'section' => 'bansta_section_frontpage', 'type' => 'toggle' ])); $wp_customize->add_setting( 'post_show_hide_metas', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'post_show_hide_metas', [ 'settings' => 'post_show_hide_metas', 'label' => __( 'Hide/Show Metas', 'bansta' ), 'section' => 'bansta_section_frontpage', 'type' => 'toggle' ])); $wp_customize->add_setting( 'show_hide_post_excerpt', [ 'default' => true, 'sanitize_callback' => 'bansta_sanitize_checkbox', 'type' => 'theme_mod', 'capability' => 'edit_theme_options' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize, 'show_hide_excerpt', [ 'label' => __( 'Hide/Show Excerpt', 'bansta' ), 'settings' => 'show_hide_post_excerpt', 'section' => 'bansta_section_frontpage', 'type' => 'toggle', ])); $wp_customize->add_setting( 'show_hide_post_readmore', [ 'default' => true, 'sanitize_callback' => 'bansta_sanitize_checkbox', 'type' => 'theme_mod', 'capability' => 'edit_theme_options' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize, 'show_hide_post_readmore', [ 'label' => __( 'Hide/Show Readmore', 'bansta' ), 'settings' => 'show_hide_post_readmore', 'section' => 'bansta_section_frontpage', 'type' => 'toggle', ])); //Single Page Section $wp_customize->add_section( 'bansta_section_single_post', [ 'title' => __('Single Post', 'bansta'), 'panel' => 'my_panel', ]); $wp_customize->add_setting( 'bansta_single_option', [ 'default' => $bansta_defaults['bansta_single_option'], 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh' ]); $wp_customize->add_control( 'bansta_single_option', [ 'label' => __('Single Layout', 'bansta'), 'settings' => 'bansta_single_option', 'section' => 'bansta_section_single_post', 'type' => 'select', 'choices' => [ 'single-default' => __('Default', 'bansta'), 'single-card1' => __('Card-1', 'bansta'), ] ]); $wp_customize->add_setting( 'bansta_hero_boxed', [ 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_checkbox', 'transport' => 'refresh' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize, 'bansta_hero_boxed', [ 'label' => __( 'Strecth/boxed', 'bansta' ), 'settings' => 'bansta_hero_boxed', 'section' => 'bansta_section_single_post', 'type' => 'toggle', 'active_callback' => fn() => get_theme_mod('bansta_single_option') === 'single-modern-1' || get_theme_mod('bansta_single_option') === 'single-modern-2' ])); //single post sidebar $wp_customize->add_setting( 'single_post_sidebar', [ 'default' => $bansta_defaults['single_post_sidebar'], 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh' ]); $wp_customize->add_control( 'single_post_sidebar', [ 'label' => __('Single Sidebar', 'bansta'), 'section' => 'bansta_section_single_post', 'settings' => 'single_post_sidebar', 'type' => 'radio', 'choices' => [ 'left-sidebar' => __('Left Sidebar', 'bansta'), 'right-sidebar' => __('Right Sidebar', 'bansta'), 'no-sidebar' => __('No Sidebar', 'bansta'), ] ]); $wp_customize->add_setting( 'post_single_featured_image_size', [ 'default' => $bansta_defaults['post_single_featured_image_size'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_select' ] ); $wp_customize->add_control( 'post_single_featured_image_size', [ 'settings' => 'post_single_featured_image_size', 'label' => esc_html__('Post Thumbnail theme_mod', 'bansta'), 'section' => 'bansta_section_single_post', 'type' => 'select', 'active_callback' => fn() => get_theme_mod('single_post_hide_show_image', true), 'choices' => [ 'thumbnail' => esc_html__('Thumbnail', 'bansta'), 'medium' => esc_html__('Medium', 'bansta'), 'large' => esc_html__('Large', 'bansta'), 'full' => esc_html__('Full / Original', 'bansta'), ] ] ); $wp_customize->add_setting( 'single_post_hide_show_image', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'single_post_hide_show_image', [ 'settings' => 'single_post_hide_show_image', 'label' => __( 'Hide/Show Featured Image', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); $wp_customize->add_setting( 'single_post_hide_show_categories', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'single_post_hide_show_categories', [ 'settings' => 'single_post_hide_show_categories', 'label' => __( 'Hide/Show Categories', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); $wp_customize->add_setting( 'single_post_hide_show_metas', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'single_post_hide_show_metas', [ 'settings' => 'single_post_hide_show_metas', 'label' => __( 'Hide/Show Metas', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); $wp_customize->add_setting( 'show_hide_post_tags', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'show_hide_post_tags', [ 'settings' => 'show_hide_post_tags', 'label' => __( 'Hide/Show Tags', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); $wp_customize->add_setting( 'hide_show_social_icons', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'hide_show_social_icons', [ 'settings' => 'hide_show_social_icons', 'label' => __( 'Hide/Show Social Share', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); $wp_customize->add_setting( 'hide_show_next_prev_nav', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'hide_show_next_prev_nav', [ 'settings' => 'hide_show_next_prev_nav', 'label' => __( 'Hide/Show Single Navigation', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); $wp_customize->add_setting( 'show_hide_author_box', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'show_hide_author_box', [ 'settings' => 'show_hide_author_box', 'label' => __( 'Hide/Show Author', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); $wp_customize->add_setting( 'show_hide_related_articles', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'show_hide_related_articles', [ 'settings' => 'show_hide_related_articles', 'label' => __( 'Hide/Show Related Posts', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); $wp_customize->add_setting( 'show_hide_comment', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox', 'priority' => 10 ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'show_hide_comment', [ 'settings' => 'show_hide_comment', 'label' => __( 'Hide/Show Comment', 'bansta' ), 'section' => 'bansta_section_single_post', 'type' => 'toggle' ])); //Archive Page Section $wp_customize->add_section( 'bansta_section_archive', [ 'title' => __('Archive Page', 'bansta'), 'panel' => 'my_panel', ]); $wp_customize->add_setting( 'bansta_archive_page', [ 'default' => $bansta_defaults['bansta_archive_page'], 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh' ]); $wp_customize->add_control( 'bansta_archive_page', [ 'label' => __('Archive Layout', 'bansta'), 'settings' => 'bansta_archive_page', 'section' => 'bansta_section_archive', 'type' => 'select', 'choices' => [ 'home-default' => __('Default', 'bansta'), 'home-grid2' => __('Grid-2', 'bansta'), 'home-card1' => __('Card-1', 'bansta'), ] ]); //archive sidebar $wp_customize->add_setting( 'archive_sidebar', [ 'default' => 'right-sidebar', 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh' ]); $wp_customize->add_control( 'archive_sidebar', [ 'label' => __('Archive Sidebar', 'bansta'), 'section' => 'bansta_section_archive', 'settings' => 'archive_sidebar', 'type' => 'radio', 'choices' => [ 'left-sidebar' => __('Left Sidebar', 'bansta'), 'right-sidebar' => __('Right Sidebar', 'bansta'), 'no-sidebar' => __('No Sidebar', 'bansta'), ] ]); $wp_customize->add_setting( 'archive_front_featured_image_size', [ 'default' => $bansta_defaults['archive_front_featured_image_size'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_select' ] ); $wp_customize->add_control( 'archive_front_featured_image_size', [ 'settings' => 'archive_front_featured_image_size', 'label' => esc_html__('Post Thumbnail theme_mod', 'bansta'), 'section' => 'bansta_section_archive', 'type' => 'select', 'active_callback' => fn() => get_theme_mod('post_front_hide_show_featured_image', true), 'choices' => [ 'thumbnail' => esc_html__('Thumbnail', 'bansta'), 'medium' => esc_html__('Medium', 'bansta'), 'large' => esc_html__('Large', 'bansta'), 'full' => esc_html__('Full / Original', 'bansta'), ] ] ); $wp_customize->add_setting( 'archive_snippet_excerpt_size', [ 'sanitize_callback' => 'absint', 'default' => $bansta_defaults['archive_snippet_excerpt_size'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', ] ); $wp_customize->add_control( 'archive_snippet_excerpt_size', [ 'settings' => 'archive_snippet_excerpt_size', 'type' => 'text', 'section' => 'bansta_section_archive', 'label' => esc_html__('Excerpt Size', 'bansta'), 'active_callback' => fn() => get_theme_mod('show_hide_post_excerpt', true) ] ); $wp_customize->add_setting( 'archive_hide_show_featured_image', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'archive_hide_show_featured_image', [ 'settings' => 'archive_hide_show_featured_image', 'label' => __( 'Hide/Show Featured Image', 'bansta' ), 'section' => 'bansta_section_archive', 'type' => 'toggle' ])); $wp_customize->add_setting( 'archive_show_hide_categories', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'archive_show_hide_categories', [ 'settings' => 'archive_show_hide_categories', 'label' => __( 'Hide/Show Categories', 'bansta' ), 'section' => 'bansta_section_archive', 'type' => 'toggle' ])); $wp_customize->add_setting( 'archive_show_hide_metas', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'archive_show_hide_metas', [ 'settings' => 'archive_show_hide_metas', 'label' => __( 'Hide/Show Metas', 'bansta' ), 'section' => 'bansta_section_archive', 'type' => 'toggle' ])); $wp_customize->add_setting( 'show_hide_archive_excerpt', [ 'default' => true, 'sanitize_callback' => 'bansta_sanitize_checkbox', 'type' => 'theme_mod', 'capability' => 'edit_theme_options' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize, 'show_hide_archive_excerpt', [ 'label' => __( 'show_hide_archive_excerpt', 'bansta' ), 'settings' => 'show_hide_archive_excerpt', 'section' => 'bansta_section_archive', 'type' => 'toggle', ])); $wp_customize->add_setting( 'show_hide_archive_readmore', [ 'default' => true, 'sanitize_callback' => 'bansta_sanitize_checkbox', 'type' => 'theme_mod', 'capability' => 'edit_theme_options' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize, 'show_hide_archive_readmore', [ 'label' => __( 'Hide/Show Readmore', 'bansta' ), 'settings' => 'show_hide_archive_readmore', 'section' => 'bansta_section_archive', 'type' => 'toggle', ])); //Search Page Section $wp_customize->add_section( 'bansta_section_search', [ 'title' => __('Search Page', 'bansta'), 'panel' => 'my_panel', ]); $wp_customize->add_setting( 'bansta_search_page', [ 'default' => $bansta_defaults['bansta_search_page'], 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh' ]); $wp_customize->add_control( 'bansta_search_page', [ 'label' => __('Search Layout', 'bansta'), 'settings' => 'bansta_search_page', 'section' => 'bansta_section_search', 'type' => 'select', 'choices' => [ 'home-default' => __('Default', 'bansta'), 'home-grid2' => __('Grid-2', 'bansta'), 'home-card1' => __('Card-1', 'bansta'), ] ]); //search sidebar $wp_customize->add_setting( 'search_sidebar', [ 'default' => 'right-sidebar', 'capability' => 'edit_theme_options', 'type' => 'theme_mod', 'sanitize_callback' => 'bansta_sanitize_select', 'transport' => 'refresh' ]); $wp_customize->add_control( 'search_sidebar', [ 'label' => __('Archive Sidebar', 'bansta'), 'section' => 'bansta_section_search', 'settings' => 'search_sidebar', 'type' => 'radio', 'choices' => [ 'left-sidebar' => __('Left Sidebar', 'bansta'), 'right-sidebar' => __('Right Sidebar', 'bansta'), 'no-sidebar' => __('No Sidebar', 'bansta'), ] ]); $wp_customize->add_setting( 'search_front_featured_image_size', [ 'default' => $bansta_defaults['search_front_featured_image_size'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_select' ] ); $wp_customize->add_control( 'search_front_featured_image_size', [ 'settings' => 'search_front_featured_image_size', 'label' => esc_html__('Post Thumbnail theme_mod', 'bansta'), 'section' => 'bansta_section_search', 'type' => 'select', 'active_callback' => fn() => get_theme_mod('search_hide_show_featured_image', true), 'choices' => [ 'thumbnail' => esc_html__('Thumbnail', 'bansta'), 'medium' => esc_html__('Medium', 'bansta'), 'large' => esc_html__('Large', 'bansta'), 'full' => esc_html__('Full / Original', 'bansta'), ] ] ); $wp_customize->add_setting( 'search_snippet_excerpt_size', [ 'sanitize_callback' => 'absint', 'default' => $bansta_defaults['search_snippet_excerpt_size'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', ] ); $wp_customize->add_control( 'search_snippet_excerpt_size', [ 'settings' => 'search_snippet_excerpt_size', 'type' => 'text', 'section' => 'bansta_section_search', 'label' => esc_html__('Excerpt Size', 'bansta'), 'active_callback' => fn() => get_theme_mod('show_hide_post_excerpt', true) ] ); $wp_customize->add_setting( 'search_hide_show_featured_image', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'search_hide_show_featured_image', [ 'settings' => 'search_hide_show_featured_image', 'label' => __( 'Hide/Show Featured Image', 'bansta' ), 'section' => 'bansta_section_search', 'type' => 'toggle' ])); $wp_customize->add_setting( 'search_show_hide_categories', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'search_show_hide_categories', [ 'settings' => 'search_show_hide_categories', 'label' => __( 'Hide/Show Categories', 'bansta' ), 'section' => 'bansta_section_search', 'type' => 'toggle' ])); $wp_customize->add_setting( 'search_show_hide_metas', [ 'default' => true, 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bansta_sanitize_checkbox' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize,'search_show_hide_metas', [ 'settings' => 'search_show_hide_metas', 'label' => __( 'Hide/Show Metas', 'bansta' ), 'section' => 'bansta_section_search', 'type' => 'toggle' ])); $wp_customize->add_setting( 'show_hide_search_excerpt', [ 'default' => true, 'sanitize_callback' => 'bansta_sanitize_checkbox', 'type' => 'theme_mod', 'capability' => 'edit_theme_options' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize, 'show_hide_search_excerpt', [ 'label' => __( 'Hide/Show Excerpt', 'bansta' ), 'settings' => 'show_hide_search_excerpt', 'section' => 'bansta_section_search', 'type' => 'toggle', ])); $wp_customize->add_setting( 'show_hide_search_readmore', [ 'default' => true, 'sanitize_callback' => 'bansta_sanitize_checkbox', 'type' => 'theme_mod', 'capability' => 'edit_theme_options' ]); $wp_customize->add_control( new Ts_Toggle_Control( $wp_customize, 'show_hide_search_readmore', [ 'label' => __( 'Hide/Show Readmore', 'bansta' ), 'settings' => 'show_hide_search_readmore', 'section' => 'bansta_section_search', 'type' => 'toggle', ]));