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