mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-11 16:18:42 +00:00
tpl fixes, dont use printHtml for none-string types
This commit is contained in:
parent
cb516104a4
commit
c2f8c54813
|
|
@ -25,7 +25,7 @@ if (isset($this->nav[NavigationType::TOP])) : ?>
|
|||
<li><a id="link-<?= $id; ?>" target="<?= $link['nav_target']; ?>" href="<?= \phpOMS\Uri\UriFactory::build($link['nav_uri']); ?>"<?= $link['nav_action'] !== null ? ' data-action=\'' . $link['nav_action'] . '\'' : ''; ?>>
|
||||
|
||||
<?php if (isset($link['nav_icon'])) : ?>
|
||||
<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"><?= $unread[$link['nav_from']]; ?></span><?php endif; ?></i>
|
||||
<?php endif; ?>
|
||||
|
||||
<span class="link"><?= $this->getHtml($link['nav_name'], 'Navigation'); ?><span></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user