aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Menu_preview.php
blob: ddeb4d12c95949b4757551d5c317e8551909ee77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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']);
	}

}