<?php
/**
 * Template.
 *
 * @package     leatherhouse
 */

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

/*========================================== Template ==========================================*/
if ( ! class_exists( 'leatherhouse_Customize_Theme_Template_Option' ) ) :


	class leatherhouse_Customize_Theme_Template_Option extends leatherhouse_Customize_Base_Option {

		public function elements() {

			return array(
				/**
				* Theme contact form
				*/

					// Contact Form Heading.
					'leatherhouse_template_contact_form_heading'  => array(
						'setting' => array(),
						'control' => array(
							'type'     => 'parent_heading',
							'priority' => 1,
							'label'    => esc_html__( 'Contact Form Settings', 'leather-house' ),
							'section'  => 'leatherhouse_theme_contact_page',
						),
					),

				// Contact Form Enable Disable.
				'leatherhouse_template_contact_form_disable'      => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 5,
						'label'    => esc_html__( 'Enable Contact Form', 'leather-house' ),
						'section'  => 'leatherhouse_theme_contact_page',
					),
				),

				// Social Icon Enable Disable.
				'leatherhouse_template_contact_icon_disable'      => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'            => 'toggle',
						'priority'        => 6,
						'label'           => esc_html__( 'Enable Social Icon', 'leather-house' ),
						'section'         => 'leatherhouse_theme_contact_page',
						'active_callback' => 'contact_form_callback', // Callback location contact-us-template.php
					),
				),

				// Google Map.
				'leatherhouse_template_contact_form_map_heading'  => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 15,
						'label'    => esc_html__( 'Contact Form Map', 'leather-house' ),
						'section'  => 'leatherhouse_theme_contact_page',
					),
				),

				// Google Map Enable.
				'leatherhouse_template_contact_form_map_disable'  => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 20,
						'label'    => esc_html__( 'Enable Google Map', 'leather-house' ),
						'section'  => 'leatherhouse_theme_contact_page',
					),
				),

				// Contact Form Info.
				'leatherhouse_template_contact_form_info_heading' => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 25,
						'label'    => esc_html__( 'Contact Form Info', 'leather-house' ),
						'section'  => 'leatherhouse_theme_contact_page',
					),
				),

				// Contact Form Info Enable.
				'leatherhouse_template_contact_form_info_disable' => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 26,
						'label'    => esc_html__( 'Enable Form Info', 'leather-house' ),
						'section'  => 'leatherhouse_theme_contact_page',
					),
				),

				// Extra Sections.
				'leatherhouse_template_contact_form_extra_heading' => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 30,
						'label'    => esc_html__( 'Extra Sections', 'leather-house' ),
						'section'  => 'leatherhouse_theme_contact_page',
					),
				),

				// Callout Enable Disable.
				'leatherhouse_template_contact_callout_disable'   => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 35,
						'label'    => esc_html__( 'Enable Contact Callout', 'leather-house' ),
						'section'  => 'leatherhouse_theme_contact_page',
					),
				),

				// Client Enable Disable.
				'leatherhouse_template_contact_client_disable'    => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 40,
						'label'    => esc_html__( 'Enable Contact Client', 'leather-house' ),
						'section'  => 'leatherhouse_theme_contact_page',
					),
				),

				/**
				* Theme About Us
				*/
					// About US Heading.
					'leatherhouse_template_about_us_heading'      => array(
						'setting' => array(),
						'control' => array(
							'type'     => 'heading',
							'priority' => 1,
							'label'    => esc_html__( 'About Us Settings', 'leather-house' ),
							'section'  => 'about_section_settings',
						),
					),

				// Funfact Enable Disable.
				'leatherhouse_template_about_us_funfact_disable'  => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 10,
						'label'    => esc_html__( 'Enable Funfact Section', 'leather-house' ),
						'section'  => 'about_section_settings',
					),
				),

				// Testimonial Disable.
				'leatherhouse_template_about_us_testimonial_disable' => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 15,
						'label'    => esc_html__( 'Enable Testimonial Section', 'leather-house' ),
						'section'  => 'about_section_settings',
					),
				),

				// Testimonial Disable.
				'leatherhouse_template_about_us_client_disable' => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 25,
						'label'    => esc_html__( 'Enable client Section', 'leather-house' ),
						'section'  => 'about_section_settings',
					),
				),

				// Funfact Disable.
				'leatherhouse_template_about_us_team_disable'     => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 35,
						'label'    => esc_html__( 'Enable Team Section', 'leather-house' ),
						'section'  => 'about_section_settings',
					),
				),

				/**
				* Theme Service Template
				*/
					// Service Heading.
					'leatherhouse_template_service_heading'       => array(
						'setting' => array(),
						'control' => array(
							'type'     => 'heading',
							'priority' => 1,
							'label'    => esc_html__( 'Service Settings', 'leather-house' ),
							'section'  => 'service_template_settings',
						),
					),

				// Service Funfact Enable Disable.
				'leatherhouse_template_service_callout_disable'   => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 10,
						'label'    => esc_html__( 'Enable Callout Section', 'leather-house' ),
						'section'  => 'service_template_settings',
					),
				),

				// Service client Disable.
				'leatherhouse_template_service_client_disable'  => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 25,
						'label'    => esc_html__( 'Enable client Section', 'leather-house' ),
						'section'  => 'service_template_settings',
					),
				),

			);
		}
	}

	new leatherhouse_Customize_Theme_Template_Option();

endif;
