add_section( 'post_section', array( 'title' => esc_html__( 'Post Settings', 'neblue' ), 'priority' => 28, ) ); // Sidebar $wp_customize->add_setting( 'post_sidebar', array( 'default' => 'right', 'sanitize_callback' => 'vs_sanitize_sidebar', ) ); $wp_customize->add_control( 'post_sidebar', array( 'label' => esc_html__( 'Sidebar', 'neblue' ), 'section' => 'post_section', 'type' => 'radio', 'choices' => array( 'right' => esc_html__( 'Right Sidebar', 'neblue' ), 'left' => esc_html__( 'Left Sidebar', 'neblue' ), 'disabled' => esc_html__( 'No Sidebar', 'neblue' ), ), ) ); // Show "About the author" block (single post page) $wp_customize->add_setting( 'single_show_about_author', array( 'default' => 0, 'sanitize_callback' => 'vs_sanitize_checkbox', ) ); $wp_customize->add_control( 'single_show_about_author', array( 'label' => esc_html__( 'Show "About the author" block (single post page)', 'neblue' ), 'section' => 'post_section', 'type' => 'checkbox', ) ); // Show post navigation (single post page) $wp_customize->add_setting( 'single_show_post_nav', array( 'default' => 1, 'sanitize_callback' => 'vs_sanitize_checkbox', ) ); $wp_customize->add_control( 'single_show_post_nav', array( 'label' => esc_html__( 'Show post navigation (single post page)', 'neblue' ), 'section' => 'post_section', 'type' => 'checkbox', ) ); // Heading $wp_customize->add_setting( 'post_heading_post_meta', array( 'sanitize_callback' => 'esc_html', ) ); $wp_customize->add_control( new vs_customize_control_heading( $wp_customize, 'post_heading_post_meta', array( 'label' => esc_html__( 'Post Meta', 'neblue' ), 'section' => 'post_section', ) ) ); // Display Date $wp_customize->add_setting( 'post_date', array( 'default' => 1, 'sanitize_callback' => 'vs_sanitize_checkbox', ) ); $wp_customize->add_control( 'post_date', array( 'label' => esc_html__( 'Display Date', 'neblue' ), 'section' => 'post_section', 'type' => 'checkbox', ) ); // Display Categorys $wp_customize->add_setting( 'post_categorys', array( 'default' => 1, 'sanitize_callback' => 'vs_sanitize_checkbox', ) ); $wp_customize->add_control( 'post_categorys', array( 'label' => esc_html__( 'Display Categorys', 'neblue' ), 'section' => 'post_section', 'type' => 'checkbox', ) ); // Display Comments $wp_customize->add_setting( 'post_comments', array( 'default' => 1, 'sanitize_callback' => 'vs_sanitize_checkbox', ) ); $wp_customize->add_control( 'post_comments', array( 'label' => esc_html__( 'Display Comments', 'neblue' ), 'section' => 'post_section', 'type' => 'checkbox', ) ); // Display Tags $wp_customize->add_setting( 'post_tags', array( 'default' => 1, 'sanitize_callback' => 'vs_sanitize_checkbox', ) ); $wp_customize->add_control( 'post_tags', array( 'label' => esc_html__( 'Display Tags', 'neblue' ), 'section' => 'post_section', 'type' => 'checkbox', ) );