Properly support iconSvg in backend side nav menus
This commit is contained in:
parent
0b68668d14
commit
2b6f4a0084
|
|
@ -22,7 +22,11 @@
|
|||
>
|
||||
<a href="<?= $item->url ?>">
|
||||
<span class="nav-icon">
|
||||
<i class="<?= $item->icon ?>"></i>
|
||||
<?php if ($item->iconSvg): ?>
|
||||
<img class="svg-icon" src="<?= Url::asset($item->iconSvg) ?>">
|
||||
<?php endif ?>
|
||||
|
||||
<i class="<?= $item->iconSvg ? 'svg-replace' : null ?> <?= $item->icon ?>"></i>
|
||||
</span>
|
||||
<span class="nav-label">
|
||||
<?= e(trans($item->label)) ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue