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