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

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

// Menu sticky setting and control.
$wp_customize->add_setting( 'enlightme_pro_theme_options[menu_sticky]', array(
	'sanitize_callback' => 'enlightme_pro_sanitize_switch_control',
	'default'           => $options['menu_sticky'],
) );

$wp_customize->add_control( new Enlightme_Pro_Switch_Control( $wp_customize, 'enlightme_pro_theme_options[menu_sticky]', array(
	'label'             => esc_html__( 'Make Menu Sticky', 'enlightme-pro' ),
	'section'           => 'enlightme_pro_menu',
	'on_off_label' 		=> enlightme_pro_switch_options(),
) ) );

// Menu Search setting and control.
$wp_customize->add_setting( 'enlightme_pro_theme_options[menu_search]', array(
	'sanitize_callback' => 'enlightme_pro_sanitize_switch_control',
	'default'           => $options['menu_search'],
) );

$wp_customize->add_control( new Enlightme_Pro_Switch_Control( $wp_customize, 'enlightme_pro_theme_options[menu_search]', array(
	'label'             => esc_html__( 'Menu Search Enable', 'enlightme-pro' ),
	'section'           => 'enlightme_pro_menu',
	'on_off_label' 		=> enlightme_pro_switch_options(),
) ) );