mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-26 23:28:41 +00:00
Implement navigation badge
This commit is contained in:
parent
a154f2789e
commit
5069753fda
|
|
@ -19,12 +19,13 @@
|
|||
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) :
|
||||
<?php $unread = $this->getData('unread');
|
||||
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>
|
||||
<i class="<?= $link['nav_icon']; ?> infoIcon"><?php if(isset($unread[$link['nav_from']])) : ?><span class="badge"><?= $unread[$link['nav_from']]; ?></span><?php endif; ?></i>
|
||||
<?php endif; ?>
|
||||
|
||||
<?= $this->getText($link['nav_name']); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user