mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-18 11:28:40 +00:00
38 lines
1.6 KiB
PHP
38 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
/**
|
|
* @var \Modules\Navigation\Views\NavigationView $this
|
|
*/
|
|
if (isset($this->nav[\Modules\Navigation\Models\NavigationType::SIDE])) : ?>
|
|
<ul id="nav-side" class="nav" role="navigation">
|
|
<?php foreach ($this->nav[\Modules\Navigation\Models\NavigationType::SIDE][\Modules\Navigation\Models\LinkType::CATEGORY] as $key => $parent) : ?>
|
|
<li><input id="nav-<?= $this->printHtml($parent['nav_name']); ?>" type="checkbox">
|
|
<ul>
|
|
<li>
|
|
<?php if (isset($parent['nav_icon'])) : ?>
|
|
<span class="centerText"><i class="<?= $this->printHtml($parent['nav_icon']); ?>"></i></span>
|
|
<?php endif; ?>
|
|
<?= $this->getHtml($parent['nav_name']) ?><label for="nav-<?= $this->printHtml($parent['nav_name']); ?>"><i class="fa fa-chevron-down min"></i>
|
|
<i class="fa fa-chevron-up max"></i></label>
|
|
<?php foreach ($this->nav[\Modules\Navigation\Models\NavigationType::SIDE][\Modules\Navigation\Models\LinkType::LINK] as $key2 => $link) :
|
|
if ($link['nav_parent'] === $key) : ?>
|
|
<li>
|
|
<a href="<?= \phpOMS\Uri\UriFactory::build($link['nav_uri']); ?>"><?= $this->getHtml($link['nav_name']) ?></a>
|
|
<?php endif;
|
|
endforeach; ?>
|
|
</ul>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<?php
|
|
endif;
|