aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-01-07 16:36:09 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-01-20 20:16:57 +0100
commit2ea85fd67e4fe61b56658eb7c3c13495438c60ba (patch)
treeb1d8ac73a00381ff3eedd5ce7453adb613b08cfc /include/nav.php
parent2ffe0d0b1d9589b6b37d8ade0114caef31339001 (diff)
downloadvolse-hubzilla-2ea85fd67e4fe61b56658eb7c3c13495438c60ba.tar.gz
volse-hubzilla-2ea85fd67e4fe61b56658eb7c3c13495438c60ba.tar.bz2
volse-hubzilla-2ea85fd67e4fe61b56658eb7c3c13495438c60ba.zip
show 'login' tab selected on login page
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php
index 96acf826d..94a71d227 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -34,7 +34,10 @@
$a->page['nav'] .= '<a id="nav-logout-link" class="nav-link" href="logout">' . t('Logout') . "</a>\r\n";
}
else {
- $a->page['nav'] .= '<a id="nav-login-link" class="nav-login-link" href="login">' . t('Login') . "</a>\r\n";
+ $a->page['nav'] .= '<a id="nav-login-link" class="nav-login-link';
+ if ($a->module == 'login') { $a->page['nav'] .= ' nav-selected'; }
+
+ $a->page['nav'] .= '" href="login">' . t('Login') . "</a>\r\n";
}
$a->page['nav'] .= "<span id=\"nav-link-wrapper\" >\r\n";