HWR-Info grey edition
This commit is contained in:
parent
d0defcfc9b
commit
a37a3ca4aa
@ -123,7 +123,7 @@
|
|||||||
{htmlheaders}
|
{htmlheaders}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body style="{bodystyle}">
|
||||||
<div id="overall">
|
<div id="overall">
|
||||||
<div id="langstripe">
|
<div id="langstripe">
|
||||||
|
|
||||||
@ -173,8 +173,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-container-1" style="position: relative;">
|
<div class="page-container-1" style="position: relative;">
|
||||||
<div id="bg1"> </div>
|
{backgroundimage}
|
||||||
<div id="bg2"> </div>
|
|
||||||
|
|
||||||
<!-- HEADER -->
|
<!-- HEADER -->
|
||||||
<?php echo isset($develwarning) ? $develwarning : '' ?>
|
<?php echo isset($develwarning) ? $develwarning : '' ?>
|
||||||
|
@ -437,7 +437,7 @@ function __autoload($class_name)
|
|||||||
function tpl_BuildTemplate($dbdisconnect=true)
|
function tpl_BuildTemplate($dbdisconnect=true)
|
||||||
{
|
{
|
||||||
//template handling vars
|
//template handling vars
|
||||||
global $style, $stylepath, $tplname, $vars, $langpath, $locale, $opt, $oc_nodeid, $translate;
|
global $style, $stylepath, $tplname, $vars, $langpath, $locale, $opt, $oc_nodeid, $translate, $usr;
|
||||||
//language specific expression
|
//language specific expression
|
||||||
global $error_pagenotexist;
|
global $error_pagenotexist;
|
||||||
//only for debbuging
|
//only for debbuging
|
||||||
@ -532,6 +532,17 @@ function __autoload($class_name)
|
|||||||
include $langpath . '/expressions.inc.php';
|
include $langpath . '/expressions.inc.php';
|
||||||
|
|
||||||
//load main template
|
//load main template
|
||||||
|
if ($usr['username'] == 'HWR-Info')
|
||||||
|
{
|
||||||
|
tpl_set_var('backgroundimage','<div style="color:grey; position:absolute; top:15px; right:-100px">HWR-Info-Grey<br />Edition</div>');
|
||||||
|
tpl_set_var('bodystyle','background:#ededed');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tpl_set_var('backgroundimage','<div id="bg1"> </div><div id="bg2"> </div>');
|
||||||
|
tpl_set_var('bodystyle','');
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_REQUEST['print']) && $_REQUEST['print'] == 'y')
|
if (isset($_REQUEST['print']) && $_REQUEST['print'] == 'y')
|
||||||
$sCode = read_file($stylepath . '/main_print.tpl.php');
|
$sCode = read_file($stylepath . '/main_print.tpl.php');
|
||||||
else if (isset($_REQUEST['popup']) && $_REQUEST['popup'] == 'y')
|
else if (isset($_REQUEST['popup']) && $_REQUEST['popup'] == 'y')
|
||||||
|
@ -219,6 +219,7 @@ class OcSmarty extends Smarty
|
|||||||
$this->assign('breadcrumb', $menu->getBreadcrumb());
|
$this->assign('breadcrumb', $menu->getBreadcrumb());
|
||||||
$this->assign('menucolor', $menu->getMenuColor());
|
$this->assign('menucolor', $menu->getMenuColor());
|
||||||
$this->assign('helplink', helppagelink($this->name));
|
$this->assign('helplink', helppagelink($this->name));
|
||||||
|
$this->assign('greybg', $loginn['username'] == 'HWR-Info');
|
||||||
|
|
||||||
if ($this->title == '')
|
if ($this->title == '')
|
||||||
$optn['template']['title'] = $menu->GetMenuTitle();
|
$optn['template']['title'] = $menu->GetMenuTitle();
|
||||||
|
@ -93,7 +93,7 @@
|
|||||||
{if $garmin==true} onload="load('{$cache.latitude}','{$cache.longitude}','{$cache.cacheid}','{$opt.lib.garmin.url}','{$opt.lib.garmin.key}','{$opt.template.locale}')"{/if}
|
{if $garmin==true} onload="load('{$cache.latitude}','{$cache.longitude}','{$cache.cacheid}','{$opt.lib.garmin.url}','{$opt.lib.garmin.key}','{$opt.template.locale}')"{/if}
|
||||||
{foreach from=$opt.page.body_load item=loadItem name=bodyload}{if $smarty.foreach.bodyload.first} onload="{/if}{$loadItem};{if $smarty.foreach.bodyload.last}"{/if}{/foreach}
|
{foreach from=$opt.page.body_load item=loadItem name=bodyload}{if $smarty.foreach.bodyload.first} onload="{/if}{$loadItem};{if $smarty.foreach.bodyload.last}"{/if}{/foreach}
|
||||||
{foreach from=$opt.page.body_unload item=unloadItem name=bodyunload}{if $smarty.foreach.bodyunload.first} onunload="{/if}{$unloadItem};{if $smarty.foreach.bodyunload.last}"{/if}{/foreach}
|
{foreach from=$opt.page.body_unload item=unloadItem name=bodyunload}{if $smarty.foreach.bodyunload.first} onunload="{/if}{$unloadItem};{if $smarty.foreach.bodyunload.last}"{/if}{/foreach}
|
||||||
{if $opt.template.popup!=false} class="popup"{/if}>
|
{if $opt.template.popup!=false} class="popup"{/if} {if $greybg}style="background:#ededed"{/if}>
|
||||||
{if $opt.template.popup!=true}
|
{if $opt.template.popup!=true}
|
||||||
<div id="overall">
|
<div id="overall">
|
||||||
<div id="langstripe">
|
<div id="langstripe">
|
||||||
@ -153,8 +153,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="page-container-1" style="position: relative;">
|
<div class="page-container-1" style="position: relative;">
|
||||||
|
|
||||||
|
{if $greybg}
|
||||||
|
<div style="color:grey; position:absolute; top:15px; right:-100px">HWR-Info-Grey<br />Edition</div>
|
||||||
|
{else}
|
||||||
<div id="bg1"> </div>
|
<div id="bg1"> </div>
|
||||||
<div id="bg2"> </div>
|
<div id="bg2"> </div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{* <!-- HEADER --> *}
|
{* <!-- HEADER --> *}
|
||||||
{* <!-- Debugschalter hier wieder einsetzen --> *}
|
{* <!-- Debugschalter hier wieder einsetzen --> *}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user