diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-12 15:53:39 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-12 15:53:39 +0000 |
| commit | 2019e9a931ffde9b2358241aa1844b4a826a76f9 (patch) | |
| tree | a28cbdc0eb4f323895b87c0cd3d6c714ad83fa9c /themes | |
| parent | 56dcb953b0b1fa9d47d6c1dd0f1f60a07ac98433 (diff) | |
Remove user_password class and move the functionality into the user helper class
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/default/views/header.html.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php index 8ebc1295..c09c11ef 100644 --- a/themes/default/views/header.html.php +++ b/themes/default/views/header.html.php @@ -3,7 +3,10 @@ <h1><?= $item->title_edit ?></h1> <div id="gLoginMenu"> - <? if (!user::is_logged_in($user)): ?> + <? if ($user): ?> + <a href="<?= url::site("user/update")?>"><?= _("Modify Profile") ?></a> | + <a href="<?= url::site("logout")?>"><?= _("Logout") ?></a> + <? else: ?> <a href="#"><?=_("Recover password") ?></a> | <a href="<?= url::site("user/register")?>"><?= _("Register") ?></a> | <span id="gLoginLink"> @@ -12,9 +15,6 @@ <span id="gLoginClose" class="gDisplayNone"> <?= _("Login") ?> | <a href="javascript:close_login()">X</a> </span> - <? else: ?> - <a href="<?= url::site("user/update")?>"><?= _("Modify Profile") ?></a> | - <a href="<?= url::site("logout")?>"><?= _("Logout") ?></a> <? endif; ?> <span id="gLoginForm" class="gDisplayNone" > <?= Login_Form::factory()->render() ?> |
