本文整理匯總了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':