From 6181457b10f4f442795f0ca134575378bec95e78 Mon Sep 17 00:00:00 2001 From: punit-vaswani <punit-vaswani@nanomatrixsecure.com> Date: Wed, 10 Jan 2018 19:31:08 +0800 Subject: [PATCH] roll back changes by punit-nms user --- .../view/frontend/templates/product/widget/content/grid.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml b/app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml index 574cbe1107e..201d6ffe4c6 100644 --- a/app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml +++ b/app/code/Magento/CatalogWidget/view/frontend/templates/product/widget/content/grid.phtml @@ -35,7 +35,8 @@ <ol class="product-items <?= /* @noEscape */ $type ?>"> <?php $iterator = 1; ?> <?php foreach ($items as $_item): ?> - <?= /* @noEscape */ ($iterator++ == 1) ? '<li class="product-item">' : '</li><li class="product-item">' ?> + <?php if ($iterator++ != 1): ?></li><?php endif ?> + <li class="product-item"> <div class="product-item-info"> <a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>" class="product-item-photo"> <?= $block->getImage($_item, $image)->toHtml() ?> -- GitLab