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

// Add archive section
$wp_customize->add_section( 'raise_charity_pro_archive_section', array(
	'title'             => esc_html__( 'Blog/Archive','raise-charity-pro' ),
	'description'       => esc_html__( 'Archive section options.', 'raise-charity-pro' ),
	'panel'             => 'raise_charity_pro_theme_options_panel',
) );

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

$wp_customize->add_control( new Raise_Charity_Pro_Switch_Control( $wp_customize, 'raise_charity_pro_theme_options[hide_banner]', array(
	'label'             => esc_html__( 'Hide Banner', 'raise-charity-pro' ),
	'section'           => 'raise_charity_pro_archive_section',
	'on_off_label' 		=> raise_charity_pro_hide_options(),
) ) );


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

$wp_customize->add_control( new Raise_Charity_Pro_Switch_Control( $wp_customize, 'raise_charity_pro_theme_options[hide_date]', array(
	'label'             => esc_html__( 'Hide Date', 'raise-charity-pro' ),
	'section'           => 'raise_charity_pro_archive_section',
	'on_off_label' 		=> raise_charity_pro_hide_options(),
) ) );

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

$wp_customize->add_control( 'raise_charity_pro_theme_options[blog_page_column]', array(
	'label'             => esc_html__( 'Column Layout', 'raise-charity-pro' ),
	'section'           => 'raise_charity_pro_archive_section',
	'type'				=> 'select',
	'choices'			=> array( 
		'col-2'		=> esc_html__( 'Two Column', 'raise-charity-pro' ),
		'col-3'		=> esc_html__( 'Three Column', 'raise-charity-pro' ),
	),
) );

// Blog btn label setting and control
$wp_customize->add_setting( 'raise_charity_pro_theme_options[blog_page_post_btn]', array(
	'sanitize_callback' => 'sanitize_text_field',
	'default'			=> $options['blog_page_post_btn'],
) );

$wp_customize->add_control( 'raise_charity_pro_theme_options[blog_page_post_btn]', array(
	'label'           	=> esc_html__( 'Blog Post Button', 'raise-charity-pro' ),
	'section'        	=> 'raise_charity_pro_archive_section',
	'type'				=> 'text',
) );


