Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
files.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 
11 <?php
13 ?>
14 
15 <?php if ($block->getFilesCount() > 0): ?>
16  <?php foreach ($block->getFiles() as $file): ?>
17  <div class="filecnt file-font" id="<?= /* @escapeNotVerified */ $file['id'] ?>">
18  <p class="nm">
19  <?= /* @escapeNotVerified */ $file['text'] ?>
20  <?php if (isset($file['thumbnailParams'])): ?>
21  <img src="<?= /* @escapeNotVerified */ $block->getUrl('*/*/previewImage', $file['thumbnailParams']) ?>">
22  <?php endif; ?>
23  </p>
24  </div>
25  <?php endforeach; ?>
26 <?php else: ?>
27  <?= /* @escapeNotVerified */ __('We found no files.') ?>
28 <?php endif; ?>
__()
Definition: __.php:13
$block
Definition: block.php:8
endforeach
Definition: files.phtml:32
if( $block->getFilesCount() > 0)( $block->getFiles() as $file)( $block->getFileId( $file)) ?>" data-size endif
Definition: files.phtml:26