xref: /webtrees/resources/views/lists/individual-table-parents.phtml (revision 36de22acf6348b1059dac63e3cd19589574906ac)
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