xref: /webtrees/resources/views/modules/family_nav/sidebar.phtml (revision 88de55fda5bcccfc1527a19eaa4a245e17861255)
1<div class="wt-sidebar-content wt-sidebar-family-navigator">
2    <!-- parent families -->
3    <?php foreach ($individual->getChildFamilies() as $family) : ?>
4        <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $individual->getChildFamilyLabel($family)]) ?>
5    <?php endforeach ?>
6
7    <!-- step parents -->
8    <?php foreach ($individual->getChildStepFamilies() as $family) : ?>
9        <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $individual->getStepFamilyLabel($family)]) ?>
10    <?php endforeach ?>
11
12    <!-- spouse and children -->
13    <?php foreach ($individual->getSpouseFamilies() as $family) : ?>
14        <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $individual->getSpouseFamilyLabel($family)]) ?>
15    <?php endforeach ?>
16
17    <!-- step children -->
18    <?php foreach ($individual->getSpouseStepFamilies() as $family) : ?>
19        <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $family->getFullName()]) ?>
20    <?php endforeach ?>
21</div>
22