<?php
/**
 * Menu options
 *
 * @package Theme Palace
 * @subpackage Mezze
 * @since Mezze 1.0.0
 */

// Add sidebar section
$wp_customize->add_section( 'mezze_menu', array(
	'title'             => esc_html__('Header Menu','mezze'),
	'description'       => esc_html__( 'Header Menu options.', 'mezze' ),
	'panel'             => 'nav_menus',
) );

// search enable setting and control.
$wp_customize->add_setting( 'mezze_theme_options[nav_search_enable]', array(
	'sanitize_callback' => 'mezze_sanitize_switch_control',
	'default'           => $options['nav_search_enable'],
) );

$wp_customize->add_control( new Mezze_Switch_Control( $wp_customize, 'mezze_theme_options[nav_search_enable]', array(
	'label'             => esc_html__( 'Enable search', 'mezze' ),
	'section'           => 'mezze_menu',
	'on_off_label' 		=> mezze_switch_options(),
) ) );