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

		var optPrefix = '#customize-control-holiday_travel_cruise_options-';
		
		// Label
		function holiday_travel_cruise_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-holiday_travel_cruise_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Global Color Setting

			if ( id === 'holiday_travel_cruise_first_color' || id === 'holiday_travel_cruise_heading_color' || id === 'holiday_travel_cruise_paragraph_color') {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-holiday_travel_cruise_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// General Setting

			if ( id === 'holiday_travel_cruise_scroll_hide' || id === 'holiday_travel_cruise_sticky_header' || id === 'holiday_travel_cruise_preloader_hide' || id === 'holiday_travel_cruise_sticky_header' || id === 'holiday_travel_cruise_products_per_row' || id === 'holiday_travel_cruise_scroll_top_position' || id === 'holiday_travel_cruise_products_per_row' || id === 'holiday_travel_cruise_width_option' || id === 'holiday_travel_cruise_nav_menu_text_transform')  {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-holiday_travel_cruise_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Colors

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

			// Header Image

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

			// Post Layouts Settings

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

			// Social Icon

			if ( id === 'holiday_travel_cruise_facebook_icon' || id === 'holiday_travel_cruise_twitter_icon' || id === 'holiday_travel_cruise_intagram_icon'|| id === 'holiday_travel_cruise_linkedin_icon'|| id === 'holiday_travel_cruise_pintrest_icon' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-holiday_travel_cruise_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

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


			// Slider

			if ( id === 'holiday_travel_cruise_banner_section_setting' || id === 'holiday_travel_cruise_counter_number0' || id === 'HOLIDAY_TRAVEL_CRUISE_REVIEW_image' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-holiday_travel_cruise_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Products

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

			// Footer

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

			// Post Settings

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

			// Single Post Settings

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

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

		// Global Color Setting
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_first_color', 'Global Color' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_heading_color', 'Heading Typography' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_paragraph_color', 'Paragraph Typography' );

		// General Setting
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_preloader_hide', 'Preloader' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_scroll_hide', 'Scroll To Top' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_sticky_header', 'Sticky Header' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_scroll_top_position', 'Scroll to top Position' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_products_per_row', 'woocommerce Setting' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_width_option', 'Site Width Layouts' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_nav_menu_text_transform', 'Nav Menus Text Transform' );

		// Colors
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_theme_color', 'Theme Color' );
		holiday_travel_cruise_customizer_label( 'background_color', 'Colors' );
		holiday_travel_cruise_customizer_label( 'background_image', 'Image' );

		//Header Image
		holiday_travel_cruise_customizer_label( 'header_image', 'Header Image' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_menu_font_size', 'Menu Settings' );

		//Post Layouts Settings
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_post_layout', 'Post Layouts Settings' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_404_page_main_heading', '404 Page Settings' );

		// Social Icon
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_facebook_icon', 'Facebook' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_twitter_icon', 'Twitter' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_intagram_icon', 'Intagram' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_linkedin_icon', 'Linkedin' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_pintrest_icon', 'Pintrest' );

		// Header 
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_header_search_setting', 'Search' );

		//Slider
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_banner_section_setting', 'Banner' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_contact_heading', 'Contact Us' );

		//Products
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_categories_section_setting', 'Our Team' );

		//Footer
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_footer_widget_content_alignment', 'Footer' );
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_show_hide_copyright', 'Copyright' );

		//Post setting
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_post_page_title', 'Post Settings' );

		//Single post setting
		holiday_travel_cruise_customizer_label( 'holiday_travel_cruise_single_post_page_content', 'Single Post Settings' );
	

	});

})( jQuery );
