1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,20 @@ |
1 |
+<?php $this->extend('block_searchable'); ?> |
|
2 |
+ |
|
3 |
+<?php $this->block('content'); ?> |
|
4 |
+ |
|
5 |
+ <ul class="row justify-content-center"> |
|
6 |
+ <?php foreach ($this->files as $file): ?> |
|
7 |
+ <li class="col-6 col-md-4 col-lg-3 col-xl-2 download-element ext-<?= $file['extension'] ?>"> |
|
8 |
+ <?php if ($file['previews']): ?> |
|
9 |
+ <?php foreach ($file['previews'] as $preview): ?> |
|
10 |
+ <?php $this->insert('image', $preview->getLegacyTemplateData()) ?> |
|
11 |
+ <?php endforeach ?> |
|
12 |
+ <?php endif ?> |
|
13 |
+ <a href="<?= $file['href'] ?>" title="<?= $file['title'] ?>" type="<?= $file['mime'] ?>"> |
|
14 |
+ <span><?= substr($file['link'], 0 , (strrpos($file['link'], "."))); ?> <span class="size">(<?= $file['filesize'] ?>)</span></span> |
|
15 |
+ </a> |
|
16 |
+ </li> |
|
17 |
+ <?php endforeach; ?> |
|
18 |
+ </ul> |
|
19 |
+ |
|
20 |
+<?php $this->endblock(); ?> |