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

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

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


	class pawfect_Customize_Theme_Template_Option extends pawfect_Customize_Base_Option
	{

		public function elements()
		{

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

				//Contact Form Heading.
				'pawfect_template_contact_form_heading' => array(
					'setting' => array(),
					'control' => array(
						'type' => 'heading',
						'priority' => 1,
						'label' => esc_html__('Contact Form Settings', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				//Contact Form Enable Disable.
				'pawfect_template_contact_form_disable' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 5,
						'label' => esc_html__('Enable Contact Form', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				/**
				 * Page Header Settings
				 */

				//Page Header Heading.
				'pawfect_page_header_heading' => array(
					'setting' => array(),
					'control' => array(
						'type' => 'heading',
						'priority' => 10,
						'label' => esc_html__('Page Header Settings', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				//Page Header Breadcrumbs Enable Disable.
				'pawfect_page_header_breadcrumbs' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 11,
						'label' => esc_html__('Show Breadcrumbs', 'pawfect'),
						'description' => esc_html__('Display breadcrumb navigation in page headers', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				//Social Icon Enable Disable.
				'pawfect_template_contact_icon_disable' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 6,
						'label' => esc_html__('Enable Social Icon', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
						'active_callback' => [
							[$this, 'is_control_value_active'],
							'pawfect_template_contact_form_disable',
							true
						],
					),
				),


				// Google Map.
				'pawfect_template_contact_form_map_heading' => array(
					'setting' => array(),
					'control' => array(
						'type' => 'heading',
						'priority' => 15,
						'label' => esc_html__('Contact Form Map', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				// Google Map Enable.
				'pawfect_template_contact_form_map_disable' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 20,
						'label' => esc_html__('Enable Google Map', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				// Contact Form Info.
				'pawfect_template_contact_form_info_heading' => array(
					'setting' => array(),
					'control' => array(
						'type' => 'heading',
						'priority' => 25,
						'label' => esc_html__('Contact Form Info', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				// Contact Form Info Enable.
				'pawfect_template_contact_form_info_disable' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 26,
						'label' => esc_html__('Enable Form Info', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),


				// Extra Sections.
				'pawfect_template_contact_form_extra_heading' => array(
					'setting' => array(),
					'control' => array(
						'type' => 'heading',
						'priority' => 30,
						'label' => esc_html__('Extra Sections', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				// Callout Enable Disable.
				'pawfect_template_contact_callout_disable' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 35,
						'label' => esc_html__('Enable Contact Callout', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),

				// Client Enable Disable.
				'pawfect_template_contact_client_disable' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 40,
						'label' => esc_html__('Enable Contact Client', 'pawfect'),
						'section' => 'pawfect_theme_contact_page',
					),
				),



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

				// Service Funfact Enable Disable.
				'pawfect_template_service_callout_disable' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 10,
						'label' => esc_html__('Enable Callout Section', 'pawfect'),
						'section' => 'service_template_settings',
					),
				),

				// Service Sponsors Disable.
				'pawfect_template_service_sponsors_disable' => array(
					'setting' => array(
						'default' => true,
						'sanitize_callback' => array('pawfect_Customizer_Sanitize', 'sanitize_checkbox'),
					),
					'control' => array(
						'type' => 'toggle',
						'priority' => 25,
						'label' => esc_html__('Enable Sponsors Section', 'pawfect'),
						'section' => 'service_template_settings',
					),
				),

			);
		}
	}

	// Remove automatic instantiation - let main customizer class handle this
	// new pawfect_Customize_Theme_Template_Option();

endif;