File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
app/code/Magento/Catalog/view/frontend/templates/product Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
?>
7
- <?php /** @var $block \Magento\Catalog\Block\Product\Image */ ?>
7
+ <?php
8
+ /** @var $block \Magento\Catalog\Block\Product\Image */
9
+ /** @var $escaper \Magento\Framework\Escaper */
10
+ ?>
8
11
9
12
<span class="product-image-container"
10
- style="width:<?= $ block ->escapeHtmlAttr ($ block ->getWidth ()) ?> px;">
13
+ style="width:<?= $ escaper ->escapeHtmlAttr ($ block ->getWidth ()) ?> px;">
11
14
<span class="product-image-wrapper"
12
15
style="padding-bottom: <?= ($ block ->getRatio () * 100 ) ?> %;">
13
- <img class="<?= $ block ->escapeHtmlAttr ($ block ->getClass ()) ?> "
14
- <?= $ block ->escapeHtmlAttr ($ block ->getCustomAttributes ()) ?>
15
- src="<?= $ block ->escapeUrl ($ block ->getImageUrl ()) ?> "
16
- max-width="<?= $ block ->escapeHtmlAttr ($ block ->getWidth ()) ?> "
17
- max-height="<?= $ block ->escapeHtmlAttr ($ block ->getHeight ()) ?> "
18
- alt="<?= /* @noEscape */ $ block ->stripTags ($ block ->getLabel (), null , true ) ?> "/></span>
16
+ <img class="<?= $ escaper ->escapeHtmlAttr ($ block ->getClass ()) ?> "
17
+ <?= $ escaper ->escapeHtmlAttr ($ block ->getCustomAttributes ()) ?>
18
+ src="<?= $ escaper ->escapeUrl ($ block ->getImageUrl ()) ?> "
19
+ max-width="<?= $ escaper ->escapeHtmlAttr ($ block ->getWidth ()) ?> "
20
+ max-height="<?= $ escaper ->escapeHtmlAttr ($ block ->getHeight ()) ?> "
21
+ alt="<?= /* @noEscape */ $ block ->stripTags ($ block ->getLabel (), null , true ) ?> "/></span>
19
22
</span>
You can’t perform that action at this time.
0 commit comments