1<?php 2 3use Fisharebest\Webtrees\I18N; 4 5?> 6<div class="d-flex"> 7 <div class="align-self-center"> 8 <div class="d-flex"> 9 <div class="wt-chart-horizontal-spacer"> 10 <div class="wt-chart-horizontal-first-parent"></div> 11 </div> 12 13 <div class="align-self-center"> 14 <?php if ($family->husband()): ?> 15 <?= view('chart-box', ['individual' => $family->husband()]) ?> 16 <?php else: ?> 17 <div class="wt-chart-box"> 18 <a class="btn btn-link" href="<?= e(route('add-spouse-to-family', ['ged' => $family->tree()->name(), 'xref' => $family->xref(), 'famtag' => 'HUSB'])) ?>"> 19 <?= I18N::translate('Add a husband' )?> 20 </a> 21 </div> 22 <?php endif ?> 23 </div> 24 25 <?= view('family-page-grandparents', ['family' => $family->husband() ? $family->husband()->primaryChildFamily() : null, 'individual' => $family->husband()]) ?> 26 </div> 27 28 <div class="d-flex"> 29 <div class="wt-chart-horizontal-spacer"> 30 <div class="wt-chart-horizontal-last-parent"></div> 31 </div> 32 33 <div class="align-self-center"> 34 <?php if ($family->wife()): ?> 35 <?= view('chart-box', ['individual' => $family->wife()]) ?> 36 <?php else: ?> 37 <div class="wt-chart-box"> 38 <a class="btn btn-link" href="<?= e(route('add-spouse-to-family', ['ged' => $family->tree()->name(), 'xref' => $family->xref(), 'famtag' => 'WIFE'])) ?>"> 39 <?= I18N::translate('Add a wife' )?> 40 </a> 41 </div> 42 <?php endif ?> 43 </div> 44 45 <?= view('family-page-grandparents', ['family' => $family->wife() ? $family->wife()->primaryChildFamily() : null, 'individual' => $family->wife()]) ?> 46 </div> 47 </div> 48</div> 49 50