Skip to content

Commit

Permalink
Fix for #11796 Magento2.2.0 home page product grid issues (li tag)
Browse files Browse the repository at this point in the history
  • Loading branch information
punit-nms committed Jan 10, 2018
1 parent 8283526 commit 1a407e6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
<ol class="product-items <?= /* @noEscape */ $type ?>">
<?php $iterator = 1; ?>
<?php foreach ($items as $_item): ?>
<?php $iterator++; ?>
<li class="product-item">
<?= ($iterator++ == 1) ? '<li class="product-item">' : '</li><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() ?>
Expand Down

0 comments on commit 1a407e6

Please sign in to comment.