aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-30 14:44:03 +0200
committerMario Vavti <mario@mariovavti.com>2016-03-30 14:44:03 +0200
commit08461c7049ee5c9788e815537b540b9987a5eace (patch)
treef19f48a5b975ea92db50b7f4a31a07ee03d21575 /mod
parent5462453bf2bde50166c68f90b08d24826dd07ba8 (diff)
downloadvolse-hubzilla-08461c7049ee5c9788e815537b540b9987a5eace.tar.gz
volse-hubzilla-08461c7049ee5c9788e815537b540b9987a5eace.tar.bz2
volse-hubzilla-08461c7049ee5c9788e815537b540b9987a5eace.zip
more on mod chat
Diffstat (limited to 'mod')
-rw-r--r--mod/chat.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/mod/chat.php b/mod/chat.php
index 6c0a61880..ecd94bd95 100644
--- a/mod/chat.php
+++ b/mod/chat.php
@@ -203,22 +203,26 @@ function chat_content(&$a) {
$lockstate = (($channel_acl['allow_cid'] || $channel_acl['allow_gid'] || $channel_acl['deny_cid'] || $channel_acl['deny_gid']) ? 'lock' : 'unlock');
require_once('include/acl_selectors.php');
+
+ $chatroom_new = '';
+ if(local_channel()) {
+ $chatroom_new = replace_macros(get_markup_template('chatroom_new.tpl'),array(
+ '$header' => t('New Chatroom'),
+ '$name' => array('room_name',t('Chatroom name'),'', ''),
+ '$chat_expire' => array('chat_expire',t('Expiration of chats (minutes)'),120,''),
+ '$permissions' => t('Permissions'),
+ '$acl' => populate_acl($channel_acl,false),
+ '$lockstate' => $lockstate,
+ '$submit' => t('Submit')
- $chatroom_new = replace_macros(get_markup_template('chatroom_new.tpl'),array(
- '$header' => t('New Chatroom'),
- '$name' => array('room_name',t('Chatroom name'),'', ''),
- '$chat_expire' => array('chat_expire',t('Expiration of chats (minutes)'),120,''),
- '$permissions' => t('Permissions'),
- '$acl' => populate_acl($channel_acl,false),
- '$lockstate' => $lockstate,
- '$submit' => t('Submit')
-
- ));
+ ));
+ }
$rooms = chatroom_list($a->profile['profile_uid']);
$o .= replace_macros(get_markup_template('chatrooms.tpl'), array(
'$header' => sprintf( t('%1$s\'s Chatrooms'), $a->profile['name']),
+ '$name' => t('Name'),
'$baseurl' => z_root(),
'$nickname' => $a->profile['channel_address'],
'$rooms' => $rooms,