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-cms
view
adminhtml
templates
browser
content
files.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
11
$_width
=
$block
->getImagesWidth();
12
$_height
=
$block
->getImagesHeight();
13
14
?>
15
<?php
if
(
$block
->getFilesCount() > 0): ?>
16
<?php
foreach
(
$block
->getFiles() as $file): ?>
17
<div
18
data-row=
"file"
19
class
=
"filecnt"
20
id
=
"<?= $block->escapeHtmlAttr($block->getFileId($file)) ?>"
21
data-size=
"<?= $block->escapeHtmlAttr($file->getSize()) ?>"
22
data-mime-type=
"<?= $block->escapeHtmlAttr($file->getMimeType()) ?>"
23
>
24
<p
class
=
"nm"
style=
"height:<?= $block->escapeHtmlAttr($_height) ?>px;width:<?= $block->escapeHtmlAttr($_width) ?>px;"
>
25
<?php
if
(
$block
->getFileThumbUrl($file)):?>
26
<img src=
"<?= $block->escapeHtmlAttr($block->getFileThumbUrl($file)) ?>"
alt=
"<?= $block->escapeHtmlAttr($block->getFileName($file)) ?>"
/>
27
<?php
endif
; ?>
28
</p>
29
<?php
if
(
$block
->getFileWidth($file)): ?>
30
<small><?=
$block
->escapeHtml(
$block
->getFileWidth($file)) ?>x<?= $block->escapeHtml(
$block
->getFileHeight($file)) ?> <?=
$block
->escapeHtml(
__
(
'px.'
)) ?></small><br/>
31
<?php
endif
; ?>
32
<small><?=
$block
->escapeHtml(
$block
->getFileShortName($file)) ?></small>
33
</div>
34
<?php
endforeach
; ?>
35
<?php
else
: ?>
36
<div
class
=
"empty"
><?=
$block
->escapeHtml(
__
(
'No files found'
)) ?></div>
37
<?php
endif
; ?>
__
__()
Definition:
__.php:13
$block
$block
Definition:
block.php:8
$_height
$_height
Definition:
files.phtml:12
endforeach
endforeach
Definition:
files.phtml:32
endif
if( $block->getFilesCount() > 0)( $block->getFiles() as $file)( $block->getFileId( $file)) ?>" data-size endif
Definition:
files.phtml:26
$_width
$_width
Definition:
files.phtml:11