<?php

/**
 * Header Theme Options
 *
 * @package prime-home-renovation
 */
$wp_customize->add_section('prime_home_renovation_header_section', array(

	'title'      => esc_html__('Header Section', 'prime-home-renovation'),
	'capability' => 'edit_theme_options',
	'panel' => 'prime_home_renovation_theme_section_panel'

));

// ///////// Phone Icon Text Color
$wp_customize->add_setting('menu_bg_color', array(
    'default'   => '#fff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'menu_bg_color', array(
    'section' => 'prime_home_renovation_header_section',
    'label'      => esc_html__('Menu Bar Bg Color', 'prime-home-renovation'),
    )));

// ////////// Phone Icon
$wp_customize->add_setting('prime_home_renovation_call_icon', array(
    'default'   => 'fa-phone-volume',
    'sanitize_callback' => 'prime_home_renovation_sanitise_custom_text',
));
$wp_customize->add_control(new Prime_Home_Renovation_Custom_Text_Control($wp_customize, 'prime_home_renovation_call_icon', array(
    'label'      => esc_html__('Call Icon', 'prime-home-renovation'),
    'section'    => 'prime_home_renovation_header_section',
    'settings'   => 'prime_home_renovation_call_icon',
    'type' => 'text',
))); 

// ///////// Phone Icon Text Color
$wp_customize->add_setting('Phone_icon_color', array(
    'default'   => '#fff',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'Phone_icon_color', array(
    'section' => 'prime_home_renovation_header_section',
    'description' => __('Phone Icon Color', 'prime-home-renovation'),
    )));

    // ///////// Icon Background Color
 $wp_customize->add_setting('Phone_backgroundcolor', array(
    'default'   => '#000',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'Phone_backgroundcolor', array(
    'section' => 'prime_home_renovation_header_section',
    'description' => __('Icon Background Color', 'prime-home-renovation'),
    )));


// //////////  Call Text
$wp_customize->add_setting( 'prime_home_renovation_head_calltext' , array(
    'default'   => 'Call us any time',   
    'sanitize_callback' => 'prime_home_renovation_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'prime_home_renovation_head_calltext', array(   
    'label'      => esc_html__( 'Call Us Text', 'prime-home-renovation' ),   
    'section'    => 'prime_home_renovation_header_section',   
    'settings'   => 'prime_home_renovation_head_calltext',   
    'type' => 'text',         
) ) );

// //////////  Phone Number 
$wp_customize->add_setting( 'prime_home_renovation_head_calltitle' , array(
    'default'   => '012 3456 789',   
    'sanitize_callback' => 'prime_home_renovation_sanitise_custom_texttitle',    
    ) );

    $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'prime_home_renovation_head_calltitle', array(   
    'label'      => esc_html__( 'Phone Number', 'prime-home-renovation' ),   
    'section'    => 'prime_home_renovation_header_section',   
    'settings'   => 'prime_home_renovation_head_calltitle',   
    'type' => 'text',         
) ) );

 // ///////// Phone Text Color
 $wp_customize->add_setting('Phone_color', array(
    'default'   => '#000',
    'transport' => 'refresh',
    'sanitize_callback' => 'sanitize_hex_color',
    ));
  
    $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'Phone_color', array(
    'section' => 'prime_home_renovation_header_section',
    'description' => __('Text Color', 'prime-home-renovation'),
    )));

    // ////////// Search Icon
$wp_customize->add_setting('prime_home_renovation_search_icon', array(
    'default'   => 'fa-magnifying-glass',
    'sanitize_callback' => 'prime_home_renovation_sanitise_custom_text',
));
$wp_customize->add_control(new Prime_Home_Renovation_Custom_Text_Control($wp_customize, 'prime_home_renovation_search_icon', array(
    'label'      => esc_html__('Search Icon', 'prime-home-renovation'),
    'section'    => 'prime_home_renovation_header_section',
    'settings'   => 'prime_home_renovation_search_icon',
    'type' => 'text',
))); 

// ////////// Menu Icon
$wp_customize->add_setting('prime_home_renovation_menu_icon', array(
    'default'   => 'fa-bars',
    'sanitize_callback' => 'prime_home_renovation_sanitise_custom_text',
));
$wp_customize->add_control(new Prime_Home_Renovation_Custom_Text_Control($wp_customize, 'prime_home_renovation_menu_icon', array(
    'label'      => esc_html__('Menu Icon', 'prime-home-renovation'),
    'section'    => 'prime_home_renovation_header_section',
    'settings'   => 'prime_home_renovation_menu_icon',
    'type' => 'text',
))); 

// ///////// Menu Text 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' => 'prime_home_renovation_header_section',
    'description' => __('Menu Text Color', 'prime-home-renovation'),
    )));

    //Image
$wp_customize->add_setting( 'prime_home_renovation_header_image1', array(  
        'sanitize_callback' => 'prime_home_renovation_sanitise_custom_url'
        ));
    $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'prime_home_renovation_header_image1', array(
            'label'      => __( 'Section Image', 'prime-home-renovation' ),
            'section'    => 'prime_home_renovation_header_section',
            'settings'   => 'prime_home_renovation_header_image1',
    )));