| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
- $clientLang = $app->getClientLang();
- $webRoot = $this->app->getWebRoot();
- $jsRoot = $webRoot . "js/";
- $themeRoot = $webRoot . "theme/";
- $defaultTheme = $webRoot . 'theme/default/';
- $langTheme = $themeRoot . 'lang/' . $clientLang . '.css';
- $clientTheme = $this->app->getClientTheme();
- $onlybody = zget($_GET, 'onlybody', 'no');
- $commonLang = array('zh-cn', 'zh-tw', 'en', 'fr', 'de');
- ?>
- <!DOCTYPE html>
- <html lang='<?php echo $clientLang;?>' class='theme-<?php echo $this->cookie->theme;?>'>
- <head>
- <meta charset='utf-8'>
- <meta http-equiv='X-UA-Compatible' content='IE=edge'>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="renderer" content="webkit">
- <?php
- echo html::title($title . ' - ' . $lang->zentaoPMS);
- js::exportConfigVars();
- if($config->debug)
- {
- $timestamp = time();
- css::import($themeRoot . 'zui/css/min.css?t=' . $timestamp);
- css::import($defaultTheme . 'style.css?t=' . $timestamp);
- css::import($langTheme);
- if(strpos($clientTheme, 'default') === false) css::import($clientTheme . 'style.css?t=' . $timestamp);
- js::import($jsRoot . 'jquery/lib.js');
- js::import($jsRoot . 'zui/min.js?t=' . $timestamp);
- if(!in_array($clientLang, $commonLang)) js::import($jsRoot . 'zui/lang.' . $clientLang . '.min.js?t=' . $timestamp);
- js::import($jsRoot . 'my.full.js?t=' . $timestamp);
- if(isset($config->zinTool)) js::import($jsRoot . 'zui3/zintool.js');
- }
- else
- {
- $minCssFile = $defaultTheme . $this->cookie->lang . '.' . $this->cookie->theme . '.css';
- if(!file_exists($this->app->getThemeRoot() . 'default/' . $this->cookie->lang . '.' . $this->cookie->theme . '.css')) $minCssFile = $defaultTheme . 'en.' . $this->cookie->theme . '.css';
- css::import($minCssFile);
- js::import($jsRoot . 'all.js');
- if(!in_array($clientLang, $commonLang)) js::import($jsRoot . 'zui/lang.' . $clientLang . '.min.js');
- }
- if($this->app->getViewType() == 'xhtml') css::import($defaultTheme . 'x.style.css');
- if($this->app->isServing() && commonModel::isTutorialMode())
- {
- $wizardModule = isset($_SESSION['wizardModule']) ? $_SESSION['wizardModule'] : $this->moduleName;
- $wizardMethod = isset($_SESSION['wizardMethod']) ? $_SESSION['wizardMethod'] : $this->methodName;
- $requiredFields = '';
- if(isset($config->$wizardModule->$wizardMethod->requiredFields)) $requiredFields = str_replace(' ', '', $config->$wizardModule->$wizardMethod->requiredFields);
- echo "<script>window.TUTORIAL = {'module': '$wizardModule', 'method': '$wizardMethod', tip: '$lang->tutorialConfirm'}; if(config) config.requiredFields = '$requiredFields'; $(function(){window.top.checkTutorialState && setTimeout(window.top.checkTutorialState, 500);});</script>";
- }
- if(isset($pageCSS)) css::internal($pageCSS);
- echo html::favicon($webRoot . 'favicon.ico');
- ?>
- <!--[if lt IE 10]>
- <?php js::import($jsRoot . 'jquery/placeholder/min.js'); ?>
- <![endif]-->
- <?php
- /* Load hook files for current page. */
- $extensionRoot = $this->app->getExtensionRoot();
- if($this->config->vision != 'open')
- {
- $extHookRule = $extensionRoot . $this->config->edition . '/common/ext/view/header.*.hook.php';
- $extHookFiles = glob($extHookRule);
- if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile;
- }
- if($this->config->vision == 'lite')
- {
- $extHookRule = $extensionRoot . $this->config->vision . '/common/ext/view/header.*.hook.php';
- $extHookFiles = glob($extHookRule);
- if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile;
- }
- $xuanExtFile = $extensionRoot . 'xuan/common/ext/view/header.xuanxuan.html.hook.php';
- if(file_exists($xuanExtFile)) include $xuanExtFile;
- ?>
- </head>
- <?php
- $bodyClass = $this->app->getViewType() == 'xhtml' ? 'allow-self-open' : '';
- if(isset($pageBodyClass)) $bodyClass = $bodyClass . ' ' . $pageBodyClass;
- if($this->app->moduleName == 'index' && $this->app->methodName == 'index') $bodyClass .= ' menu-' . ($this->cookie->hideMenu ? 'hide' : 'show');
- if(strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') !== false) $bodyClass .= ' xxc-embed';
- ?>
- <body class='<?php echo $bodyClass; ?>'>
- <?php if($this->app->getViewType() == 'xhtml'):?>
- <style>
- .main-actions-holder {display: none !important;}
- </style>
- <?php endif;?>
|