@@ -20,15 +20,15 @@ $_productCollection = $block->getLoadedProductCollection();
2020/** @var \Magento\Catalog\Helper\Output $_helper */
2121$ _helper = $ block ->getData ('outputHelper ' );
2222?>
23- <?php if (!$ _productCollection ->count ()):?>
23+ <?php if (!$ _productCollection ->count ()): ?>
2424 <div class="message info empty">
2525 <div><?= $ escaper ->escapeHtml (__ ('We can \'t find products matching the selection. ' )) ?> </div>
2626 </div>
27- <?php else :?>
27+ <?php else : ?>
2828 <?= $ block ->getToolbarHtml () ?>
2929 <?= $ block ->getAdditionalHtml () ?>
3030 <?php
31- if ($ block ->getMode () == 'grid ' ) {
31+ if ($ block ->getMode () === 'grid ' ) {
3232 $ viewMode = 'grid ' ;
3333 $ imageDisplayArea = 'category_page_grid ' ;
3434 $ showDescription = false ;
@@ -47,7 +47,7 @@ $_helper = $block->getData('outputHelper');
4747 <div class="products wrapper <?= /* @noEscape */ $ viewMode ?> products-<?= /* @noEscape */ $ viewMode ?> ">
4848 <ol class="products list items product-items">
4949 <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
50- <?php foreach ($ _productCollection as $ _product ):?>
50+ <?php foreach ($ _productCollection as $ _product ): ?>
5151 <li class="item product product-item">
5252 <div class="product-item-info"
5353 id="product-item-info_<?= /* @noEscape */ $ _product ->getId () ?> "
@@ -66,9 +66,7 @@ $_helper = $block->getData('outputHelper');
6666 <?= $ productImage ->toHtml () ?>
6767 </a>
6868 <div class="product details product-item-details">
69- <?php
70- $ _productNameStripped = $ block ->stripTags ($ _product ->getName (), null , true );
71- ?>
69+ <?php $ _productNameStripped = $ block ->stripTags ($ _product ->getName (), null , true ); ?>
7270 <strong class="product name product-item-name">
7371 <a class="product-item-link"
7472 href="<?= $ escaper ->escapeUrl ($ _product ->getProductUrl ()) ?> ">
@@ -77,9 +75,8 @@ $_helper = $block->getData('outputHelper');
7775 </strong>
7876 <?= $ block ->getReviewsSummaryHtml ($ _product , $ templateType ) ?>
7977 <?= /* @noEscape */ $ block ->getProductPrice ($ _product ) ?>
80- <?php if ($ _product ->isAvailable ()):?>
81- <?= $ block ->getProductDetailsHtml ($ _product ) ?>
82- <?php endif ; ?>
78+
79+ <?= $ block ->getProductDetailsHtml ($ _product ) ?>
8380
8481 <div class="product-item-inner">
8582 <div class="product actions product-item-actions">
@@ -121,7 +118,7 @@ $_helper = $block->getData('outputHelper');
121118 'product-item-info_ ' . $ _product ->getId () . ' div.actions-primary '
122119 ) : '' ?>
123120 <div data-role="add-to-links" class="actions-secondary">
124- <?php if ($ addToBlock = $ block ->getChildBlock ('addto ' )):?>
121+ <?php if ($ addToBlock = $ block ->getChildBlock ('addto ' )): ?>
125122 <?= $ addToBlock ->setProduct ($ _product )->getChildHtml () ?>
126123 <?php endif ; ?>
127124 </div>
@@ -131,7 +128,7 @@ $_helper = $block->getData('outputHelper');
131128 'product-item-info_ ' . $ _product ->getId () . ' div.actions-secondary '
132129 ) : '' ?>
133130 </div>
134- <?php if ($ showDescription ):?>
131+ <?php if ($ showDescription ): ?>
135132 <div class="product description product-item-description">
136133 <?= /* @noEscape */ $ _helper ->productAttribute (
137134 $ _product ,
@@ -156,7 +153,7 @@ $_helper = $block->getData('outputHelper');
156153 </ol>
157154 </div>
158155 <?= $ block ->getToolbarHtml () ?>
159- <?php if (!$ block ->isRedirectToCartEnabled ()):?>
156+ <?php if (!$ block ->isRedirectToCartEnabled ()): ?>
160157 <script type="text/x-magento-init">
161158 {
162159 "[data-role=tocart-form], .form.map.checkout": {
0 commit comments