diff options
author | rub <rub@piwigo.org> | 2006-05-07 22:52:25 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-05-07 22:52:25 +0000 |
commit | 486aa9f4ad5d55caf376ca213fad1778e31e5bad (patch) | |
tree | f69c5d98e990295bb02a849d9c6b975f1883d147 | |
parent | b655577c08fb5e52035d681bad4135d6cab1cf67 (diff) |
Issue ID 0000371:
o Sorry but reverse r1299/1300
Issue ID 0000356:
o Add new html properties tags on adviser mode
git-svn-id: http://piwigo.org/svn/trunk@1303 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/common.inc.php | 13 | ||||
-rw-r--r-- | include/page_header.php | 12 | ||||
-rw-r--r-- | template/yoga/header.tpl | 3 |
3 files changed, 14 insertions, 14 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index 005297d25..8aeafb7bf 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -208,6 +208,19 @@ include( .'/themeconf.inc.php' ); +if (is_adviser()) +{ + ob_start();// buffer output so that cookies work + echo ' + <div class="titrePage"> + <h2> + <div style="text-align:center;">'.$lang['adviser_mode_enabled'].' + </div> + </h2> + </div> + '; +} + // template instance $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template']); ?> diff --git a/include/page_header.php b/include/page_header.php index cd4e59316..6a48b4b81 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -49,19 +49,9 @@ $template->assign_vars( 'LANG'=>$lang_info['code'], 'DIR'=>$lang_info['direction'], - 'TAG_INPUT_ENABLED' => ((is_adviser()) ? 'disabled' : '') + 'TAG_INPUT_ENABLED' => ((is_adviser()) ? 'disabled onclick="return false;"' : '') )); -if (is_adviser()) -{ - $template->assign_vars( - array( - 'ADVISER_ENABLED' => $lang['adviser_mode_enabled'] - ) - ); -} - - // refresh if ( isset( $refresh ) and intval($refresh) >= 0 and isset( $url_link ) and isset( $redirect_msg ) ) { diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl index 43d63cd6a..d432d7b63 100644 --- a/template/yoga/header.tpl +++ b/template/yoga/header.tpl @@ -29,8 +29,5 @@ the "text/nonsense" prevents gecko based browsers to load it --> <body id="{BODY_ID}"> <div id="the_page"> - <div class="titrePage"> - <h2 style="text-align:center">{ADVISER_ENABLED}</h2> - </div> {PAGE_BANNER} |