2021-09-08 14:35:51 +02:00
|
|
|
<div class="sidebar-wrapper d-flex flex-column">
|
2021-09-07 15:51:21 +02:00
|
|
|
<div class="sidebar-scroll">
|
|
|
|
<div class="sidebar-content">
|
|
|
|
<ul class="sidebar-elements">
|
2021-10-08 16:57:38 +02:00
|
|
|
<?php foreach ($menu as $category => $categorized) : ?>
|
|
|
|
<?php if ($category == '__bookmarks') : ?>
|
|
|
|
<?= $this->element('layouts/sidebar/category', ['label' => __('Bookmarks'), 'class' => 'bookmark-categ']) ?>
|
|
|
|
<li class="bookmarks">
|
|
|
|
<?php foreach ($categorized as $parentName => $entry) : ?>
|
|
|
|
<?= $this->element('layouts/sidebar/bookmark-entry', [
|
|
|
|
'entry' => $entry,
|
|
|
|
])
|
|
|
|
?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?= $this->element('layouts/sidebar/bookmark-add') ?>
|
|
|
|
</li>
|
|
|
|
<?php else : ?>
|
|
|
|
<?= $this->element('layouts/sidebar/category', ['label' => $category]) ?>
|
|
|
|
<?php foreach ($categorized as $parentName => $parent) : ?>
|
|
|
|
<?= $this->element('layouts/sidebar/entry', [
|
2021-09-07 15:51:21 +02:00
|
|
|
'parent' => $parent,
|
|
|
|
])
|
2021-10-08 16:57:38 +02:00
|
|
|
?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php endif; ?>
|
2021-09-07 15:51:21 +02:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-08 16:57:38 +02:00
|
|
|
<span class="lock-sidebar align-self-center mt-auto w-100 d-none d-sm-block">
|
|
|
|
<a type="button" class="btn-lock-sidebar btn btn-sm w-100"></a>
|
2021-09-08 14:35:51 +02:00
|
|
|
</span>
|
2021-10-08 16:57:38 +02:00
|
|
|
</div>
|