aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Widget/Menu_preview.php
blob: ddeb4d12c95949b4757551d5c317e8551909ee77 (plain) (tree)
1
2
3
4
5
6
7
8

     





                                                       













                                                             
<?php

/**
 *   * Name: Menu preview
 *   * Description: Shows a preview of the current menu
 *   * Requires: mitem
 */

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']);
	}

}