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

// Add archive section
$wp_customize->add_section( 'power_news_archive_section', array(
	'title'             => esc_html__( 'Blog/Archive','power-news' ),
	'description'       => esc_html__( 'Archive section options.', 'power-news' ),
	'panel'             => 'power_news_theme_options_panel',
) );

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

$wp_customize->add_control( new Power_News_Switch_Control( $wp_customize, 'power_news_theme_options[hide_banner]', array(
	'label'             => esc_html__( 'Hide Banner', 'power-news' ),
	'section'           => 'power_news_archive_section',
	'on_off_label' 		=> power_news_hide_options(),
) ) );

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

$wp_customize->add_control( new Power_News_Switch_Control( $wp_customize, 'power_news_theme_options[hide_date]', array(
	'label'             => esc_html__( 'Hide Date', 'power-news' ),
	'section'           => 'power_news_archive_section',
	'on_off_label' 		=> power_news_hide_options(),
) ) );