xref: /webtrees/resources/views/modules/lightbox/tab.phtml (revision 36de22acf6348b1059dac63e3cd19589574906ac)
1<?php
2
3use Fisharebest\Webtrees\Media;
4use Illuminate\Support\Collection;
5
6/**
7 * @var Collection<Media> $media_list
8 */
9
10?>
11<div class="wt-tab-album py-4">
12    <?php foreach ($media_list as $media) : ?>
13        <figure class="figure text-center col-sm-6 col-md-4 col-lg-3 col-xl-2 wt-album-tab-figure">
14            <?php foreach ($media->mediaFiles() as $media_file) : ?>
15                <?= $media_file->displayImage(100, 100, 'contain', ['class' => 'img-thumbnail wt-album-tab-image']) ?>
16            <?php endforeach ?>
17            <figcaption class="figure-caption wt-album-tab-caption">
18                <a href="<?= e($media->url()) ?>">
19                    <?= $media->fullName() ?>
20                </a>
21            </figcaption>
22        </figure>
23    <?php endforeach ?>
24</div>
25