<?php
/**
 * Excerpt options
 *
 * @package Theme Palace
 * @subpackage Photoistic
 * @since Photoistic 1.0.0
 */

// Add excerpt section
$wp_customize->add_section( 'photoistic_single_post_section', array(
	'title'             => esc_html__( 'Single Post','photoistic' ),
	'description'       => esc_html__( 'Options to change the single posts globally.', 'photoistic' ),
	'panel'             => 'photoistic_theme_options_panel',
) );

$wp_customize->add_setting( 'photoistic_theme_options[single_post_hide_banner]', array(
	'default'           => $options['single_post_hide_banner'],
	'sanitize_callback' => 'photoistic_sanitize_switch_control',
) );

$wp_customize->add_control( new Photoistic_Switch_Control( $wp_customize, 'photoistic_theme_options[single_post_hide_banner]', array(
	'label'             => esc_html__( 'Hide Banner', 'photoistic' ),
	'section'           => 'photoistic_single_post_section',
	'on_off_label' 		=> photoistic_hide_options(),
) ) );

// Tourableve date meta setting and control.
$wp_customize->add_setting( 'photoistic_theme_options[single_post_hide_date]', array(
	'default'           => $options['single_post_hide_date'],
	'sanitize_callback' => 'photoistic_sanitize_switch_control',
) );

$wp_customize->add_control( new Photoistic_Switch_Control( $wp_customize, 'photoistic_theme_options[single_post_hide_date]', array(
	'label'             => esc_html__( 'Hide Date', 'photoistic' ),
	'section'           => 'photoistic_single_post_section',
	'on_off_label' 		=> photoistic_hide_options(),
) ) );