/* per https://developers.google.com/web/fundamentals/layouts/rwd-fundamentals/set-the-viewport?hl=en */ ?>
/* leave this little script here. You need it to execute before page is rendered or it could cause a re-render. Protect the page by adding a nonce */?>
if(JENISYS != 1 && SITE_TEST_MODE != 1 && ORG_GOOGLE_TAG_MANAGER_ID){?>
}//error_reporting(E_ALL); ini_set('display_errors',1);ini_set('log_errors',1);
if(ZDEF_RESOURCE_NAME=='index' && defined('ZDEF_GOOGLE_VERIFY')) echo '';
if(WEBPAGE_TITLE!='')echo ''.WEBPAGE_TITLE.'';else echo ''.HSC(ORG_ORGANIZATION_NAME).'';
if(!empty('WEBPAGE_DESCRIPTION'))echo '';
// =============================== CUSTOM FONTS ============================================
require ZDEF_PATH_TO_HUB.'fonts/style.fontstacks.inc.php';
$preLoaded=[];
foreach($STYLE_CUSTOM_FONTS as $key => $fontName){
if(!in_array($fontName,$preLoaded)){
echo '';
$preLoaded[]=$fontName; // headings and text might use the same font. Don't repeat the preload.
}
}
if(JENISYS && !defined('FORCE_FULL_GENERATE_FOR_CDN')){echo '';}
echo '';
echo '';
if(array_key_exists('jiio_install',$classesLoading) && defined('FORCE_FULL_GENERATE_FOR_CDN') && FORCE_FULL_GENERATE_FOR_CDN==1 && defined('SITE_HAS_OUTAGE_MAPS') && SITE_HAS_OUTAGE_MAPS==1){
echo '';
}
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';/* if you want to change this be careful you don't trigger 403 error from CDN on Google Map Requests */
echo '';
echo '';
echo '';
echo '';
if(defined('WEBPAGE_OG_IMAGE') && WEBPAGE_OG_IMAGE!=''){
echo '';
}
echo '';
$json_fn=ZDEF_PATH_TO_SUBDOMAIN.'schema/'.ZDEF_RESOURCE_NAME.'-json-ld.txt'; // page specific schema
if(!file_exists($json_fn)){
$json_fn=ZDEF_PATH_TO_SUBDOMAIN.'schema/json-ld.txt'; // sitewide schema
}
if(file_exists($json_fn)){
$json_ld=file_get_contents($json_fn);
// remove all the spaces in json-ld that aren't in double quotes
//preg_match_all('/[^\s"]+|"[^"]*"/', $json_ld, $matches);
//$json_ld = implode('', $matches[0]);
$json_ld = preg_replace("/[\n\r\t\v\f]/"," ",$json_ld);
echo PHP_EOL.$json_ld;
//echo '';
//require ZDEF_PATH_TO_LIBRARY.'jenisys/jenisys.compiled.script.php';
}else{
require ZDEF_PATH_TO_LIBRARY.'WebPage.script.php';
}
if(SITE_TEST_MODE !==1 && ORG_GOOGLE_GLOBAL_SITE_TAG){?>
}
if(SITE_TEST_MODE !== 1 && ORG_GOOGLE_TAG_MANAGER_ID){?>
}
if(ORG_CALL_TRACKING_ID){
//echo '';
}
// LEAVE THE GOOGLE MAPS JS HERE!! If you place it in the head it blows up the whole page on the CDN. Never did figure out why.
// This only loads the maps api if we're publishing
if(defined('FORCE_FULL_GENERATE_FOR_CDN') && FORCE_FULL_GENERATE_FOR_CDN==1 && SITE_HAS_OUTAGE_MAPS==1 && array_key_exists('gmap_api',$classesLoading)){
echo '';
}
//if(file_exists(ZDEF_PATH_TO_SUBDOMAIN.'published/custom.js') && ZDEF_REQUEST_FROM_HUB_DOMAIN!==1 && SITE_TEST_MODE!=1){readfile(ZDEF_PATH_TO_SUBDOMAIN.'published/custom.js');}
if(ZDEF_CMD!='PP')echo '';
if(ZDEF_CMD=='PP')echo '';
echo '';
/*getPathParts=function(s){
let a=s.split('#'),b=[];
b['anchor']=a[1]||'';
a=a[0].split('?');
b['query']=a[1]||'';
a=a[0].split('//')[1].split('/');
b['domain']=a.shift();
b['subdomain']= if(JENISYS===1||isset($cln_preview)) echo 'a.shift();'; else echo '\'\';'; ?>
b['resource']=a.pop()||'index.htm';
let c=b['resource'].split('.');
b['page']=c[0];
b['extension']=c[1];
b['path']=a[0]?a.join('/')+'/':'';
return b;
};*/
?>