Trying to fix wiki branch starting fresh from dev

This commit is contained in:
Andrew Manning
2016-05-21 14:56:42 -04:00
parent 4979a45120
commit c6aa42773a
454 changed files with 3459 additions and 0 deletions

View File

@@ -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'))