File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
app/code/Magento/Cms/view/adminhtml/templates/browser/content Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,25 @@ $_height = $block->getImagesHeight();
12
12
?>
13
13
<?php if ($ block ->getFilesCount () > 0 ) : ?>
14
14
<?php foreach ($ block ->getFiles () as $ file ) : ?>
15
+ <?php
16
+ $ src = $ block ->escapeHtmlAttr ($ block ->getFileThumbUrl ($ file ));
17
+ $ width = $ block ->escapeHtml ($ block ->getFileWidth ($ file ));
18
+ $ height = $ block ->escapeHtml ($ block ->getFileHeight ($ file ));
19
+ ?>
15
20
<div
16
21
data-row="file"
17
22
class="filecnt"
18
23
id="<?= $ block ->escapeHtmlAttr ($ block ->getFileId ($ file )) ?> "
19
24
data-size="<?= $ block ->escapeHtmlAttr ($ file ->getSize ()) ?> "
20
25
data-mime-type="<?= $ block ->escapeHtmlAttr ($ file ->getMimeType ()) ?> "
21
26
>
22
- <p class="nm" style="height:<?= $ block -> escapeHtmlAttr ( $ _height ) ?> px ;">
27
+ <p class="nm" style="min- height: 72px ;">
23
28
<?php if ($ block ->getFileThumbUrl ($ file )) : ?>
24
- <img src="<?= $ block -> escapeHtmlAttr ( $ block -> getFileThumbUrl ( $ file )) ?> " alt="<?= $ block ->escapeHtmlAttr ($ block ->getFileName ($ file )) ?> "/>
29
+ <img src="<?= $ src ?> " alt="<?= $ block ->escapeHtmlAttr ($ block ->getFileName ($ file )) ?> "/>
25
30
<?php endif ; ?>
26
31
</p>
27
32
<?php if ($ block ->getFileWidth ($ file )) : ?>
28
- <small><?= $ block -> escapeHtml ( $ block -> getFileWidth ( $ file )) ?> x<?= $ block -> escapeHtml ( $ block -> getFileHeight ( $ file )) ?> <?= $ block ->escapeHtml (__ ('px. ' )) ?> </small><br/>
33
+ <small><?= $ width ?> x<?= $ height ?> <?= $ block ->escapeHtml (__ ('px. ' )) ?> </small><br/>
29
34
<?php endif ; ?>
30
35
<small><?= $ block ->escapeHtml ($ block ->getFileShortName ($ file )) ?> </small>
31
36
</div>
You can’t perform that action at this time.
0 commit comments