<?php

// post section
$wp_customize->add_section(
	'vastnews_post_options',array(
    	'title' => esc_html__( 'Post Options', 'vastnews' ),
    	'panel'=>'vastnews_theme_options',
    )
);

// category setting
$wp_customize->add_setting(
    'vastnews_display_category',array(
        'default'           => true,
        'sanitize_callback' => 'vastnews_sanitize_checkbox',
    )
);

$wp_customize->add_control( 
    'vastnews_display_category', array(
        'label'    => esc_html__( 'Display category of post', 'vastnews' ),
        'section'  => 'vastnews_post_options',
        'settings' => 'vastnews_display_category',
        'type'     => 'checkbox',
   
) );



// date setting
$wp_customize->add_setting(
    'vastnews_display_date',array(
        'default'           => true,
        'sanitize_callback' => 'vastnews_sanitize_checkbox',
    )
);

$wp_customize->add_control( 
    'vastnews_display_date', array(
        'label'  => esc_html__( 'Display date of post', 'vastnews' ),
        'section' => 'vastnews_post_options',
        'settings' => 'vastnews_display_date',
        'type'     => 'checkbox',
   
) );


// author setting
$wp_customize->add_setting(
    'vastnews_display_author',array(
        'default'           => true,
        'sanitize_callback' => 'vastnews_sanitize_checkbox',
    )
);

$wp_customize->add_control( 
    'vastnews_display_author', array(
        'label'  => esc_html__( 'Display author of post', 'vastnews' ),
        'section' => 'vastnews_post_options',
        'settings' => 'vastnews_display_author',
        'type'     => 'checkbox',
) );


// tag setting
$wp_customize->add_setting(
    'vastnews_display_tag',array(
        'default'           => true,
        'sanitize_callback' => 'vastnews_sanitize_checkbox',
    )
);

$wp_customize->add_control( 
    'vastnews_display_tagr', array(
        'label'  => esc_html__( 'Display tag of post', 'vastnews' ),
        'section' => 'vastnews_post_options',
        'settings' => 'vastnews_display_tag',
        'type'     => 'checkbox',
   
) );