<?php
/**
 * Expert Computer Repair Theme Customizer
 *
 * @package Expert Computer Repair
 */

/**
 * @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 Expert_Computer_Repair_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( 'Expert_Computer_Repair_Customize_Section_Pro' );

		// Register sections.
		$manager->add_section(
			new Expert_Computer_Repair_Customize_Section_Pro(
				$manager,
				'example_1',
				array(
					'priority' => 9,
					'title'    => esc_html__( 'Expert Computer Repair Pro', 'expert-computer-repair' ),
					'description' => __( 'Buy now and enjoy exclusive discounts!', 'expert-computer-repair' ),
					'pro_text' => esc_html__( 'Go Pro', 'expert-computer-repair' ),
					'pro_url'  => esc_url( 'https://www.logicalthemes.com/products/premium-expert-computer-repair-wordpress-template/' ),
				)
			)
		);
	}

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

		wp_enqueue_script( 'expert-computer-repair-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/js/customize-controls.js', array( 'customize-controls' ) );

		wp_enqueue_style( 'expert-computer-repair-customize-controls', trailingslashit( esc_url(get_template_directory_uri()) ) . '/assets/css/customize-controls.css' );
	}
}

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

function expert_computer_repair_customize_register( $wp_customize ) {	

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

	//Layout Setting
	$wp_customize->add_section( 'expert_computer_repair_left_right' , array(
    	'title'      => esc_html__( 'General Settings', 'expert-computer-repair' ),
		'priority'   => null,
		'panel' => 'expert_computer_repair_panel_id'
	) );

	//Select width layout
    $wp_customize->add_setting('expert_computer_repair_width_options',array(
        'default' => 'Full Width',
        'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control('expert_computer_repair_width_options',array(
        'type' => 'radio',
        'label' => __('Select Width Layout','expert-computer-repair'),
        'section' => 'expert_computer_repair_left_right',
        'choices' => array(
        	'Full Width' => esc_html__('Full Width','expert-computer-repair'),
            'Contained Width' => esc_html__('Contained Width','expert-computer-repair'),
            'Boxed Width' => esc_html__('Boxed Width','expert-computer-repair'),
        ),
	) );

	$wp_customize->add_setting('expert_computer_repair_theme_options',array(
        'default' => 'One Column',
        'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control('expert_computer_repair_theme_options',array(
        'type' => 'radio',
        'description' => __( 'Choose sidebar between different options', 'expert-computer-repair' ),
        'label' => esc_html__( 'Post Sidebar Layout.', 'expert-computer-repair' ),
        'section' => 'expert_computer_repair_left_right',
        'choices' => array(
            'One Column' => esc_html__('One Column ','expert-computer-repair'),
            'Three Columns' => esc_html__('Three Columns','expert-computer-repair'),
            'Four Columns' => esc_html__('Four Columns','expert-computer-repair'),
            'Right Sidebar' => esc_html__('Right Sidebar','expert-computer-repair'),
            'Left Sidebar' => esc_html__('Left Sidebar','expert-computer-repair'),
            'Grid Layout' => esc_html__('Grid Layout','expert-computer-repair')
        ),
	));

	$wp_customize->add_setting('expert_computer_repair_dropdown_anim',array(
		'default' => '',
		'capability' => 'edit_theme_options',
		'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control('expert_computer_repair_dropdown_anim', array(
		'section'  => 'expert_computer_repair_left_right',
		'label'    => __( 'Submenu Dropdown Effect','expert-computer-repair'),
		'type'     => 'select',
		'choices'  => array(
			'bounceInUp' => __('bounceInUp', 'expert-computer-repair'),
			'zoomIn' => __('zoomIn', 'expert-computer-repair'),
			'flip-up' => __('flip-up', 'expert-computer-repair'),
			'none' => __('none', 'expert-computer-repair')
		)
	));

	$expert_computer_repair_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( 'expert_computer_repair_typography', array(
    	'title'      => __( 'Typography', 'expert-computer-repair' ),
		'priority'   => null,
		'panel' => 'expert_computer_repair_panel_id'
	) );
	
	// This is Paragraph Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_paragraph_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_paragraph_color', array(
		'label' => __('Paragraph Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_paragraph_color',
	)));

	//This is Paragraph FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_paragraph_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_paragraph_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( 'Paragraph Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	$wp_customize->add_setting('expert_computer_repair_paragraph_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_paragraph_font_size',array(
		'label'	=> __('Paragraph Font Size','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_typography',
		'setting'	=> 'expert_computer_repair_paragraph_font_size',
		'type'	=> 'text'
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_atag_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_atag_color', array(
		'label' => __('"a" Tag Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_atag_color',
	)));

	//This is "a" Tag FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_atag_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_atag_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( '"a" Tag Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	// This is "a" Tag Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_li_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_li_color', array(
		'label' => __('"li" Tag Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_li_color',
	)));

	//This is "li" Tag FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_li_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_li_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( '"li" Tag Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	// This is H1 Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_h1_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_h1_color', array(
		'label' => __('H1 Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_h1_color',
	)));

	//This is H1 FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_h1_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_h1_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( 'H1 Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	//This is H1 FontSize setting
	$wp_customize->add_setting('expert_computer_repair_h1_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_h1_font_size',array(
		'label'	=> __('H1 Font Size','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_typography',
		'setting'	=> 'expert_computer_repair_h1_font_size',
		'type'	=> 'text'
	));

	// This is H2 Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_h2_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_h2_color', array(
		'label' => __('H2 Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_h2_color',
	)));

	//This is H2 FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_h2_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_h2_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( 'H2 Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	//This is H2 FontSize setting
	$wp_customize->add_setting('expert_computer_repair_h2_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_h2_font_size',array(
		'label'	=> __('H2 Font Size','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_typography',
		'setting'	=> 'expert_computer_repair_h2_font_size',
		'type'	=> 'text'
	));

	// This is H3 Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_h3_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_h3_color', array(
		'label' => __('H3 Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_h3_color',
	)));

	//This is H3 FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_h3_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_h3_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( 'H3 Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	//This is H3 FontSize setting
	$wp_customize->add_setting('expert_computer_repair_h3_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_h3_font_size',array(
		'label'	=> __('H3 Font Size','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_typography',
		'setting'	=> 'expert_computer_repair_h3_font_size',
		'type'	=> 'text'
	));

	// This is H4 Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_h4_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_h4_color', array(
		'label' => __('H4 Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_h4_color',
	)));

	//This is H4 FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_h4_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_h4_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( 'H4 Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	//This is H4 FontSize setting
	$wp_customize->add_setting('expert_computer_repair_h4_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_h4_font_size',array(
		'label'	=> __('H4 Font Size','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_typography',
		'setting'	=> 'expert_computer_repair_h4_font_size',
		'type'	=> 'text'
	));

	// This is H5 Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_h5_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_h5_color', array(
		'label' => __('H5 Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_h5_color',
	)));

	//This is H5 FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_h5_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_h5_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( 'H5 Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	//This is H5 FontSize setting
	$wp_customize->add_setting('expert_computer_repair_h5_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_h5_font_size',array(
		'label'	=> __('H5 Font Size','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_typography',
		'setting'	=> 'expert_computer_repair_h5_font_size',
		'type'	=> 'text'
	));

	// This is H6 Color picker setting
	$wp_customize->add_setting( 'expert_computer_repair_h6_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_h6_color', array(
		'label' => __('H6 Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_typography',
		'settings' => 'expert_computer_repair_h6_color',
	)));

	//This is H6 FontFamily picker setting
	$wp_customize->add_setting('expert_computer_repair_h6_font_family',array(
	  'default' => '',
	  'capability' => 'edit_theme_options',
	  'sanitize_callback' => 'expert_computer_repair_sanitize_choices'
	));
	$wp_customize->add_control(
	    'expert_computer_repair_h6_font_family', array(
	    'section'  => 'expert_computer_repair_typography',
	    'label'    => __( 'H6 Fonts','expert-computer-repair'),
	    'type'     => 'select',
	    'choices'  => $expert_computer_repair_font_array,
	));

	//This is H6 FontSize setting
	$wp_customize->add_setting('expert_computer_repair_h6_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_h6_font_size',array(
		'label'	=> __('H6 Font Size','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_typography',
		'setting'	=> 'expert_computer_repair_h6_font_size',
		'type'	=> 'text'
	));

	//Topbar section
	$wp_customize->add_section('expert_computer_repair_topbar',array(
		'title'	=> esc_html__('Topbar','expert-computer-repair'),
		'priority'	=> null,
		'panel' => 'expert_computer_repair_panel_id',
	));

	$wp_customize->add_setting( 'expert_computer_repair_sticky_header',array(
		'default'	=> false,
      	'sanitize_callback'	=> 'expert_computer_repair_sanitize_checkbox'
    ) );
    $wp_customize->add_control('expert_computer_repair_sticky_header',array(
    	'type' => 'checkbox',
    	'description' => __( 'Click on the checkbox to enable sticky header.', 'expert-computer-repair' ),
        'label' => __( 'Sticky Header','expert-computer-repair' ),
        'section' => 'expert_computer_repair_topbar'
    ));

	$wp_customize->add_setting('expert_computer_repair_header_phonenum',array(
		'default'	=> '000-111-2222',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_header_phonenum',array(
		'label'	=> __('Phone Number','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text' 
	));

	$wp_customize->add_setting('expert_computer_repair_headeremail',array(
		'default'	=> 'example@example.com',
		'sanitize_callback'	=> 'sanitize_email'
	));
	$wp_customize->add_control('expert_computer_repair_headeremail',array(
		'label'	=> __('Mail','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text' 
	));

	$wp_customize->add_setting('expert_computer_repair_header_tophead_text',array(
		'default'	=> 'Certified Experts | Same Day Service Available',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_header_tophead_text',array(
		'label'	=> __('Top Head Text','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text' 
	));

	$wp_customize->add_setting('expert_computer_repair_timingheading',array(
		'default'	=> 'OPEN 24/7',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_timingheading',array(
		'label'	=> __('Timing Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text' 
	));

	$wp_customize->add_setting('expert_computer_repair_timing',array(
		'default'	=> 'MON-SUN : 8AM - 8PM',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_timing',array(
		'label'	=> __('Timing','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text' 
	));

	$wp_customize->add_setting('expert_computer_repair_headertwitterlink',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_headertwitterlink',array(
		'label'	=> __('Twitter Icon Link','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_headerinstagramlink',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_headerinstagramlink',array(
		'label'	=> __('Instagram Icon Link','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_headerpinterestlink',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_headerpinterestlink',array(
		'label'	=> __('Pinterest Icon Link','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_headerfacebooklink',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_headerfacebooklink',array(
		'label'	=> __('Facebook Icon Link','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_header_btntext',array(
		'default'	=> 'Get Quote',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_header_btntext',array(
		'label'	=> __('Button Text','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text' 
	));

	$wp_customize->add_setting('expert_computer_repair_header_btnlink',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_header_btnlink',array(
		'label'	=> __('Button Link','expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'type'	 => 'text'
	));

	$wp_customize->add_setting( 'expert_computer_repair_header_topheadbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_topheadbg_color', array(
		'label' => __('Top Head BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_topheadbg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_phnmail_icon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_phnmail_icon_color', array(
		'label' => __('Top Head Phone & Mail Icon Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_phnmail_icon_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_phnmail_iconbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_phnmail_iconbg_color', array(
		'label' => __('Top Head Phone & Mail Icon BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_phnmail_iconbg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_phnmail_text_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_phnmail_text_color', array(
		'label' => __('Top Head Phone & Mail Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_phnmail_text_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_texticon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_texticon_color', array(
		'label' => __('Top Head Text Icon Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_texticon_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_texticonbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_texticonbg_color', array(
		'label' => __('Top Head Text Icon BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_texticonbg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_text_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_text_color', array(
		'label' => __('Top Head Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_text_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_timingicon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_timingicon_color', array(
		'label' => __('Timing Icon Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_timingicon_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_timingiconbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_timingiconbg_color', array(
		'label' => __('Timing Icon BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_timingiconbg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_timinghead_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_timinghead_color', array(
		'label' => __('Timing Head Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_timinghead_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_timing_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_timing_color', array(
		'label' => __('Timing Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_timing_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_header_tophead_socialicon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_header_tophead_socialicon_color', array(
		'label' => __('Top Head Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_header_tophead_socialicon_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_headermenu_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_headermenu_color', array(
		'label' => __('Menu Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_headermenu_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_headeractivemenuhover_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_headeractivemenuhover_color', array(
		'label' => __('Active Menu & Hover Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_headeractivemenuhover_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_headersubmenuicon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_headersubmenuicon_color', array(
		'label' => __('Submenu Icon Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_headersubmenuicon_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_headersubmenu_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_headersubmenu_color', array(
		'label' => __('Submenu Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_headersubmenu_color',
	)));
	
	$wp_customize->add_setting( 'expert_computer_repair_headersubmenuhover_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_headersubmenuhover_color', array(
		'label' => __('Submenu Hover Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_headersubmenuhover_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_headersubmenubg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_headersubmenubg_color', array(
		'label' => __('Submenu BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_headersubmenubg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_buttontext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_buttontext_color', array(
		'label' => __('Button Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_buttontext_color',
	)));

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

	$wp_customize->add_control( new WP_Customize_Color_Control(
		$wp_customize,
		'expert_computer_repair_buttonbg_color',
		array(
			'label'    => __( 'Button BG Color', 'expert-computer-repair' ),
			'section'  => 'expert_computer_repair_topbar',
			'settings' => 'expert_computer_repair_buttonbg_color',
		)
	) );

	$wp_customize->add_setting( 'expert_computer_repair_buttonhvrtext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_buttonhvrtext_color', array(
		'label' => __('Button Hover Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_buttonhvrtext_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_buttonhrvbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_buttonhrvbg_color', array(
		'label' => __('Button Hover BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_topbar',
		'settings' => 'expert_computer_repair_buttonhrvbg_color',
	)));


	//home page slider
	$wp_customize->add_section( 'expert_computer_repair_slidersettings' , array(
    	'title'      => esc_html__( 'Slider Settings', 'expert-computer-repair' ),
		'priority'   => null,
		'panel' => 'expert_computer_repair_panel_id'
	) );

	$wp_customize->add_setting('expert_computer_repair_slider_hide_show',array(
       'default' => true,
       'sanitize_callback'	=> 'expert_computer_repair_sanitize_checkbox'
	));
	$wp_customize->add_control('expert_computer_repair_slider_hide_show',array(
	   'type' => 'checkbox',
	   'description' => __( 'Click on the checkbox to enable slider.', 'expert-computer-repair' ),
	   'label' => esc_html__('Show / Hide slider','expert-computer-repair'),
	   'section' => 'expert_computer_repair_slidersettings',
	));

	for ( $count = 1; $count <= 4; $count++ ) {
		$wp_customize->add_setting( 'expert_computer_repair_slider_page' . $count, array(
			'default'           => '',
			'sanitize_callback' => 'expert_computer_repair_sanitize_dropdown_pages'
		) );
		$wp_customize->add_control( 'expert_computer_repair_slider_page' . $count, array(
			'label'    => esc_html__( 'Select Slider Page', 'expert-computer-repair' ),
			'section'  => 'expert_computer_repair_slidersettings',
			'type'     => 'dropdown-pages'
		) );
	}


	$wp_customize->add_setting('expert_computer_repair_slider_getfreeconsultation_link',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_slider_getfreeconsultation_link',array(
		'label'	=> __('Get Free Quote Button Link','expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_slider_viewportfoliobtn_link',array(
		'default'	=> '#',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_slider_viewportfoliobtn_link',array(
		'label'	=> __('Call Now Button Link','expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting( 'expert_computer_repairslider_heading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairslider_heading_color', array(
		'label' => __('Heading Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'settings' => 'expert_computer_repairslider_heading_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairslider_headingbrd_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairslider_headingbrd_color', array(
		'label' => __('Heading Border Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'settings' => 'expert_computer_repairslider_headingbrd_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairslider_description_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairslider_description_color', array(
		'label' => __('Description Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'settings' => 'expert_computer_repairslider_description_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairslider_btn1text_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairslider_btn1text_color', array(
		'label' => __('Button 1 Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'settings' => 'expert_computer_repairslider_btn1text_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairslider_btn1bg1_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairslider_btn1bg1_color', array(
		'label' => __('Button 1 BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'settings' => 'expert_computer_repairslider_btn1bg1_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairslider_btn2text_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairslider_btn2text_color', array(
		'label' => __('Button 2 Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'settings' => 'expert_computer_repairslider_btn2text_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairslider_btn2brd_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairslider_btn2brd_color', array(
		'label' => __('Button 2 Border Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_slidersettings',
		'settings' => 'expert_computer_repairslider_btn2brd_color',
	)));

	
	//home page feature
	$wp_customize->add_section( 'expert_computer_repair_featuresettings' , array(
    	'title'      => esc_html__( 'Feature Settings', 'expert-computer-repair' ),
		'priority'   => null,
		'panel' => 'expert_computer_repair_panel_id'
	) );

	$wp_customize->add_setting('expert_computer_repair_feature_icon1',array(
		'default'	=> 'fas fa-home',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_icon1',array(
		'label'	=> __('Box 1 Icon','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_feature_box1_heading',array(
		'default'	=> 'Desktop Repair',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_box1_heading',array(
		'label'	=> __('Box 1 Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_feature_icon2',array(
		'default'	=> 'fas fa-volume-up',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_icon2',array(
		'label'	=> __('Box 2 Icon','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_feature_box2_heading',array(
		'default'	=> 'Speaker Repair',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_box2_heading',array(
		'label'	=> __('Box 2 Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_feature_icon3',array(
		'default'	=> 'fa-regular fa-hard-drive',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_icon3',array(
		'label'	=> __('Box 3 Icon','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_feature_box3_heading',array(
		'default'	=> 'Hard Disk Repair',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_box3_heading',array(
		'label'	=> __('Box 3 Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_feature_icon4',array(
		'default'	=> 'fa-solid fa-mobile-screen-button',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_icon4',array(
		'label'	=> __('Box 4 Icon','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_feature_box4_heading',array(
		'default'	=> 'Mobile Repair',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_box4_heading',array(
		'label'	=> __('Box 4 Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_feature_icon5',array(
		'default'	=> 'fa-solid fa-print',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_icon5',array(
		'label'	=> __('Box 5 Icon','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_feature_box5_heading',array(
		'default'	=> 'Printer Repair',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_box5_heading',array(
		'label'	=> __('Box 5 Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_feature_icon6',array(
		'default'	=> 'fa-solid fa-laptop',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_icon6',array(
		'label'	=> __('Box 6 Icon','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_feature_box6_heading',array(
		'default'	=> 'Laptop Repair',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_box6_heading',array(
		'label'	=> __('Box 6 Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_feature_icon7',array(
		'default'	=> 'fa-solid fa-microchip',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_icon7',array(
		'label'	=> __('Box 7 Icon','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_feature_box7_heading',array(
		'default'	=> 'Mother Board Repair',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_box7_heading',array(
		'label'	=> __('Box 7 Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_feature_icon8',array(
		'default'	=> 'fa-solid fa-desktop',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_icon8',array(
		'label'	=> __('Box 8 Icon','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_feature_box8_heading',array(
		'default'	=> 'Monitor Repair',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_feature_box8_heading',array(
		'label'	=> __('Box 8 Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'type'	 => 'text'
	));	


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

	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_feature_icon_color', array(
		'label' => __('Icon Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'settings' => 'expert_computer_repair_feature_icon_color',
	)));

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

	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_feature_heading_color', array(
		'label' => __('Heading Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_featuresettings',
		'settings' => 'expert_computer_repair_feature_heading_color',
	)));



	// ourservices Settings
	$wp_customize->add_section('expert_computer_repair_ourservices_section',array(
		'title'	=> __('Our Services Settings','expert-computer-repair'),
		'panel' => 'expert_computer_repair_panel_id',
	));

	$wp_customize->add_setting('expert_computer_repair_btn_ourservicesubheading',array(
		'default'	=> 'Premium Services',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_btn_ourservicesubheading',array(
		'label'	=> __('Sub Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_btn_ourservicesheading',array(
		'default'	=> 'Expert',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_btn_ourservicesheading',array(
		'label'	=> __('Heading','expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'type'	 => 'text'
	));	

	$wp_customize->add_setting('expert_computer_repair_btn_ourservicesheadingspan',array(
		'default'	=> 'Repair Solutions',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_btn_ourservicesheadingspan',array(
		'label'	=> __('Heading Span','expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'type'	 => 'text'
	));	


	$wp_customize->add_setting('expert_computer_repair_btn_ourservicesdescription',array(
		'default'	=> 'Comprehensive tech repair services backed by certified technicians and genuine parts',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_btn_ourservicesdescription',array(
		'label'	=> __('Description','expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'type'	 => 'text'
	));	

	


	// ourservices Page 1
	$wp_customize->add_setting('expert_computer_repair_ourservices_page_1', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	));
	$wp_customize->add_control('expert_computer_repair_ourservices_page_1', array(
		'label'   => __('Select Page 1', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'type'    => 'dropdown-pages',
	));

	// ourservices Page 2
	$wp_customize->add_setting('expert_computer_repair_ourservices_page_2', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	));
	$wp_customize->add_control('expert_computer_repair_ourservices_page_2', array(
		'label'   => __('Select Page 2', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'type'    => 'dropdown-pages',
	));

	// ourservices Page 3
	$wp_customize->add_setting('expert_computer_repair_ourservices_page_3', array(
		'default'           => '',
		'sanitize_callback' => 'absint',
	));
	$wp_customize->add_control('expert_computer_repair_ourservices_page_3', array(
		'label'   => __('Select Page 3', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'type'    => 'dropdown-pages',
	));

	$wp_customize->add_setting( 'expert_computer_repairourservices_subheading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_subheading_color', array(
		'label' => __('Sub Heading Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_subheading_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_backgroundsubheading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_backgroundsubheading_color', array(
		'label' => __('Background Sub Heading Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_backgroundsubheading_color',
	)));


	$wp_customize->add_setting( 'expert_computer_repairourservices_heading_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_heading_color', array(
		'label' => __('Heading Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_heading_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_headingspan_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_headingspan_color', array(
		'label' => __('Heading Span Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_headingspan_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_description_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_description_color', array(
		'label' => __('Description Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_description_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_featuresbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_featuresbg_color', array(
		'label' => __('Features BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_featuresbg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_featuresicon_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_featuresicon_color', array(
		'label' => __('Features Icon Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_featuresicon_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_featurestitle_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_featurestitle_color', array(
		'label' => __('Features Title Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_featurestitle_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_boxtitle_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_boxtitle_color', array(
		'label' => __('Box Title Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_boxtitle_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_boxdescription_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_boxdescription_color', array(
		'label' => __('Box Description Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_boxdescription_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_boxbtntext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_boxbtntext_color', array(
		'label' => __('Box Button Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_boxbtntext_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairourservices_boxbtnbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairourservices_boxbtnbg_color', array(
		'label' => __('Box Button BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_ourservices_section',
		'settings' => 'expert_computer_repairourservices_boxbtnbg_color',
	)));


	//footer
	$wp_customize->add_section('expert_computer_repair_footer_section',array(
		'title'	=> esc_html__('Footer Settings','expert-computer-repair'),
		'panel' => 'expert_computer_repair_panel_id'
	));
		
	$wp_customize->add_setting('expert_computer_repair_footer_copy',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));	
	$wp_customize->add_control('expert_computer_repair_footer_copy',array(
		'label'	=> esc_html__('Copyright Text','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_footer_section',
		'type'		=> 'text'
	));

	$wp_customize->add_setting('expert_computer_repair_footer_copy_font_size',array(
		'default'	=> '',
		'sanitize_callback'	=> 'sanitize_text_field'
	));
	$wp_customize->add_control('expert_computer_repair_footer_copy_font_size',array(
		'label'	=> __('Copyright Font Size','expert-computer-repair'),
		'section' => 'expert_computer_repair_footer_section',
		'type'	 => 'number'
	));

	$wp_customize->add_setting( 'expert_computer_repairfooter_copyrighttext_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairfooter_copyrighttext_color', array(
		'label' => __('Copyright Text Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_footer_section',
		'settings' => 'expert_computer_repairfooter_copyrighttext_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairfooter_copyrightbg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairfooter_copyrightbg_color', array(
		'label' => __('Copyright BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_footer_section',
		'settings' => 'expert_computer_repairfooter_copyrightbg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repairfooter_bg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repairfooter_bg_color', array(
		'label' => __('BG Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_footer_section',
		'settings' => 'expert_computer_repairfooter_bg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_wedgets_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_wedgets_color', array(
		'label' => __('Wedgets Title Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_footer_section',
		'settings' => 'expert_computer_repair_wedgets_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_wedgets_menus_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_wedgets_menus_color', array(
		'label' => __('Wedgets Menus Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_footer_section',
		'settings' => 'expert_computer_repair_wedgets_menus_color',
	)));

	//Wocommerce Shop Page
	$wp_customize->add_section('expert_computer_repair_woocommerce_shop_page',array(
		'title'	=> __('Woocommerce Shop Page','expert-computer-repair'),
		'panel' => 'expert_computer_repair_panel_id'
	));

	$wp_customize->add_setting( 'expert_computer_repair_products_per_column' , array(
		'default'           => 3,
		'transport'         => 'refresh',
		'sanitize_callback' => 'expert_computer_repair_sanitize_choices',
	) );
	$wp_customize->add_control( 'expert_computer_repair_products_per_column', array(
		'label'    => __( 'Product Per Columns', 'expert-computer-repair' ),
		'description'	=> __('How many products should be shown per Column?','expert-computer-repair'),
		'section'  => 'expert_computer_repair_woocommerce_shop_page',
		'type'     => 'select',
		'choices'  => array(
			'2' => '2',
			'3' => '3',
			'4' => '4',
			'5' => '5',
		),
	)  );

	$wp_customize->add_setting('expert_computer_repair_products_per_page',array(
		'default'	=> 9,
		'sanitize_callback'	=> 'expert_computer_repair_sanitize_float',
	));	
	$wp_customize->add_control('expert_computer_repair_products_per_page',array(
		'label'	=> __('Product Per Page','expert-computer-repair'),
		'description'	=> __('How many products should be shown per page?','expert-computer-repair'),
		'section'	=> 'expert_computer_repair_woocommerce_shop_page',
		'type'		=> 'number'
	));

	

	$wp_customize->add_setting( 'expert_computer_repair_product_btn_bg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_product_btn_bg_color', array(
		'label' => __('Button Background Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_woocommerce_shop_page',
		'settings' => 'expert_computer_repair_product_btn_bg_color',
	)));

	
	$wp_customize->add_setting( 'expert_computer_repair_product_btn_hover_bg_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_product_btn_hover_bg_color', array(
		'label' => __('Button Hover Background Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_woocommerce_shop_page',
		'settings' => 'expert_computer_repair_product_btn_hover_bg_color',
	)));

	$wp_customize->add_setting( 'expert_computer_repair_product_sale_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_product_sale_color', array(
		'label' => __('Sale Badge Color', 'expert-computer-repair'),
		'section' => 'expert_computer_repair_woocommerce_shop_page',
		'settings' => 'expert_computer_repair_product_sale_color',
	)));

	// site logo size
	$wp_customize->add_setting('expert_computer_repair_logo_size',array(
		'default' => '',
		'sanitize_callback'	=> 'expert_computer_repair_sanitize_float'
	));
	$wp_customize->add_control('expert_computer_repair_logo_size',array(
		'type' => 'range',
		'label' => __('Logo Size','expert-computer-repair'),
		'section' => 'title_tagline'
	));

	// logo site title
	$wp_customize->add_setting('expert_computer_repair_site_title_tagline',array(
       'default' => true,
       'sanitize_callback'	=> 'expert_computer_repair_sanitize_checkbox'
    ));
    $wp_customize->add_control('expert_computer_repair_site_title_tagline',array(
       'type' => 'checkbox',
       'label' => __('Display Site Title and Tagline in Header','expert-computer-repair'),
       'section' => 'title_tagline'
    ));

    $wp_customize->add_setting( 'expert_computer_repair_site_title_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_site_title_color', array(
		'label' => __('Site Title Color', 'expert-computer-repair'),
		'section' => 'title_tagline',
		'settings' => 'expert_computer_repair_site_title_color',
	)));

    $wp_customize->add_setting( 'expert_computer_repair_site_tagline_color', array(
		'default' => '',
		'sanitize_callback'	=> 'sanitize_hex_color'
	));
	$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'expert_computer_repair_site_tagline_color', array(
		'label' => __('Site Tagline Color', 'expert-computer-repair'),
		'section' => 'title_tagline',
		'settings' => 'expert_computer_repair_site_tagline_color',
	)));
}
add_action( 'customize_register', 'expert_computer_repair_customize_register' );