Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
enh(mobile): add third level menu in mobile (#8320)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinsivy committed Feb 11, 2020
1 parent cbaef1e commit 5589ef5
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions www/include/common/mobile_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,30 @@
<?php if (!empty($subMenu['children'])) : ?>
<ul class="nav-items nav-expand-content">
<?php foreach ($subMenu['children'] as $index2 => $subMenu2) : ?>
<li class="nav-item">
<a class="nav-link" href="main.php?p=<?= substr($index2, 1) ?>">
<?= $subMenu2['label'] ?>
</a>
</li>
<?php if (!empty($subMenu2['children'])) : ?>
<li class="nav-item nav-expand">
<a class="nav-link nav-expand-link" href="#">
<?= $subMenu2['label'] ?>
</a>
<ul class="nav-items nav-expand-content">
<?php foreach ($subMenu2['children'] as $childrens) : ?>
<?php foreach ($childrens as $index3 => $subMenu3) : ?>
<li class="nav-item">
<a class="nav-link" href="main.php?p=<?= substr($index3, 1) . $subMenu3['options'] ?>">
<?= $subMenu3['label'] ?>
</a>
</li>
<?php endforeach; ?>
<?php endforeach; ?>
</ul>
</li>
<?php else : ?>
<li class="nav-item">
<a class="nav-link" href="main.php?p=<?= substr($index2, 1) ?>">
<?= $subMenu2['label'] ?>
</a>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
Expand Down

0 comments on commit 5589ef5

Please sign in to comment.