files.phtml 871 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <?php
  9. /** @var $block \Magento\Theme\Block\Adminhtml\Wysiwyg\Files\Content\Files */
  10. ?>
  11. <?php if ($block->getFilesCount() > 0): ?>
  12. <?php foreach ($block->getFiles() as $file): ?>
  13. <div class="filecnt file-font" id="<?= /* @escapeNotVerified */ $file['id'] ?>">
  14. <p class="nm">
  15. <?= /* @escapeNotVerified */ $file['text'] ?>
  16. <?php if (isset($file['thumbnailParams'])): ?>
  17. <img src="<?= /* @escapeNotVerified */ $block->getUrl('*/*/previewImage', $file['thumbnailParams']) ?>">
  18. <?php endif; ?>
  19. </p>
  20. </div>
  21. <?php endforeach; ?>
  22. <?php else: ?>
  23. <?= /* @escapeNotVerified */ __('We found no files.') ?>
  24. <?php endif; ?>