xref: /webtrees/resources/views/modules/media/tab.phtml (revision dae8440ab1203b4eb5e333de33e187c1dfc5b759)
1<?php use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; ?>
2<?php use Fisharebest\Webtrees\I18N; ?>
3
4<div class="wt-media-tab py-4">
5    <table class="table wt-facts-table">
6        <?php foreach ($facts as $fact) : ?>
7            <?php FunctionsPrintFacts::printMainMedia($fact, 1) ?>
8            <?php FunctionsPrintFacts::printMainMedia($fact, 2) ?>
9            <?php FunctionsPrintFacts::printMainMedia($fact, 3) ?>
10            <?php FunctionsPrintFacts::printMainMedia($fact, 4) ?>
11        <?php endforeach ?>
12
13        <?php if (empty($facts)) : ?>
14            <tr>
15                <td colspan="2">
16                    <?= I18N::translate('There are no media objects for this individual.') ?>
17                </td>
18            </tr>
19        <?php endif ?>
20    </table>
21</div>
22