<?php
/**
 * Trainify Top Header Section
 */

/**
 * Top Header Section
 */
$wp_customize->add_section(
	'trainify_top_header_section',
	array(
		'title'    => esc_html__( 'Top Header', 'trainify' ),
		'priority' => 30,
		'panel'    => 'site_header_panel'
	)
);

/**
 * Switch option for Top Header
 *
 * @since 1.0.0
 */
$wp_customize->add_setting(
	'trainify_top_header_option',
	array(
		'default'           => 'show',
		'sanitize_callback' => 'sanitize_trainify_show_hide',
	)
);
$wp_customize->add_control( 
	new TrainifyFramework_Customize_Switch_Control(
		$wp_customize,
		'trainify_top_header_option',
		array(
			'type'        => 'switch',
			'label'       => esc_html__( 'Top Header Section', 'trainify' ),
			'description' => esc_html__( 'Show/Hide option for top header section.', 'trainify' ),
			'section'     => 'trainify_top_header_section',
			'choices'     => array(
				'show' => esc_html__( 'Show', 'trainify' ),
				'hide' => esc_html__( 'Hide', 'trainify' )
			),
			'priority'    => 10,
		)
	)
);

/**
 * Switch option for Current Date
 *
 * @since 1.0.0
 */
$wp_customize->add_setting(
	'trainify_top_date_option',
	array(
		'default'           => 'show',
		'sanitize_callback' => 'sanitize_trainify_show_hide',
	)
);
$wp_customize->add_control( 
	new TrainifyFramework_Customize_Switch_Control(
		$wp_customize,
		'trainify_top_date_option',
		array(
			'type'        => 'switch',
			'label'       => esc_html__( 'Current Date', 'trainify' ),
			'description' => esc_html__( 'Show/Hide option for current date at top header section.', 'trainify' ),
			'section'     => 'trainify_top_header_section',
			'choices'     => array(
				'show' => esc_html__( 'Show', 'trainify' ),
				'hide' => esc_html__( 'Hide', 'trainify' )
			),
			'priority'    => 20,
		)
	)
);

/**
 * Switch option for Social Icon
 *
 * @since 1.0.0
 */
$wp_customize->add_setting(
	'trainify_top_social_option',
	array(
		'default'           => 'show',
		'sanitize_callback' => 'sanitize_trainify_show_hide',
	)
);
$wp_customize->add_control( 
	new TrainifyFramework_Customize_Switch_Control(
		$wp_customize,
		'trainify_top_social_option',
		array(
			'type'        => 'switch',
			'label'       => esc_html__( 'Social Icons', 'trainify' ),
			'description' => esc_html__( 'Show/Hide option for social media icons at top header section.', 'trainify' ),
			'section'     => 'trainify_top_header_section',
			'choices'     => array(
				'show' => esc_html__( 'Show', 'trainify' ),
				'hide' => esc_html__( 'Hide', 'trainify' )
			),
			'priority'    => 30,
		)
	)
);
