mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-16 18:48:40 +00:00
54 lines
2.1 KiB
PHP
54 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.0
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @copyright 2013 Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
/**
|
|
* @var \Modules\Navigation\Views\NavigationView $this
|
|
*/
|
|
if (isset($this->nav[\Modules\Navigation\Models\NavigationType::SIDE])) : ?>
|
|
<ul id="nav-side" role="navigation">
|
|
<?php foreach ($this->nav[\Modules\Navigation\Models\NavigationType::SIDE][\Modules\Navigation\Models\LinkType::CATEGORY] as $key => $parent) : ?>
|
|
<li><input id="nav-<?= $parent['nav_name']; ?>" type="checkbox">
|
|
<ul>
|
|
<li>
|
|
<?php if (isset($parent['nav_icon'])) : ?>
|
|
<span class="centerText" style="width: 20px; display: inline-block;"><i class="<?= $parent['nav_icon']; ?>"></i></span>
|
|
<?php endif; ?>
|
|
<?= $this->l11n->lang['Navigation'][$parent['nav_name']]; ?><label for="nav-<?= $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'] === $parent['nav_id']) : ?>
|
|
<li>
|
|
<a href="<?= \phpOMS\Uri\UriFactory::build($link['nav_uri']); ?>"><?= $this->l11n->lang['Navigation'][$link['nav_name']]; ?></a>
|
|
<?php endif;
|
|
endforeach; ?>
|
|
</ul>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.0
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @copyright 2013 Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/ endif;
|