Means `no need to get the waiting page` */ $mdz_is_main_process=1;$current_url=(isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']==='on'?'https':'http').'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];$current_url_without_mainurl=$current_url;$mdz_homeurl=esc_url(home_url());if(strpos($current_url_without_mainurl,$mdz_homeurl)!==false){$current_url_without_mainurl=explode($mdz_homeurl,$current_url_without_mainurl);if(isset($current_url_without_mainurl[1])){$current_url_without_mainurl=$current_url_without_mainurl[1];}}if(strpos($current_url_without_mainurl,'/order-received')!==false){$mdz_is_main_process=0;}if(isset($_GET['key'])){$mdz_is_main_process=0;}if(isset($_GET['wc_order'])){$mdz_is_main_process=0;}if(strpos($current_url_without_mainurl,'/wc-api/')!==false){$mdz_is_main_process=0;}if(strpos($current_url_without_mainurl,'/wp-json/')!==false){$mdz_is_main_process=0;}if(strpos($current_url_without_mainurl,'/feed')!==false){$mdz_is_main_process=0;}if(strpos($current_url_without_mainurl,'/rss')!==false){$mdz_is_main_process=0;}if(strpos($current_url_without_mainurl,'/xml')!==false){$mdz_is_main_process=0;}if(strpos($current_url_without_mainurl,'/json')!==false){$mdz_is_main_process=0;}if(strpos($current_url_without_mainurl,'xmlrpc')!==false){$mdz_is_main_process=0;}if($mdz_is_main_process==1){$mdz_ftl_exc_urls=get_option('wpjsloader_exc_from_ftl');if($mdz_ftl_exc_urls&&!empty($mdz_ftl_exc_urls)){$mdz_ftl_exc_urls=explode("\n",$mdz_ftl_exc_urls);foreach($mdz_ftl_exc_urls as $tmp_url){if(strpos($current_url_without_mainurl,$tmp_url)!==false){$mdz_is_main_process=0;}}}}if($mdz_is_main_process==1):$mdz_ua=$_SERVER['HTTP_USER_AGENT'];$mdz_page_url=((!empty($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!=='off')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];function mdz_is_likely_browser($ua=''){if(!empty($ua)){$browser_ua=preg_match('/Chrome|Firefox|Safari|Edge|Opera|Edg/i',$ua);$accept=$_SERVER['HTTP_ACCEPT']?? '';$accepts_html=stripos($accept,'text/html')!==false;return $browser_ua&&$accepts_html;}return false;}function mdz_is_gbot($ua=''){if(!empty($ua)){return preg_match('/bot|crawler|spider|slurp|googlebot|bingbot/i',$ua);}return false;}function mdz_has_waipage_cookie(){$mdz_cookie=$_COOKIE['ajxloaderwapage-isloaded'];if(!$mdz_cookie||$mdz_cookie=='NULL'||$mdz_cookie=='null'||empty($mdz_cookie)){return false;}return true;}if(!mdz_has_waipage_cookie()):if(mdz_is_likely_browser($mdz_ua)&&!mdz_is_gbot($mdz_ua)):if(!is_admin()&&!isset($_GET['nntgwip'])):$_GET['nntgwip']=1;$force_Redirect_with_http_equiv=120;if(strpos($mdz_page_url,'?')!==false){$new_url=$mdz_page_url.'&nntgwip=1';}else $new_url=$mdz_page_url.'?nntgwip=1';$mdz_req_cache_time=10;if(defined('AJAXLOADER_WAPAGE_CACHE_POLICY')){if(!empty(AJAXLOADER_WAPAGE_CACHE_POLICY)){$mdz_req_cache_time=AJAXLOADER_WAPAGE_CACHE_POLICY;}}$mdz_stayon_the_waiting_page=0;if(defined('AJAXLOADER_WAPAGE_STAYON')){if(!empty(AJAXLOADER_WAPAGE_STAYON)){$mdz_stayon_the_waiting_page=AJAXLOADER_WAPAGE_STAYON;}}if(!$mdz_stayon_the_waiting_page){setcookie('ajxloaderwapage-isloaded','1',['path'=>'/','secure'=>is_ssl(),'httponly'=>true,'samesite'=>'Lax']);}$mdz_site_lang=get_locale();$mdz_is_rtl=is_rtl();if(!$mdz_is_rtl){if(strpos($mdz_site_lang,'fa')!==false){$mdz_is_rtl=true;}if(strpos($mdz_site_lang,'ar')!==false){$mdz_is_rtl=true;}if(strpos($mdz_site_lang,'he')!==false){$mdz_is_rtl=true;}if(strpos($mdz_site_lang,'ur')!==false){$mdz_is_rtl=true;}}$mdz_txts_dir='ltr';if($mdz_is_rtl){$mdz_txts_dir='rtl';}$mdz_main_txt_str='Please Wait, We are Loading the Page...';$mdz_main_txt=get_option('wpjsloader_ftl_page_txt');if($mdz_main_txt&&!empty($mdz_main_txt)){$mdz_main_txt_str=sanitize_text_field($mdz_main_txt);}$mdz_footer_txt_str='Powered by AjaxLoader!';$mdz_footer_txt=get_option('wpjsloader_ftl_page_ftxt');if($mdz_footer_txt&&!empty($mdz_footer_txt)){$mdz_footer_txt_str=sanitize_text_field($mdz_footer_txt);}$mdz_is_pro_opts=get_option('wpjsloader_ftl_pro_pag');$mdz_self_plg_url=esc_url($mdz_homeurl.'/wp-content/plugins/ajax-loader-cache');$mdz_self_plg_fonts_url=$mdz_self_plg_url.'/admin/assets/fonts';$mdz_main_color_hex='#7361ff';$mdz_main_color_hex_opt=get_option('wpjsloader_ftl_page_mcolor');if($mdz_main_color_hex_opt&&!empty($mdz_main_color_hex_opt)){$mdz_main_color_hex=$mdz_main_color_hex_opt;}$mdz_second_color_hex='#006D5B';$mdz_second_color_hex_opt=get_option('wpjsloader_ftl_page_scolor');if($mdz_second_color_hex_opt&&!empty($mdz_second_color_hex_opt)){$mdz_second_color_hex=$mdz_second_color_hex_opt;}$mdz_bg_color_hex='#f5f2ff';$mdz_bg_color_hex_opt=get_option('wpjsloader_ftl_page_bg');if($mdz_bg_color_hex_opt&&!empty($mdz_bg_color_hex_opt)){$mdz_bg_color_hex=$mdz_bg_color_hex_opt;}$mdz_is_pro=0;$mdz_is_pro_plg=get_option('wpjsloader_isgot_pro');if($mdz_is_pro_plg&&!empty($mdz_is_pro_plg)){$mdz_is_pro=$mdz_is_pro_plg;}if($mdz_is_pro==1){$active_plugins=get_option('active_plugins',[]);$is_active=in_array('ajax-loader-pro-bymdez/ajax-loader-pro-bymdez.php',$active_plugins,true);if(!$is_active){$mdz_is_pro=0;}}$mdz_use_pro_ui_on_thispage=0;$mdz_use_pro_ui_on_thispage_opt=get_option('wpjsloader_ftl_pro_pag');if($mdz_use_pro_ui_on_thispage_opt&&!empty($mdz_use_pro_ui_on_thispage_opt)){$mdz_use_pro_ui_on_thispage=$mdz_use_pro_ui_on_thispage_opt;}if($mdz_use_pro_ui_on_thispage==1):$mdz_pro_plg_url=esc_url($mdz_homeurl.'/wp-content/plugins/ajax-loader-pro-bymdez');$mdz_adv_logo_src=$mdz_pro_plg_url.'/assets/img/test-loader.svg';$mdz_adv_logo_w=225;$mdz_adv_logo_h=225;$mdz_adv_slogan_txt='Powered By AjaxLoader';$mdz_adv_slogan_txt_opt=get_option('wpjsloader_prod_slogan');if($mdz_adv_slogan_txt_opt&&!empty($mdz_adv_slogan_txt_opt)){$mdz_adv_slogan_txt=$mdz_adv_slogan_txt_opt;}$mdz_adv_slogan_color='#000';$mdz_adv_slogan_color_opt=get_option('wpjsloader_prod_slogan_color');if($mdz_adv_slogan_color_opt&&!empty($mdz_adv_slogan_color_opt)){$mdz_adv_slogan_color=$mdz_adv_slogan_color_opt;}$mdz_adv_logo_opt=get_option('wpjsloader_prod_imgsrc');if($mdz_adv_logo_opt&&!empty($mdz_adv_logo_opt)){$mdz_adv_logo_src=$mdz_adv_logo_opt;}$mdz_adv_logo_w_opt=get_option('wpjsloader_prod_imgw');if($mdz_adv_logo_w_opt&&!empty($mdz_adv_logo_w_opt)){$mdz_adv_logo_w=$mdz_adv_logo_w_opt;}$mdz_adv_logo_h_opt=get_option('wpjsloader_prod_imgh');if($mdz_adv_logo_h_opt&&!empty($mdz_adv_logo_h_opt)){$mdz_adv_logo_h=$mdz_adv_logo_h_opt;}$mdz_adv_cont_bg='#ffffffd1';$mdz_adv_cont_bg_opt=get_option('wpjsloader_prod_ibg');if($mdz_adv_cont_bg_opt&&!empty($mdz_adv_cont_bg_opt)){$mdz_adv_cont_bg=$mdz_adv_cont_bg_opt;}$mdz_adv_cont_b_color='#54515180';$mdz_adv_cont_b_color_opt=get_option('wpjsloader_prod_bcolor');if($mdz_adv_cont_b_color_opt&&!empty($mdz_adv_cont_b_color_opt)){$mdz_adv_cont_b_color=$mdz_adv_cont_b_color_opt;}$mdz_adv_cont_alignment='row';$mdz_adv_cont_alignment_opt=get_option('wpjsloader_prod_itemspos');if($mdz_adv_cont_alignment_opt&&!empty($mdz_adv_cont_alignment_opt)){$mdz_adv_cont_alignment=$mdz_adv_cont_alignment_opt;}switch($mdz_adv_cont_alignment){case 'row-rev':$mdz_adv_cont_alignment='row-reverse';break;case 'col':$mdz_adv_cont_alignment='column';break;case 'row-col':$mdz_adv_cont_alignment='column-reverse';break;}$mdz_adv_blur_css_class='';$mdz_adv_cont_user_blur='0';$mdz_adv_cont_user_blur_opt=get_option('wpjsloader_prod_glass');if($mdz_adv_cont_user_blur_opt&&!empty($mdz_adv_cont_user_blur_opt)){$mdz_adv_cont_user_blur=$mdz_adv_cont_user_blur_opt;}if($mdz_adv_cont_user_blur==1){$mdz_adv_blur_css_class='bg-perish';}$mdz_dashbar_h=3.5;$mdz_dashbar_h_opt=get_option('wpjsloader_dash_h');if($mdz_dashbar_h_opt&&!empty($mdz_dashbar_h_opt)){$mdz_dashbar_h=$mdz_dashbar_h_opt;}$mdz_dashbar_pos_bdy_class='dashbar-on-top';$mdz_dashbar_pos='top';$mdz_dashbar_pos_opt=get_option('wpjsloader_dash_pos');if($mdz_dashbar_pos_opt&&!empty($mdz_dashbar_pos_opt)){$mdz_dashbar_pos=$mdz_dashbar_pos_opt;}if($mdz_dashbar_pos=='bot'){$mdz_dashbar_pos_bdy_class='dashbar-on-bottom';}$mdz_dashbar_bg='#ffffff';$mdz_dashbar_bg_opt=get_option('wpjsloader_dash_bg');if($mdz_dashbar_bg_opt&&!empty($mdz_dashbar_bg_opt)){$mdz_dashbar_bg=$mdz_dashbar_bg_opt;}$mdz_dashbar_color='#ff0000';$mdz_dashbar_color_opt=get_option('wpjsloader_dash_color');if($mdz_dashbar_color_opt&&!empty($mdz_dashbar_color_opt)){$mdz_dashbar_color=$mdz_dashbar_color_opt;}$mdz_dashbar_dir='ltr';$mdz_dashbar_dir_opt=get_option('wpjsloader_dash_dir');if($mdz_dashbar_dir_opt&&!empty($mdz_dashbar_dir_opt)){$mdz_dashbar_dir=$mdz_dashbar_dir_opt;}$mdz_dashbar_topright_rad=0;$mdz_dashbar_topleft_rad=0;$mdz_dashbar_botright_rad=0;$mdz_dashbar_botleft_rad=0;$mdz_dashbar_rad=10;$mdz_dashbar_rad_opt=get_option('wpjsloader_dash_round');if($mdz_dashbar_rad_opt&&!empty($mdz_dashbar_rad_opt)){$mdz_dashbar_rad=$mdz_dashbar_rad_opt;}switch($mdz_dashbar_dir){case 'ltr':$mdz_dashbar_topright_rad=$mdz_dashbar_rad;$mdz_dashbar_botright_rad=$mdz_dashbar_rad;break;case 'rtl':$mdz_dashbar_topleft_rad=$mdz_dashbar_rad;$mdz_dashbar_botleft_rad=$mdz_dashbar_rad;break;}endif; ?>