aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-03-01 22:02:40 +0000
committerrub <rub@piwigo.org>2008-03-01 22:02:40 +0000
commit1f271ceca3e74c7b077f8462086db020121e81c3 (patch)
tree3ec2ee8797d6eb82dfe3abe3a7d2c60e73da39cc
parent352f097fc7aaa7ecdc4932d36351727f88f0e2db (diff)
0000810: Use of new template engine [smarty]
New way for TAG_INPUT_ENABLED git-svn-id: http://piwigo.org/svn/trunk@2239 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin.php4
-rw-r--r--include/page_header.php4
-rw-r--r--include/template.class.php4
-rw-r--r--template/yoga/admin/check_integrity.tpl2
4 files changed, 7 insertions, 7 deletions
diff --git a/admin.php b/admin.php
index 2b39d3cdc..e593f6066 100644
--- a/admin.php
+++ b/admin.php
@@ -94,9 +94,7 @@ $template->assign(
'U_GROUPS'=> $link_start.'group_list',
'U_PERMALINKS'=> $link_start.'permalinks',
'U_RETURN'=> make_index_url(),
- 'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php',
- 'TAG_INPUT_ENABLED' =>
- ((is_adviser()) ? 'disabled="disabled" onclick="return false;"' : ''),
+ 'U_ADMIN'=> PHPWG_ROOT_PATH.'admin.php'
)
);
if ($conf['ws_access_control']) // Do we need to display ws_checker
diff --git a/include/page_header.php b/include/page_header.php
index cd51f5031..8f6e1a87b 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -2,7 +2,7 @@
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
// | file : $Id$
@@ -52,8 +52,6 @@ $template->assign_vars(
'LANG'=>$lang_info['code'],
'DIR'=>$lang_info['direction'],
- 'TAG_INPUT_ENABLED' =>
- ((is_adviser()) ? 'disabled onclick="return false;"' : ''),
'U_HOME' => make_index_url(),
));
diff --git a/include/template.class.php b/include/template.class.php
index 1afdb655c..62a5a4cfc 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -239,10 +239,14 @@ class Template {
if ($is_new)
{
$this->smarty->assign( 'ROOT_URL', get_root_url() );
+ $this->smarty->assign( 'TAG_INPUT_ENABLED',
+ ((is_adviser()) ? 'disabled="disabled" onclick="return false;"' : ''));
$v = $this->smarty->fetch($this->files[$handle], null, null, false);
}
else
{
+ $this->_old->assign_vars(array('TAG_INPUT_ENABLED' =>
+ ((is_adviser()) ? 'disabled onclick="return false;"' : '')));
$this->_old->set_filename( $handle, $this->files[$handle] );
$v = $this->_old->parse($handle, true);
}
diff --git a/template/yoga/admin/check_integrity.tpl b/template/yoga/admin/check_integrity.tpl
index 0d31b15e9..245a666ca 100644
--- a/template/yoga/admin/check_integrity.tpl
+++ b/template/yoga/admin/check_integrity.tpl
@@ -74,7 +74,7 @@
<!-- BEGIN c13y_submit_ignore -->
<input class="submit" type="submit" value="{lang:c13y_submit_ignore}" name="c13y_submit_ignore" {TAG_INPUT_ENABLED} />
<!-- END c13y_submit_ignore -->
- <input class="submit" type="submit" value="{lang:c13y_submit_refresh}" name="c13y_submit_refresh" {TAG_INPUT_ENABLED} />
+ <input class="submit" type="submit" value="{lang:c13y_submit_refresh}" name="c13y_submit_refresh" />
</p>
</fieldset>