From 07866088243c7aec025c51d605a2c1adfe93f407 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 25 Dec 2010 12:15:46 +0000 Subject: - simplified inneficient css rules - template language key - group picture scripts on the bottom of the page git-svn-id: http://piwigo.org/svn/trunk@8299 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 7 ++++--- themes/default/template/picture.tpl | 10 ++++----- themes/default/template/picture_nav_buttons.tpl | 19 ++++++++--------- themes/default/theme.css | 28 ++++++++++++------------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/include/template.class.php b/include/template.class.php index 529601a6a..2e62d3d94 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -596,9 +596,10 @@ class Template { } if (count($this->scriptLoader->inline_scripts)) { - $content[]= ''; + $content[]= '//]]>'; } if (count($scripts[1])) @@ -1170,7 +1171,7 @@ final class FileCombiner $is_reload = (isset($_SERVER['HTTP_CACHE_CONTROL']) && strpos($_SERVER['HTTP_CACHE_CONTROL'], 'max-age=0') !== false) || (isset($_SERVER['HTTP_PRAGMA']) && strpos($_SERVER['HTTP_PRAGMA'], 'no-cache')); - if ($is_reload) + if (is_admin() && $is_reload) {// the user pressed F5 in the browser if ($is_css || $conf['template_compile_check']==false) $exists = false; // we foce regeneration of css because @import sub-files are never checked for modification diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 9afef3d5a..1288e1f17 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -60,7 +60,7 @@ {/if} {if isset($U_SET_AS_REPRESENTATIVE)} - +  {'representative'|@translate} {/if} @@ -70,7 +70,7 @@ {/if} {if isset($U_CADDIE)}{*caddie management BEGIN*} - +{/footer_script}  {'caddie'|@translate} @@ -241,7 +241,7 @@ y.callService( {'Who can see this photo?'|@translate} {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} - +{/footer_script}