aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Menu_preview.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Widget/Menu_preview.php')
-rw-r--r--Zotlabs/Widget/Menu_preview.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Menu_preview.php b/Zotlabs/Widget/Menu_preview.php
new file mode 100644
index 000000000..51218f6cf
--- /dev/null
+++ b/Zotlabs/Widget/Menu_preview.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace Zotlabs\Widget;
+
+require_once('include/menu.php');
+
+class Menu_preview {
+
+ function widget($arr) {
+ if(! \App::$data['menu_item'])
+ return;
+
+ return menu_render(\App::$data['menu_item']);
+ }
+
+}