diff --git a/htdocs/lang/de/ocstyle/main.tpl.php b/htdocs/lang/de/ocstyle/main.tpl.php index e7228284..a89f6b81 100644 --- a/htdocs/lang/de/ocstyle/main.tpl.php +++ b/htdocs/lang/de/ocstyle/main.tpl.php @@ -62,7 +62,7 @@ - + - + {htmlheaders} diff --git a/htdocs/lib/common.inc.php b/htdocs/lib/common.inc.php index 51fc1241..7c4af2d8 100644 --- a/htdocs/lib/common.inc.php +++ b/htdocs/lib/common.inc.php @@ -432,7 +432,7 @@ function __autoload($class_name) function tpl_BuildTemplate($dbdisconnect=true) { //template handling vars - global $stylepath, $tplname, $vars, $langpath, $locale, $opt, $oc_nodeid; + global $style, $stylepath, $tplname, $vars, $langpath, $locale, $opt, $oc_nodeid; //language specific expression global $error_pagenotexist; //only for debbuging @@ -440,6 +440,9 @@ function __autoload($class_name) // country dropdown global $tpl_usercountries; + tpl_set_var('screen_css_time',filemtime($opt['rootpath'] . "resource2/" . $style . "/css/style_screen.css")); + tpl_set_var('print_css_time',filemtime($opt['rootpath'] . "resource2/" . $style . "/css/style_print.css")); + if (isset($bScriptExecution)) { $bScriptExecution->Stop(); diff --git a/htdocs/lib2/OcSmarty.class.php b/htdocs/lib2/OcSmarty.class.php index 700f0255..53e6f43f 100644 --- a/htdocs/lib2/OcSmarty.class.php +++ b/htdocs/lib2/OcSmarty.class.php @@ -237,6 +237,9 @@ class OcSmarty extends Smarty $this->bench->stop(); $this->assign('sys_runtime', $this->bench->diff()); + $this->assign('screen_css_time',filemtime($opt['rootpath'] . "resource2/" . $opt['template']['style'] . "/css/style_screen.css")); + $this->assign('print_css_time',filemtime($opt['rootpath'] . "resource2/" . $opt['template']['style'] . "/css/style_print.css")); + // check if the template is compiled // if not, check if translation works correct $_smarty_compile_path = $this->_get_compile_path($this->name); diff --git a/htdocs/templates2/ocstyle/sys_main.tpl b/htdocs/templates2/ocstyle/sys_main.tpl index 176a1787..9a64cbc2 100644 --- a/htdocs/templates2/ocstyle/sys_main.tpl +++ b/htdocs/templates2/ocstyle/sys_main.tpl @@ -18,8 +18,8 @@ - - + + {literal}