xref: /webtrees/resources/views/modules/family_nav/sidebar.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
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