cerebrate/templates/element/layouts/sidebar/sub-menu.php

13 lines
325 B
PHP

<?php
$seed = $seed ?? 'sd-' . mt_rand();
?>
<ul id="<?= $seed ?>" class="sub-menu collapse <?= !empty($open) ? 'show' : '' ?>">
<?php foreach ($children as $child): ?>
<?= $this->element('layouts/sidebar/entry', [
'parent' => $child,
])
?>
<?php endforeach; ?>
</ul>