46 lines
1.8 KiB
PHTML
46 lines
1.8 KiB
PHTML
<!-- Fixed navbar -->
|
|
<div class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="<?=$this->url(array('controller'=>'index', 'action'=>'index'), null, true)?>">WebFiler</a>
|
|
</div>
|
|
<div class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
<?php foreach ($this->navigation()->getContainer() as $page) {?>
|
|
<li class="dropdown<?php if ( $page->isActive(true) ) { echo ' active'; } ?>">
|
|
<?php if ( $page->hasPages() ) {?>
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$page->label?> <b class="caret"></b></a>
|
|
<ul class="dropdown-menu">
|
|
<?php foreach ( $page->getPages() as $child ) {?>
|
|
<?php if ( $child->getHref() == '#') {?>
|
|
<li class="divider"></li>
|
|
<?php } else {?>
|
|
<li <?php if ( $child->isActive(true) ) { echo "class='active'"; } ?>><a href="<?=$child->getHref()?>"><?=$child->label?></a></li>
|
|
<?php }?>
|
|
<?php }?>
|
|
<?php } else {?>
|
|
<a href="#"><?=$page->label?></a>
|
|
<?php }?>
|
|
</ul>
|
|
</li>
|
|
<?php }?>
|
|
</ul>
|
|
<p class="navbar-text pull-right"><?=$this->profileLink()?></p>
|
|
</div><!--/.nav-collapse -->
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Breadcrumbs -->
|
|
<?php if ($this->navigation()->breadcrumbs() != '') {?>
|
|
<div class="container-fluid">
|
|
<ol class="breadcrumb">
|
|
<?php echo $this->navigation()->breadcrumbs()->setLinkLast(false)->setSeparator(' / '); ?>
|
|
</ol>
|
|
</div>
|
|
<?php }?>
|