HEX
Server: LiteSpeed
System: Linux l24.yourwebhosting.net 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: turkishi (1582)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/themes/kidzieo/includes/customizer-script.js
jQuery(window).on('load', function($) {
	wp.customize(
		'header-style',
		function(header_style) {
			var header_height		= '100';
			var header_bgcolor		= 'transparent';
			var global_color		= '#6621ba';
			var secondary_color		= '#f98a17';
			var light_bg_color		= '#f2f0f9';
			var blackish_bg_color	= '#000000';
			var main_menu_typography = {
				'font-family'	: 'SoBitterra',
				'variant'		: '700',
				'font-size'		: '16px',
				'line-height'	: '26px',
				'letter-spacing': '0px',
				'color'			: '#000000',
				'text-transform': 'none',
				'font-backup'	: '',
				'font-style'	: 'normal',
			};
			var sticky_header_bgcolor	= 'transparent';
			var main_menu_active_color	= 'globalcolor';           
			var main_menu_sticky_color	= '#000000';
            var main_menu_sticky_active_color = '#6621ba';
			var preheader_enable		= false;
			var logo_height				= '50';
			var titlebar_height			= '550';
			var titlebar_bgcolor		= 'transparent';
			var titlebar_heading_typography = {
				'font-family'	: 'Bitter',
				'variant'		: '700',
				'font-size'		: '60px',
				'line-height'	: '70px',
				'letter-spacing': '0px',
				'color'			: '#000000',
				'text-transform': 'capitalize',
				'font-backup'	: '',
				'font-style'	:'normal',
			};
			var titlebar_subheading_typography = {
				'font-family'	: 'Bitter',
				'variant'		: '600',
				'font-size'		: '15px',
				'line-height'	: '24px',
				'letter-spacing': '0px',
				'color'			: '#000000',
				'text-transform': 'capitalize',
				'font-backup'	: '',
				'font-style'	: 'normal',
			};
			var titlebar_breadcrumb_typography = {
                'font-family'	: 'Bitter',
				'variant'		: '600',
				'font-size'		: '15px',
				'line-height'	: '24px',
				'letter-spacing': '0px',
				'color'			: '#000000',
				'text-transform': 'capitalize',
				'font-backup'	: '',
				'font-style'	: 'normal',
			};
			var logo = pbmit_admin_js_variables.theme_path + '/images/logo.svg';
			header_style.bind(function(value) {

			if (value == '1') { // Default header style 
				wp.customize('global-color').set(global_color);
				wp.customize('light-bg-color').set(light_bg_color);
				wp.customize('blackish-bg-color').set(blackish_bg_color);
				wp.customize('secondary-color').set(secondary_color);
				wp.customize('header-height').set(header_height);
				wp.customize('header-bgcolor').set(header_bgcolor);
				wp.customize('main-menu-typography').set(main_menu_typography);
				wp.customize('header-search').set(true);
				wp.customize('sticky-header').set(true);
				wp.customize('sticky-header-height').set('90');						  
				wp.customize('sticky-header-bgcolor').set(sticky_header_bgcolor);
				wp.customize('main-menu-active-color').set(main_menu_active_color);
				wp.customize('main-menu-sticky-active-color').set(main_menu_sticky_color);
				wp.customize('main-menu-sticky-color').set(main_menu_sticky_color);
				wp.customize('preheader-enable').set(preheader_enable);
				wp.customize('logo-height').set(logo_height);
				wp.customize('titlebar-height').set(titlebar_height);
				wp.customize('titlebar-bgcolor').set(titlebar_bgcolor);
				wp.customize('titlebar-heading-typography').set(titlebar_heading_typography);
				wp.customize('titlebar-subheading-typography').set(titlebar_subheading_typography);
				wp.customize('titlebar-breadcrumb-typography').set(titlebar_breadcrumb_typography);
				wp.customize('logo').set(logo);
				wp.customize('sticky-logo').set(logo);
			} else if (value == '2') { // Header style 2
				wp.customize('global-color').set(global_color);
				wp.customize('light-bg-color').set(light_bg_color);
				wp.customize('blackish-bg-color').set(blackish_bg_color);
				wp.customize('secondary-color').set(secondary_color);
				wp.customize('logo-height').set('40');
                wp.customize('header-height').set('75');
				wp.customize('header-bgcolor').set('white');						  
                wp.customize('main-menu-typography').set(main_menu_typography);
                wp.customize('main-menu-active-color').set(main_menu_active_color);
				wp.customize('main-menu-sticky-color').set(main_menu_sticky_color);
				wp.customize('header-search').set(true);
				wp.customize('sticky-header').set(false);
				wp.customize('preheader-enable').set(true);
                wp.customize('preheader-text-color').set('blackish');
                wp.customize('preheader-bgcolor').set('transparent');
                wp.customize('preheader-left').set('<ul class="pbmit-contact-info"><li><a href="mailto:info@domain.com"><i class="pbmit-base-icon-envelope-solid"></i>info@domain.com</a></li><li><i class="pbmit-base-icon-location-dot-solid"></i>250 Main Street, 2nd Floor. USA</li></ul>');
                wp.customize('preheader-right').set('<ul class="pbmit-contact-info"><li><a href="tel:+89(0)12562156"><i class="pbmit-base-icon-phone-volume-solid"></i>+89(0) 1256 2156</a></li></ul>[pbmit-social-links]');
				wp.customize('header-btn2-text').set('Book a Visit');			   
				wp.customize('header-btn2-url').set('#');
				wp.customize('titlebar-height').set(titlebar_height);
				wp.customize('titlebar-bgcolor').set(titlebar_bgcolor);
				wp.customize('titlebar-heading-typography').set(titlebar_heading_typography);
				wp.customize('titlebar-subheading-typography').set(titlebar_subheading_typography);
				wp.customize('titlebar-breadcrumb-typography').set(titlebar_breadcrumb_typography);
				wp.customize('logo').set(logo);
			} else if (value == '3') { // Header style 2
				wp.customize('global-color').set(global_color);
				wp.customize('light-bg-color').set(light_bg_color);
				wp.customize('blackish-bg-color').set(blackish_bg_color);
				wp.customize('secondary-color').set(secondary_color);
				wp.customize('logo-height').set('60');
                wp.customize('header-height').set('75');
				wp.customize('header-bgcolor').set('white');					  
				wp.customize('main-menu-typography').set(main_menu_typography);
				wp.customize('main-menu-active-color').set(main_menu_active_color);
                wp.customize('main-menu-sticky-color').set(main_menu_sticky_color);
				wp.customize('main-menu-sticky-active-color').set(main_menu_sticky_active_color);
				wp.customize('header-search').set(true);
				wp.customize('sticky-header').set(false);
                wp.customize('preheader-enable').set(true);
                wp.customize('preheader-text-color').set('white');
                wp.customize('preheader-bgcolor').set('transparent');
                wp.customize('preheader-left').set('<ul class="pbmit-contact-info"><li><a href="mailto:info@domain.com"><i class="pbmit-base-icon-envelope-solid"></i>info@domain.com</a></li><li><i class="pbmit-base-icon-location-dot-solid"></i>250 Main Street, 2nd Floor. USA</li></ul>');
                wp.customize('preheader-right').set('<ul class="pbmit-contact-info"><li><a href="tel:+89(0)12562156"><i class="pbmit-base-icon-phone-volume-solid"></i>+89(0) 1256 2156</a></li></ul>[pbmit-social-links]');
                wp.customize('header-btn2-text').set('Book a Visit');			   
				wp.customize('header-btn2-url').set('#');
				wp.customize('titlebar-height').set(titlebar_height);
				wp.customize('titlebar-bgcolor').set(titlebar_bgcolor);
				wp.customize('titlebar-heading-typography').set(titlebar_heading_typography);
				wp.customize('titlebar-subheading-typography').set(titlebar_subheading_typography);
				wp.customize('titlebar-breadcrumb-typography').set(titlebar_breadcrumb_typography);
				wp.customize('logo').set(pbmit_admin_js_variables.theme_path + '/images/logo-center.svg');
				wp.customize('responsive-logo').set(pbmit_admin_js_variables.theme_path + '/images/logo.svg');
			} else if (value == '4') { // Header style 3
				wp.customize('global-color').set(global_color);
				wp.customize('light-bg-color').set(light_bg_color);
				wp.customize('blackish-bg-color').set(blackish_bg_color);
				wp.customize('secondary-color').set(secondary_color);
				wp.customize('logo-height').set('60');	
                wp.customize('header-height').set('100');				  
				wp.customize('header-bgcolor').set(header_bgcolor);						  
                wp.customize('main-menu-typography').set(main_menu_typography);
				wp.customize('main-menu-active-color').set(main_menu_active_color);
                wp.customize('main-menu-sticky-color').set(main_menu_sticky_color);
				wp.customize('main-menu-sticky-active-color').set(main_menu_sticky_active_color);
				wp.customize('header-search').set(true);
				wp.customize('sticky-header').set(false);
                wp.customize('preheader-enable').set(true);
                wp.customize('preheader-text-color').set('blackish');
                wp.customize('preheader-bgcolor').set('white');
                wp.customize('preheader-left').set('<ul class="pbmit-contact-info"><li><a href="mailto:info@domain.com"><i class="pbmit-base-icon-envelope-solid"></i>info@domain.com</a></li><li><i class="pbmit-base-icon-location-dot-solid"></i>250 Main Street, 2nd Floor. USA</li></ul>');
                wp.customize('preheader-right').set('<ul class="pbmit-contact-info"><li><a href="tel:+89(0)12562156"><i class="pbmit-base-icon-phone-volume-solid"></i>+89(0) 1256 2156</a></li></ul>[pbmit-social-links]');
				wp.customize('header-btn2-text').set('Book a Visit');
				wp.customize('header-btn2-url').set('tel:+89(0) 1256 2156');		  
				wp.customize('titlebar-height').set(titlebar_height);
				wp.customize('titlebar-bgcolor').set(titlebar_bgcolor);
				wp.customize('titlebar-heading-typography').set(titlebar_heading_typography);
				wp.customize('titlebar-subheading-typography').set(titlebar_subheading_typography);
				wp.customize('titlebar-breadcrumb-typography').set(titlebar_breadcrumb_typography);
				wp.customize('logo').set(pbmit_admin_js_variables.theme_path + '/images/logo-center.svg');
				wp.customize('sticky-logo').set(pbmit_admin_js_variables.theme_path + '/images/logo.svg');
			}
		});
	});
	wp.customize(
		'footer-style',
		function(footer_style) {
			var global_color = '#6621ba';
			var footer_bgcolor = 'white';
			var footer_text_color = 'blackish';
			var footer_widget_bgcolor = 'transparent';				
			var h2_typography = {
				'font-family'	: 'Bitter',
				'variant'		: '600',
				'font-size'		: '42px',
				'line-height'	: '48px',
				'letter-spacing': '0px',
				'color'			: '#000000',
				'text-transform': 'none',
				'font-backup'	: '',
				'font-style'	: 'normal',
			};
			var footer_column = '3-3-3-3';
			var footer_widget_heading_typography = {
				'font-family'	: 'Bitter',
				'variant'		: '600',
				'font-size'		: '18px',
				'line-height'	: '24px',
				'letter-spacing': '0px',
				'color'			: '#5616af',
				'text-transform': 'capitalize',
				'font-backup'	: '',
				'font-style'	: 'normal',
			};
			var footer_copyright_bgcolor = 'transparent';
			var footer_enable = true;
			var footer_boxes_area = true;
            var footer_instagram_area = false;

			footer_style.bind(function(value) {
				if (value == '1') { // Default footer style 1
					wp.customize('global-color').set(global_color);
					wp.customize('footer-bgcolor').set(footer_bgcolor);
					wp.customize('footer-background').set({
						'background-repeat'		: 'no-repeat',
						'background-position'	: 'center top',
						'background-size'		: 'auto',
						'background-attachment' : 'scroll',
						'background-image'		: '',
					});	
					wp.customize('footer-text-color').set(footer_text_color);
					wp.customize('h3-typography').set(h2_typography);
					wp.customize('footer-enable').set(footer_enable);
					wp.customize('footer-boxes-area').set(false);	
                    wp.customize('footer-instagram-area').set(footer_instagram_area);
					wp.customize('footer-copyright-bgcolor').set(footer_copyright_bgcolor);		
					wp.customize('footer-widget-bgcolor').set(footer_widget_bgcolor);
					wp.customize('footer-column').set('custom');						
					var $footer_1_col_width_ele = jQuery("select[data-id='footer-1-col-width']").select2();
					$footer_1_col_width_ele.val("25").trigger("change");
					var $footer_2_col_width_ele = jQuery("select[data-id='footer-2-col-width']").select2();
					$footer_2_col_width_ele.val("15").trigger("change");
					var $footer_3_col_width_ele = jQuery("select[data-id='footer-3-col-width']").select2();
					$footer_3_col_width_ele.val("15").trigger("change");
					var $footer_4_col_width_ele = jQuery("select[data-id='footer-4-col-width']").select2();
					$footer_4_col_width_ele.val("45").trigger("change");
					wp.customize('footer-widget-heading-typography').set(footer_widget_heading_typography);
					wp.customize('footer-copyright-bgcolor').set('transparent');
					wp.customize('copyright-text').set('Copyright © 2023 Kidzieo, All Rights Reserved.');
					wp.customize('footer-copyright-right-content').set('menu');
				} else if (value == '2') { // footer style 2
					wp.customize('global-color').set(global_color);
					wp.customize('footer-bgcolor').set(footer_bgcolor);
					wp.customize('footer-background').set({
						'background-repeat'		: 'no-repeat',
						'background-position'	: 'center top',
						'background-size'		: 'auto',
						'background-attachment' : 'scroll',
						'background-image'		: pbmit_admin_js_variables.theme_path + '/images/footer-cloud-pattern.png',
					});	
					wp.customize('footer-text-color').set(footer_text_color);
					wp.customize('h3-typography').set(h2_typography);
					wp.customize('footer-enable').set(footer_enable);
                    wp.customize('footer-instagram-area').set(footer_instagram_area);
					wp.customize('footer-boxes-area').set(footer_boxes_area);
					wp.customize('footer-left-area').set('<h3>What are you waiting for to register and start this new adventure?</h3>');
                    wp.customize('footer-right-area').set('<div class="pbmit-qoute-button"><a href="https://themeforest.net/user/themestek">Purchase Theme</a></div>');           
                   wp.customize('footer-copyright-bgcolor').set(footer_copyright_bgcolor);		
					wp.customize('footer-widget-bgcolor').set(footer_widget_bgcolor);
					wp.customize('footer-column').set('custom');						
                    var $footer_1_col_width_ele = jQuery("select[data-id='footer-1-col-width']").select2();
					$footer_1_col_width_ele.val("25").trigger("change");
					var $footer_2_col_width_ele = jQuery("select[data-id='footer-2-col-width']").select2();
					$footer_2_col_width_ele.val("15").trigger("change");
					var $footer_3_col_width_ele = jQuery("select[data-id='footer-3-col-width']").select2();
					$footer_3_col_width_ele.val("15").trigger("change");
					var $footer_4_col_width_ele = jQuery("select[data-id='footer-4-col-width']").select2();
					$footer_4_col_width_ele.val("45").trigger("change");
					wp.customize('footer-widget-heading-typography').set(footer_widget_heading_typography);
					wp.customize('footer-copyright-bgcolor').set('transparent');
					wp.customize('copyright-text').set('Copyright © 2023 Kidzieo, All Rights Reserved.');
					wp.customize('footer-copyright-right-content').set('menu');
				}
			});
		}
	);




	




	
}); // window.load
	



jQuery(document).ready(function ($) {

	var pbm_customize_link = jQuery("<a>", { href:"#" } ).html( pbmit_customizer_text_variables.text2 );
	var pbm_customize_icon = jQuery("<span>", { class:"dashicons dashicons-yes-alt" } );
	var pbm_customize_footer_div = jQuery("<div>", { id:"pbmit-customizer-footer-message" } ).append(pbm_customize_icon).append( pbmit_customizer_text_variables.text1 ).append(' ').append( pbm_customize_link ).hide();

	jQuery('#customize-footer-actions').prepend( pbm_customize_footer_div );

	// Set height
	jQuery('#customize-footer-actions').height();
	jQuery('.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content').css('bottom', jQuery('#customize-footer-actions').height() );
	
	// Customizer redirect according to section
	(function ( api ) {

		if (wp.customize.previewer) {
			var curr_URL = wp.customize.previewer.previewUrl();

			jQuery('#pbmit-customizer-footer-message > a').on('click', function(){
				console.log('RRRRRRRRRRR');
				api.previewer.previewUrl.set( curr_URL );
				jQuery('#pbmit-customizer-footer-message').slideUp('slow', function(){
					jQuery('.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content').css('bottom', jQuery('#customize-footer-actions').height() );
				});
			})

			var home_url = ajaxurl;
			home_url = home_url.replace('wp-admin/admin-ajax.php','');
			console.log('home_url: ',home_url);

			const pbm_customizer_redirect_urls = {
				error_404_options	: home_url + '/error404page/',
				service_options		: home_url + '/service/professional-teachers/',
				blog_options		: home_url + '/blog-classic/'
			};
			
			jQuery.each( pbmit_customizer_url, function( option_id, redirect_url ) {
				console.log( '>>> ' + option_id + ": " + redirect_url );

				api.section( option_id, function( section ) {
					console.log( 'ID: ' + option_id );
					section.expanded.bind( function( isExpanded ) {
						if ( isExpanded ) {
							console.log( 'Re_URL: ' + redirect_url );
							api.previewer.previewUrl.set( redirect_url );

							jQuery('#pbmit-customizer-footer-message').slideDown('slow', function(){
								jQuery('.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content').css('bottom', jQuery('#customize-footer-actions').height() );
							});

						}
					} );
				} );
				
			});

		}

	} ( wp.customize ) );

});