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

$wp_customize->add_section(
	'rhythm_blog_archive_layout',
	array(
		'title' => esc_html__( 'Archive Layout', 'rhythm-blog' ),
		'panel' => 'rhythm_blog_theme_options',
	)
);

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

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