1<?php 2 3use Fisharebest\Webtrees\Family; 4use Fisharebest\Webtrees\Individual; 5 6/** 7 * @var Family $family 8 * @var int $generations 9 */ 10 11?> 12 13<div class="d-flex"> 14 <div class="align-self-center"> 15 <div class="d-flex"> 16 <div class="wt-chart-horizontal-spacer"> 17 <div class="wt-chart-horizontal-first-parent"></div> 18 </div> 19 20 <div class="align-self-center"> 21 <?= view('chart-box', ['individual' => $family->husband()]) ?> 22 </div> 23 24 <?php if ($family->husband() instanceof Individual && $family->husband()->childFamilies()->first() instanceof Family) : ?> 25 <div class="wt-chart-horizontal-spacer"> 26 <div class="wt-chart-horizontal-line"></div> 27 </div> 28 29 <?php if ($generations > 1) : ?> 30 <?= view('modules/hourglass-chart/parents', ['family' => $family->husband()->childFamilies()->first(), 'generations' => $generations - 1]) ?> 31 <?php else : ?> 32 <div class="align-self-center"> 33 <div class="hourglass-arrow" data-xref="<?= route('module', ['module' => 'hourglass_chart', 'action' => 'Ancestors', 'xref' => $family->husband()->childFamilies()->first()->xref(), 'tree' => $family->husband()->childFamilies()->first()->tree()->name()]) ?>"> 34 <?= view('icons/arrow-right') ?> 35 </div> 36 </div> 37 <?php endif ?> 38 <?php endif ?> 39 </div> 40 41 <div class="d-flex"> 42 <div class="wt-chart-horizontal-spacer"> 43 <div class="wt-chart-horizontal-last-parent"></div> 44 </div> 45 46 <div class="align-self-center"> 47 <?= view('chart-box', ['individual' => $family->wife()]) ?> 48 </div> 49 50 <?php if ($family->wife() instanceof Individual && $family->wife()->childFamilies()->first() instanceof Family) : ?> 51 <div class="wt-chart-horizontal-spacer"> 52 <div class="wt-chart-horizontal-line"></div> 53 </div> 54 55 <?php if ($generations > 1) : ?> 56 <?= view('modules/hourglass-chart/parents', ['family' => $family->wife()->childFamilies()->first(), 'generations' => $generations - 1]) ?> 57 <?php else : ?> 58 <div class="align-self-center"> 59 <div class="align-self-center"> 60 <div class="hourglass-arrow" data-xref="<?= route('module', ['module' => 'hourglass_chart', 'action' => 'Ancestors', 'xref' => $family->wife()->childFamilies()->first()->xref(), 'tree' => $family->wife()->childFamilies()->first()->tree()->name()]) ?>"> 61 <?= view('icons/arrow-right') ?> 62 </div> 63 </div> 64 </div> 65 <?php endif ?> 66 <?php endif ?> 67 </div> 68 </div> 69</div> 70