aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-29 01:52:23 -0800
committerfriendica <info@friendica.com>2014-01-29 01:52:23 -0800
commit9f546757021305b6cfe924f38ca1af5fd5d3e69b (patch)
tree8d1f65d69c1c02665deeec35c009b87ad902ab6e /include/widgets.php
parent9261a170eb45f0b189afb4c1a30603d0cbb8f31c (diff)
downloadvolse-hubzilla-9f546757021305b6cfe924f38ca1af5fd5d3e69b.tar.gz
volse-hubzilla-9f546757021305b6cfe924f38ca1af5fd5d3e69b.tar.bz2
volse-hubzilla-9f546757021305b6cfe924f38ca1af5fd5d3e69b.zip
chatroom list widget backend
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php
index efa350785..8b22515b1 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -576,3 +576,12 @@ function widget_menu_preview($arr) {
require_once('include/menu.php');
return menu_render(get_app()->data['menu_item']);
}
+
+function widget_chatroom_list($arr) {
+ require_once("include/chat.php");
+ $r = chatroom_list(local_user());
+ return replace_macros(get_markup_template('chatroomlist.tpl'),array(
+ '$header' => t('Chat Rooms'),
+ '$items' => $r,
+ ));
+} \ No newline at end of file