<?php
/**
* Top Header Options.
*
* @package Wind Energy
*/

$wind_energy_default = wind_energy_get_default_theme_options();

// Header Top Section.
$wp_customize->add_section( 'wind_energy_top_header_setting',
	array(
	'title'      => esc_html__( 'Top Header Settings', 'wind-energy' ),
	'priority'   => 10,
	'capability' => 'edit_theme_options',
	'panel'      => 'wind_energy_theme_option_panel',
	)
);

$wp_customize->add_setting('wind_energy_header_top_ed',
    array(
        'default' => $wind_energy_default['wind_energy_header_top_ed'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'wind_energy_sanitize_checkbox',
    )
);
$wp_customize->add_control('wind_energy_header_top_ed',
    array(
        'label' => esc_html__('Enable Header Top', 'wind-energy'),
        'section' => 'wind_energy_top_header_setting',
        'type' => 'checkbox',
    )
);

$wp_customize->add_setting( 'wind_energy_header_top_left_location',
    array(
    'default'           => $wind_energy_default['wind_energy_header_top_left_location'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'wind_energy_header_top_left_location',
    array(
    'label'    => esc_html__( 'Add Location', 'wind-energy' ),
    'section'  => 'wind_energy_top_header_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'wind_energy_header_top_left_email',
    array(
    'default'           => $wind_energy_default['wind_energy_header_top_left_email'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_email',
    )
);
$wp_customize->add_control( 'wind_energy_header_top_left_email',
    array(
    'label'    => esc_html__( 'Add Email', 'wind-energy' ),
    'section'  => 'wind_energy_top_header_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'wind_energy_header_top_left_phone',
    array(
    'default'           => $wind_energy_default['wind_energy_header_top_left_phone'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'wind_energy_header_top_left_phone',
    array(
    'label'    => esc_html__( 'Add Phone', 'wind-energy' ),
    'section'  => 'wind_energy_top_header_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'wind_energy_header_top_right_timing',
    array(
    'default'           => $wind_energy_default['wind_energy_header_top_right_timing'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'wind_energy_header_top_right_timing',
    array(
    'label'    => esc_html__( 'Add Timing', 'wind-energy' ),
    'section'  => 'wind_energy_top_header_setting',
    'type'     => 'text',
    )
);