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

enh(mobile): add third level menu in mobile #8320

Merged
merged 1 commit into from
Feb 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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">
lpinsivy marked this conversation as resolved.
Show resolved Hide resolved
<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