@@ -20,10 +20,10 @@ $_productCollection = $block->getLoadedProductCollection();
20
20
$ _helper = $ this ->helper ('Magento\Catalog\Helper\Output ' );
21
21
?>
22
22
<?php if (!$ _productCollection ->count ()): ?>
23
- <div class="message info empty"><div><?php /* @escapeNotVerified */ echo __ ('We can \'t find products matching the selection. ' ) ?> </div></div>
23
+ <div class="message info empty"><div><?= /* @escapeNotVerified */ __ ('We can \'t find products matching the selection. ' ) ?> </div></div>
24
24
<?php else : ?>
25
- <?php echo $ block ->getToolbarHtml () ?>
26
- <?php echo $ block ->getAdditionalHtml () ?>
25
+ <?= $ block ->getToolbarHtml () ?>
26
+ <?= $ block ->getAdditionalHtml () ?>
27
27
<?php
28
28
if ($ block ->getMode () == 'grid ' ) {
29
29
$ viewMode = 'grid ' ;
@@ -41,7 +41,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
41
41
*/
42
42
$ pos = $ block ->getPositioned ();
43
43
?>
44
- <div class="products wrapper <?php /* @escapeNotVerified */ echo $ viewMode; ?> products-<?php /* @escapeNotVerified */ echo $ viewMode; ?> ">
44
+ <div class="products wrapper <?= /* @escapeNotVerified */ $ viewMode ?> products-<?= /* @escapeNotVerified */ $ viewMode ?> ">
45
45
<ol class="products list items product-items">
46
46
<?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
47
47
<?php foreach ($ _productCollection as $ _product ): ?>
@@ -55,57 +55,57 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
55
55
}
56
56
?>
57
57
<?php // Product Image ?>
58
- <a href="<?php /* @escapeNotVerified */ echo $ _product ->getProductUrl () ?> " class="product photo product-item-photo" tabindex="-1">
59
- <?php echo $ productImage ->toHtml (); ?>
58
+ <a href="<?= /* @escapeNotVerified */ $ _product ->getProductUrl () ?> " class="product photo product-item-photo" tabindex="-1">
59
+ <?= $ productImage ->toHtml () ?>
60
60
</a>
61
61
<div class="product details product-item-details">
62
62
<?php
63
63
$ _productNameStripped = $ block ->stripTags ($ _product ->getName (), null , true );
64
64
?>
65
65
<strong class="product name product-item-name">
66
66
<a class="product-item-link"
67
- href="<?php /* @escapeNotVerified */ echo $ _product ->getProductUrl () ?> ">
68
- <?php /* @escapeNotVerified */ echo $ _helper ->productAttribute ($ _product , $ _product ->getName (), 'name ' ); ?>
67
+ href="<?= /* @escapeNotVerified */ $ _product ->getProductUrl () ?> ">
68
+ <?= /* @escapeNotVerified */ $ _helper ->productAttribute ($ _product , $ _product ->getName (), 'name ' ) ?>
69
69
</a>
70
70
</strong>
71
- <?php echo $ block ->getReviewsSummaryHtml ($ _product , $ templateType ); ?>
72
- <?php /* @escapeNotVerified */ echo $ block ->getProductPrice ($ _product ) ?>
73
- <?php echo $ block ->getProductDetailsHtml ($ _product ); ?>
71
+ <?= $ block ->getReviewsSummaryHtml ($ _product , $ templateType ) ?>
72
+ <?= /* @escapeNotVerified */ $ block ->getProductPrice ($ _product ) ?>
73
+ <?= $ block ->getProductDetailsHtml ($ _product ) ?>
74
74
75
75
<div class="product-item-inner">
76
- <div class="product actions product-item-actions"<?php echo strpos ($ pos , $ viewMode . '-actions ' ) ? $ position : '' ; ?> >
77
- <div class="actions-primary"<?php echo strpos ($ pos , $ viewMode . '-primary ' ) ? $ position : '' ; ?> >
76
+ <div class="product actions product-item-actions"<?= strpos ($ pos , $ viewMode . '-actions ' ) ? $ position : '' ; ?> >
77
+ <div class="actions-primary"<?= strpos ($ pos , $ viewMode . '-primary ' ) ? $ position : '' ; ?> >
78
78
<?php if ($ _product ->isSaleable ()): ?>
79
79
<?php $ postParams = $ block ->getAddToCartPostParams ($ _product ); ?>
80
- <form data-role="tocart-form" action="<?php /* @escapeNotVerified */ echo $ postParams ['action ' ]; ?> " method="post">
81
- <input type="hidden" name="product" value="<?php /* @escapeNotVerified */ echo $ postParams ['data ' ]['product ' ]; ?> ">
82
- <input type="hidden" name="<?php /* @escapeNotVerified */ echo Action::PARAM_NAME_URL_ENCODED ; ?> " value="<?php /* @escapeNotVerified */ echo $ postParams ['data ' ][Action::PARAM_NAME_URL_ENCODED ]; ?> ">
83
- <?php echo $ block ->getBlockHtml ('formkey ' )?>
80
+ <form data-role="tocart-form" action="<?= /* @escapeNotVerified */ $ postParams ['action ' ] ?> " method="post">
81
+ <input type="hidden" name="product" value="<?= /* @escapeNotVerified */ $ postParams ['data ' ]['product ' ] ?> ">
82
+ <input type="hidden" name="<?= /* @escapeNotVerified */ Action::PARAM_NAME_URL_ENCODED ?> " value="<?= /* @escapeNotVerified */ $ postParams ['data ' ][Action::PARAM_NAME_URL_ENCODED ] ?> ">
83
+ <?= $ block ->getBlockHtml ('formkey ' ) ?>
84
84
<button type="submit"
85
- title="<?php echo $ block ->escapeHtml (__ ('Add to Cart ' )); ?> "
85
+ title="<?= $ block ->escapeHtml (__ ('Add to Cart ' )) ?> "
86
86
class="action tocart primary">
87
- <span><?php /* @escapeNotVerified */ echo __ ('Add to Cart ' ) ?> </span>
87
+ <span><?= /* @escapeNotVerified */ __ ('Add to Cart ' ) ?> </span>
88
88
</button>
89
89
</form>
90
90
<?php else : ?>
91
91
<?php if ($ _product ->isAvailable ()): ?>
92
- <div class="stock available"><span><?php /* @escapeNotVerified */ echo __ ('In stock ' ) ?> </span></div>
92
+ <div class="stock available"><span><?= /* @escapeNotVerified */ __ ('In stock ' ) ?> </span></div>
93
93
<?php else : ?>
94
- <div class="stock unavailable"><span><?php /* @escapeNotVerified */ echo __ ('Out of stock ' ) ?> </span></div>
94
+ <div class="stock unavailable"><span><?= /* @escapeNotVerified */ __ ('Out of stock ' ) ?> </span></div>
95
95
<?php endif ; ?>
96
96
<?php endif ; ?>
97
97
</div>
98
- <div data-role="add-to-links" class="actions-secondary"<?php echo strpos ($ pos , $ viewMode . '-secondary ' ) ? $ position : '' ; ?> >
98
+ <div data-role="add-to-links" class="actions-secondary"<?= strpos ($ pos , $ viewMode . '-secondary ' ) ? $ position : '' ; ?> >
99
99
<?php if ($ addToBlock = $ block ->getChildBlock ('addto ' )): ?>
100
- <?php echo $ addToBlock ->setProduct ($ _product )->getChildHtml (); ?>
100
+ <?= $ addToBlock ->setProduct ($ _product )->getChildHtml () ?>
101
101
<?php endif ; ?>
102
102
</div>
103
103
</div>
104
104
<?php if ($ showDescription ):?>
105
105
<div class="product description product-item-description">
106
- <?php /* @escapeNotVerified */ echo $ _helper ->productAttribute ($ _product , $ _product ->getShortDescription (), 'short_description ' ) ?>
107
- <a href="<?php /* @escapeNotVerified */ echo $ _product ->getProductUrl () ?> " title="<?php /* @escapeNotVerified */ echo $ _productNameStripped ?> "
108
- class="action more"><?php /* @escapeNotVerified */ echo __ ('Learn More ' ) ?> </a>
106
+ <?= /* @escapeNotVerified */ $ _helper ->productAttribute ($ _product , $ _product ->getShortDescription (), 'short_description ' ) ?>
107
+ <a href="<?= /* @escapeNotVerified */ $ _product ->getProductUrl () ?> " title="<?= /* @escapeNotVerified */ $ _productNameStripped ?> "
108
+ class="action more"><?= /* @escapeNotVerified */ __ ('Learn More ' ) ?> </a>
109
109
</div>
110
110
<?php endif ; ?>
111
111
</div>
@@ -115,7 +115,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
115
115
<?php endforeach ; ?>
116
116
</ol>
117
117
</div>
118
- <?php echo $ block ->getToolbarHtml () ?>
118
+ <?= $ block ->getToolbarHtml () ?>
119
119
<?php if (!$ block ->isRedirectToCartEnabled ()) : ?>
120
120
<script type="text/x-magento-init">
121
121
{
0 commit comments