Skip to content

Commit

Permalink
Fixed issue: Missing getIconClass in admin plugin menu
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jun 2, 2022
1 parent 9edc962 commit 9d03536
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion application/libraries/MenuObjects/views/_extraMenu.php
Expand Up @@ -61,7 +61,12 @@ class="<?= $menuButton->getButtonClass() ?>"
</p>
<?php
else: ?>
<a href="<?= $menu->getHref(); ?>"><?= $menu->getLabel(); ?></a>
<a href="<?= $menu->getHref(); ?>">
<?php if ($menu->getIconClass()): ?>
<i class="<?= $menu->getIconClass(); ?>"></i>
<?php endif; ?>
<?= $menu->getLabel(); ?>
</a>
<?php
endif; ?>
</li>
Expand Down

0 comments on commit 9d03536

Please sign in to comment.