Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
view
frontend
templates
product
image_with_borders.phtml
Go to the documentation of this file.
1
<?php
6
?>
7
<?php ?>
8
9
<span
class
=
"product-image-container"
10
style=
"width:<?= /* @escapeNotVerified */ $block->getWidth() ?>px;"
>
11
<span
class
=
"product-image-wrapper"
12
style=
"padding-bottom: <?= /* @escapeNotVerified */ ($block->getRatio() * 100) ?>%;"
>
13
<img
class
=
"product-image-photo"
14
<?=
/* @escapeNotVerified */
$block
->getCustomAttributes() ?>
15
src=
"<?= /* @escapeNotVerified */ $block->getImageUrl() ?>"
16
max-width=
"<?= /* @escapeNotVerified */ $block->getWidth() ?>"
17
max-
height
=
"<?= /* @escapeNotVerified */ $block->getHeight() ?>"
18
alt=
"<?= /* @escapeNotVerified */ $block->stripTags($block->getLabel(), null, true) ?>"
/></span>
19
</span>
$block
$block
Definition:
block.php:8
height
if($block->getLink()) line height
Definition:
email.phtml:11