Skip to content

Commit

Permalink
Issue ID 0000371:
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
rub committed May 7, 2006
1 parent b655577 commit 486aa9f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
13 changes: 13 additions & 0 deletions include/common.inc.php
Expand Up @@ -208,6 +208,19 @@
.'/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']);
?>
12 changes: 1 addition & 11 deletions include/page_header.php
Expand Up @@ -49,19 +49,9 @@
'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 ) )
{
Expand Down
3 changes: 0 additions & 3 deletions template/yoga/header.tpl
Expand Up @@ -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}

0 comments on commit 486aa9f

Please sign in to comment.