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

// Add Topbar section
$wp_customize->add_section( 'favblog_topbar_section', array(
	'title'             => esc_html__( 'Topbar','favblog' ),
	'description'       => esc_html__( 'Topbar Section options.', 'favblog' ),
	'panel'             => 'favblog_front_page_panel',
	'priority'			=> 10,
) );

// topbar enable/disable control and setting
$wp_customize->add_setting( 'favblog_theme_options[topbar_section_enable]', array(
	'default'			=> 	$options['topbar_section_enable'],
	'sanitize_callback' => 'favblog_sanitize_switch_control',
) );

$wp_customize->add_control( new favblog_Switch_Control( $wp_customize, 'favblog_theme_options[topbar_section_enable]', array(
	'label'             => esc_html__( 'Topbar Section Enable', 'favblog' ),
	'section'           => 'favblog_topbar_section',
	'on_off_label' 		=> favblog_switch_options(),
) ) );


// Topbar content enable control and setting
$wp_customize->add_setting( 'favblog_theme_options[secondary_menu_enable]', array(
	'default'			=> 	$options['secondary_menu_enable'],
	'sanitize_callback' => 'favblog_sanitize_switch_control',
) );

$wp_customize->add_control( new favblog_Switch_Control( $wp_customize, 'favblog_theme_options[secondary_menu_enable]', array(
	'label'             => esc_html__( 'Secondary Menu Enable', 'favblog' ),
	'description'       => sprintf( '%1$s <a class="topbar-menu-trigger" href="#"> %2$s </a> %3$s', esc_html__( 'Note: To show secondary menu.', 'favblog' ), esc_html__( 'Click Here', 'favblog' ), esc_html__( 'to create menu', 'favblog' ) ),
	'section'           => 'favblog_topbar_section',
	'active_callback'   => 'favblog_is_topbar_section_enable',
	'on_off_label' 		=> favblog_switch_options(),
) ) );


// Topbar content enable control and setting
$wp_customize->add_setting( 'favblog_theme_options[social_menu_enable]', array(
	'default'			=> 	$options['social_menu_enable'],
	'sanitize_callback' => 'favblog_sanitize_switch_control',
) );

$wp_customize->add_control( new favblog_Switch_Control( $wp_customize, 'favblog_theme_options[social_menu_enable]', array(
	'label'             => esc_html__( 'Social Menu Enable', 'favblog' ),
	'description'       => sprintf( '%1$s <a class="topbar-menu-trigger" href="#"> %2$s </a> %3$s', esc_html__( 'Note: To show social menu.', 'favblog' ), esc_html__( 'Click Here', 'favblog' ), esc_html__( 'to create menu', 'favblog' ) ),
	'section'           => 'favblog_topbar_section',
	'active_callback'   => 'favblog_is_topbar_section_enable',
	'on_off_label' 		=> favblog_switch_options(),
) ) );

