aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-21 14:56:42 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-21 14:56:42 -0400
commitc6aa42773a17d53b4572488967b99666ab97ef97 (patch)
tree8ba4a4071c3a8941e7d851ad80d48cee9c3f71bd /include/widgets.php
parent4979a451207c7072785c114a09fdd394f2a97734 (diff)
downloadvolse-hubzilla-c6aa42773a17d53b4572488967b99666ab97ef97.tar.gz
volse-hubzilla-c6aa42773a17d53b4572488967b99666ab97ef97.tar.bz2
volse-hubzilla-c6aa42773a17d53b4572488967b99666ab97ef97.zip
Trying to fix wiki branch starting fresh from dev
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 2641a718e..acbd9bcd3 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -857,6 +857,33 @@ function widget_chatroom_members() {
return $o;
}
+function widget_wiki_list($arr) {
+
+ require_once("include/wiki.php");
+ $r = wiki_list(App::$profile['channel_hash']);
+
+ if($r) {
+ return replace_macros(get_markup_template('wikilist.tpl'), array(
+ '$header' => t('Wiki List'),
+ '$read' => $r['read'],
+ '$write' => $r['write']
+ ));
+ }
+}
+
+function widget_wiki_pages($arr) {
+
+ require_once("include/wiki.php");
+ $r = wiki_pages(App::$profile['channel_hash']);
+
+ if($r) {
+ return replace_macros(get_markup_template('wiki_page_list.tpl'), array(
+ '$header' => t('Wiki Pages'),
+ '$pages' => $r['pages']
+ ));
+ }
+}
+
function widget_bookmarkedchats($arr) {
if(! feature_enabled(App::$profile['profile_uid'],'ajaxchat'))