File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
app/code/Magento/Wishlist/view/frontend/templates/email Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 11
11
<table>
12
12
<tr>
13
13
<?php $ i = 0 ;
14
- foreach ($ block ->getWishlistItems () as $ item ) : $ i ++ ?>
15
- <?php /* @var $item \Magento\Wishlist\Model\Item */ ?>
16
- <?php /* @var $_product \Magento\Catalog\Model\Product */ ?>
14
+ foreach ($ block ->getWishlistItems () as $ item ): $ i ++ ?>
15
+ <?php /* @var \Magento\Wishlist\Model\Item $item */ ?>
16
+ <?php /* @var \Magento\Catalog\Model\Product $_product */ ?>
17
17
<?php $ _product = $ item ->getProduct (); ?>
18
18
<td class="col product">
19
19
<p>
20
20
<a href="<?= $ block ->escapeUrl ($ block ->getProductUrl ($ item )) ?> ">
21
- <?= /* @noEscape */ $ block ->getImage ($ block ->getProductForThumbnail ($ item ), 'product_small_image ' )->toHtml () ?>
21
+ <?php $ productThumbnail = $ block ->getProductForThumbnail ($ item ) ?>
22
+ <?= /* @noEscape */ $ block ->getImage ($ productThumbnail , 'product_small_image ' )->toHtml () ?>
22
23
</a>
23
24
</p>
24
25
27
28
<strong><?= $ block ->escapeHtml ($ _product ->getName ()) ?> </strong>
28
29
</a>
29
30
</p>
30
- <?php if ($ block ->hasDescription ($ item )) : ?>
31
+ <?php if ($ block ->hasDescription ($ item )): ?>
31
32
<p>
32
33
<strong><?= $ block ->escapeHtml (__ ('Comment ' )) ?> :</strong>
33
34
<br/><?= /* @noEscape */ $ block ->getEscapedDescription ($ item ) ?>
39
40
</a>
40
41
</p>
41
42
</td>
42
- <?php if ($ i % 3 != 0 ) : ?>
43
+ <?php if ($ i % 3 != 0 ): ?>
43
44
<td></td>
44
- <?php else : ?>
45
+ <?php else : ?>
45
46
</tr>
46
47
<tr>
47
48
<td colspan="5"> </td>
48
49
</tr>
49
- <?php if ($ i < $ l ) : ?>
50
+ <?php if ($ i < $ l ): ?>
50
51
<tr>
51
52
<?php endif ?>
52
53
<?php endif ?>
You can’t perform that action at this time.
0 commit comments