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

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

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

$wp_customize->add_control( new favblog_Switch_Control( $wp_customize, 'favblog_theme_options[menu_sticky]', array(
	'label'             => esc_html__( 'Make Menu Sticky', 'favblog' ),
	'section'           => 'favblog_menu',
	'on_off_label' 		=> favblog_switch_options(),
) ) );

$wp_customize->add_setting( 'favblog_theme_options[search_icon_in_primary_menu_enable]', array(
	'default'			=> 	$options['search_icon_in_primary_menu_enable'],
	'sanitize_callback' => 'favblog_sanitize_switch_control',
) );

$wp_customize->add_control( new favblog_Switch_Control( $wp_customize, 'favblog_theme_options[search_icon_in_primary_menu_enable]', array(
	'label'             => esc_html__( 'Enable Search Icon', 'favblog' ),
	'description'       => esc_html__( 'Add Search Icon in Last of primary menu', 'favblog' ),
	'section'           => 'favblog_menu',
	'on_off_label' 		=> favblog_switch_options(),

) ) );