mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-15 00:08:41 +00:00
Start changing styles
This commit is contained in:
parent
7655dc6154
commit
60f724f352
|
|
@ -101,7 +101,7 @@ jsOMS.Modules.Navigation = class {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Bind show/hide
|
// Bind show/hide
|
||||||
e.nextElementSibling.addEventListener('change', function () {
|
e.addEventListener('change', function () {
|
||||||
self.navigation[e.id].setVisible(this.checked);
|
self.navigation[e.id].setVisible(this.checked);
|
||||||
localStorage.setItem(Navigation.MODULE_NAME, JSON.stringify(self.navigation));
|
localStorage.setItem(Navigation.MODULE_NAME, JSON.stringify(self.navigation));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,16 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Modules\Navigation\Models\NavigationType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \Modules\Navigation\Views\NavigationView $this
|
* @var \Modules\Navigation\Views\NavigationView $this
|
||||||
*/
|
*/
|
||||||
if (isset($this->nav[\Modules\Navigation\Models\NavigationType::TOP])): ?>
|
if (isset($this->nav[NavigationType::TOP])): ?>
|
||||||
<ul id="t-nav" role="navigation">
|
<ul id="t-nav" role="navigation">
|
||||||
|
|
||||||
<?php $unread = $this->getData('unread');
|
<?php $unread = $this->getData('unread');
|
||||||
foreach ($this->nav[\Modules\Navigation\Models\NavigationType::TOP] as $key => $parent) :
|
foreach ($this->nav[NavigationType::TOP] as $key => $parent) :
|
||||||
foreach ($parent as $link) : ?>
|
foreach ($parent as $link) : ?>
|
||||||
<li><a href="<?= \phpOMS\Uri\UriFactory::build($link['nav_uri']); ?>">
|
<li><a href="<?= \phpOMS\Uri\UriFactory::build($link['nav_uri']); ?>">
|
||||||
|
|
||||||
|
|
@ -25,9 +27,8 @@ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::TOP])): ?>
|
||||||
<i class="<?= $this->printHtml($link['nav_icon']); ?> infoIcon"><?php if (isset($unread[$link['nav_from']]) && $unread[$link['nav_from']] > 0) : ?><span class="badge"><?= $this->printHtml($unread[$link['nav_from']]); ?></span><?php endif; ?></i>
|
<i class="<?= $this->printHtml($link['nav_icon']); ?> infoIcon"><?php if (isset($unread[$link['nav_from']]) && $unread[$link['nav_from']] > 0) : ?><span class="badge"><?= $this->printHtml($unread[$link['nav_from']]); ?></span><?php endif; ?></i>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?= $this->getHtml($link['nav_name'], 'Navigation') ?></a>
|
<span class="link"><?= $this->getHtml($link['nav_name'], 'Navigation') ?><span></a>
|
||||||
<?php endforeach;
|
<?php endforeach;
|
||||||
endforeach; ?>
|
endforeach; ?>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif;
|
<?php endif;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user