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

// Add archive section
$wp_customize->add_section( 'photoistic_archive_section', array(
	'title'             => esc_html__( 'Blog/Archive','photoistic' ),
	'description'       => esc_html__( 'Archive section options.', 'photoistic' ),
	'panel'             => 'photoistic_theme_options_panel',
) );

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

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

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

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

// features content type control and setting
$wp_customize->add_setting( 'photoistic_theme_options[blog_page_column]', array(
	'default'          	=> $options['blog_page_column'],
	'sanitize_callback' => 'photoistic_sanitize_select',
) );

$wp_customize->add_control( 'photoistic_theme_options[blog_page_column]', array(
	'label'             => esc_html__( 'Column Layout', 'photoistic' ),
	'section'           => 'photoistic_archive_section',
	'type'				=> 'select',
	'choices'			=> array( 
		'col-2'		=> esc_html__( 'Two Column', 'photoistic' ),
		'col-3'		=> esc_html__( 'Three Column', 'photoistic' ),
		'col-4'		=> esc_html__( 'Four Column', 'photoistic' ),
	),
) );