aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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']);
+}