We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5790c16 + 7e07939 commit 6268137Copy full SHA for 6268137
app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml
@@ -35,8 +35,7 @@
35
<ol class="product-items <?= /* @noEscape */ $type ?>">
36
<?php $iterator = 1; ?>
37
<?php foreach ($items as $_item): ?>
38
- <?php if ($iterator++ != 1): ?></li><?php endif ?>
39
- <li class="product-item">
+ <?= /* @noEscape */ ($iterator++ == 1) ? '<li class="product-item">' : '</li><li class="product-item">' ?>
40
<div class="product-item-info">
41
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>" class="product-item-photo">
42
<?= $block->getImage($_item, $image)->toHtml() ?>
0 commit comments