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

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

/**
* General Settings.
*/

if ( ! class_exists( 'leatherhouse_Customize_General_Option' ) ) :

	class leatherhouse_Customize_General_Option extends leatherhouse_Customize_Base_Option {

		public function elements() {

			return array(

				'leatherhouse_general_heading'       => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'parent_heading',
						'priority' => 1,
						'label'    => esc_html__( 'General Settings', 'leather-house' ),
						'section'  => 'leatherhouse_theme_general',
					),
				),

				// Loading Icon.
				'leatherhouse_loading_icon_disabled' => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 5,
						'label'    => esc_html__( 'Loading Icon Enable/Disable', 'leather-house' ),
						'section'  => 'leatherhouse_theme_general',
					),
				),

				// Go To Top Icon.
				'leatherhouse_goto_top_icon_enabled' => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 20,
						'label'    => esc_html__( 'Go To Top Icon Enable/Disable', 'leather-house' ),
						'section'  => 'leatherhouse_theme_general',
					),
				),

				// WOO Cart Icon.
				'leatherhouse_cart_icon_enabled'     => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 30,
						'label'    => esc_html__( 'WOO Cart Icon Enable/Disable', 'leather-house' ),
						'section'  => 'leatherhouse_theme_general',
					),
				),

			);

		}

	}

	new leatherhouse_Customize_General_Option();

endif;
