2014-08-18 15:32:29 +02:00
|
|
|
<nav class="navbar navbar-default navbar-static-top" role="navigation">
|
2014-08-17 23:45:40 +02:00
|
|
|
<div class="container-fluid">
|
|
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2014-08-18 16:03:35 +02:00
|
|
|
<a class="navbar-brand" href="index.php">{$site_name}</a>
|
2014-08-17 23:45:40 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
2014-08-18 16:26:12 +02:00
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
{if="$logged_in"}<li><a href="ucp.php">Inbox {if="$inbox_count > 0"}<span class="badge">{$inbox_count}</span>{/if}</a></li>{/if}
|
|
|
|
</ul>
|
2014-08-17 23:45:40 +02:00
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
{if="$logged_in"}
|
|
|
|
<li class="dropdown">
|
2014-08-18 00:20:11 +02:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$user_name}<b class="caret"></b></a>
|
2014-08-17 23:45:40 +02:00
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="ucp.php?page=settings">Settings</a></li>
|
2014-08-18 15:30:09 +02:00
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="ucp.php?page=logout">Logout</a></li>
|
2014-08-17 23:45:40 +02:00
|
|
|
{else}
|
|
|
|
<li><a href="ucp.php?page=login">Login</a></li>
|
|
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</nav>
|