aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-01 20:18:47 -0800
committerFriendika <info@friendika.com>2011-03-01 20:18:47 -0800
commit377f991ac5b1e8c3c679fbbc5e138256bc24715b (patch)
tree7194d35eec60763cf754ed82d36aaf9737e13862 /include/nav.php
parent5ff1462e1e98e97f623022c23deea0147c62327b (diff)
downloadvolse-hubzilla-377f991ac5b1e8c3c679fbbc5e138256bc24715b.tar.gz
volse-hubzilla-377f991ac5b1e8c3c679fbbc5e138256bc24715b.tar.bz2
volse-hubzilla-377f991ac5b1e8c3c679fbbc5e138256bc24715b.zip
switch identities to manage pages
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php
index bfbc10f5a..043cf0f7f 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -25,7 +25,9 @@ function nav(&$a) {
*
*/
- $a->page['nav'] .= '<div id="site-location">' . substr($a->get_baseurl(),strpos($a->get_baseurl(),'//') + 2 ) . '</div>';
+ $myident = ((is_array($a->user) && isset($a->user['nickname'])) ? $a->user['nickname'] . '@' : '');
+
+ $a->page['nav'] .= '<div id="site-location">' . $myident . substr($a->get_baseurl(),strpos($a->get_baseurl(),'//') + 2 ) . '</div>';
/**
@@ -98,6 +100,9 @@ function nav(&$a) {
$a->page['nav'] .= '<a id="nav-messages-link" class="nav-commlink" href="message">' . t('Messages')
. '</a><span id="mail-update" class="nav-ajax-left"></span>' . "\r\n";
+ if(is_array($a->identities) && count($a->identities) > 1) {
+ $a->page['nav'] .= '<a id="nav-manage-link" class="nav-commlink" href="manage">' . t('Manage') . '</a>' . "\r\n";
+ }
$a->page['nav'] .= '<a id="nav-settings-link" class="nav-link" href="settings">' . t('Settings') . "</a>\r\n";