<?php
/**
 * Zenvy Theme Customizer Blog Sidebar settings
 *
 * @package Zenvy
 */

/**
 * Class Zenvy_Customize_Blog_Sidebar_Fields
 *
 * Handles customizer blog sidebar layout fields for the Zenvy theme.
 */
class Zenvy_Customize_Blog_Sidebar_Fields extends Zenvy_Customize_Base_Field {

	/**
	 * Arguments for fields.
	 *
	 * @return void
	 */
	public function init() {
		$this->args = [
			// Sidebar.
			'zenvy_blog_sidebar_layout' => [
				'type'              => 'radio_image',
				'default'           => 'right',
				'sanitize_callback' => [ 'Zenvy_Customizer_Sanitize_Callback', 'sanitize_choices' ],
				'label'             => esc_html__( 'Sidebar', 'zenvy' ),
				'description'       => esc_html__( 'Choose Sidebar Layout for blog/archive pages.', 'zenvy' ),
				'section'           => 'zenvy_blog_sidebar_section',
				'priority'          => 15,
				'choices'           => [
					'left'  => ZENVY_THEME_URI . 'assets/build/images/left.png',
					'right' => ZENVY_THEME_URI . 'assets/build/images/right.png',
					'none'  => ZENVY_THEME_URI . 'assets/build/images/none.png',
				],
				'l10n'              => [
					'left'  => esc_html__( 'Left', 'zenvy' ),
					'right' => esc_html__( 'Right', 'zenvy' ),
					'none'  => esc_html__( 'None', 'zenvy' ),
				],
			],
		];
	}
}
new Zenvy_Customize_Blog_Sidebar_Fields();
