xref: /webtrees/resources/views/modules/family-book-chart/parents.phtml (revision 9ed80f829cfb208ae92f7928345696619569bf4e)
1<div class="d-flex">
2    <div class="align-self-center">
3        <div class="d-flex">
4            <div class="wt-chart-horizontal-spacer">
5                <div class="wt-chart-horizontal-first-parent"></div>
6            </div>
7
8            <div class="align-self-center">
9                <?= view('chart-box', ['individual' => $family ? $family->husband() : null]) ?>
10            </div>
11
12            <?php if ($generations > 1): ?>
13                <div class="wt-chart-horizontal-spacer">
14                    <div class="wt-chart-horizontal-line"></div>
15                </div>
16
17                <?= view('modules/family-book-chart/parents', ['family' => $family && $family->husband() ? $family->husband()->primaryChildFamily() : null, 'generations' => $generations - 1]) ?>
18            <?php endif ?>
19        </div>
20
21        <div class="d-flex">
22            <div class="wt-chart-horizontal-spacer">
23                <div class="wt-chart-horizontal-last-parent"></div>
24            </div>
25
26            <div class="align-self-center">
27                <?= view('chart-box', ['individual' => $family ? $family->wife() : null ]) ?>
28            </div>
29
30            <?php if ($generations > 1): ?>
31                <div class="wt-chart-horizontal-spacer">
32                    <div class="wt-chart-horizontal-line"></div>
33                </div>
34
35                <?= view('modules/family-book-chart/parents', ['family' => $family && $family->wife() ? $family->wife()->primaryChildFamily() : null, 'generations' => $generations - 1]) ?>
36            <?php endif ?>
37        </div>
38    </div>
39</div>
40
41