<?php
/**
 * Archive Layout
 *
 * @package Frontier News
 */

$wp_customize->add_section(
	'frontier_news_archive_layout',
	array(
		'title' => esc_html__( 'Archive Layout', 'frontier-news' ),
		'panel' => 'frontier_news_theme_options',
	)
);

// Archive Layout - Grid Style.
$wp_customize->add_setting(
	'frontier_news_archive_grid_style',
	array(
		'default'           => 'grid-column-2',
		'sanitize_callback' => 'frontier_news_sanitize_select',
	)
);

$wp_customize->add_control(
	'frontier_news_archive_grid_style',
	array(
		'label'   => esc_html__( 'Grid Style', 'frontier-news' ),
		'section' => 'frontier_news_archive_layout',
		'type'    => 'select',
		'choices' => array(
			'grid-column-2' => __( 'Column 2', 'frontier-news' ),
			'grid-column-3' => __( 'Column 3', 'frontier-news' ),
		),
	)
);
