Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
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
Definition: block.php:8
if($block->getLink()) line height
Definition: email.phtml:11