aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.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/conversation.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/conversation.php')
-rw-r--r--include/conversation.php25
1 files changed, 9 insertions, 16 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 21ce3bb66..d78ee2710 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1517,25 +1517,18 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
require_once('include/chat.php');
$chats = chatroom_list($uid);
- $subdued = ((count($chats)) ? '' : ' subdued');
- $tabs[] = array(
- 'label' => t('Chatrooms'),
- 'url' => $a->get_baseurl() . '/chat/' . $nickname,
- 'sel' => ((argv(0) == 'chat') ? 'active' . $subdued : '' . $subdued),
- 'title' => t('Chatrooms'),
- 'id' => 'chat-tab',
- );
-
-
- if($is_owner) {
+ if (count($chats)) {
$tabs[] = array(
- 'label' => t('Events'),
- 'url' => $a->get_baseurl() . '/events',
- 'sel' => ((argv(0) == 'events') ? 'active' : ''),
- 'title' => t('Events and Calendar'),
- 'id' => 'events-tab',
+ 'label' => t('Chatrooms'),
+ 'url' => $a->get_baseurl() . '/chat/' . $nickname,
+ 'sel' => ((argv(0) == 'chat') ? 'active' : '' ),
+ 'title' => t('Chatrooms'),
+ 'id' => 'chat-tab',
);
+ }
+
+ if($is_owner) {
$tabs[] = array(
'label' => t('Bookmarks'),
'url' => $a->get_baseurl() . '/bookmarks',