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

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

/*========================================== TYPOGRAPHY ==========================================*/
if ( ! class_exists( 'leatherhouse_Customize_Theme_Typography_Option' ) ) :

	/**
	 * Theme Typography option.
	 */
	class leatherhouse_Customize_Theme_Typography_Option extends leatherhouse_Customize_Base_Option {

		public function elements() {

			return array(

				// Hedaer Typo Heading
				'leatherhouse_typography_header_heading'         => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 1,
						'label'    => esc_html__( 'Enable Header/Menu Typography', 'leather-house' ),
						'section'  => 'leatherhouse_header_typography',
					),
				),
				// Hedaer Typo Enable Disable
				'leatherhouse_typography_header_disable'         => array(
					'setting' => array(
						'default'           => false,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 2,
						'label'    => esc_html__( 'Enable Header Typography', 'leather-house' ),
						'section'  => 'leatherhouse_header_typography',
					),
				),

				// Slider Typo Heading
				'leatherhouse_typography_slider_heading'         => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 1,
						'label'    => esc_html__( 'Enable Slider Typography', 'leather-house' ),
						'section'  => 'leatherhouse_slider_typography',
					),
				),
				// Slider Typo Enable Disable
				'leatherhouse_typography_slider_disable'         => array(
					'setting' => array(
						'default'           => false,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 2,
						'label'    => esc_html__( 'Enable Slider Typography', 'leather-house' ),
						'section'  => 'leatherhouse_slider_typography',
					),
				),

				// Slider Typo Heading
				'leatherhouse_typography_homepage_heading'       => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 1,
						'label'    => esc_html__( 'Enable Homepage Typography', 'leather-house' ),
						'section'  => 'leatherhouse_homepage_typography',
					),
				),
				// Homepage Typo Enable Disable
				'leatherhouse_typography_homepage_disable'       => array(
					'setting' => array(
						'default'           => false,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 2,
						'label'    => esc_html__( 'Enable Homepage Typography', 'leather-house' ),
						'section'  => 'leatherhouse_homepage_typography',
					),
				),

				// Slider Typo Heading
				'leatherhouse_typography_headings_heading'       => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 1,
						'label'    => esc_html__( 'Enable Headings Typography', 'leather-house' ),
						'section'  => 'leatherhouse_headings_typography',
					),
				),
				// Heading Typo Enable Disable
				'leatherhouse_typography_heading_disable'        => array(
					'setting' => array(
						'default'           => false,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 2,
						'label'    => esc_html__( 'Enable Headings Typography', 'leather-house' ),
						'section'  => 'leatherhouse_headings_typography',
					),
				),

				// Blog Archive Typo Heading
				'leatherhouse_typography_blog_archive_heading'   => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 1,
						'label'    => esc_html__( 'Enable Blog/Archive/Single Typography', 'leather-house' ),
						'section'  => 'leatherhouse_blog_archive_typography',
					),
				),
				// Blog Typo Enable Disable
				'leatherhouse_typography_blog_archive_disable'   => array(
					'setting' => array(
						'default'           => false,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 2,
						'label'    => esc_html__( 'Enable Blog/Archive Typography', 'leather-house' ),
						'section'  => 'leatherhouse_blog_archive_typography',
					),
				),

				// Sidebar Typo Heading
				'leatherhouse_typography_sidebar_heading'        => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 1,
						'label'    => esc_html__( 'Enable Sidebar Typography', 'leather-house' ),
						'section'  => 'leatherhouse_sidebar_widget_typography',
					),
				),
				// Sidebar Typo Enable Disable
				'leatherhouse_typography_sidebar_widget_disable' => array(
					'setting' => array(
						'default'           => false,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 2,
						'label'    => esc_html__( 'Enable Sidebar Typography', 'leather-house' ),
						'section'  => 'leatherhouse_sidebar_widget_typography',
					),
				),

				// Footer Typo Heading
				'leatherhouse_typography_footer_heading'         => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 1,
						'label'    => esc_html__( 'Enable Footer Typography', 'leather-house' ),
						'section'  => 'leatherhouse_footer_widget_typography',
					),
				),
				// Footer Typo Enable Disable
				'leatherhouse_typography_sidebar_footer_disable' => array(
					'setting' => array(
						'default'           => false,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 2,
						'label'    => esc_html__( 'Enable Footer Typography', 'leather-house' ),
						'section'  => 'leatherhouse_footer_widget_typography',
					),
				),
			);

		}

	}

	new leatherhouse_Customize_Theme_Typography_Option();

endif;
