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

$wp_customize->add_section(
	'claritymag_news_archive_layout',
	array(
		'title' => esc_html__( 'Archive Layout', 'claritymag-news' ),
		'panel' => 'claritymag_news_theme_options',
	)
);

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

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