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

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

			// Global Color Setting

			if ( id === 'futuristic_architecture_global_color' || id === 'futuristic_architecture_heading_color' || id === 'futuristic_architecture_paragraph_color') {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-futuristic_architecture_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// General Setting

			if ( id === 'futuristic_architecture_scroll_hide' || id === 'futuristic_architecture_preloader_hide' || id === 'futuristic_architecture_sticky_header' || id === 'futuristic_architecture_products_per_row' || id === 'futuristic_architecture_scroll_top_position' || id === 'futuristic_architecture_products_per_row' || id === 'futuristic_architecture_width_option' || id === 'futuristic_architecture_nav_menu_text_transform')  {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-futuristic_architecture_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}

			// Colors

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

			// Header Image

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

			//  Header
			
			if ( id === 'futuristic_architecture_topbar_email' || id === 'futuristic_architecture_topbar_timing' || id === 'futuristic_architecture_phone_number' || id === 'futuristic_architecture_topbar_terms_link' || id === 'futuristic_architecture_topbar_privacylink' ) {
				$( '#customize-control-'+ id ).before('<li class="tab-title customize-control">'+ title  +'</li>');
			} else {
				$( '#customize-control-futuristic_architecture_options-'+ id ).before('<li class="tab-title customize-control">'+ title +'</li>');
			}


			// Banner

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

			// Products

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

			// Footer

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

			// Post Settings

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

			// Single Post Settings

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

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

		// Global Color Setting
		futuristic_architecture_customizer_label( 'futuristic_architecture_global_color', 'Global Color' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_heading_color', 'Heading Typography' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_paragraph_color', 'Paragraph Typography' );

		// General Setting
		futuristic_architecture_customizer_label( 'futuristic_architecture_preloader_hide', 'Preloader' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_sticky_header', 'Sticky Header' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_scroll_hide', 'Scroll To Top' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_scroll_top_position', 'Scroll to top Position' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_products_per_row', 'woocommerce Setting' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_width_option', 'Site Width Layouts' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_nav_menu_text_transform', 'Nav Menus Text Transform' );

		// Colors
		futuristic_architecture_customizer_label( 'futuristic_architecture_theme_color', 'Theme Color' );
		futuristic_architecture_customizer_label( 'background_color', 'Colors' );
		futuristic_architecture_customizer_label( 'background_image', 'Image' );

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

		futuristic_architecture_customizer_label( 'futuristic_architecture_post_layout', 'Post Layouts Settings' );

		futuristic_architecture_customizer_label( 'futuristic_architecture_404_page_main_heading', '404 Page Settings' );	

		// Social Icon
		futuristic_architecture_customizer_label( 'futuristic_architecture_facebook_icon', 'Facebook' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_twitter_icon', 'Twitter' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_intagram_icon', 'Intagram' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_linkedin_icon', 'Linkedin' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_pintrest_icon', 'Pintrest' );

		// Header 
		futuristic_architecture_customizer_label( 'futuristic_architecture_topbar_location', 'Location' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_topbar_timing', 'Timing' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_phone_number', 'Phone Number' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_topbar_terms_link', 'Terms & Condition URL' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_topbar_privacylink', 'Privacy Policy URL' );

		//Slider
		futuristic_architecture_customizer_label( 'futuristic_architecture_banner_section_setting', 'Banner' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_contact_form_shortcode', 'Contact Form' );

		//Products
		futuristic_architecture_customizer_label( 'futuristic_architecture_activities_section_setting', 'Flash Sale' );

		//Footer
		futuristic_architecture_customizer_label( 'futuristic_architecture_footer_widget_content_alignment', 'Footer' );
		futuristic_architecture_customizer_label( 'futuristic_architecture_show_hide_copyright', 'Copyright' );

		//Post setting
		futuristic_architecture_customizer_label( 'futuristic_architecture_post_page_title', 'Post Settings' );

		//Single post setting
		futuristic_architecture_customizer_label( 'futuristic_architecture_single_post_thumb', 'Single Post Settings' );
	

	});

})( jQuery );
