<?php

/**
 * Header Theme Options
 *
 * @package eco-solar-energy
 */
$wp_customize->add_section('eco_solar_energy_header_section', array(

	'title'      => esc_html__('Header Section', 'eco-solar-energy'),
	'capability' => 'edit_theme_options',
	'panel' => 'eco_solar_energy_theme_section_panel'

));

// ////////// Facebook Icon
$wp_customize->add_setting('solar_facebook_icon', array(
    'default'   => 'fa-facebook-f',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_facebook_icon', array(
    'label'      => esc_html__('Facebook Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_header_section',
    'settings'   => 'solar_facebook_icon',
    'type' => 'text',
))); 

// ////////// Instagram Icon
$wp_customize->add_setting('solar_instagram_icon', array(
    'default'   => 'fa-instagram',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_instagram_icon', array(
    'label'      => esc_html__('Instagram Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_header_section',
    'settings'   => 'solar_instagram_icon',
    'type' => 'text',
))); 

// ////////// Twitter Icon
$wp_customize->add_setting('solar_twitter_icon', array(
    'default'   => 'fa-twitter',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_twitter_icon', array(
    'label'      => esc_html__('Twitter Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_header_section',
    'settings'   => 'solar_twitter_icon',
    'type' => 'text',
))); 

// ////////// Phone Icon
$wp_customize->add_setting('solar_phone_icon', array(
    'default'   => 'fa-phone-volume',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_phone_icon', array(
    'label'      => esc_html__('Phone Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_header_section',
    'settings'   => 'solar_phone_icon',
    'type' => 'text',
))); 

// //////////  Phone Title
$wp_customize->add_setting( 'eco_solar_energy_head_calltitle' , array(
    'default'   => '1110-222-333',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_head_calltitle', array(   
    'label'      => esc_html__( 'Phone Title', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_header_section',   
    'settings'   => 'eco_solar_energy_head_calltitle',   
    'type' => 'text',         
) ) );

// ////////// Email Icon
$wp_customize->add_setting('solar_email_icon', array(
    'default'   => 'fa-envelope',
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
));
$wp_customize->add_control(new Custom_Text_Control($wp_customize, 'solar_email_icon', array(
    'label'      => esc_html__('Email Icon', 'eco-solar-energy'),
    'section'    => 'eco_solar_energy_header_section',
    'settings'   => 'solar_email_icon',
    'type' => 'text',
))); 

// ////////// Email Title
$wp_customize->add_setting( 'eco_solar_energy_head_emailtitle' , array(
    'default'   => 'info@example.com',   
    'sanitize_callback' => 'eco_solar_energy_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'eco_solar_energy_head_emailtitle', array(   
    'label'      => esc_html__( 'Email Title', 'eco-solar-energy' ),   
    'section'    => 'eco_solar_energy_header_section',   
    'settings'   => 'eco_solar_energy_head_emailtitle',   
    'type' => 'text',         
) ) );



    // Button Text
    $wp_customize->add_setting( 'header_contact_button_text', array(
        'default'   => __( 'Contact', 'eco-solar-energy' ),
        'transport' => 'refresh',
        'sanitize_callback' => 'eco_solar_energy_sanitise_custom_text',
    ) );

    $wp_customize->add_control( 'header_contact_button_text', array(
        'label'   => __( 'Button Text', 'eco-solar-energy' ),
        'section' => 'eco_solar_energy_header_section',
        'type'    => 'text',
    ) );

    // Button URL
    $wp_customize->add_setting( 'header_contact_button_url', array(
        'default'   => home_url('/contact'),
        'transport' => 'refresh',
        'sanitize_callback' => 'esc_url_raw',
    ) );

    $wp_customize->add_control( 'header_contact_button_url', array(
        'label'   => __( 'Button URL', 'eco-solar-energy' ),
        'section' => 'eco_solar_energy_header_section',
        'type'    => 'url',
    ) );

        ///////////Social icons color
    $wp_customize->add_setting('social_icons_color', array(
        'default'   => '#fff',
        'transport' => 'refresh',
        'sanitize_callback' => 'sanitize_hex_color',
        ));
              
        $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'social_icons_color', array(
        'section' => 'eco_solar_energy_header_section',
        'description' => __('Social Icon Color', 'eco-solar-energy'),
        )));

        ///////////Info Text icons 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' => 'eco_solar_energy_header_section',
        'description' => __('Info Text Color', 'eco-solar-energy'),
        )));

        ///////////Info call icons color
    $wp_customize->add_setting('info_callicon_color', array(
        'default'   => '#fff',
        'transport' => 'refresh',
        'sanitize_callback' => 'sanitize_hex_color',
        ));
              
        $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'info_callicon_color', array(
        'section' => 'eco_solar_energy_header_section',
        'description' => __('Info Call Icon Color', 'eco-solar-energy'),
        )));

         ///////////Info email icons color
    $wp_customize->add_setting('info_emailicon_color', array(
        'default'   => '#fff',
        'transport' => 'refresh',
        'sanitize_callback' => 'sanitize_hex_color',
        ));
              
        $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'info_emailicon_color', array(
        'section' => 'eco_solar_energy_header_section',
        'description' => __('Info Email Icon Color', 'eco-solar-energy'),
        )));

        ///////////Info email icons color
    $wp_customize->add_setting('menu_text_color', array(
        'default'   => '#000',
        'transport' => 'refresh',
        'sanitize_callback' => 'sanitize_hex_color',
        ));
              
        $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'menu_text_color', array(
        'section' => 'eco_solar_energy_header_section',
        'description' => __('Menu Text Color', 'eco-solar-energy'),
        )));

        //Image
$wp_customize->add_setting( 'eco_solar_energy_header_image1', array(  
        'sanitize_callback' => 'eco_solar_energy_sanitise_custom_url'
        ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'eco_solar_energy_header_image1', array(
            'label'      => __( 'Section Image', 'eco-solar-energy' ),
            'section'    => 'eco_solar_energy_header_section',
            'settings'   => 'eco_solar_energy_header_image1',
    )));


