add chatroom links

This commit is contained in:
friendica
2014-02-05 19:16:12 -08:00
parent cb6716a644
commit 05a70a8760
2 changed files with 24 additions and 1 deletions

View File

@@ -1488,6 +1488,19 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
'id' => 'files-tab',
);
}
require_once('include/chat.php');
$chats = chatroom_list($a->profile['profile_uid']);
$tabs[] = array(
'label' => t('Chatrooms') . '(' . count($chats) . ')',
'url' => $a->get_baseurl() . '/chat/' . $nickname,
'sel' => ((argv(0) == 'chat') ? 'active' : ''),
'title' => t('Chatrooms'),
'id' => 'chat-tab',
);
if($is_owner) {
$tabs[] = array(
'label' => t('Events'),
@@ -1506,6 +1519,7 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
);
}
if($is_owner && feature_enabled($a->profile['profile_uid'],'webpages')) {
$tabs[] = array(
'label' => t('Webpages'),