summaryrefslogtreecommitdiff
path: root/modules/user/views
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-21 20:46:25 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-21 20:46:25 +0000
commit4f5e3ad6d58c40a44ee2c4da8ec15c4851e33095 (patch)
tree671e6c6d45db7b718c8733328dfdadc2606ff7c0 /modules/user/views
parent6ec266faa69cd1efeb531d3b1494189989a84293 (diff)
Use the new block mechanism to insert user related content into the html pages
Diffstat (limited to 'modules/user/views')
-rw-r--r--modules/user/views/login.html.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/user/views/login.html.php b/modules/user/views/login.html.php
new file mode 100644
index 00000000..a4005ebf
--- /dev/null
+++ b/modules/user/views/login.html.php
@@ -0,0 +1,20 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<ul id="gLoginMenu">
+ <? if ($user): ?>
+ <a href="<?= url::site("user/{$user->id}?continue=" . url::current(true))?>"><?= _("Modify Profile") ?></a>
+ | <a href="<?= url::site("logout?continue=" . url::current(true)) ?>" id="gLogoutLink">
+ <?= _("Logout") ?>
+ </a>
+ <? else: ?>
+ <span id="gLoginLink">
+ <a href="javascript:show_login('<?= url::site("login") ?>')">
+ <?= _("Login") ?>
+ </a>
+ </span>
+ <span id="gLoginClose" class="gDisplayNone">
+ <?= _("Login") ?> | <a href="javascript:close_login()">X</a>
+ </span>
+ <div id="gLoginFormContainer"></div>
+ <? endif; ?>
+</ul>
+