xref: /webtrees/resources/views/lists/individual-table-parents.phtml (revision 00b1984e374faddab4698e73088f0c964e529b65)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<?php foreach ($individual->childFamilies() as $family) : ?>
8    <div class="wt-individual-list-parents small" style="display: none">
9        <?php foreach ($family->spouses() as $spouse) : ?>
10            <div class="wt-individual-list-parent">
11                <?php $spouse = clone($spouse); ?>
12                <?php $spouse->setPrimaryName(null); ?>
13                <?php if ($spouse->sex() === 'F') : ?>
14                    <?= I18N::translate('Mother: %s', $spouse->fullName()) ?>
15                <?php else : ?>
16                    <?= I18N::translate('Father: %s', $spouse->fullName()) ?>
17                <?php endif ?>
18            </div>
19        <?php endforeach ?>
20    </div>
21<?php endforeach ?>
22