@@ -20,15 +20,15 @@ $_productCollection = $block->getLoadedProductCollection();
20
20
/** @var \Magento\Catalog\Helper\Output $_helper */
21
21
$ _helper = $ block ->getData ('outputHelper ' );
22
22
?>
23
- <?php if (!$ _productCollection ->count ()):?>
23
+ <?php if (!$ _productCollection ->count ()): ?>
24
24
<div class="message info empty">
25
25
<div><?= $ escaper ->escapeHtml (__ ('We can \'t find products matching the selection. ' )) ?> </div>
26
26
</div>
27
- <?php else :?>
27
+ <?php else : ?>
28
28
<?= $ block ->getToolbarHtml () ?>
29
29
<?= $ block ->getAdditionalHtml () ?>
30
30
<?php
31
- if ($ block ->getMode () == 'grid ' ) {
31
+ if ($ block ->getMode () === 'grid ' ) {
32
32
$ viewMode = 'grid ' ;
33
33
$ imageDisplayArea = 'category_page_grid ' ;
34
34
$ showDescription = false ;
@@ -47,7 +47,7 @@ $_helper = $block->getData('outputHelper');
47
47
<div class="products wrapper <?= /* @noEscape */ $ viewMode ?> products-<?= /* @noEscape */ $ viewMode ?> ">
48
48
<ol class="products list items product-items">
49
49
<?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
50
- <?php foreach ($ _productCollection as $ _product ):?>
50
+ <?php foreach ($ _productCollection as $ _product ): ?>
51
51
<li class="item product product-item">
52
52
<div class="product-item-info"
53
53
id="product-item-info_<?= /* @noEscape */ $ _product ->getId () ?> "
@@ -66,9 +66,7 @@ $_helper = $block->getData('outputHelper');
66
66
<?= $ productImage ->toHtml () ?>
67
67
</a>
68
68
<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 ); ?>
72
70
<strong class="product name product-item-name">
73
71
<a class="product-item-link"
74
72
href="<?= $ escaper ->escapeUrl ($ _product ->getProductUrl ()) ?> ">
@@ -77,9 +75,8 @@ $_helper = $block->getData('outputHelper');
77
75
</strong>
78
76
<?= $ block ->getReviewsSummaryHtml ($ _product , $ templateType ) ?>
79
77
<?= /* @noEscape */ $ block ->getProductPrice ($ _product ) ?>
80
- <?php if ($ _product ->isAvailable ()):?>
81
- <?= $ block ->getProductDetailsHtml ($ _product ) ?>
82
- <?php endif ; ?>
78
+
79
+ <?= $ block ->getProductDetailsHtml ($ _product ) ?>
83
80
84
81
<div class="product-item-inner">
85
82
<div class="product actions product-item-actions">
@@ -121,7 +118,7 @@ $_helper = $block->getData('outputHelper');
121
118
'product-item-info_ ' . $ _product ->getId () . ' div.actions-primary '
122
119
) : '' ?>
123
120
<div data-role="add-to-links" class="actions-secondary">
124
- <?php if ($ addToBlock = $ block ->getChildBlock ('addto ' )):?>
121
+ <?php if ($ addToBlock = $ block ->getChildBlock ('addto ' )): ?>
125
122
<?= $ addToBlock ->setProduct ($ _product )->getChildHtml () ?>
126
123
<?php endif ; ?>
127
124
</div>
@@ -131,7 +128,7 @@ $_helper = $block->getData('outputHelper');
131
128
'product-item-info_ ' . $ _product ->getId () . ' div.actions-secondary '
132
129
) : '' ?>
133
130
</div>
134
- <?php if ($ showDescription ):?>
131
+ <?php if ($ showDescription ): ?>
135
132
<div class="product description product-item-description">
136
133
<?= /* @noEscape */ $ _helper ->productAttribute (
137
134
$ _product ,
@@ -156,7 +153,7 @@ $_helper = $block->getData('outputHelper');
156
153
</ol>
157
154
</div>
158
155
<?= $ block ->getToolbarHtml () ?>
159
- <?php if (!$ block ->isRedirectToCartEnabled ()):?>
156
+ <?php if (!$ block ->isRedirectToCartEnabled ()): ?>
160
157
<script type="text/x-magento-init">
161
158
{
162
159
"[data-role=tocart-form], .form.map.checkout": {
0 commit comments