aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Menu_preview.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 21:26:28 -0700
committerzotlabs <mike@macgirvin.com>2017-03-15 21:26:28 -0700
commitf6b643e84ee1ce8b4e13f959e0d58804f4aabd3b (patch)
treec22cc6aee9776ef34940ab539c6fb7f7e80e45ec /Zotlabs/Widget/Menu_preview.php
parent16d750d1f6cf0d2866388269e02445630c4e3464 (diff)
downloadvolse-hubzilla-f6b643e84ee1ce8b4e13f959e0d58804f4aabd3b.tar.gz
volse-hubzilla-f6b643e84ee1ce8b4e13f959e0d58804f4aabd3b.tar.bz2
volse-hubzilla-f6b643e84ee1ce8b4e13f959e0d58804f4aabd3b.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']);
+ }
+
+}