xref: /webtrees/resources/views/modules/lightbox/tab.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
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