<?php
/**
 * Archive Layout
 *
 * @package Newsbreeze
 */

$wp_customize->add_section(
	'newsbreeze_archive_layout',
	array(
		'title' => esc_html__( 'Archive Layout', 'newsbreeze' ),
		'panel' => 'newsbreeze_theme_options',
	)
);

// Archive Layout - Grid Style.
$wp_customize->add_setting(
	'newsbreeze_archive_grid_style',
	array(
		'default'           => 'grid-column-3',
		'sanitize_callback' => 'newsbreeze_sanitize_select',
	)
);

$wp_customize->add_control(
	'newsbreeze_archive_grid_style',
	array(
		'label'   => esc_html__( 'Grid Style', 'newsbreeze' ),
		'section' => 'newsbreeze_archive_layout',
		'type'    => 'select',
		'choices' => array(
			'grid-column-2' => __( 'Column 2', 'newsbreeze' ),
			'grid-column-3' => __( 'Column 3', 'newsbreeze' ),
		),
	)
);
