diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-11 20:16:58 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-11 20:16:58 +0000 |
| commit | dd9058ada40b3afd47d3cbf800b78862bc44bdb6 (patch) | |
| tree | c1f0481b8b2d8431b14f7d345804e96ee76a11b8 /themes | |
| parent | 8223018a0be53d105d6ee901d80a633650238851 (diff) | |
Added some functionality to the user helper class (to check if the user is logged in) and changed the header to use the helper class
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/default/views/header.html.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php index 7b39da41..59e1f161 100644 --- a/themes/default/views/header.html.php +++ b/themes/default/views/header.html.php @@ -3,11 +3,12 @@ <h1><?= $item->title_edit ?></h1> <div id="gLoginMenu"> - <? if (empty($user)): ?> + <? if (!user::is_logged_in($user)): ?> <a href="<?= url::site("user/register")?>"><?= _("Register") ?></a> | - <a href="<?= url::site("user/login")?>"><?= _("Login") ?></a> + <a href="<?= url::site("login")?>"><?= _("Login") ?></a> <? else: ?> - <a href="<?= url::site("user/logout")?>"><?= _("Logout") ?></a> + <a href="<?= url::site("user/update")?>"><?= _("Modify Profile") ?></a> | + <a href="<?= url::site("logout")?>"><?= _("Logout") ?></a> <? endif; ?> </div> <ul id="gSiteMenu"> |
