本文整理汇总了PHP中menu::menu_array方法的典型用法代码示例。如果您正苦于以下问题:PHP menu::menu_array方法的具体用法?PHP menu::menu_array怎么用?PHP menu::menu_array使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类menu
的用法示例。
在下文中一共展示了menu::menu_array方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: confirm
echo "<li class='hidden-xs'><a href='" . PROJECT_PATH . "/logout.php' title=\"" . $text['theme-label-logout'] . "\" onclick=\"return confirm('" . $text['theme-confirm-logout'] . "')\"><span class='glyphicon glyphicon-log-out'></span></a></li>";
unset($username_full);
}
?>
</ul>
</div>
</div>
</nav>
<?php
}
//determine menu configuration
$menu = new menu();
$menu->db = $db;
$menu->menu_uuid = $_SESSION['domain']['menu']['uuid'];
$menu_array = $menu->menu_array();
unset($menu);
$menu_style = $_SESSION['theme']['menu_style']['text'] != '' ? $_SESSION['theme']['menu_style']['text'] : 'fixed';
$menu_position = $_SESSION['theme']['menu_position']['text'] ? $_SESSION['theme']['menu_position']['text'] : 'top';
$open_container = "<div class='container-fluid' style='padding: 0;' align='center'>";
switch ($menu_style) {
case 'inline':
$logo_align = $_SESSION['theme']['logo_align']['text'] != '' ? $_SESSION['theme']['logo_align']['text'] : 'left';
echo str_replace("center", $logo_align, $open_container);
if ($_SERVER['PHP_SELF'] != PROJECT_PATH . "/core/install/install.php") {
$logo = $_SESSION['theme']['logo']['text'] != '' ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH . "/themes/default/images/logo.png";
echo "<a href='" . (PROJECT_PATH != '' ? PROJECT_PATH : '/') . "'><img src='" . $logo . "' style='padding: 15px 20px;'></a>";
}
show_menu($menu_array, $menu_style, $menu_position);
break;
case 'static':