19 <?php
foreach ($filterItems as $filterItem): ?>
21 <?php
if ($filterItem->getCount() > 0): ?>
22 <a href=
"<?= $block->escapeUrl($filterItem->getUrl()) ?>">
23 <?= $filterItem->getLabel() ?>
24 <?php
if ($this->helper(
'\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?>
25 <span
class=
"count"><?= $filterItem->getCount() ?><span
class=
"filter-count-label">
26 <?php
if ($filterItem->getCount() == 1):?> <?=
__(
'item') ?><?php
else:?> <?=
__(
'items') ?><?php
endif;?></span></span>
30 <?= $filterItem->getLabel() ?>
31 <?php
if ($this->helper(
'\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?>
32 <span
class=
"count"><?= $filterItem->getCount() ?><span
class=
"filter-count-label">
33 <?php
if ($filterItem->getCount() == 1):?><?=
__(
'item') ?><?php
else:?><?=
__(
'items') ?><?php
endif;?></span></span>