Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 6181457

Browse files
committed
roll back changes by punit-nms user
1 parent c0d59a8 commit 6181457

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
<ol class="product-items <?= /* @noEscape */ $type ?>">
3636
<?php $iterator = 1; ?>
3737
<?php foreach ($items as $_item): ?>
38-
<?= /* @noEscape */ ($iterator++ == 1) ? '<li class="product-item">' : '</li><li class="product-item">' ?>
38+
<?php if ($iterator++ != 1): ?></li><?php endif ?>
39+
<li class="product-item">
3940
<div class="product-item-info">
4041
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>" class="product-item-photo">
4142
<?= $block->getImage($_item, $image)->toHtml() ?>

0 commit comments

Comments
 (0)