<?php
/**
 * Post Theme Options
 *
 * @package the-corporate-business
 */
$wp_customize->add_section( 'the_corporate_business_post_section' , array(

	'title'      => esc_html__( 'Post Section', 'the-corporate-business' ),
	'capability' => 'edit_theme_options',
	'panel' => 'the_corporate_business_theme_section_panel'

	) );

// Post Options - Hide Date.
	$wp_customize->add_setting(
		'the_corporate_business_post_hide_date',
		array(
			'default'           => false,
			'sanitize_callback' => 'the_corporate_business_sanitize_switch',
		)
	);

	$wp_customize->add_control(
		new the_corporate_business_Toggle_Switch_Custom_Control(
			$wp_customize,
			'the_corporate_business_post_hide_date',
			array(
				'label'   => esc_html__( 'Hide Date', 'the-corporate-business' ),
				'section' => 'the_corporate_business_post_section',
			)
		)
	);

	// Post Options - Hide Author.
	$wp_customize->add_setting(
		'the_corporate_business_post_hide_author',
		array(
			'default'           => false,
			'sanitize_callback' => 'the_corporate_business_sanitize_switch',
		)
	);

	$wp_customize->add_control(
		new the_corporate_business_Toggle_Switch_Custom_Control(
			$wp_customize,
			'the_corporate_business_post_hide_author',
			array(
				'label'   => esc_html__( 'Hide Author', 'the-corporate-business' ),
				'section' => 'the_corporate_business_post_section',
			)
		)
	);

	// Post Options - Hide Time.
	$wp_customize->add_setting(
		'the_corporate_business_post_hide_time',
		array(
			'default'           => false,
			'sanitize_callback' => 'the_corporate_business_sanitize_switch',
		)
	);

	$wp_customize->add_control(
		new the_corporate_business_Toggle_Switch_Custom_Control(
			$wp_customize,
			'the_corporate_business_post_hide_time',
			array(
				'label'   => esc_html__( 'Hide Time', 'the-corporate-business' ),
				'section' => 'the_corporate_business_post_section',
			)
		)
	);

	// ////////// Title Color
$wp_customize->add_setting('post_title_color', array(
    'default'   => '#3c3c3c',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_title_color', array(
    'section' => 'the_corporate_business_post_section',
    'description' => __('Post Title Color', 'the-corporate-business'),
    )));

	// ////////// Text Color
$wp_customize->add_setting('post_text_color', array(
    'default'   => '#7a7979',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_text_color', array(
    'section' => 'the_corporate_business_post_section',
    'description' => __('Post Text Color', 'the-corporate-business'),
    )));

	// ////////// Date Color
$wp_customize->add_setting('post_date_color', array(
    'default'   => '#3c3c3c',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_date_color', array(
    'section' => 'the_corporate_business_post_section',
    'description' => __('Post Date Color', 'the-corporate-business'),
    )));

	// ////////// Author Name Color
$wp_customize->add_setting('post_authorname_color', array(
    'default'   => '#3c3c3c',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_authorname_color', array(
    'section' => 'the_corporate_business_post_section',
    'description' => __('Post Author Name Color', 'the-corporate-business'),
    )));

	// ////////// Author Name Color
$wp_customize->add_setting('post_comment_color', array(
    'default'   => '#3c3c3c',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_comment_color', array(
    'section' => 'the_corporate_business_post_section',
    'description' => __('Post Comment Text Color', 'the-corporate-business'),
    )));

	// ////////// Author Icon Color
$wp_customize->add_setting('post_author_icon_color', array(
    'default'   => '#1ccfcf',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_author_icon_color', array(
    'section' => 'the_corporate_business_post_section',
    'description' => __('Post Author Icon Color', 'the-corporate-business'),
    )));


	// ////////// ReadMore Color
$wp_customize->add_setting('post_readmore_color', array(
    'default'   => '#3c3c3c',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'post_readmore_color', array(
    'section' => 'the_corporate_business_post_section',
    'description' => __('Post Read More Text Color', 'the-corporate-business'),
    )));
