Formattage

This commit is contained in:
Michael RICOIS 2016-06-08 15:33:11 +02:00
parent 7cff717fdd
commit 67cab71f1f

View File

@ -3,14 +3,14 @@
<ul id="side-menu" class="nav in">
<li class="sidebar-head"><strong><?=$this->MenuLabel?></strong></li>
<?php foreach ($this->navigation()->getContainer() as $page) {?>
<li>
<a href="<?=$page->getHref()?>" class="<?php if ($page->isActive(true)) { echo 'active'; } ?>"><?=$page->label?>
<?php if ($page->hasPages()) {?><span class="fa arrow"></span><?php }?>
</a>
<li class="<?php if ($page->isActive(true)) { echo 'active'; } ?>">
<a href="<?=$page->getHref()?>" class="<?php if ($page->isActive(true)) { echo 'active'; } ?>">
<?=$page->label?><?php if ($page->hasPages()) {?><span class="fa arrow"></span><?php }?></a>
<?php if ($page->hasPages()) {?>
<ul class="nav nav-second-level collapse" aria-expanded="false">
<?php foreach ( $page->getPages() as $child ) {?>
<li><a class="<?php if ($child->isActive(true)) { echo 'active'; } ?>" href="<?=$child->getHref()?>"><?=$child->label?></a></li>
<li><a class="<?php if ($child->isActive(true)) { echo 'active'; } ?>" href="<?=$child->getHref()?>">
<?=$child->label?></a></li>
<?php }?>
</ul>
<?php }?>