This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
core/Zotlabs/Widget/Chatroom_list.php
2017-03-29 11:57:00 +02:00

25 lines
461 B
PHP

<?php
namespace Zotlabs\Widget;
class Chatroom_list {
function widget($arr) {
if(! \App::$profile)
return '';
$r = \Zotlabs\Lib\Chatroom::roomlist(\App::$profile['profile_uid']);
if($r) {
return replace_macros(get_markup_template('chatroomlist.tpl'), array(
'$header' => t('Chatrooms'),
'$baseurl' => z_root(),
'$nickname' => \App::$profile['channel_address'],
'$items' => $r,
'$overview' => t('Overview')
));
}
}
}