+ support icon base64 & icon base64 minimized

This commit is contained in:
2020-05-11 06:15:22 +03:00
parent 0507d8b8cd
commit 7e75bb2b59
3 changed files with 57 additions and 13 deletions

View File

@ -39,7 +39,12 @@
: null;
?>" data-keywords="<?= e(trans($item->keywords)) ?>">
<a href="<?= $item->url ?>">
<i class="<?= $item->icon ?>"></i>
<?php if ($item->icon_base64):?>
<img src="<?=$item->icon_base64?>" alt="<?= e(trans($item->label)) ?>" title="<?= e(trans($item->label)) ?>">
<img src="<?=$item->icon_base64_minimized ? : $item->icon_base64?>" class="minimized" alt="<?= e(trans($item->label)) ?>" title="<?= e(trans($item->label)) ?>">
<?php else: ?>
<i class="<?= $item->icon ?>"></i>
<?php endif;?>
<span class="header"><?= e(trans($item->label)) ?></span>
<span class="description"><?= e(trans($item->description)) ?></span>
</a>
@ -49,4 +54,4 @@
</li>
<?php endforeach ?>
</ul>
<?php endif; ?>
<?php endif; ?>