<?php $currentAdmin = $this->currentAdmin(); ?>

<?php if (!is_null($currentAdmin) && isset($currentAdmin->id) && $currentAdmin->id > 0) : ?>
<div class="flex-navbar">
    <div class="navbar navbar-inverse navbar-static-top" role="navigation" ng-controller="NavbarController">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="btn btn-default navbar-toggle" ng-click="isCollapsed = !isCollapsed">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="fa fa-bars"></span>
                </button>
                <a class="navbar-brand" href="<?php echo $this->url('home') ?>"><?php echo $this->settings('title'); ?></a>
            </div>
            <div collapse="isCollapsed" class="navbar-collapse bs-js-navbar-collapse">
                <?php echo $this->navigation('navigation')->menu()->setUlClass('nav navbar-nav')->setPartial('partial/navigation.phtml'); ?>
                <p class="navbar-text navbar-right">
                    Signed in as <a href="#" class="navbar-link"><?php echo $currentAdmin->nickname; ?></a>.
                    <a href="<?php echo $this->url('logout'); ?>" class="navbar-link">Log Out</i></a>
                </p>
            </div>
        </div>
    </div>
</div>
<?php endif; ?>

<div class="flex-content">
    