<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * Frontpage Blog.
 *
 * @package leatherhouse
 */

defined( 'ABSPATH' ) || exit;

if ( ! class_exists( 'leatherhouse_Customize_Homepage_Template_Option' ) ) :

	class leatherhouse_Customize_Homepage_Template_Option extends leatherhouse_Customize_Base_Option {

		/**
		 * Arguments for options.
		 *
		 * @return array
		 */
		public function elements() {

			return array(

				'leatherhouse_homepage_template_heading'     => array(
					'setting' => array(),
					'control' => array(
						'type'		=> 'heading',
						'priority'	=> 1,
						'label'		=> esc_html__( 'Homepage Template', 'leather-house' ),
						'section'	=> 'leatherhouse_theme_homepage',
					),
				),
				
				'leatherhouse_homepage_template_design'		=> array(
					'setting'		=> array(
						'default'	=> 'leatherhouse_homepage_template_1',
						'sanitize_callback'	=> array( 'leatherhouse_Customizer_Sanitize', 'sanitize_radio' ),
					),
					'control' => array(
						'type'		=> 'radio_image',
						'priority'	=> 35,
						'label'		=> esc_html__( 'Homepage Design', 'leather-house' ),
						'section'	=> 'leatherhouse_theme_homepage',
						'choices'	=> array(
							'leatherhouse_homepage_template_1'	=> get_template_directory() . '/assets/images/homepage-template-1.png',
							'leatherhouse_homepage_template_2'	=> get_template_directory() . '/assets/images/homepage-template-2.png',
						),
					),
				),
				
			);
		}
	}

	new leatherhouse_Customize_Homepage_Template_Option();

endif;
