blob: 40ad3fe4b9add425b49013ffcb3f9f23c32a72e4 (
plain) (
tree)
|
|
<?php include "view/master/topp.view.php"; ?>
<?php if ($mod->getCurrentUser()) { ?>
<?php include "view/common/setting.modal.view.php"; ?>
<?php } ?>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#scrottnav" aria-expanded="false">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="<?=$mod->ar()?>/" class="navbar-brand"><span class="glyphicon glyphicon-pencil"></span> Scrott</a>
</div>
<div class="collapse navbar-collapse" id="scrottnav">
<?php if (!$mod->getCurrentUser()) { ?>
<p class="navbar-text navbar-right"><i>Not Logged In </i></p>
<?php } else { ?>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="<?=$mod->getCurrentUser()->getGlyphicon()?>"></span> <?=$mod->getCurrentUser()->getDisplayName()?> <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#" data-toggle="modal" data-target="#settingModal">Settings</a></li>
<li><a href="<?=$mod->ar()?>/logout">Log out</a></li>
</ul>
</li>
</ul>
<?php } ?>
</div>
</div>
</nav>
|