xref: /webtrees/resources/views/modules/family_nav/sidebar.phtml (revision 9b152ff9230017d2c03aa1bf603a98b18250446d)
1<div class="wt-sidebar-content wt-sidebar-family-navigator">
2    <!-- parent families -->
3    <?php foreach ($individual->childFamilies() 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->childStepFamilies() 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->spouseFamilies() 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->spouseStepFamilies() as $family) : ?>
19        <?= view('modules/family_nav/sidebar-family', ['individual' => $individual, 'family' => $family, 'title' => $family->fullName()]) ?>
20    <?php endforeach ?>
21</div>
22