summaryrefslogtreecommitdiff
path: root/themes/default
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-11 07:39:20 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-11 07:39:20 +0000
commitbba5289035eebb0c4a9c6c5f3d1598b538fc3586 (patch)
treecf0b00fca3c618e339cc3d1e92832b91b16f01be /themes/default
parent87f1115113f36b197003a45f32f295bb4cd19891 (diff)
Change Album and Photo controllers to set the user object as a global variable; change the header so it links to the user controllers; and add the user controllers which don't do anything.
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/views/header.html.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php
index 37884315..2e9da463 100644
--- a/themes/default/views/header.html.php
+++ b/themes/default/views/header.html.php
@@ -3,10 +3,13 @@
<h1><?= $item->title_edit ?></h1>
<div id="gLoginMenu">
- <a href="#"><?= _("Register") ?></a> |
- <a href="#"><?= _("Login") ?></a>
+ <? if (empty($user)): ?>
+ <a href="<?= url::site("user/register")?>"><?= _("Register") ?></a> |
+ <a href="<?= url::site("user/login")?>"><?= _("Login") ?></a>
+ <? else: ?>
+ <a href="<?= url::site("user/logout")?>"><?= _("Logout") ?></a>
+ <? endif; ?>
</div>
-
<ul id="gSiteMenu">
<li><a href="index.php"><?= _("HOME") ?></a></li>
<li><a class="active" href="index.php/album/1"><?= _("BROWSE") ?></a></li>