add_section('borno_blog', array( 'title' => __('Blog', 'borno'), 'panel' => 'borno_homepage', 'priority' => 2, )); $wp_customize->add_setting('borno_show_blog_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => function ($input) { return ((isset($input) && true == $input) ? true : false); } )); $wp_customize->add_control('borno_show_blog_ctrl', array( 'label' => __('Show Blog Section', 'borno'), 'section' => 'borno_blog', 'settings' => 'borno_show_blog_settings', 'type' => 'checkbox' )); $wp_customize->add_setting('borno_show_blog_sidebar_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => function ($input) { return ((isset($input) && true == $input) ? true : false); } )); $wp_customize->add_control('borno_show_blog_sidebar_ctrl', array( 'label' => __('Show Blog Page Sidebar', 'borno'), 'section' => 'borno_blog', 'settings' => 'borno_show_blog_sidebar_settings', 'type' => 'checkbox' )); $wp_customize->add_setting('borno_show_blog_single_sidebar_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => function ($input) { return ((isset($input) && true == $input) ? true : false); } )); $wp_customize->add_control('borno_show_blog_single_sidebar_ctrl', array( 'label' => __('Show Blog Single Page Sidebar', 'borno'), 'section' => 'borno_blog', 'settings' => 'borno_show_blog_single_sidebar_settings', 'type' => 'checkbox' )); $wp_customize->add_setting('borno_blog_subheading_settings', array( 'default' => __('Discover Your Perfect', 'borno'), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_blog_subheading_ctrl', array( 'label' => __('Sub Heading', 'borno'), 'section' => 'borno_blog', 'settings' => 'borno_blog_subheading_settings', 'type' => 'text' )); $wp_customize->add_setting('borno_blog_heading_settings', array( 'default' => __('Latest News', 'borno'), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_blog_heading_ctrl', array( 'label' => __('Heading', 'borno'), 'section' => 'borno_blog', 'settings' => 'borno_blog_heading_settings', 'type' => 'text' ));