示例#1
0
    }
    if ($child_node_num > 0) {
        $li_menu = '';
        foreach ($m['child_menu'] as $mu) {
            $child_menu_name_map[$m['link']][$mu['link']] = $mu['name'];
            if ($mu['link'] == $this->action) {
                $li_menu .= li_child_menu('active', $this->link("{$m['link']}:{$mu['link']}"), $icon_name, $mu['name']);
            } else {
                $li_menu .= li_child_menu('', $this->link("{$m['link']}:{$mu['link']}"), $icon_name, $mu['name']);
            }
        }
        $child_ul_menu = sprintf('<ul class="treeview-menu">%s</ul>', $li_menu);
    } else {
        $child_ul_menu = '';
    }
    echo li_menu($li_class, li_menu_content($this->link($m['link']), $icon_name, $m['name']), $child_ul_menu);
}
if (isset($child_menu_name_map[$controller]) && isset($child_menu_name_map[$controller][$this->action])) {
    $action_menu_name = $child_menu_name_map[$controller][$this->action];
}
?>
            </ul>
            <ul class="sidebar-menu">
                <li class="header">使用帮助</li>
                <li>
                    <a href="http://document.crossphp.com/skeleton/" target="_blank">
                        <i class="fa fa-circle-o text-aqua"></i>
                        <span>帮助文档</span>
                    </a>
                </li>
            </ul>
示例#2
0
			<div class="collapse navbar-collapse">

				<ul class="nav navbar-nav">
					<li><?php 
echo anchor('', '<span class="glyphicon glyphicon-home"></span> ' . $this->lang->line('menu_header_index_page'));
?>
</li>
				
					<?php 
if ($this->session->userdata('logged_in')) {
    li_menu('agenda', '<span class="glyphicon glyphicon-user"></span> Agenda', FALSE);
}
?>
					
				</ul>

				<ul class="nav navbar-nav navbar-right">
				<?php 
li_menu('sing_in', '<span class="glyphicon glyphicon-user"></span> ' . $this->lang->line('menu_header_sing_in_button'), $type_user);
li_menu('sing_up', '<span class="glyphicon glyphicon-user"></span> ' . $this->lang->line('menu_header_sing_up_button'), $type_user);
if ($this->session->userdata('logged_in')) {
    li_menu('logout', '<span class="glyphicon glyphicon-user"></span> Salir', FALSE);
}
?>
	
				</ul>
			</div>
		</div>
	</nav>
</div>