aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-22 02:04:55 -0800
committerfriendica <info@friendica.com>2013-12-22 02:04:55 -0800
commit0366991b45a9b54da66850bce44b4b9dc1d939a7 (patch)
tree0c84ba2b23587a1296189e2e789328aef600164e /include/widgets.php
parentd32bbaf599c77aa415ee403a896b77f091f0e9fc (diff)
downloadvolse-hubzilla-0366991b45a9b54da66850bce44b4b9dc1d939a7.tar.gz
volse-hubzilla-0366991b45a9b54da66850bce44b4b9dc1d939a7.tar.bz2
volse-hubzilla-0366991b45a9b54da66850bce44b4b9dc1d939a7.zip
appears that I missed a few files for Comanchification. so here's mitem.
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php
index d6ef9ec07..a1ff756ff 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -567,4 +567,11 @@ function widget_dirsort($arr) {
function widget_dirtags($arr) {
return dir_tagblock(z_root() . '/directory',null);
-} \ No newline at end of file
+}
+
+function widget_menu_preview($arr) {
+ if(! get_app()->data['menu_item'])
+ return;
+ require_once('include/menu.php');
+ return menu_render(get_app()->data['menu_item']);
+}