0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
modules
/
[
Home
]
File: mod-func-menu.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: mod-func-menu.php 34731 2011-06-02 16:12:08Z sylvieg $ //this script may only be included - so its better to die if called directly. if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) { header("location: index.php"); exit; } function module_menu_info() { return array( 'name' => tra('Menu'), 'description' => tra('Horizontal or vertical menu.'), 'params' => array( 'id' => array( 'name' => tra('Menu Id'), 'required' => true, 'description' => tra('Id from tiki-admin_menus.php'), 'filter' => 'int', ), 'type' => array( 'name' => tra('Type'), 'description' => tra('Direction for menu: horiz or vert (default vert)'), ), 'css' => array( 'name' => tra('CSS/Superfish'), 'description' => tra('Use CSS Superfish menu. y|n (default y)'), 'filter' => 'alpha', ), 'menu_id' => array( 'name' => tra('DOM #id'), 'description' => tra('Id of the menu in the DOM'), ), 'menu_class' => array( 'name' => tra('CSS class'), 'description' => tra('Class of the menu container'), ), 'sectionLevel' => array( 'name' => tra('Limit low visibles levels'), 'description' => tra('All the submenus beginning at this level will be displayed if the url matches one of the option of this level or above or below.'), ), 'toLevel' => array( 'name' => tra('Limit top visible levels'), 'description' => tra('Do not display options higher than this level.'), ), ) ); } function module_menu( $mod_reference, $module_params ) { global $smarty; $smarty->assign('module_type', empty($module_params['css']) || $module_params['css'] === 'y' ? 'cssmenu' : 'menu'); }