<?php
/**
 * Home Electrician Theme Customizer
 *
 * @package Home Electrician
 */

/**
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */

/**
 * Singleton class for handling the theme's customizer integration.
 *
 * @since  1.0.0
 * @access public
 */
final class Home_Electrician_Customize {

	/**
	 * Returns the instance.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return object
	 */
	public static function get_instance() {

		static $instance = null;

		if ( is_null( $instance ) ) {
			$instance = new self;
			$instance->setup_actions();
		}

		return $instance;
	}

	/**
	 * Constructor method.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function __construct() {}

	/**
	 * Sets up initial actions.
	 *
	 * @since  1.0.0
	 * @access private
	 * @return void
	 */
	private function setup_actions() {

		// Register panels, sections, settings, controls, and partials.
		add_action( 'customize_register', array( $this, 'sections' ) );

		// Register scripts and styles for the controls.
		add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue_control_scripts' ), 0 );
	}

	/**
	 * Sets up the customizer sections.
	 *
	 * @since  1.0.0
	 * @access public
	 * @param  object  $manager
	 * @return void
	 */
	public function sections( $manager ) {

		// Load custom sections.
		load_template( trailingslashit( get_template_directory() ) . '/inc/section-pro.php' );

		// Register custom section types.
		$manager->register_section_type( 'Home_Electrician_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section(
			new Home_Electrician_Customize_Section_Pro(
				$manager,
				'example_1',
				array(
					'priority' => 9,
					'title'    => esc_html__( 'Home Electrician Pro', 'home-electrician' ),
					'description' => __( 'Buy now and enjoy exclusive discounts!', 'home-electrician' ),
					'pro_text' => esc_html__( 'Go Pro', 'home-electrician' ),
					'pro_url'  => esc_url( 'https://www.logicalthemes.com/products/premium-home-electrician-wordpress-template' ),
				)
			)
		);
	}

	/**
	 * Loads theme customizer CSS.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function enqueue_control_scripts() {

		wp_enqueue_script( 'home-electrician-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'home-electrician-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/css/customize-controls.css' );
	}
}

// Doing this customizer thang!
Home_Electrician_Customize::get_instance();

function home_electrician_customize_register( $wp_customize ) {	

	//add home page setting pannel
	$wp_customize->add_panel( 'home_electrician_panel_id', array(
	    'priority' => 10,
	    'capability' => 'edit_theme_options',
	    'theme_supports' => '',
	    'title' => esc_html__( 'LT Settings', 'home-electrician' ),
	) );

	//Layout Setting
	$wp_customize->add_section( 'home_electrician_left_right' , array(
    	'title'      => esc_html__( 'General Settings', 'home-electrician' ),
		'priority'   => null,
		'panel' => 'home_electrician_panel_id'
	) );

	//Select width layout
    $wp_customize->add_setting('home_electrician_width_options',array(
        'default' => 'Full Width',
        'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control('home_electrician_width_options',array(
        'type' => 'radio',
        'label' => __('Select Width Layout','home-electrician'),
        'section' => 'home_electrician_left_right',
        'choices' => array(
        	'Full Width' => esc_html__('Full Width','home-electrician'),
            'Contained Width' => esc_html__('Contained Width','home-electrician'),
            'Boxed Width' => esc_html__('Boxed Width','home-electrician'),
        ),
	) );

	$wp_customize->add_setting('home_electrician_theme_options',array(
        'default' => 'One Column',
        'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control('home_electrician_theme_options',array(
        'type' => 'radio',
        'description' => __( 'Choose sidebar between different options', 'home-electrician' ),
        'label' => esc_html__( 'Post Sidebar Layout.', 'home-electrician' ),
        'section' => 'home_electrician_left_right',
        'choices' => array(
            'One Column' => esc_html__('One Column ','home-electrician'),
            'Three Columns' => esc_html__('Three Columns','home-electrician'),
            'Four Columns' => esc_html__('Four Columns','home-electrician'),
            'Right Sidebar' => esc_html__('Right Sidebar','home-electrician'),
            'Left Sidebar' => esc_html__('Left Sidebar','home-electrician'),
            'Grid Layout' => esc_html__('Grid Layout','home-electrician')
        ),
	));

	$wp_customize->add_setting('home_electrician_dropdown_anim',array(
		'default' => '',
		'capability' => 'edit_theme_options',
		'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control('home_electrician_dropdown_anim', array(
		'section'  => 'home_electrician_left_right',
		'label'    => __( 'Submenu Dropdown Effect','home-electrician'),
		'type'     => 'select',
		'choices'  => array(
			'bounceInUp' => __('bounceInUp', 'home-electrician'),
			'zoomIn' => __('zoomIn', 'home-electrician'),
			'flip-up' => __('flip-up', 'home-electrician'),
			'none' => __('none', 'home-electrician')
		)
	));

	$home_electrician_font_array = array(
        '' =>'No Fonts',
        'Abril Fatface' => 'Abril Fatface',
        'Acme' =>'Acme', 
        'Anton' => 'Anton', 
        'Architects Daughter' =>'Architects Daughter',
        'Arimo' => 'Arimo', 
        'Arsenal' =>'Arsenal',
        'Arvo' =>'Arvo',
        'Alegreya' =>'Alegreya',
        'Alfa Slab One' =>'Alfa Slab One',
        'Averia Serif Libre' =>'Averia Serif Libre', 
        'Bangers' =>'Bangers', 
        'Boogaloo' =>'Boogaloo', 
        'Bad Script' =>'Bad Script',
        'Bitter' =>'Bitter', 
        'Bree Serif' =>'Bree Serif', 
        'BenchNine' =>'BenchNine',
        'Cabin' =>'Cabin',
        'Cardo' =>'Cardo', 
        'Courgette' =>'Courgette', 
        'Cherry Swash' =>'Cherry Swash',
        'Cormorant Garamond' =>'Cormorant Garamond', 
        'Crimson Text' =>'Crimson Text',
        'Cuprum' =>'Cuprum', 
        'Cookie' =>'Cookie',
        'Chewy' =>'Chewy',
        'Days One' =>'Days One',
        'Dosis' =>'Dosis',
        'Droid Sans' =>'Droid Sans', 
        'Economica' =>'Economica', 
        'Fredoka One' =>'Fredoka One',
        'Fjalla One' =>'Fjalla One',
        'Francois One' =>'Francois One', 
        'Frank Ruhl Libre' => 'Frank Ruhl Libre', 
        'Gloria Hallelujah' =>'Gloria Hallelujah',
        'Great Vibes' =>'Great Vibes', 
        'Handlee' =>'Handlee', 
        'Hammersmith One' =>'Hammersmith One',
        'Inconsolata' =>'Inconsolata',
        'Indie Flower' =>'Indie Flower', 
        'IM Fell English SC' =>'IM Fell English SC',
        'Julius Sans One' =>'Julius Sans One',
        'Josefin Slab' =>'Josefin Slab',
        'Josefin Sans' =>'Josefin Sans',
        'Kanit' =>'Kanit',
        'Lobster' =>'Lobster',
        'Lato' => 'Lato',
        'Lora' =>'Lora', 
        'Libre Baskerville' =>'Libre Baskerville',
        'Lobster Two' => 'Lobster Two',
        'Merriweather' =>'Merriweather',
        'Monda' =>'Monda',
        'Montserrat' =>'Montserrat',
        'Muli' =>'Muli',
        'Marck Script' =>'Marck Script',
        'Noto Serif' =>'Noto Serif',
        'Open Sans' =>'Open Sans',
        'Overpass' => 'Overpass', 
        'Overpass Mono' =>'Overpass Mono',
        'Oxygen' =>'Oxygen',
        'Orbitron' =>'Orbitron',
        'Patua One' =>'Patua One',
        'Pacifico' =>'Pacifico',
        'Padauk' =>'Padauk',
        'Playball' =>'Playball',
        'Playfair Display' =>'Playfair Display',
        'PT Sans' =>'PT Sans',
        'Philosopher' =>'Philosopher',
        'Permanent Marker' =>'Permanent Marker',
        'Poiret One' =>'Poiret One',
        'Quicksand' =>'Quicksand',
        'Quattrocento Sans' =>'Quattrocento Sans',
        'Raleway' =>'Raleway',
        'Rubik' =>'Rubik',
        'Rokkitt' =>'Rokkitt',
        'Russo One' => 'Russo One', 
        'Righteous' =>'Righteous', 
        'Slabo' =>'Slabo', 
        'Source Sans Pro' =>'Source Sans Pro',
        'Shadows Into Light Two' =>'Shadows Into Light Two',
        'Shadows Into Light' =>  'Shadows Into Light',
        'Sacramento' =>'Sacramento',
        'Shrikhand' =>'Shrikhand',
        'Tangerine' => 'Tangerine',
        'Ubuntu' =>'Ubuntu',
        'VT323' =>'VT323',
        'Varela Round' =>'Varela Round',
        'Vampiro One' =>'Vampiro One',
        'Vollkorn' => 'Vollkorn',
        'Volkhov' =>'Volkhov',
        'Yanone Kaffeesatz' =>'Yanone Kaffeesatz'
    );

	//Typography
	$wp_customize->add_section( 'home_electrician_typography', array(
    	'title'      => __( 'Typography', 'home-electrician' ),
		'priority'   => null,
		'panel' => 'home_electrician_panel_id'
	) );
	
	// This is Paragraph Color picker setting
	$wp_customize->add_setting( 'home_electrician_paragraph_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_paragraph_color', array(
		'label' => __('Paragraph Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_paragraph_color',
	)));

	//This is Paragraph FontFamily picker setting
	$wp_customize->add_setting('home_electrician_paragraph_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_paragraph_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( 'Paragraph Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	$wp_customize->add_setting('home_electrician_paragraph_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_paragraph_font_size',array(
		'label'	=> __('Paragraph Font Size','home-electrician'),
		'section'	=> 'home_electrician_typography',
		'setting'	=> 'home_electrician_paragraph_font_size',
		'type'	=> 'text'
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'home_electrician_atag_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_atag_color', array(
		'label' => __('"a" Tag Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_atag_color',
	)));

	//This is "a" Tag FontFamily picker setting
	$wp_customize->add_setting('home_electrician_atag_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_atag_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( '"a" Tag Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'home_electrician_li_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_li_color', array(
		'label' => __('"li" Tag Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_li_color',
	)));

	//This is "li" Tag FontFamily picker setting
	$wp_customize->add_setting('home_electrician_li_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_li_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( '"li" Tag Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	// This is H1 Color picker setting
	$wp_customize->add_setting( 'home_electrician_h1_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_h1_color', array(
		'label' => __('H1 Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_h1_color',
	)));

	//This is H1 FontFamily picker setting
	$wp_customize->add_setting('home_electrician_h1_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_h1_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( 'H1 Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	//This is H1 FontSize setting
	$wp_customize->add_setting('home_electrician_h1_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_h1_font_size',array(
		'label'	=> __('H1 Font Size','home-electrician'),
		'section'	=> 'home_electrician_typography',
		'setting'	=> 'home_electrician_h1_font_size',
		'type'	=> 'text'
	));

	// This is H2 Color picker setting
	$wp_customize->add_setting( 'home_electrician_h2_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_h2_color', array(
		'label' => __('H2 Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_h2_color',
	)));

	//This is H2 FontFamily picker setting
	$wp_customize->add_setting('home_electrician_h2_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_h2_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( 'H2 Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	//This is H2 FontSize setting
	$wp_customize->add_setting('home_electrician_h2_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_h2_font_size',array(
		'label'	=> __('H2 Font Size','home-electrician'),
		'section'	=> 'home_electrician_typography',
		'setting'	=> 'home_electrician_h2_font_size',
		'type'	=> 'text'
	));

	// This is H3 Color picker setting
	$wp_customize->add_setting( 'home_electrician_h3_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_h3_color', array(
		'label' => __('H3 Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_h3_color',
	)));

	//This is H3 FontFamily picker setting
	$wp_customize->add_setting('home_electrician_h3_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_h3_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( 'H3 Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	//This is H3 FontSize setting
	$wp_customize->add_setting('home_electrician_h3_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_h3_font_size',array(
		'label'	=> __('H3 Font Size','home-electrician'),
		'section'	=> 'home_electrician_typography',
		'setting'	=> 'home_electrician_h3_font_size',
		'type'	=> 'text'
	));

	// This is H4 Color picker setting
	$wp_customize->add_setting( 'home_electrician_h4_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_h4_color', array(
		'label' => __('H4 Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_h4_color',
	)));

	//This is H4 FontFamily picker setting
	$wp_customize->add_setting('home_electrician_h4_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_h4_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( 'H4 Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	//This is H4 FontSize setting
	$wp_customize->add_setting('home_electrician_h4_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_h4_font_size',array(
		'label'	=> __('H4 Font Size','home-electrician'),
		'section'	=> 'home_electrician_typography',
		'setting'	=> 'home_electrician_h4_font_size',
		'type'	=> 'text'
	));

	// This is H5 Color picker setting
	$wp_customize->add_setting( 'home_electrician_h5_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_h5_color', array(
		'label' => __('H5 Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_h5_color',
	)));

	//This is H5 FontFamily picker setting
	$wp_customize->add_setting('home_electrician_h5_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_h5_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( 'H5 Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	//This is H5 FontSize setting
	$wp_customize->add_setting('home_electrician_h5_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_h5_font_size',array(
		'label'	=> __('H5 Font Size','home-electrician'),
		'section'	=> 'home_electrician_typography',
		'setting'	=> 'home_electrician_h5_font_size',
		'type'	=> 'text'
	));

	// This is H6 Color picker setting
	$wp_customize->add_setting( 'home_electrician_h6_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_h6_color', array(
		'label' => __('H6 Color', 'home-electrician'),
		'section' => 'home_electrician_typography',
		'settings' => 'home_electrician_h6_color',
	)));

	//This is H6 FontFamily picker setting
	$wp_customize->add_setting('home_electrician_h6_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'home_electrician_sanitize_choices'
	));
	$wp_customize->add_control(
	    'home_electrician_h6_font_family', array(
	    'section'  => 'home_electrician_typography',
	    'label'    => __( 'H6 Fonts','home-electrician'),
	    'type'     => 'select',
	    'choices'  => $home_electrician_font_array,
	));

	//This is H6 FontSize setting
	$wp_customize->add_setting('home_electrician_h6_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_h6_font_size',array(
		'label'	=> __('H6 Font Size','home-electrician'),
		'section'	=> 'home_electrician_typography',
		'setting'	=> 'home_electrician_h6_font_size',
		'type'	=> 'text'
	));

	//Topbar section
	$wp_customize->add_section('home_electrician_topbar',array(
		'title'	=> esc_html__('Topbar','home-electrician'),
		'priority'	=> null,
		'panel' => 'home_electrician_panel_id',
	));

	$wp_customize->add_setting( 'home_electrician_sticky_header',array(
		'default'	=> false,
      	'sanitize_callback'	=> 'home_electrician_sanitize_checkbox'
    ) );
    $wp_customize->add_control('home_electrician_sticky_header',array(
    	'type' => 'checkbox',
    	'description' => __( 'Click on the checkbox to enable sticky header.', 'home-electrician' ),
        'label' => __( 'Sticky Header','home-electrician' ),
        'section' => 'home_electrician_topbar'
    ));

	
	$wp_customize->add_setting('home_electrician_header_btntext',array(
		'default'	=> 'Get Quote',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_header_btntext',array(
		'label'	=> __('Button Text','home-electrician'),
		'section' => 'home_electrician_topbar',
		'type'	 => 'text' 
	));

	$wp_customize->add_setting('home_electrician_header_btnlink',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_header_btnlink',array(
		'label'	=> __('Button Link','home-electrician'),
		'section' => 'home_electrician_topbar',
		'type'	 => 'text'
	));

	$wp_customize->add_setting( 'home_electrician_headermenu_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_headermenu_color', array(
		'label' => __('Menu Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_headermenu_color',
	)));

	$wp_customize->add_setting( 'home_electrician_headermenubg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_headermenubg_color', array(
		'label' => __('Menu BG Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_headermenubg_color',
	)));

	$wp_customize->add_setting( 'home_electrician_headeractivemenuhover_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_headeractivemenuhover_color', array(
		'label' => __('Active Menu & Hover Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_headeractivemenuhover_color',
	)));

	$wp_customize->add_setting( 'home_electrician_headersubmenuicon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_headersubmenuicon_color', array(
		'label' => __('Submenu Icon Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_headersubmenuicon_color',
	)));

	$wp_customize->add_setting( 'home_electrician_headersubmenu_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_headersubmenu_color', array(
		'label' => __('Submenu Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_headersubmenu_color',
	)));
	
	$wp_customize->add_setting( 'home_electrician_headersubmenuhover_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_headersubmenuhover_color', array(
		'label' => __('Submenu Hover Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_headersubmenuhover_color',
	)));

	$wp_customize->add_setting( 'home_electrician_headersubmenubg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_headersubmenubg_color', array(
		'label' => __('Submenu BG Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_headersubmenubg_color',
	)));

	$wp_customize->add_setting( 'home_electrician_buttontext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_buttontext_color', array(
		'label' => __('Button Text Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_buttontext_color',
	)));

	$wp_customize->add_setting( 'home_electrician_buttonbg_color', array(
		'default'           => '',
		'sanitize_callback' => 'sanitize_hex_color',
	) );

	$wp_customize->add_control( new WP_Customize_Color_Control(
		$wp_customize,
		'home_electrician_buttonbg_color',
		array(
			'label'    => __( 'Button BG Color', 'home-electrician' ),
			'section'  => 'home_electrician_topbar',
			'settings' => 'home_electrician_buttonbg_color',
		)
	) );

	$wp_customize->add_setting( 'home_electrician_buttonhvrtext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_buttonhvrtext_color', array(
		'label' => __('Button Hover Text Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_buttonhvrtext_color',
	)));

	$wp_customize->add_setting( 'home_electrician_buttonhrvbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_buttonhrvbg_color', array(
		'label' => __('Button Hover BG Color', 'home-electrician'),
		'section' => 'home_electrician_topbar',
		'settings' => 'home_electrician_buttonhrvbg_color',
	)));


	//home page slider
	$wp_customize->add_section( 'home_electrician_slidersettings' , array(
    	'title'      => esc_html__( 'Slider Settings', 'home-electrician' ),
		'priority'   => null,
		'panel' => 'home_electrician_panel_id'
	) );

	$wp_customize->add_setting('home_electrician_slider_hide_show',array(
       'default' => true,
       'sanitize_callback'	=> 'home_electrician_sanitize_checkbox'
	));
	$wp_customize->add_control('home_electrician_slider_hide_show',array(
	   'type' => 'checkbox',
	   'description' => __( 'Click on the checkbox to enable slider.', 'home-electrician' ),
	   'label' => esc_html__('Show / Hide slider','home-electrician'),
	   'section' => 'home_electrician_slidersettings',
	));

	for ( $count = 1; $count <= 4; $count++ ) {
		$wp_customize->add_setting( 'home_electrician_slider_page' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'home_electrician_sanitize_dropdown_pages'
		) );
		$wp_customize->add_control( 'home_electrician_slider_page' . $count, array(
			'label'    => esc_html__( 'Select Slider Page', 'home-electrician' ),
			'section'  => 'home_electrician_slidersettings',
			'type'     => 'dropdown-pages'
		) );
	}

	$wp_customize->add_setting('home_electrician_slider_subtitle',array(
		'default'	=> 'One Platform',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_slider_subtitle',array(
		'label'	=> __('Sub Title','home-electrician'),
		'section' => 'home_electrician_slidersettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting(
    	'home_electrician_slider_img',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'home_electrician_slider_img',
	        array(
			    'label'   		=> __('Image','home-electrician'),
				'description'   		=> __('Image size 690*500','home-electrician'),
	            'section' => 'home_electrician_slidersettings',
	            'settings' => 'home_electrician_slider_img',
	        )
	    )
	);

	$wp_customize->add_setting('home_electrician_slider_getfreeconsultation_link',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_slider_getfreeconsultation_link',array(
		'label'	=> __('Get Free Quote Button Link','home-electrician'),
		'section' => 'home_electrician_slidersettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting( 'home_electricianslider_heading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianslider_heading_color', array(
		'label' => __('Heading Color', 'home-electrician'),
		'section' => 'home_electrician_slidersettings',
		'settings' => 'home_electricianslider_heading_color',
	)));

	$wp_customize->add_setting( 'home_electricianslider_description_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianslider_description_color', array(
		'label' => __('Description Color', 'home-electrician'),
		'section' => 'home_electrician_slidersettings',
		'settings' => 'home_electricianslider_description_color',
	)));

	$wp_customize->add_setting( 'home_electricianslider_btn1text_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianslider_btn1text_color', array(
		'label' => __('Button Text Color', 'home-electrician'),
		'section' => 'home_electrician_slidersettings',
		'settings' => 'home_electricianslider_btn1text_color',
	)));

	
	//home page whoweare
	$wp_customize->add_section( 'home_electrician_whowearesettings' , array(
    	'title'      => esc_html__( 'Who We Are Settings', 'home-electrician' ),
		'priority'   => null,
		'panel' => 'home_electrician_panel_id'
	) );

	$wp_customize->add_setting('home_electrician_whoweare_heading',array(
		'default'	=> 'WHO ARE ARE',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_whoweare_heading',array(
		'label'	=> __('Heading','home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('home_electrician_whoweare_description',array(
		'default'	=> 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_whoweare_description',array(
		'label'	=> __('Description','home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting(
    	'home_electrician_whoweare_image1',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'home_electrician_whoweare_image1',
	        array(
			    'label'   		=> __('Image 1','home-electrician'),
				'description'   		=> __('Image size 690*500','home-electrician'),
	            'section' => 'home_electrician_whowearesettings',
	            'settings' => 'home_electrician_whoweare_image1',
	        )
	    )
	);

	$wp_customize->add_setting('home_electrician_whoweare_imgheading',array(
		'default'	=> 'EXPERTISE THAT SPARKS INNOVATION',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_whoweare_imgheading',array(
		'label'	=> __('Image Heading','home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('home_electrician_whoweare_yearnum',array(
		'default'	=> '15',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_whoweare_yearnum',array(
		'label'	=> __('Year Number','home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting(
    	'home_electrician_whoweare_image2',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'home_electrician_whoweare_image2',
	        array(
			    'label'   		=> __('Image 1','home-electrician'),
				'description'   		=> __('Image size 690*500','home-electrician'),
	            'section' => 'home_electrician_whowearesettings',
	            'settings' => 'home_electrician_whoweare_image2',
	        )
	    )
	);

	$wp_customize->add_setting('home_electrician_whoweare_text1',array(
		'default'	=> 'ADVANCED TECHNOLOGY',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_whoweare_text1',array(
		'label'	=> __('Text 1','home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('home_electrician_whoweare_text2',array(
		'default'	=> 'INNOVATION SOLUTIONS',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_whoweare_text2',array(
		'label'	=> __('Text 2','home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('home_electrician_whoweare_text3',array(
		'default'	=> 'MODERN EQUIPMENTS',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_whoweare_text3',array(
		'label'	=> __('Text 3','home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('home_electrician_whoweare_text4',array(
		'default'	=> 'QUICK RESPONSE',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_whoweare_text4',array(
		'label'	=> __('Text 4','home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting( 'home_electrician_whoweare_heading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_whoweare_heading_color', array(
		'label' => __('Heading Color', 'home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'settings' => 'home_electrician_whoweare_heading_color',
	)));

	$wp_customize->add_setting( 'home_electrician_whoweare_description_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_whoweare_description_color', array(
		'label' => __('Description Color', 'home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'settings' => 'home_electrician_whoweare_description_color',
	)));

	$wp_customize->add_setting( 'home_electrician_whoweare_imgheading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_whoweare_imgheading_color', array(
		'label' => __('Image Heading Color', 'home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'settings' => 'home_electrician_whoweare_imgheading_color',
	)));

	$wp_customize->add_setting( 'home_electrician_whoweare_yearofexp_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_whoweare_yearofexp_color', array(
		'label' => __('Year Of Exp Color', 'home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'settings' => 'home_electrician_whoweare_yearofexp_color',
	)));

	$wp_customize->add_setting( 'home_electrician_whoweare_featuretext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_whoweare_featuretext_color', array(
		'label' => __('Year Of Exp Color', 'home-electrician'),
		'section' => 'home_electrician_whowearesettings',
		'settings' => 'home_electrician_whoweare_featuretext_color',
	)));




	// ourservices Settings
	$wp_customize->add_section('home_electrician_ourservices_section',array(
		'title'	=> __('Our Services Settings','home-electrician'),
		'panel' => 'home_electrician_panel_id',
	));

	$wp_customize->add_setting('home_electrician_btn_ourservicesubheading',array(
		'default'	=> 'Services',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_btn_ourservicesubheading',array(
		'label'	=> __('Heading','home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('home_electrician_btn_ourservicesheading',array(
		'default'	=> 'reliable Electricians services backed by exper ',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_btn_ourservicesheading',array(
		'label'	=> __('Sub Heading','home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'type'	 => 'text'
	));	

	// ourservices Page 1
	$wp_customize->add_setting('home_electrician_ourservices_page_1', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	));
	$wp_customize->add_control('home_electrician_ourservices_page_1', array(
		'label'   => __('Select Page 1', 'home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'type'    => 'dropdown-pages',
	));

	// ourservices Page 2
	$wp_customize->add_setting('home_electrician_ourservices_page_2', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	));
	$wp_customize->add_control('home_electrician_ourservices_page_2', array(
		'label'   => __('Select Page 2', 'home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'type'    => 'dropdown-pages',
	));

	// ourservices Page 3
	$wp_customize->add_setting('home_electrician_ourservices_page_3', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	));
	$wp_customize->add_control('home_electrician_ourservices_page_3', array(
		'label'   => __('Select Page 3', 'home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'type'    => 'dropdown-pages',
	));

	$wp_customize->add_setting( 'home_electricianourservices_subheading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianourservices_subheading_color', array(
		'label' => __('Sub Heading Color', 'home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'settings' => 'home_electricianourservices_subheading_color',
	)));

	$wp_customize->add_setting( 'home_electricianourservices_heading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianourservices_heading_color', array(
		'label' => __('Heading Color', 'home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'settings' => 'home_electricianourservices_heading_color',
	)));

	$wp_customize->add_setting( 'home_electricianourservices_boxtitle_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianourservices_boxtitle_color', array(
		'label' => __('Page Title Color', 'home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'settings' => 'home_electricianourservices_boxtitle_color',
	)));

	$wp_customize->add_setting( 'home_electricianourservices_titlehvrbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianourservices_titlehvrbg_color', array(
		'label' => __('Title Hover BG Color', 'home-electrician'),
		'section' => 'home_electrician_ourservices_section',
		'settings' => 'home_electricianourservices_titlehvrbg_color',
	)));



	//footer
	$wp_customize->add_section('home_electrician_footer_section',array(
		'title'	=> esc_html__('Footer Settings','home-electrician'),
		'panel' => 'home_electrician_panel_id'
	));
		
	$wp_customize->add_setting('home_electrician_footer_copy',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('home_electrician_footer_copy',array(
		'label'	=> esc_html__('Copyright Text','home-electrician'),
		'section'	=> 'home_electrician_footer_section',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('home_electrician_footer_copy_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('home_electrician_footer_copy_font_size',array(
		'label'	=> __('Copyright Font Size','home-electrician'),
		'section' => 'home_electrician_footer_section',
		'type'	 => 'number'
	));

	$wp_customize->add_setting( 'home_electricianfooter_copyrighttext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianfooter_copyrighttext_color', array(
		'label' => __('Copyright Text Color', 'home-electrician'),
		'section' => 'home_electrician_footer_section',
		'settings' => 'home_electricianfooter_copyrighttext_color',
	)));

	$wp_customize->add_setting( 'home_electricianfooter_copyrightbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianfooter_copyrightbg_color', array(
		'label' => __('Copyright BG Color', 'home-electrician'),
		'section' => 'home_electrician_footer_section',
		'settings' => 'home_electricianfooter_copyrightbg_color',
	)));

	$wp_customize->add_setting( 'home_electricianfooter_bg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electricianfooter_bg_color', array(
		'label' => __('BG Color', 'home-electrician'),
		'section' => 'home_electrician_footer_section',
		'settings' => 'home_electricianfooter_bg_color',
	)));

	$wp_customize->add_setting( 'home_electrician_wedgets_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_wedgets_color', array(
		'label' => __('Wedgets Title Color', 'home-electrician'),
		'section' => 'home_electrician_footer_section',
		'settings' => 'home_electrician_wedgets_color',
	)));

	$wp_customize->add_setting( 'home_electrician_wedgets_menus_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_wedgets_menus_color', array(
		'label' => __('Wedgets Menus Color', 'home-electrician'),
		'section' => 'home_electrician_footer_section',
		'settings' => 'home_electrician_wedgets_menus_color',
	)));

	//Wocommerce Shop Page
	$wp_customize->add_section('home_electrician_woocommerce_shop_page',array(
		'title'	=> __('Woocommerce Shop Page','home-electrician'),
		'panel' => 'home_electrician_panel_id'
	));

	$wp_customize->add_setting( 'home_electrician_products_per_column' , array(
		'default'           => 3,
		'transport'         => 'refresh',
		'sanitize_callback' => 'home_electrician_sanitize_choices',
	) );
	$wp_customize->add_control( 'home_electrician_products_per_column', array(
		'label'    => __( 'Product Per Columns', 'home-electrician' ),
		'description'	=> __('How many products should be shown per Column?','home-electrician'),
		'section'  => 'home_electrician_woocommerce_shop_page',
		'type'     => 'select',
		'choices'  => array(
			'2' => '2',
			'3' => '3',
			'4' => '4',
			'5' => '5',
		),
	)  );

	$wp_customize->add_setting('home_electrician_products_per_page',array(
		'default'	=> 9,
		'sanitize_callback'	=> 'home_electrician_sanitize_float',
	));	
	$wp_customize->add_control('home_electrician_products_per_page',array(
		'label'	=> __('Product Per Page','home-electrician'),
		'description'	=> __('How many products should be shown per page?','home-electrician'),
		'section'	=> 'home_electrician_woocommerce_shop_page',
		'type'		=> 'number'
	));

	

	$wp_customize->add_setting( 'home_electrician_product_btn_bg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_product_btn_bg_color', array(
		'label' => __('Button Background Color', 'home-electrician'),
		'section' => 'home_electrician_woocommerce_shop_page',
		'settings' => 'home_electrician_product_btn_bg_color',
	)));

	
	$wp_customize->add_setting( 'home_electrician_product_btn_hover_bg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_product_btn_hover_bg_color', array(
		'label' => __('Button Hover Background Color', 'home-electrician'),
		'section' => 'home_electrician_woocommerce_shop_page',
		'settings' => 'home_electrician_product_btn_hover_bg_color',
	)));

	$wp_customize->add_setting( 'home_electrician_product_sale_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_product_sale_color', array(
		'label' => __('Sale Badge Color', 'home-electrician'),
		'section' => 'home_electrician_woocommerce_shop_page',
		'settings' => 'home_electrician_product_sale_color',
	)));

	// site logo size
	$wp_customize->add_setting('home_electrician_logo_size',array(
		'default' => '',
		'sanitize_callback'	=> 'home_electrician_sanitize_float'
	));
	$wp_customize->add_control('home_electrician_logo_size',array(
		'type' => 'range',
		'label' => __('Logo Size','home-electrician'),
		'section' => 'title_tagline'
	));

	// logo site title
	$wp_customize->add_setting('home_electrician_site_title_tagline',array(
       'default' => true,
       'sanitize_callback'	=> 'home_electrician_sanitize_checkbox'
    ));
    $wp_customize->add_control('home_electrician_site_title_tagline',array(
       'type' => 'checkbox',
       'label' => __('Display Site Title and Tagline in Header','home-electrician'),
       'section' => 'title_tagline'
    ));

    $wp_customize->add_setting( 'home_electrician_site_title_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_site_title_color', array(
		'label' => __('Site Title Color', 'home-electrician'),
		'section' => 'title_tagline',
		'settings' => 'home_electrician_site_title_color',
	)));

    $wp_customize->add_setting( 'home_electrician_site_tagline_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'home_electrician_site_tagline_color', array(
		'label' => __('Site Tagline Color', 'home-electrician'),
		'section' => 'title_tagline',
		'settings' => 'home_electrician_site_tagline_color',
	)));
}
add_action( 'customize_register', 'home_electrician_customize_register' );