Commit 2eba7f96 authored by Ad Schellevis's avatar Ad Schellevis

(menu/legacy) stylefix on menu code, no new functionality just make it a bit better readable

parent 7b64c595
...@@ -163,18 +163,25 @@ if($need_alert_display == true) { ...@@ -163,18 +163,25 @@ if($need_alert_display == true) {
<nav class="page-side-nav" role="navigation"> <nav class="page-side-nav" role="navigation">
<div id="mainmenu" class="panel" style="border:0px" > <div id="mainmenu" class="panel" style="border:0px" >
<div class="panel list-group" style="border:0px"> <div class="panel list-group" style="border:0px">
<?php foreach($menuSystem as $topMenuItem): ?> <?php
<a href="#<?php echo $topMenuItem->Id;?>" class="list-group-item <?php if ($topMenuItem->Selected) echo 'active-menu-title'; ?>" data-toggle="collapse" data-parent="#mainmenu"><span class="<?php echo $topMenuItem->CssClass;?> __iconspacer"></span><?php echo $topMenuItem->VisibleName;?> </a> foreach($menuSystem as $topMenuItem): ?>
<div class="collapse <?php if ($topMenuItem->Selected) echo 'active-menu in';?>" id="<?php echo $topMenuItem->Id;?>"> <a href="#<?php echo $topMenuItem->Id;?>" class="list-group-item <?= $topMenuItem->Selected ? 'active-menu-title' : ""; ?>" data-toggle="collapse" data-parent="#mainmenu"><span class="<?=$topMenuItem->CssClass;?> __iconspacer"></span><?=$topMenuItem->VisibleName;?> </a>
<?php foreach($topMenuItem->Children as $subMenuItem): ?> <div class="collapse <?=$topMenuItem->Selected ? 'active-menu in' :"";?>" id="<?=$topMenuItem->Id;?>">
<?php if ($subMenuItem->IsExternal == "Y" ):?> <?php
<a href="<?php echo $subMenuItem->Url;?>" target="_new" class="list-group-item <?php if ($subMenuItem->Selected ) echo "active";?>"><?php echo $subMenuItem->VisibleName ?></a> foreach($topMenuItem->Children as $subMenuItem): ?>
<?php elseif ($aclObj->isPageAccessible($_SESSION['Username'],$subMenuItem->Url)):?> <?php
<a href="<?php echo $subMenuItem->Url;?>" class="list-group-item <?php if ($subMenuItem->Selected) echo "active";?>"><?php echo $subMenuItem->VisibleName;?></a> if ($subMenuItem->IsExternal == "Y" ):?>
<?php endif;?> <a href="<?=$subMenuItem->Url;?>" target="_new" class="list-group-item <?=$subMenuItem->Selected ? "active" : "";?>"><?=$subMenuItem->VisibleName ?></a>
<?php endforeach; ?> <?php
elseif ($aclObj->isPageAccessible($_SESSION['Username'],$subMenuItem->Url)):?>
<a href="<?=$subMenuItem->Url;?>" class="list-group-item <?=$subMenuItem->Selected ? "active" :"";?>"><?=$subMenuItem->VisibleName;?></a>
<?php
endif;?>
<?php
endforeach; ?>
</div> </div>
<?php endforeach; ?> <?php
endforeach; ?>
</div> </div>
</div> </div>
</nav> </nav>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment