<?php
function automotivemechanic_blog_setting( $wp_customize ) {
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
	$wp_customize->add_panel(
		'automotivemechanic_frontpage_sections', array(
			'priority' => 32,
			'title' => esc_html__( 'Frontpage Sections', 'automotive-mechanic' ),
		)
	);
	
 
	/*=========================================
	banner Section
	=========================================*/
	$wp_customize->add_section(
		'banner_setting', array(
			'title' => esc_html__( 'Banner Section', 'automotive-mechanic' ),
			'description'=> __('<a>Note :</a> Image Size Should Be 1500*800','automotive-mechanic'),
			'priority' => 1,
			'panel' => 'automotivemechanic_frontpage_sections',
		)
	);


	$wp_customize->add_setting('automotivemechanic_banner_tabs', array(
	   'sanitize_callback' => 'wp_kses_post',
	));

	$wp_customize->add_control(new automotivemechanic_Tab_Control($wp_customize, 'automotivemechanic_banner_tabs', array(
	   'section' => 'banner_setting',
	   'priority' => 2,
	   'buttons' => array(
	      array(
         	'name' => esc_html__('General', 'automotive-mechanic'),
            'icon' => 'dashicons dashicons-welcome-write-blog',
            'fields' => array(
            	'banner_image',
				'banner_heading',
				'banner_description',
				'banner_btnlink',
				'banner_formsubheading',
				'banner_formheading',
				'banner_shortcode',
				'banner_bannerheading',
				'banner_bannerbtnlink'
            ),
            'active' => true,
         ), 
	      array(
            'name' => esc_html__('Style', 'automotive-mechanic'),
        	'icon' => 'dashicons dashicons-art',
            'fields' => array(
                'banner_headingcolor',
				'banner_descriptioncolor',
				'banner_btntextcolor',
				'banner_btnbgcolor',
				'banner_btnbghrvcolor',
				'banner_btntexthrvcolor',
				'banner_formbgcolor',
				'banner_formsubheadingcolor',
				'banner_formheadingcolor',
				'banner_formplaceholdercolor',
				'banner_formbtntextcolor',
				'banner_formbtnbgcolor',
				'banner_bottombannerbgcolor',
				'banner_bottombannerheadingcolor',
				'banner_bottombannerbtntextcolor',
				'banner_bottombannerbtnbgcolor'
            ),
     	),
		 array(
		   'name' => esc_html__('Layout', 'automotive-mechanic'),
		   'icon' => 'dashicons dashicons-layout',
		   'fields' => array(
			   'automotive_mechanic_banner_section_width',
		   ),
		)
	    
    	),
	))); 


	

	// General Tab

	// banner_image
	$wp_customize->add_setting(
    	'banner_image',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'banner_image',
	        array(
			    'label'   		=> __('Image','automotive-mechanic'),
				'description'=> __('Image Size Should Be 1500*880','automotive-mechanic'),
	            'section' => 'banner_setting',
	            'settings' => 'banner_image'
	        )
	    )
	);


	// banner_heading
	$wp_customize->add_setting(
    	'banner_heading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner_heading',
		array(
		    'label'   		=> __('Heading','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	
	
	// banner_description
	$wp_customize->add_setting(
    	'banner_description',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner_description',
		array(
		    'label'   		=> __('Description','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner_btnlink
	$wp_customize->add_setting(
    	'banner_btnlink',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner_btnlink',
		array(
		    'label'   		=> __('Button Link','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner_formsubheading
	$wp_customize->add_setting(
    	'banner_formsubheading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner_formsubheading',
		array(
		    'label'   		=> __('Form SubHeading','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner_formheading
	$wp_customize->add_setting(
    	'banner_formheading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner_formheading',
		array(
		    'label'   		=> __('Form Heading','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner_shortcode
	$wp_customize->add_setting(
    	'banner_shortcode',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner_shortcode',
		array(
		    'label'   		=> __('Form shortcode','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner_bannerheading
	$wp_customize->add_setting(
    	'banner_bannerheading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner_bannerheading',
		array(
		    'label'   		=> __('Bottom Banner Heading','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// banner_bannerbtnlink
	$wp_customize->add_setting(
    	'banner_bannerbtnlink',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'banner_bannerbtnlink',
		array(
		    'label'   		=> __('Bottom Banner Button Link','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	
	

	//style

	// banner heading Color
	$bannerheadingcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_headingcolor',
    	array(
			'default' => $bannerheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_headingcolor',
		array(
		    'label'   		=> __('Heading Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner description Color
	$bannerdescriptioncolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_descriptioncolor',
    	array(
			'default' => $bannerdescriptioncolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_descriptioncolor',
		array(
		    'label'   		=> __('Description Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner btntext Color
	$bannerbtntextcolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_btntextcolor',
    	array(
			'default' => $bannerbtntextcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_btntextcolor',
		array(
		    'label'   		=> __('Button Text Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner btnbg Color
	$bannerbtnbgcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_btnbgcolor',
    	array(
			'default' => $bannerbtnbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_btnbgcolor',
		array(
		    'label'   		=> __('Button BG Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner btnbghrv Color
	$bannerbtnbghrvcolor = esc_html__('#F7C02E', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_btnbghrvcolor',
    	array(
			'default' => $bannerbtnbghrvcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_btnbghrvcolor',
		array(
		    'label'   		=> __('Button BG Hover Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);




	// banner btn text hrv Color
	$bannerbtntexthrvcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_btntexthrvcolor',
    	array(
			'default' => $bannerbtntexthrvcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_btntexthrvcolor',
		array(
		    'label'   		=> __('Button Text Hover Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);




	// banner formbg Color
	$bannerformbgcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_formbgcolor',
    	array(
			'default' => $bannerformbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_formbgcolor',
		array(
		    'label'   		=> __('Form BG Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner formsubheading Color
	$bannerformsubheadingcolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_formsubheadingcolor',
    	array(
			'default' => $bannerformsubheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_formsubheadingcolor',
		array(
		    'label'   		=> __('Form SubHeading Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner formheading Color
	$bannerformheadingcolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_formheadingcolor',
    	array(
			'default' => $bannerformheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_formheadingcolor',
		array(
		    'label'   		=> __('Form Heading Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner formplaceholder Color
	$bannerformplaceholdercolor = esc_html__('#808080', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_formplaceholdercolor',
    	array(
			'default' => $bannerformplaceholdercolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_formplaceholdercolor',
		array(
		    'label'   		=> __('Form Placeholder Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner formbtntext Color
	$bannerformbtntextcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_formbtntextcolor',
    	array(
			'default' => $bannerformbtntextcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_formbtntextcolor',
		array(
		    'label'   		=> __('Form Button Text Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner formbtnbg Color
	$bannerformbtnbgcolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_formbtnbgcolor',
    	array(
			'default' => $bannerformbtnbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_formbtnbgcolor',
		array(
		    'label'   		=> __('Form Button BG Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner bottombannerbg Color
	$bannerbottombannerbgcolor = esc_html__('#F7C02E', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_bottombannerbgcolor',
    	array(
			'default' => $bannerbottombannerbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_bottombannerbgcolor',
		array(
		    'label'   		=> __('Bottom Banner BG Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner bottombannerheading Color
	$bannerbottombannerheadingcolor = esc_html__('#002E5B', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_bottombannerheadingcolor',
    	array(
			'default' => $bannerbottombannerheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_bottombannerheadingcolor',
		array(
		    'label'   		=> __('Bottom Banner Heading Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner bottombannerbtntext Color
	$bannerbottombannerbtntextcolor = esc_html__('#002E5B', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_bottombannerbtntextcolor',
    	array(
			'default' => $bannerbottombannerbtntextcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_bottombannerbtntextcolor',
		array(
		    'label'   		=> __('Bottom Banner Button Text Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// banner bottombannerbtnbg Color
	$bannerbottombannerbtnbgcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'banner_bottombannerbtnbgcolor',
    	array(
			'default' => $bannerbottombannerbtnbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'banner_bottombannerbtnbgcolor',
		array(
		    'label'   		=> __('Bottom Banner Button BG Color','automotive-mechanic'),
		    'section'		=> 'banner_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);





	// layout setting
	$wp_customize->add_setting('automotive_mechanic_banner_section_width',array(
		'default' => 'Full Width',
		'sanitize_callback' => 'automotivemechanic_sanitize_choices',
	));
	$wp_customize->add_control('automotive_mechanic_banner_section_width',array(
		'type' => 'select',
		'label' => __('Section Width','automotive-mechanic'),
		'choices' => array (
			'Box Width' => __('Box Width','automotive-mechanic'),
			'Full Width' => __('Full Width','automotive-mechanic')
		),
		'section' => 'banner_setting',
	));


	/*=========================================
	ourservice Section
	=========================================*/
	$wp_customize->add_section(
		'ourservice_setting', array(
			'title' => esc_html__( 'Our Service Section', 'automotive-mechanic' ),
			'priority' => 2,
			'panel' => 'automotivemechanic_frontpage_sections',
		)
	);
	

	$wp_customize->add_setting('automotivemechanic_ourservice_tabs', array(
	   'sanitize_callback' => 'wp_kses_post',
	));

	$wp_customize->add_control(new automotivemechanic_Tab_Control($wp_customize, 'automotivemechanic_ourservice_tabs', array(
	   'section' => 'ourservice_setting',
	   'priority' => 2,
	   'buttons' => array(
	      array(
         	'name' => esc_html__('General', 'automotive-mechanic'),
            'icon' => 'dashicons dashicons-welcome-write-blog',
            'fields' => array(
            	'ourservice_disable_section',
				'ourservice_heading',
				'ourservice_subheading',
            	'ourservice1',
            	'ourservice2',
            	'ourservice3',
				'ourservice4',
            	'ourservice5',
            	'ourservice6',
				'ourservice7',
            	'ourservice8',
            	'ourservice9',
            	'ourservice10',
            	'ourservice_readmorebtn_link'
            ),
            'active' => true,
         ),
	      array(
            'name' => esc_html__('Style', 'automotive-mechanic'),
        	'icon' => 'dashicons dashicons-art',
            'fields' => array(
            	'ourservice_headingcolor',
            	'ourservice_subheadingcolor',
            	'ourservice_boxtitlecolor',
            	'ourservice_boxtitlehrvcolor',
				'ourservice_boxdescriptioncolor',
				'ourservice_btntextcolor',
				'ourservice_btntextbgcolor',
				'ourservice_btntexthrvcolor'
            ),
     	)
	    
    	),
	))); 



	// General

	// hide show ourservice section
	$wp_customize->add_setting(
        'ourservice_disable_section',
        array(
            'sanitize_callback' => 'wp_kses_post',
        )
    ); 
    $wp_customize->add_control(
        new automotivemechanic_Toggle_Switch_Custom_Control(
            $wp_customize,
            'ourservice_disable_section',
            array(
                'settings'      => 'ourservice_disable_section',
                'section'       => 'ourservice_setting',
                'label'         => __( 'Disable Section', 'automotive-mechanic' ),
                'on_off_label'  => array(
                    'on' => __( 'Yes', 'automotive-mechanic' ),
                    'off' => __( 'No', 'automotive-mechanic' )
                ),
            )
        )
    );


    // ourservice_heading
	$wp_customize->add_setting(
    	'ourservice_heading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_heading',
		array(
		    'label'   		=> __('Heading','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// ourservice_subheading
	$wp_customize->add_setting(
    	'ourservice_subheading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_subheading',
		array(
		    'label'   		=> __('SubHeading','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	


	// ourservice 1
	$wp_customize->add_setting( 
    	'ourservice1',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'ourservice1',
		array(
		    'label'   		=> __('Our Service 1','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);		

	// ourservice 2
	$wp_customize->add_setting(
    	'ourservice2',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 2,
		)
	);	

	$wp_customize->add_control( 
		'ourservice2',
		array(
		    'label'   		=> __('Our Service 2','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	


	// ourservice 3
	$wp_customize->add_setting(
    	'ourservice3',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'ourservice3',
		array(
		    'label'   		=> __('Our Service 3','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	

	// ourservice 4
	$wp_customize->add_setting( 
    	'ourservice4',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice4',
		array(
		    'label'   		=> __('Our Service 4','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);		

	// ourservice 5
	$wp_customize->add_setting(
    	'ourservice5',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 5,
		)
	);	

	$wp_customize->add_control( 
		'ourservice5',
		array(
		    'label'   		=> __('Our Service 5','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	


	// ourservice 6
	$wp_customize->add_setting(
    	'ourservice6',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 6,
		)
	);	

	$wp_customize->add_control( 
		'ourservice6',
		array(
		    'label'   		=> __('Our Service 6','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	


	// ourservice 7
	$wp_customize->add_setting(
    	'ourservice7',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'ourservice7',
		array(
		    'label'   		=> __('Our Service 7','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	

	// ourservice 8
	$wp_customize->add_setting(
    	'ourservice8',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 8,
		)
	);	

	$wp_customize->add_control( 
		'ourservice8',
		array(
		    'label'   		=> __('Our Service 8','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	

	// ourservice 9
	$wp_customize->add_setting(
    	'ourservice9',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 9,
		)
	);	

	$wp_customize->add_control( 
		'ourservice9',
		array(
		    'label'   		=> __('Our Service 9','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	


	// ourservice 10
	$wp_customize->add_setting(
    	'ourservice10',
    	array(
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 10,
		)
	);	

	$wp_customize->add_control( 
		'ourservice10',
		array(
		    'label'   		=> __('Our Service 10','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'dropdown-pages',
			'transport'         => $selective_refresh,
		)  
	);	


	// ourservice_readmorebtn_link
	$ourservicereadmorebtnlink = esc_html__('#', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_readmorebtn_link',
    	array(
			'default' => $ourservicereadmorebtnlink,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_readmorebtn_link',
		array(
		    'label'   		=> __('Read More Button Link','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);


	// style

	// ourservice heading color
	$ourserviceheadingcolor = esc_html__('#2E2E2D', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_headingcolor',
    	array(
			'default' => $ourserviceheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_headingcolor',
		array(
		    'label'   		=> __('Heading Color','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// ourservice subheading color
	$ourservicesubheadingcolor = esc_html__('#2E2E2D', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_subheadingcolor',
    	array(
			'default' => $ourservicesubheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_subheadingcolor',
		array(
		    'label'   		=> __('SubHeading Color','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);


	// ourservice boxtitle color
	$ourserviceboxtitlecolor = esc_html__('#2E2E2D', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_boxtitlecolor',
    	array(
			'default' => $ourserviceboxtitlecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_boxtitlecolor',
		array(
		    'label'   		=> __('Box Title Color','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	

	// ourservice boxtitlehrv color
	$ourserviceboxtitlehrvcolor = esc_html__('#2E2E2D', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_boxtitlehrvcolor',
    	array(
			'default' => $ourserviceboxtitlehrvcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_boxtitlehrvcolor',
		array(
		    'label'   		=> __('Box Title Hover Color','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// ourservice boxdescription color
	$ourserviceboxdescriptioncolor = esc_html__('#363636', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_boxdescriptioncolor',
    	array(
			'default' => $ourserviceboxdescriptioncolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_boxdescriptioncolor',
		array(
		    'label'   		=> __('Box Description Color','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// ourservice btntext color
	$ourservicebtntextcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_btntextcolor',
    	array(
			'default' => $ourservicebtntextcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_btntextcolor',
		array(
		    'label'   		=> __('Button Text Color','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// ourservice btntextbg color
	$ourservicebtntextbgcolor = esc_html__('#2E2E2D', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_btntextbgcolor',
    	array(
			'default' => $ourservicebtntextbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_btntextbgcolor',
		array(
		    'label'   		=> __('Button BG Color','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// ourservice btntexthrv color
	$ourservicebtntexthrvcolor = esc_html__('#F7C02E', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'ourservice_btntexthrvcolor',
    	array(
			'default' => $ourservicebtntexthrvcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 4,
		)
	);	

	$wp_customize->add_control( 
		'ourservice_btntexthrvcolor',
		array(
		    'label'   		=> __('Button Text Hover Color','automotive-mechanic'),
		    'section'		=> 'ourservice_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);



	/*=========================================
	aboutus Section
	=========================================*/
	$wp_customize->add_section(
		'aboutus_setting', array(
			'title' => esc_html__( 'AboutUs Section', 'automotive-mechanic' ),
			'priority' => 2,
			'panel' => 'automotivemechanic_frontpage_sections',
		)
	);

	$wp_customize->add_setting('automotivemechanic_aboutus_tabs', array(
	   'sanitize_callback' => 'wp_kses_post',
	));

	$wp_customize->add_control(new automotivemechanic_Tab_Control($wp_customize, 'automotivemechanic_aboutus_tabs', array(
	   'section' => 'aboutus_setting',
	   'priority' => 2,
	   'buttons' => array(
	      array(
         	'name' => esc_html__('General', 'automotive-mechanic'),
            'icon' => 'dashicons dashicons-welcome-write-blog',
            'fields' => array(
				'aboutus_disable_section',
            	'aboutus_image',
				'aboutus_imgphonnumheading',
				'aboutus_imgphonnum',
				'aboutus_imag2',
				'aboutus_subtitle',
				'aboutus_spantitle',
				'aboutus_title',
				'aboutus_box1heading',
				'aboutus_box2heading',
				'aboutus_description',
				'aboutus_list1',
				'aboutus_list2',
				'aboutus_list3',
            	'aboutus_readmorebtn_link'
            ),
            'active' => true,
		),
		array(
		'name' => esc_html__('Style', 'automotive-mechanic'),
		'icon' => 'dashicons dashicons-art',
		'fields' => array(
			'aboutus_imgheadingcolor',
			'aboutus_imgheadingiconcolor',
			'aboutus_imgheadingbgcolor',
			'aboutus_subtitlecolor',
			'aboutus_spantitlecolor',
			'aboutus_titlecolor',
			'aboutus_boxiconcolor',
			'aboutus_boxheadingcolor',
			'aboutus_boxbordercolor',
			'aboutus_boxbgcolor',
			'aboutus_descriptioncolor',
			'aboutus_listcolor',
			'aboutus_listiconcolor',
			'aboutus_btntextcolor',
			'aboutus_btnbgcolor',
			'aboutus_btntexthrvcolor'
		),
     	)
    	),
	))); 


	// hide show aboutus section
	$wp_customize->add_setting(
        'aboutus_disable_section',
        array(
            'sanitize_callback' => 'wp_kses_post',
        )
    ); 
    $wp_customize->add_control(
        new automotivemechanic_Toggle_Switch_Custom_Control(
            $wp_customize,
            'aboutus_disable_section',
            array(
                'settings'      => 'aboutus_disable_section',
                'section'       => 'aboutus_setting',
                'label'         => __( 'Disable Section', 'automotive-mechanic' ),
                'on_off_label'  => array(
                    'on' => __( 'Yes', 'automotive-mechanic' ),
                    'off' => __( 'No', 'automotive-mechanic' )
                ),
            )
        )
    );

	// aboutus_image
	$wp_customize->add_setting(
    	'aboutus_image',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'aboutus_image',
	        array(
			    'label'   		=> __('Image 1','automotive-mechanic'),
				'description'=> __('Image Size Should Be 408*672','automotive-mechanic'),
	            'section' => 'aboutus_setting',
	            'settings' => 'aboutus_image'
	        )
	    )
	);


	// aboutus_imgphonnumheading
	$wp_customize->add_setting(
    	'aboutus_imgphonnumheading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_imgphonnumheading',
		array(
		    'label'   		=> __('Image Phone Number Heading','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// aboutus_imgphonnum
	$wp_customize->add_setting(
		'aboutus_imgphonnum',
		array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_imgphonnum',
		array(
			'label'   		=> __('Image Phone Number','automotive-mechanic'),
			'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// aboutus_imag2
	$wp_customize->add_setting(
    	'aboutus_imag2',
	    array(
	        'sanitize_callback' => 'esc_url_raw'
	    )
	);
	$wp_customize->add_control(
	    new WP_Customize_Image_Control(
	        $wp_customize,
	        'aboutus_imag2',
	        array(
			    'label'   		=> __('Image 2','automotive-mechanic'),
				'description'=> __('Image Size Should Be 214*728','automotive-mechanic'),
	            'section' => 'aboutus_setting',
	            'settings' => 'aboutus_imag2'
	        )
	    )
	);

	// aboutus_subtitle
	$wp_customize->add_setting(
    	'aboutus_subtitle',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_subtitle',
		array(
		    'label'   		=> __('Sub Title','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	


	// aboutus_spantitle
	$wp_customize->add_setting(
    	'aboutus_spantitle',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_spantitle',
		array(
		    'label'   		=> __('Span Title','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// aboutus_title
	$wp_customize->add_setting(
    	'aboutus_title',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_title',
		array(
		    'label'   		=> __('Title','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	


	// aboutus_box1heading
	$wp_customize->add_setting(
    	'aboutus_box1heading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_box1heading',
		array(
		    'label'   		=> __('Box 1 Heading','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	

	// aboutus_box2heading
	$wp_customize->add_setting(
    	'aboutus_box2heading',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_box2heading',
		array(
		    'label'   		=> __('Box 2 Heading','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);	


	// aboutus_description
	$wp_customize->add_setting(
    	'aboutus_description',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_description',
		array(
		    'label'   		=> __('Description','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);
	
	// aboutus_list1
	$wp_customize->add_setting(
    	'aboutus_list1',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_list1',
		array(
		    'label'   		=> __('List 1','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus_list2
	$wp_customize->add_setting(
    	'aboutus_list2',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_list2',
		array(
		    'label'   		=> __('List 2','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus_list3
	$wp_customize->add_setting(
    	'aboutus_list3',
    	array(
			'default' => '',
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 1,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_list3',
		array(
		    'label'   		=> __('List 3','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus_readmorebtn_link
	$aboutusreadmorebtnlink = esc_html__('#', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_readmorebtn_link',
    	array(
			'default' => $aboutusreadmorebtnlink,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 7,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_readmorebtn_link',
		array(
		    'label'   		=> __('Read More Button Link','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'text',
			'transport'         => $selective_refresh,
		)  
	);


	
	//style

	// aboutus heading Color
	$aboutusheadingcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_imgheadingcolor',
    	array(
			'default' => $aboutusheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_imgheadingcolor',
		array(
		    'label'   		=> __('Image Heading Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);
	
	// aboutus headingicon Color
	$aboutusheadingiconcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_imgheadingiconcolor',
    	array(
			'default' => $aboutusheadingiconcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_imgheadingiconcolor',
		array(
		    'label'   		=> __('Image Heading Icon Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus headingbg Color
	$aboutusheadingbgcolor = esc_html__('#2E2E2D', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_imgheadingbgcolor',
    	array(
			'default' => $aboutusheadingbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_imgheadingbgcolor',
		array(
		    'label'   		=> __('Image Heading BG Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);
	


	// aboutus subtitle Color
	$aboutussubtitlecolor = esc_html__('#393939', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_subtitlecolor',
    	array(
			'default' => $aboutussubtitlecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_subtitlecolor',
		array(
		    'label'   		=> __('Sub Title Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus spantitle Color
	$aboutusspantitlecolor = esc_html__('#F7C02E', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_spantitlecolor',
    	array(
			'default' => $aboutusspantitlecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_spantitlecolor',
		array(
		    'label'   		=> __('Span Title Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus title Color
	$aboutustitlecolor = esc_html__('#002434', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_titlecolor',
    	array(
			'default' => $aboutustitlecolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_titlecolor',
		array(
		    'label'   		=> __('Title Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus boxicon Color
	$aboutusboxiconcolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_boxiconcolor',
    	array(
			'default' => $aboutusboxiconcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_boxiconcolor',
		array(
		    'label'   		=> __('Box Icon Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus boxheading Color
	$aboutusboxheadingcolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_boxheadingcolor',
    	array(
			'default' => $aboutusboxheadingcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_boxheadingcolor',
		array(
		    'label'   		=> __('Box Heading Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus boxborder Color
	$aboutusboxbordercolor = esc_html__('#F7C02E', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_boxbordercolor',
    	array(
			'default' => $aboutusboxbordercolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_boxbordercolor',
		array(
		    'label'   		=> __('Box Border Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus boxbg Color
	$aboutusboxbgcolor = esc_html__('#F3F4F7', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_boxbgcolor',
    	array(
			'default' => $aboutusboxbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_boxbgcolor',
		array(
		    'label'   		=> __('Box BG Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);



	// aboutus description Color
	$aboutusdescriptioncolor = esc_html__('#7A7A7A', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_descriptioncolor',
    	array(
			'default' => $aboutusdescriptioncolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_descriptioncolor',
		array(
		    'label'   		=> __('Description Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	
	// aboutus list Color
	$aboutuslistcolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_listcolor',
    	array(
			'default' => $aboutuslistcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_listcolor',
		array(
		    'label'   		=> __('Lists Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus listicon Color
	$aboutuslisticoncolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_listiconcolor',
    	array(
			'default' => $aboutuslisticoncolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_listiconcolor',
		array(
		    'label'   		=> __('Lists Icon Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);


	// aboutus btntext Color
	$aboutusbtntextcolor = esc_html__('#fff', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_btntextcolor',
    	array(
			'default' => $aboutusbtntextcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_btntextcolor',
		array(
		    'label'   		=> __('Button Text Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus btnbg Color 
	$aboutusbtnbgcolor = esc_html__('#000', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_btnbgcolor',
    	array(
			'default' => $aboutusbtnbgcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_btnbgcolor',
		array(
		    'label'   		=> __('Button BG Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);

	// aboutus btntexthrv Color
	$aboutusbtntexthrvcolor = esc_html__('#F7C02E', 'automotive-mechanic' );
	$wp_customize->add_setting(
    	'aboutus_btntexthrvcolor',
    	array(
			'default' => $aboutusbtntexthrvcolor,
			'capability'     	=> 'edit_theme_options',
			'sanitize_callback' => 'wp_kses_post',
			'priority'      => 3,
		)
	);	

	$wp_customize->add_control( 
		'aboutus_btntexthrvcolor',
		array(
		    'label'   		=> __('Button Text Hover Color','automotive-mechanic'),
		    'section'		=> 'aboutus_setting',
			'type' 			=> 'color',
			'transport'         => $selective_refresh,
		)  
	);



	$wp_customize->register_control_type('automotivemechanic_Tab_Control');

}

add_action( 'customize_register', 'automotivemechanic_blog_setting' );

// feature selective refresh
function automotivemechanic_blog_section_partials( $wp_customize ){	
	// blog_title
	$wp_customize->selective_refresh->add_partial( 'blog_title', array(
		'selector'            => '.home-blog .title h6',
		'settings'            => 'blog_title',
		'render_callback'  => 'automotivemechanic_blog_title_render_callback',
	
	) );
	
	// blog_subtitle
	$wp_customize->selective_refresh->add_partial( 'blog_subtitle', array(
		'selector'            => '.home-blog .title h2',
		'settings'            => 'blog_subtitle',
		'render_callback'  => 'automotivemechanic_blog_subtitle_render_callback',
	
	) );
	
	// blog_description
	$wp_customize->selective_refresh->add_partial( 'blog_description', array(
		'selector'            => '.home-blog .title p',
		'settings'            => 'blog_description',
		'render_callback'  => 'automotivemechanic_blog_description_render_callback',
	
	) );	
	}

add_action( 'customize_register', 'automotivemechanic_blog_section_partials' );

// blog_title
function automotivemechanic_blog_title_render_callback() {
	return get_theme_mod( 'blog_title' );
}

// blog_subtitle
function automotivemechanic_blog_subtitle_render_callback() {
	return get_theme_mod( 'blog_subtitle' );
}

// feature description
function automotivemechanic_blog_description_render_callback() {
	return get_theme_mod( 'blog_description' );
}


