You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.1 KiB
HTML
48 lines
2.1 KiB
HTML
5 years ago
|
<!-- 导航条
|
||
|
================================================== -->
|
||
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
||
|
<div class="navbar-inner">
|
||
|
<div class="container">
|
||
|
<a class="brand" href="{:U('index/index')}">OneThink</a>
|
||
|
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
</button>
|
||
|
<div class="nav-collapse collapse">
|
||
|
<ul class="nav">
|
||
|
<think:nav name="nav">
|
||
|
<eq name="nav.pid" value="0">
|
||
|
<li>
|
||
|
<a href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>
|
||
|
</li>
|
||
|
</eq>
|
||
|
</think:nav>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="nav-collapse collapse pull-right">
|
||
|
<if condition="is_login()">
|
||
|
<ul class="nav" style="margin-right:0">
|
||
|
<li class="dropdown">
|
||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding-left:0;padding-right:0">{:get_username()} <b class="caret"></b></a>
|
||
|
<ul class="dropdown-menu">
|
||
|
<li><a href="{:U('User/profile')}">修改密码</a></li>
|
||
|
<li><a href="{:U('User/logout')}">退出</a></li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<else/>
|
||
|
<ul class="nav" style="margin-right:0">
|
||
|
<li>
|
||
|
<a href="{:U('User/login')}">登录</a>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a href="{:U('User/register')}" style="padding-left:0;padding-right:0">注册</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</if>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|