Browse Source

Frontend Menu fix

master
Egorka 6 years ago
parent
commit
1731c9d692
  1. 2
      core/widgets/menu/views/menu.php

2
core/widgets/menu/views/menu.php

@ -12,6 +12,7 @@
?> ?>
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<?php if (isset($menu->items)): ?>
<?php foreach ($menu->items as $item): ?> <?php foreach ($menu->items as $item): ?>
<li class="<?= $item->isActive() ? 'active' : '' ?> nav-item<?= $item->hasChildren() ? ' dropdown' : '' ?>"> <li class="<?= $item->isActive() ? 'active' : '' ?> nav-item<?= $item->hasChildren() ? ' dropdown' : '' ?>">
<?php if ($item->hasChildren() && $item->parent_id == 0): ?> <?php if ($item->hasChildren() && $item->parent_id == 0): ?>
@ -27,4 +28,5 @@
<?php endif; ?> <?php endif; ?>
</li> </li>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?>
</ul> </ul>
Loading…
Cancel
Save