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

$wp_customize->add_section(
	'mindful_blog_archive_layout',
	array(
		'title' => esc_html__( 'Archive Layout', 'mindful-blog' ),
		'panel' => 'mindful_blog_theme_options',
	)
);

// Archive Layout - Column Layout.
$wp_customize->add_setting(
	'mindful_blog_archive_column_layout',
	array(
		'default'           => 'column-3',
		'sanitize_callback' => 'mindful_blog_sanitize_select',
	)
);

$wp_customize->add_control(
	'mindful_blog_archive_column_layout',
	array(
		'label'   => esc_html__( 'Select Column Layout', 'mindful-blog' ),
		'section' => 'mindful_blog_archive_layout',
		'type'    => 'select',
		'choices' => array(
			'column-2' => __( 'Column 2', 'mindful-blog' ),
			'column-3' => __( 'Column 3', 'mindful-blog' ),
		),
	)
);
