<?php

/**
 * Header Theme Options
 *
 * @package voltmaster-electrician
 */

$voltmaster_electrician_default = voltmaster_electrician_get_default_theme_options();

$wp_customize->add_section('voltmaster_electrician_header_section', array(

    'title' => esc_html__('Header Section', 'voltmaster-electrician'),
    'capability' => 'edit_theme_options',
    'panel' => 'voltmaster_electrician_theme_section_panel'

));


$wp_customize->add_setting('theme_options[featured_icon_header1]', array(
    'default' => $voltmaster_electrician_default['featured_icon_header1'],
    'type' => 'theme_mod',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
));

$wp_customize->add_control('theme_options[featured_icon_header1]', array(
    'label' => __('Plan Icon 1', 'voltmaster-electrician'),
    'section' => 'voltmaster_electrician_header_section',
    'settings' => 'theme_options[featured_icon_header1]',
    'type' => 'text',
));

$wp_customize->add_setting(
    'header_location',
    array(
        'default' => "24/7 Emergency Service Available",
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'header_location',
    array(
        'label' => __('Date And Time Text', 'voltmaster-electrician'),
        'section' => 'voltmaster_electrician_header_section',
        'settings' => 'header_location',
        'type' => 'text'
    )
);
	
$wp_customize->add_setting('theme_options[featured_icon_header2]', array(
    'default' => $voltmaster_electrician_default['featured_icon_header2'],
    'type' => 'theme_mod',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
));

$wp_customize->add_control('theme_options[featured_icon_header2]', array(
    'label' => __('Plan Icon 2', 'voltmaster-electrician'),
    'section' => 'voltmaster_electrician_header_section',
    'settings' => 'theme_options[featured_icon_header2]',
    'type' => 'text',
));
$wp_customize->add_setting(
    'header_email',
    array(
        'default' =>'Licensed & Insured',
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'header_email',
    array(
        'label' => __('Licensed & Insured', 'voltmaster-electrician'),
        'section' => 'voltmaster_electrician_header_section',
        'settings' => 'header_email',
        'type' => 'text'
    )
);

$wp_customize->add_setting('theme_options[featured_icon_header3]', array(
    'default' => $voltmaster_electrician_default['featured_icon_header3'],
    'type' => 'theme_mod',
    'capability' => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
));

$wp_customize->add_control('theme_options[featured_icon_header3]', array(
    'label' => __('Plan Icon 3', 'voltmaster-electrician'),
    'section' => 'voltmaster_electrician_header_section',
    'settings' => 'theme_options[featured_icon_header3]',
    'type' => 'text',
));
$wp_customize->add_setting(
    'header_address',
    array(
        'default' => 'Serving Springfield & Surrounding Areas',
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'header_address',
    array(
        'label' => __('Location', 'voltmaster-electrician'),
        'section' => 'voltmaster_electrician_header_section',
        'settings' => 'header_address',
        'type' => 'text'
    )
);

$wp_customize->add_setting(
    'featured_phoneheading',
    array(
        'default' => 'Emergency:',
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'featured_phoneheading',
    array(
        'label' => __('Emergency Text', 'voltmaster-electrician'),
        'section' => 'voltmaster_electrician_header_section',
        'settings' => 'featured_phoneheading',
        'type' => 'text'
    )
);

$wp_customize->add_setting(
    'header_tellphone',
    array(
        'default' => '(555) 911-ELEC',
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'header_tellphone',
    array(
        'label' => __('Emergency Number', 'voltmaster-electrician'),
        'section' => 'voltmaster_electrician_header_section',
        'settings' => 'header_tellphone',
        'type' => 'text'
    )
);







$wp_customize->add_setting(
    'contact_nu_text',
    array(
        'default' => __('Call Us Now', 'voltmaster-electrician'),
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'contact_nu_text',
    array(
        'label' => __('Call Us Text', 'voltmaster-electrician'),
        'section' => 'voltmaster_electrician_header_section',
        'settings' => 'contact_nu_text',
        'type' => 'text'
    )
);
$wp_customize->add_setting(
    'contact_numbe',
    array(
        'default' => __('(555) 123-4567', 'voltmaster-electrician'),
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'contact_numbe',
    array(
        'label' => __('Call Us Number', 'voltmaster-electrician'),
        'section' => 'voltmaster_electrician_header_section',
        'settings' => 'contact_numbe',
        'type' => 'text'
    )
);

// ////////// Button


$wp_customize->add_setting(
    'voltmaster_electrician_header_btntext',
    array(
        'default' => __('Enquire Now', 'voltmaster-electrician'),
        'type' => 'theme_mod',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    'voltmaster_electrician_header_btntext',
    array(
        'label' => __('Button Text', 'voltmaster-electrician'),
        'section' => 'voltmaster_electrician_header_section',
        'settings' => 'voltmaster_electrician_header_btntext',
        'type' => 'text'
    )
);
// Button URL
$wp_customize->add_setting('voltmaster_electrician_header_btnlink', array(
    'default' => 'Enter the Button URL',
    'sanitize_callback' => 'esc_url_raw',
));

$wp_customize->add_control('voltmaster_electrician_header_btnlink', array(
    'label' => __('Button URL', 'voltmaster-electrician'),
    'section' => 'voltmaster_electrician_header_section',
    'settings' => 'voltmaster_electrician_header_btnlink',
    'type' => 'url',
));


// ///////// Button Bg Text Color
$wp_customize->add_setting('header_buttonbg_color', array(
    'default' => '#fdc700',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'header_buttonbg_color', array(
    'section' => 'voltmaster_electrician_header_section',
    'label' => esc_html__('Button Bg Color', 'voltmaster-electrician'),
)));


/////////// Button Text Color
$wp_customize->add_setting('header_buttontext_color', array(
    'default' => '#000',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'header_buttontext_color', array(
    'section' => 'voltmaster_electrician_header_section',
    'label' => esc_html__('Button Text Color', 'voltmaster-electrician'),
)));

/////////// Icon Color
$wp_customize->add_setting('info_icon_color', array(
    'default' => '#f6bb19 ',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'info_icon_color', array(
    'section' => 'voltmaster_electrician_header_section',
    'label' => esc_html__('Info Icon Color', 'voltmaster-electrician'),
)));

/////////// Info text Color
$wp_customize->add_setting('info_text_color', array(
    'default' => '#fff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'info_text_color', array(
    'section' => 'voltmaster_electrician_header_section',
    'label' => esc_html__('Info Text Color', 'voltmaster-electrician'),
)));

/////////// Emergency text Color
$wp_customize->add_setting('emergency_text_color', array(
    'default' => '#fff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'emergency_text_color', array(
    'section' => 'voltmaster_electrician_header_section',
    'label' => esc_html__('Emergency Text Color', 'voltmaster-electrician'),
)));

/////////// Call us text Color
$wp_customize->add_setting('callus_text_color', array(
    'default' => '#fff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'callus_text_color', array(
    'section' => 'voltmaster_electrician_header_section',
    'label' => esc_html__('Call Us Text And Number Color', 'voltmaster-electrician'),
)));

