Skip to content

Commit d12b8fc

Browse files
ENGCOM-5432: Add missing getClass() to image.phtml so it is more like image_with_borders.phtml #23652
- Merge Pull Request #23652 from storefront-bvba/magento2:simplify-adding-product-image-css-class - Merged commits: 1. 64c45b7
2 parents a9eb7d8 + 64c45b7 commit d12b8fc

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/image.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
?>
77
<?php /** @var $block \Magento\Catalog\Block\Product\Image */ ?>
88

9-
<img class="photo image"
9+
<img class="photo image <?= $block->escapeHtmlAttr($block->getClass()) ?>"
1010
<?= $block->escapeHtml($block->getCustomAttributes()) ?>
1111
src="<?= $block->escapeUrl($block->getImageUrl()) ?>"
1212
width="<?= $block->escapeHtmlAttr($block->getWidth()) ?>"

0 commit comments

Comments
 (0)