本文整理汇总了PHP中Bootstrap::list_group方法的典型用法代码示例。如果您正苦于以下问题:PHP Bootstrap::list_group方法的具体用法?PHP Bootstrap::list_group怎么用?PHP Bootstrap::list_group使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bootstrap
的用法示例。
在下文中一共展示了Bootstrap::list_group方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: menu
function menu()
{
$site_path_array = explode("/", LINK_FILE);
$menu = array(array("url" => LINK_ABS . $site_path_array[0] . "/index.php", "text" => "Sustainer Control Centre", "icon" => "home"), array("url" => LINK_ABS . $site_path_array[0] . "/schedule.php", "text" => "Sustainer Schedule", "icon" => "music"), array("url" => LINK_ABS . $site_path_array[0] . "/adverts.php", "text" => "Advert Manager", "icon" => "gbp"));
foreach ($menu as &$item) {
if ($site_path_array[1] == array_pop(explode("/", $item["url"]))) {
$item["active"] = true;
}
}
return Bootstrap::list_group($menu);
}
示例2: menu
function menu()
{
$site_path_array = explode("/", LINK_FILE);
$menu = array(array("url" => LINK_ABS . $site_path_array[0] . "/users/users-viewers.php?setid=" . $_REQUEST['setid'], "text" => "Viewers", "icon" => "eye-open"), array("url" => LINK_ABS . $site_path_array[0] . "/users/users-editors.php?setid=" . $_REQUEST['setid'], "text" => "Editors", "icon" => "edit"), array("url" => LINK_ABS . $site_path_array[0] . "/users/users-admins.php?setid=" . $_REQUEST['setid'], "text" => "Admins", "icon" => "cog"));
foreach ($menu as &$item) {
if ($site_path_array[2] == str_replace("?setid=" . $_REQUEST['setid'], "", array_pop(explode("/", $item["url"])))) {
$item["active"] = true;
}
}
return Bootstrap::list_group($menu);
}