<?php
/**
 * Archive Layout
 *
 * @package Prime Mag
 */

$wp_customize->add_section(
	'prime_mag_archive_layout',
	array(
		'title' => esc_html__( 'Archive Layout', 'prime-mag' ),
		'panel' => 'prime_mag_theme_options',
	)
);

// Archive Layout - Column Layout.
$wp_customize->add_setting(
	'prime_mag_archive_column_layout',
	array(
		'default'           => 'column-2',
		'sanitize_callback' => 'prime_mag_sanitize_select',
	)
);

$wp_customize->add_control(
	'prime_mag_archive_column_layout',
	array(
		'label'   => esc_html__( 'Column Layout', 'prime-mag' ),
		'section' => 'prime_mag_archive_layout',
		'type'    => 'select',
		'choices' => array(
			'column-2' => __( 'Column 2', 'prime-mag' ),
			'column-3' => __( 'Column 3', 'prime-mag' ),
		),
	)
);
