aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Menu_preview.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 21:26:28 -0700
committerMario Vavti <mario@mariovavti.com>2017-03-29 11:57:00 +0200
commit0908da95298bdd7dd96dcb45ac490f8e7aa73a8e (patch)
treeb38469f6a9b0fe3b59aba02a32eed813ba1df7b9 /Zotlabs/Widget/Menu_preview.php
parent6e101e458268c0f9b7bf461cea3c31c37b5e3791 (diff)
downloadvolse-hubzilla-0908da95298bdd7dd96dcb45ac490f8e7aa73a8e.tar.gz
volse-hubzilla-0908da95298bdd7dd96dcb45ac490f8e7aa73a8e.tar.bz2
volse-hubzilla-0908da95298bdd7dd96dcb45ac490f8e7aa73a8e.zip
widgets cont.
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']);
+ }
+
+}