* rewrite the header.lite.
This commit is contained in:
@@ -4,6 +4,7 @@ $webRoot = $this->app->getWebRoot();
|
||||
$jsRoot = $webRoot . "js/";
|
||||
$themeRoot = $webRoot . "theme/";
|
||||
$defaultTheme = $webRoot . 'theme/default/';
|
||||
$langTheme = $themeRoot . 'lang/' . $app->getClientLang() . 'css';
|
||||
$clientTheme = $this->app->getClientTheme();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dli'>
|
||||
@@ -15,21 +16,22 @@ $clientTheme = $this->app->getClientTheme();
|
||||
if(!isset($header->title)) $header->title = $lang->ZenTaoPMS;
|
||||
if(!isset($header->keywords)) $header->keywords = $lang->zentaoKeywords;
|
||||
if(!isset($header->desc)) $header->desc = $lang->zentaoDESC;
|
||||
echo "<title>$header->title - $lang->ZenTaoPMS</title>\n";
|
||||
echo "<meta name='keywords' content='$header->keywords'>\n";
|
||||
echo "<meta name='description' content='$header->desc'>\n";
|
||||
|
||||
echo html::title($header->title . '-' . $lang->ZenTaoPMS);
|
||||
echo html::meta('keywords', $header->keywords);
|
||||
echo html::meta('description', $header->desc);
|
||||
|
||||
js::exportConfigVars();
|
||||
js::import($jsRoot . 'jquery/lib.js', $config->version);
|
||||
js::import($jsRoot . 'my.js', $config->version);
|
||||
|
||||
css::import($defaultTheme . 'yui.css', $config->version);
|
||||
css::import($defaultTheme . 'style.css', $config->version);
|
||||
css::import($langTheme, $config->version);
|
||||
if(strpos($clientTheme, 'default') === false) css::import($clientTheme . 'style.css', $version);
|
||||
|
||||
echo html::icon($webRoot . 'favicon.ico');
|
||||
?>
|
||||
<?php echo js::exportConfigVars();?>
|
||||
<script src="<?php echo $jsRoot;?>jquery/lib.js" type="text/javascript"></script>
|
||||
<script src="<?php echo $jsRoot;?>my.js" type="text/javascript"></script>
|
||||
<link rel='stylesheet' href='<?php echo $defaultTheme . 'yui.css';?>' type='text/css' media='screen' />
|
||||
<link rel='stylesheet' href='<?php echo $defaultTheme . 'style.css';?>' type='text/css' media='screen' />
|
||||
<link rel='stylesheet' href='<?php echo $themeRoot . 'lang/' . $app->getClientLang() . '.css';?>' type='text/css' media='screen' />
|
||||
<?php if(strpos($clientTheme, 'default') === false):?>
|
||||
<link rel='stylesheet' href='<?php echo $clientTheme . 'style.css';?>' type='text/css' media='screen' />
|
||||
<?php endif;?>
|
||||
<link rel='icon' href='<?php echo $webRoot;?>favicon.ico' type="image/x-icon" />
|
||||
<link rel='shortcut icon' href='<?php echo $webRoot;?>favicon.ico' type='image/x-icon' />
|
||||
<script type="text/javascript">loadFixedCSS();</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user