<?php
/**
 * Archive Layout
 *
 * @package Minimalistic Blog
 */

$wp_customize->add_section(
	'minimalistic_blog_archive_layout',
	array(
		'title' => esc_html__( 'Archive Layout', 'minimalistic-blog' ),
		'panel' => 'minimalistic_blog_theme_options',
	)
);

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

$wp_customize->add_control(
	'minimalistic_blog_column_layout',
	array(
		'label'   => esc_html__( 'Column Layout', 'minimalistic-blog' ),
		'section' => 'minimalistic_blog_archive_layout',
		'type'    => 'select',
		'choices' => array(
			'column-2' => __( 'Column 2', 'minimalistic-blog' ),
			'column-3' => __( 'Column 3', 'minimalistic-blog' ),
		),
	)
);
