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