$TplContent->set("ExecTime", ProcessingTime($StartExec)); $TplFooter->set("CookieConfirmation", CookiesAccepted($CookieUri)); $TplFooter->set("Fluid", $Fluid); //header('content-type:text/plain;charset=utf-8'); //$ko_scripts = ko_scripts(); //var_dump($ko_scripts->get()); //$TplHeader->printVars(); //exit; //print_r($KO_Registered_WidgetsHTML); exit; /* fetch templates and parse them -------------------------------------------------------------*/ $Body = $TplContent->fetch(); foreach($ko_styles->get() as $S) $IncludeCSS[] = $S; fo_SkinPath", $__SkinPath); $TplHeader->set("__Self", $__Self); $TplHeader->set("__ProxyPath", $__ProxyPath); $TplHeader->set("InlineCss", $InlineCss); $TplHeader->set("Fluid", $Fluid); $TplHeader->set("currentLanguage", $currentLanguage); $TplHeader->set("FaviconMeta", $FaviconMeta); if(count($__body_classnames_arr) !== 0){ $TplHeader->set("__body_classnames", " ".implode(' ', $__body_classnames_arr)); } $__GOOGLE_ANALYTICS = false; if(false !== $GA = config('GOOGLE_ANALYTICS')){ $__GOOGLE_ANALYTICS = $GA; } $TplHeader->set("__FACEBOOK_APP_ID", $__FACEBOOK_APP_ID); $TplHeader->set("__SOCIAL_FACEBOOK", $__SOCIAL_FACEBOOK); $TplHeader->set("__SOCIAL_TWITTER", $__SOCIAL_TWITTER); $TplHeader->set("__GOOGLE_ANALYTICS", $__GOOGLE_ANALYTICS); $TplHeader->set("CLIENT_LONG_NAME", config("CLIENT_LONG_NAME")); $TplHeader->set("CLIENT_SHORT_NAME", config("CLIENT_SHORT_NAME")); $TplHeader->set("__IsAuthenticated", $__IsAuthenticated); $TplHeader->set("__IsAdmin", $__IsAdmin); $TplHeader->set("__LBL_LOADING_PLEASE_WAIT", $Phrases['LBL_LOADING_PLEASE_WAIT']); $__VersionHash = preg_replace('/[^0-9]+/', '', VERSION_KanslietOnline); if(defined('VERSION_KanslietOnline_PL')) $__VersionHash .= sprintf('PL%d', VERSION_KanslietOnline_PL); $TplHeader->set("__VersionHash", $__VersionHash); /* app badges -- -------------*/ $__app_badges = ''; if(defined('APP_ACTIVATED') && true === APP_ACTIVATED){ $__KO_CDN_URL = KO_CDN_URL; $__app_badges_template = << Ladda ned på Google Play Ladda ned i App Store EOT; if(isset($__payment_settings['provider']) && $__payment_settings['provider'] === 'ping'){ $file = file_get_contents(sprintf('%sApp-wu.inc', KO_SHARED_PATH)); }else{ $file = file_get_contents(sprintf('%sApp-ko.inc', KO_SHARED_PATH)); } $__app_badges = $Mustache->render($__app_badges_template, json_decode($file, true)); } $TplContent->set("__app_badges", $__app_badges); $TplContent->set("__AbsUrl", $__AbsUrl); $TplContent->set("__SkinPath", $__SkinPath); $TplContent->set("__Self", $__Self); $TplContent->set("__AuthType", $AuthType); $TplContent->set("__i18n_Login", $__i18n_Login); $TplContent->set("__i18n_Logout", $__i18n_Logout); $TplContent->set("__i18n_Create", $Phrases['BTN_CREATE_ACCOUNT']); $TplContent->set("__i18n_Book", $Phrases['BTN_BOOK']); $TplContent->set("__SYSTEM_ALLOW_NEWREG", $__Settings['SYSTEM_ALLOW_NEWREG']); $TplContent->set("__SYSTEM_ALLOW_LOGIN", $__Settings['SYSTEM_ALLOW_LOGIN']); $TplContent->set("__PAGEURLS", $__PAGEURLS); $TplContent->set("__QuickNotify", (bool)$Session->get("ForceLogout")); $TplContent->set("__IsAuthenticated", $__IsAuthenticated); $TplContent->set("AccountWidget", $AccountWidget); $TplContent->set("MobileAccountWidget", $MobileAccountWidget); $TplContent->set("__i18n_Search", $Phrases['LBL_SEARCH']); $TplContent->set("__i18n_SearchContent", $Phrases['LBL_SEARCH_CONTENT']); $TplContent->set("CookieConfirmation", ""); $TplContent->set("Fluid", $Fluid); $TplContent->set("Columns", $Columns); $TplContent->set("Shadow", $Shadow); $TplContent->set("SectionBrand", $SectionBrand); $TplContent->set("__AbsPath", $__AbsPath); $TplContent->set("CLIENT_LONG_NAME", config("CLIENT_LONG_NAME")); $TplContent->set("LoggedIn", $__IsAuthenticated); //$TplContent->set("AccountWidget", $AccountWidget); $TplContent->set("LangugeSelector", $LangugeSelector); $TplContent->set("LangugeSelectorMobile", $LangugeSelectorMobile); $TplContent->set("Today", strftime(DATE_DAY_MONTH_YEAR)); $TplContent->set("HeaderCrumb", $HeaderCrumb); $TplContent->set("__HasSlider", $__HasSlider); $TplContent->set("SliderHTML", $SliderHTML); $TplContent->set("SponsorHTML", ""); //$SponsorHTML); if(isset($Tree)) $TplContent->set("Tree", $Tree); if(isset($header_type)) $TplContent->set("header_type", $header_type); if(isset($CustomHeader)) $TplContent->set("CustomHeader", $CustomHeader); $TplContent->set("ExecTime", ProcessingTime($StartExec)); $TplFooter->set("CookieConfirmation", CookiesAccepted($CookieUri)); $TplFooter->set("Fluid", $Fluid); //header('content-type:text/plain;charset=utf-8'); //$ko_scripts = ko_scripts(); //var_dump($ko_scripts->get()); //$TplHeader->printVars(); //exit; //print_r($KO_Registered_WidgetsHTML); exit; /* fetch templates and parse them -------------------------------------------------------------*/ $Body = $TplContent->fetch(); foreach($ko_styles->get() as $S) $IncludeCSS[] = $S; foreach($ko_scripts->get() as