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

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

if ( ! class_exists( 'leatherhouse_Customize_Menu_Bar_Option' ) ) :

	/**
	 * Menu option.
	 */
	class leatherhouse_Customize_Menu_Bar_Option extends leatherhouse_Customize_Base_Option {

		public function elements() {

			return array(

				'leatherhouse_main_menu_heading'   => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'parent_heading',
						'priority' => 1,
						'label'    => esc_html__( 'Menu Settings', 'leather-house' ),
						'section'  => 'leatherhouse_theme_menu_bar',
					),
				),

				'leatherhouse_menu_container_size' => array(
					'setting' => array(
						'default'           => 'container-full',
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_radio' ),
					),
					'control' => array(
						'type'            => 'radio',
						'priority'        => 5,
						'is_default_type' => true,
						'label'           => esc_html__( 'Menu Width', 'leather-house' ),
						'section'         => 'leatherhouse_theme_menu_bar',
						'choices'         => array(
							'av-container'   => esc_html__( 'Container', 'leather-house' ),
							'container-full' => esc_html__( 'Container Full', 'leather-house' ),
						),
					),
				),

				'leatherhouse_menu_style'          => array(
					'setting' => array(
						'default'           => 'static',
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_radio' ),
					),
					'control' => array(
						'type'            => 'radio',
						'priority'        => 7,
						'is_default_type' => true,
						'label'           => esc_html__( 'Menu Style', 'leather-house' ),
						'section'         => 'leatherhouse_theme_menu_bar',
						'choices'         => array(
							'sticky' => esc_html__( 'Sticky', 'leather-house' ),
							'static' => esc_html__( 'Static', 'leather-house' ),
						),
					),
				),

				'leatherhouse_search_icon_heading' => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 15,
						'label'    => esc_html__( 'Search Icon', 'leather-house' ),
						'section'  => 'leatherhouse_theme_menu_bar',
					),
				),

				'leatherhouse_serche_icon_sh'      => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 16,
						'label'    => esc_html__( 'Search Icon Enable/Disable', 'leather-house' ),
						'section'  => 'leatherhouse_theme_menu_bar',
					),
				),

				'leatherhouse_menu_btn_heading'    => array(
					'setting' => array(),
					'control' => array(
						'type'     => 'heading',
						'priority' => 25,
						'label'    => esc_html__( 'Menu Button', 'leather-house' ),
						'section'  => 'leatherhouse_theme_menu_bar',
					),
				),

				'leatherhouse_menu_btn_sh'         => array(
					'setting' => array(
						'default'           => true,
						'sanitize_callback' => array( 'leatherhouse_Customizer_Sanitize', 'sanitize_checkbox' ),
					),
					'control' => array(
						'type'     => 'toggle',
						'priority' => 26,
						'label'    => esc_html__( 'Menu Button Enable/Disable', 'leather-house' ),
						'section'  => 'leatherhouse_theme_menu_bar',
					),
				),
			);

		}

	}

	new leatherhouse_Customize_Menu_Bar_Option();

endif;
