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