<?php
/**
 * Header Options
 *
 * @package Zenith Blog
 */

$wp_customize->add_section(
	'zenith_blog_header_options',
	array(
		'panel' => 'zenith_blog_theme_options',
		'title' => esc_html__( 'Header Options', 'zenith-blog' ),
	)
);

// Header Options - Topbar Section.
$wp_customize->add_setting(
	'zenith_blog_enable_topbar_Section',
	array(
		'default'           => true,
		'sanitize_callback' => 'zenith_blog_sanitize_switch',
	)
);

$wp_customize->add_control(
	new Zenith_Blog_Toggle_Switch_Custom_Control(
		$wp_customize,
		'zenith_blog_enable_topbar_Section',
		array(
			'label'    => esc_html__( 'Enable Topbar', 'zenith-blog' ),
			'section'  => 'zenith_blog_header_options',
			'settings' => 'zenith_blog_enable_topbar_Section',
		)
	)
);
