<?php
/**
 * contact_template Settings.
 *
 * @package leatherhouse
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

/**
* contact template Settings.
*/

if ( ! class_exists( 'leatherhouse_Customize_Contact_Template_Option' ) ) :

	class leatherhouse_Customize_Contact_Template_Option extends leatherhouse_Customize_Base_Option {

		public function elements() {

			return array(

				'leatherhouse_contact_template_heading'      => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'parent_heading',
						'priority' => 1,
						'label'    => esc_html__( 'Contact Template Settings', 'leather-house' ),
						'section'  => 'leatherhouse_template_contact_us',
					),
				),

				// container.
				'leatherhouse_contact_container_size'   => array(
					'setting' => array(
						'default'           => 'container-full',
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_radio' ),
					),
					'control' => array(
						'type'            => 'radio',
						'priority'        => 15,
						'is_default_type' => true,
						'label'           => esc_html__( 'Section Width', 'leather-house' ),
						'section'         => 'leatherhouse_template_contact_us',
						'choices'         => array(
							'av-container'   => esc_html__( 'Container', 'leather-house' ),
							'container-full' => esc_html__( 'Container Full', 'leather-house' ),
						),
					),
				),
			);
		}
	}

	new leatherhouse_Customize_Contact_Template_Option();

endif;
