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