mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-24 06:18:40 +00:00
Case fix!
This commit is contained in:
parent
538ff6b223
commit
b49683b786
21
Theme/Backend/Lang/en.lang.php
Normal file
21
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?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
|
||||
*/
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: spl1nes
|
||||
* Date: 14.04.14
|
||||
* Time: 22:52.
|
||||
*/
|
||||
40
Theme/Backend/mid-side.tpl.php
Normal file
40
Theme/Backend/mid-side.tpl.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?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
|
||||
*/
|
||||
|
||||
/* Looping through all links */
|
||||
if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE])) {
|
||||
echo '<div class="b b-5 c3-2 c3" id="i3-2-5">'
|
||||
. '<h1>' . $this->l11n->lang[0]['Navigation']
|
||||
. '<i class="fa fa-minus min"></i><i class="fa fa-plus max vh"></i>'
|
||||
. '</h1>'
|
||||
. '<div class="bc-1">'
|
||||
. '<ul id="ms-nav" role="navigation">';
|
||||
|
||||
foreach ($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE] as $key => $parent) {
|
||||
foreach ($parent as $link) {
|
||||
/** @var array $data */
|
||||
if ($link['nav_parent'] == $data[1]) {
|
||||
echo '<li><a href="' . \phpOMS\Uri\UriFactory::build($link['nav_uri']) . '">'
|
||||
. $this->l11n->lang[5][$link['nav_name']] . '</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo '</ul></div></div>';
|
||||
}
|
||||
32
Theme/Backend/mid.tpl.php
Normal file
32
Theme/Backend/mid.tpl.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?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::CONTENT])) {
|
||||
echo '<ul class="nav-top" role="navigation">';
|
||||
|
||||
foreach ($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT] as $key => $parent) {
|
||||
foreach ($parent as $link) {
|
||||
if ($link['nav_parent'] == $this->parent) {
|
||||
echo '<li><a href="' . \phpOMS\Uri\UriFactory::build($link['nav_uri']) . '">'
|
||||
. $this->l11n->lang['Navigation'][$link['nav_name']] . '</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
}
|
||||
53
Theme/Backend/side.tpl.php
Normal file
53
Theme/Backend/side.tpl.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?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;
|
||||
49
Theme/Backend/top.tpl.php
Normal file
49
Theme/Backend/top.tpl.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?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::TOP])): ?>
|
||||
<ul id="t-nav" role="navigation">
|
||||
|
||||
<?php foreach ($this->nav[\Modules\Navigation\Models\NavigationType::TOP] as $key => $parent) :
|
||||
foreach ($parent as $link) : ?>
|
||||
<li><a href="<?= \phpOMS\Uri\UriFactory::build($link['nav_uri']); ?>">
|
||||
|
||||
<?php if (isset($link['nav_icon'])) : ?>
|
||||
<i class="<?= $link['nav_icon']; ?>"></i>
|
||||
<?php endif; ?>
|
||||
|
||||
<?= $this->l11n->lang['Navigation'][$link['nav_name']]; ?></a>
|
||||
<?php endforeach;
|
||||
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;
|
||||
Loading…
Reference in New Issue
Block a user