(function( $ ) {
	wp.customize.bind( 'ready', function() {

		var optPrefix = '#customize-control-kitchen_interior_design_options-';
		
		// Label
		function kitchen_interior_design_customizer_label( id, title ) {

			// Site Identity

			if ( id === 'custom_logo' || id === 'site_icon' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Global Color Setting

			if ( id === 'kitchen_interior_design_global_color' || id === 'kitchen_interior_design_heading_color' || id === 'kitchen_interior_design_paragraph_color') {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// General Setting

			if ( id === 'kitchen_interior_design_scroll_hide' || id === 'kitchen_interior_design_preloader_hide' || id === 'kitchen_interior_design_sticky_header' || id === 'kitchen_interior_design_products_per_row')  {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Colors

			if ( id === 'kitchen_interior_design_first_color' || id === 'background_color' || id === 'background_image' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Header Image

			if ( id === 'header_image' || id === 'kitchen_interior_design_post_layout' || id === 'kitchen_interior_design_404_page_main_heading' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Social Icon

			if ( id === 'kitchen_interior_design_facebook_icon' || id === 'kitchen_interior_design_twitter_icon' || id === 'kitchen_interior_design_intagram_icon'|| id === 'kitchen_interior_design_linkedin_icon'|| id === 'kitchen_interior_design_pintrest_icon' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			//  Header

			if ( id === 'kitchen_interior_design_topbar_location_text' || id === 'kitchen_interior_design_topbar_mail_text' || id === 'kitchen_interior_design_header_button_text' || id === 'kitchen_interior_design_header_search_setting' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}


			// Slider

			if ( id === 'kitchen_interior_design_slider_section_setting' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Projects

			if ( id === 'kitchen_interior_design_activities_section_setting' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Footer

			if ( id === 'kitchen_interior_design_footer_text_setting' || id === 'kitchen_interior_design_show_hide_copyright') {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Post Settings

			if ( id === 'kitchen_interior_design_post_page_title' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Single Post Settings

			if ( id === 'kitchen_interior_design_single_post_thumb' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-kitchen_interior_design_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}
			
		}

	    // Site Identity
		kitchen_interior_design_customizer_label( 'custom_logo', 'Logo Setup' );
		kitchen_interior_design_customizer_label( 'site_icon', 'Favicon' );

		// Global Color Setting
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_global_color', 'Global Color' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_heading_color', 'Heading Typography' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_paragraph_color', 'Paragraph Typography' );

		// General Setting
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_preloader_hide', 'Preloader' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_sticky_header', 'Sticky Header' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_scroll_hide', 'Scroll To Top' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_products_per_row', 'woocommerce Setting' );

		// Colors
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_first_color', 'Theme Color' );
		kitchen_interior_design_customizer_label( 'background_color', 'Colors' );
		kitchen_interior_design_customizer_label( 'background_image', 'Image' );

		//Header Image
		kitchen_interior_design_customizer_label( 'header_image', 'Header Image' );

		kitchen_interior_design_customizer_label( 'kitchen_interior_design_post_layout', 'Post Layouts Settings' );

		kitchen_interior_design_customizer_label( 'kitchen_interior_design_404_page_main_heading', '404 Page Settings' );

		// Social Icon
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_facebook_icon', 'Facebook' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_twitter_icon', 'Twitter' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_intagram_icon', 'Intagram' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_linkedin_icon', 'Linkedin' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_pintrest_icon', 'Pintrest' );

		// Header
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_topbar_location_text', 'Location' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_topbar_mail_text', 'Email Address' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_header_button_text', 'Header Button' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_header_search_setting', 'Search' );

		//Slider
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_slider_section_setting', 'Slider' );

		//Projects
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_activities_section_setting', 'Projects' );

		//Footer
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_footer_text_setting', 'Footer' );
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_show_hide_copyright', 'Copyright' );

		//Post setting
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_post_page_title', 'Post Settings' );

		//Single post setting
		kitchen_interior_design_customizer_label( 'kitchen_interior_design_single_post_thumb', 'Single Post Settings' );
	

	});

})( jQuery );
