xref: /webtrees/resources/views/modules/media/tab.phtml (revision 4a2590a502a224163349fa10c461f39070abb3bc)
1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; ?>
2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?>
3dd6b2bfcSGreg Roach
4*4a2590a5SGreg Roach<div class="wt-tab-media py-4">
5dd6b2bfcSGreg Roach    <table class="table wt-facts-table">
6dd6b2bfcSGreg Roach        <?php foreach ($facts as $fact) : ?>
7dd6b2bfcSGreg Roach            <?php FunctionsPrintFacts::printMainMedia($fact, 1) ?>
8dd6b2bfcSGreg Roach            <?php FunctionsPrintFacts::printMainMedia($fact, 2) ?>
9dd6b2bfcSGreg Roach            <?php FunctionsPrintFacts::printMainMedia($fact, 3) ?>
10dd6b2bfcSGreg Roach            <?php FunctionsPrintFacts::printMainMedia($fact, 4) ?>
11dd6b2bfcSGreg Roach        <?php endforeach ?>
12dd6b2bfcSGreg Roach
13dd6b2bfcSGreg Roach        <?php if (empty($facts)) : ?>
14dd6b2bfcSGreg Roach            <tr>
15dd6b2bfcSGreg Roach                <td colspan="2">
16dd6b2bfcSGreg Roach                    <?= I18N::translate('There are no media objects for this individual.') ?>
17dd6b2bfcSGreg Roach                </td>
18dd6b2bfcSGreg Roach            </tr>
19dd6b2bfcSGreg Roach        <?php endif ?>
202adcbd9aSGreg Roach
212adcbd9aSGreg Roach        <?php if ($can_edit) : ?>
222adcbd9aSGreg Roach            <?= view('edit/paste-fact-row', ['record' => $individual, 'facts' => $clipboard_facts]) ?>
232adcbd9aSGreg Roach        <?php endif ?>
24dd6b2bfcSGreg Roach    </table>
25dd6b2bfcSGreg Roach</div>
26