Skip to content
Snippets Groups Projects
Commit 15064d91 authored by punitv's avatar punitv
Browse files

re-push fix for #11796 with punitv user

parent 6181457b
Branches
No related merge requests found
...@@ -35,8 +35,7 @@ ...@@ -35,8 +35,7 @@
<ol class="product-items <?= /* @noEscape */ $type ?>"> <ol class="product-items <?= /* @noEscape */ $type ?>">
<?php $iterator = 1; ?> <?php $iterator = 1; ?>
<?php foreach ($items as $_item): ?> <?php foreach ($items as $_item): ?>
<?php if ($iterator++ != 1): ?></li><?php endif ?> <?= /* @noEscape */ ($iterator++ == 1) ? '<li class="product-item">' : '</li><li class="product-item">' ?>
<li class="product-item">
<div class="product-item-info"> <div class="product-item-info">
<a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>" class="product-item-photo"> <a href="<?= $block->escapeUrl($block->getProductUrl($_item)) ?>" class="product-item-photo">
<?= $block->getImage($_item, $image)->toHtml() ?> <?= $block->getImage($_item, $image)->toHtml() ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment