mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fix empty menu item counter (#4374)
Remove empty counter from main menu items when set to false. Fixes #4371. Credit to @LarBearrr
This commit is contained in:
parent
8768e0a54c
commit
66776e0614
@ -34,7 +34,7 @@
|
||||
</span>
|
||||
</a>
|
||||
<span
|
||||
class="counter <?= $item->counter === null ? 'empty' : null ?>"
|
||||
class="counter <?= !$item->counter ? 'empty' : null ?>"
|
||||
data-menu-id="<?= e($item->code) ?>"
|
||||
<?php if ($item->counterLabel): ?>title="<?= e(trans($item->counterLabel)) ?>"<?php endif ?>
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user