force css reload on change
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
<meta http-equiv="gallerimg" content="no" />
|
<meta http-equiv="gallerimg" content="no" />
|
||||||
<meta http-equiv="cache-control" content="no-cache" />
|
<meta http-equiv="cache-control" content="no-cache" />
|
||||||
<link rel="SHORTCUT ICON" href="favicon.ico">
|
<link rel="SHORTCUT ICON" href="favicon.ico">
|
||||||
<link rel="stylesheet" type="text/css" media="screen,projection" href="resource2/{style}/css/style_screen.css">
|
<link rel="stylesheet" type="text/css" media="screen,projection" href="resource2/{style}/css/style_screen.css?ft={screen_css_time}">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
<?php
|
<?php
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
}
|
}
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" type="text/css" media="print" href="resource2/{style}/css/style_print.css">
|
<link rel="stylesheet" type="text/css" media="print" href="resource2/{style}/css/style_print.css?ft={print_css_time}">
|
||||||
<script type="text/javascript" src="resource2/{style}/js/enlargeit.js"></script>
|
<script type="text/javascript" src="resource2/{style}/js/enlargeit.js"></script>
|
||||||
{htmlheaders}
|
{htmlheaders}
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -432,7 +432,7 @@ function __autoload($class_name)
|
|||||||
function tpl_BuildTemplate($dbdisconnect=true)
|
function tpl_BuildTemplate($dbdisconnect=true)
|
||||||
{
|
{
|
||||||
//template handling vars
|
//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
|
//language specific expression
|
||||||
global $error_pagenotexist;
|
global $error_pagenotexist;
|
||||||
//only for debbuging
|
//only for debbuging
|
||||||
@@ -440,6 +440,9 @@ function __autoload($class_name)
|
|||||||
// country dropdown
|
// country dropdown
|
||||||
global $tpl_usercountries;
|
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))
|
if (isset($bScriptExecution))
|
||||||
{
|
{
|
||||||
$bScriptExecution->Stop();
|
$bScriptExecution->Stop();
|
||||||
|
|||||||
@@ -237,6 +237,9 @@ class OcSmarty extends Smarty
|
|||||||
$this->bench->stop();
|
$this->bench->stop();
|
||||||
$this->assign('sys_runtime', $this->bench->diff());
|
$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
|
// check if the template is compiled
|
||||||
// if not, check if translation works correct
|
// if not, check if translation works correct
|
||||||
$_smarty_compile_path = $this->_get_compile_path($this->name);
|
$_smarty_compile_path = $this->_get_compile_path($this->name);
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
<meta http-equiv="gallerimg" content="no" />
|
<meta http-equiv="gallerimg" content="no" />
|
||||||
<meta http-equiv="cache-control" content="no-cache" />
|
<meta http-equiv="cache-control" content="no-cache" />
|
||||||
<link rel="SHORTCUT ICON" href="favicon.ico">
|
<link rel="SHORTCUT ICON" href="favicon.ico">
|
||||||
<link rel="stylesheet" type="text/css" media="screen,projection" href="resource2/{$opt.template.style}/css/style_screen.css">
|
<link rel="stylesheet" type="text/css" media="screen,projection" href="resource2/{$opt.template.style}/css/style_screen.css?ft={$screen_css_time}">
|
||||||
<link rel="stylesheet" type="text/css" media="print" href="resource2/{$opt.template.style}/css/style_print.css">
|
<link rel="stylesheet" type="text/css" media="print" href="resource2/{$opt.template.style}/css/style_print.css?ft={$print_css_time}">
|
||||||
{literal}
|
{literal}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
Reference in New Issue
Block a user