xref: /webtrees/resources/views/modules/lightbox/tab.phtml (revision 33c343964203a24deeb34413eac7f48bee172865)
1<div class="wt-album-tab py-4">
2    <?php foreach ($media_list as $media) : ?>
3        <figure class="figure text-center col-sm-6 col-md-4 col-lg-3 col-xl-2 wt-album-tab-figure">
4            <?php foreach ($media->mediaFiles() as $media_file) : ?>
5                <?php if ($media_file->isImage()) : ?>
6                    <?= $media_file->displayImage(100, 100, 'contain', ['class' => 'img-thumbnail wt-album-tab-image']) ?>
7                <?php endif ?>
8            <?php endforeach ?>
9            <figcaption class="figure-caption wt-album-tab-caption">
10                <a href="<?= e($media->url()) ?>">
11                    <?= $media->getFullName() ?>
12                </a>
13            </figcaption>
14        </figure>
15    <?php endforeach ?>
16</div>
17