aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-06-14 15:31:36 +0200
committermarijus <mario@mariovavti.com>2014-06-14 15:31:36 +0200
commitb9256eed307d6fa07fcd55067e7278ac421d3b96 (patch)
tree42acb277dbdc19f0725fa0b7bee41d57de81304a /include/nav.php
parent9ac236d57dc027f6409d7dfcb1992807a1e08ead (diff)
downloadvolse-hubzilla-b9256eed307d6fa07fcd55067e7278ac421d3b96.tar.gz
volse-hubzilla-b9256eed307d6fa07fcd55067e7278ac421d3b96.tar.bz2
volse-hubzilla-b9256eed307d6fa07fcd55067e7278ac421d3b96.zip
unclutter menues a little
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/nav.php b/include/nav.php
index 2d0d43d5a..d1ee5da9a 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -73,6 +73,8 @@ EOT;
$nav['usermenu']=array();
$userinfo = null;
+
+
if(local_user()) {
$nav['logout'] = Array('logout',t('Logout'), "", t('End this session'));
@@ -83,8 +85,13 @@ EOT;
$nav['usermenu'][] = Array('profiles', t('Edit Profiles'),"", t('Manage/Edit profiles'));
$nav['usermenu'][] = Array('photos/' . $channel['channel_address'], t('Photos'), "", t('Your photos'));
$nav['usermenu'][] = Array('cloud/' . $channel['channel_address'],t('Files'),"",t('Your files'));
- $nav['usermenu'][] = Array('chat/' . $channel['channel_address'],t('Chat'),"",t('Your chatrooms'));
- $nav['usermenu'][] = Array('events', t('Events'), "", t('Your events'));
+
+ require_once('include/chat.php');
+ $chats = chatroom_list(local_user());
+ if (count($chats)) {
+ $nav['usermenu'][] = Array('chat/' . $channel['channel_address'],t('Chat'),"",t('Your chatrooms'));
+ }
+
$nav['usermenu'][] = Array('bookmarks', t('Bookmarks'), "", t('Your bookmarks'));
if(feature_enabled($channel['channel_id'],'webpages'))
$nav['usermenu'][] = Array('webpages/' . $channel['channel_address'],t('Webpages'),"",t('Your webpages'));
@@ -185,7 +192,6 @@ EOT;
$nav['settings'] = array('settings', t('Settings'),"", t('Account/Channel Settings'));
- $nav['contacts'] = array('connections', t('Connections'),"", t('Manage/Edit Friends and Connections'));
}
/**