1<?php 2 3use Fisharebest\Webtrees\I18N; 4 5?> 6 7<div class="d-flex"> 8 <div class="wt-chart-horizontal-spacer"> 9 <div class="wt-chart-horizontal-line"></div> 10 </div> 11 <div class="align-self-center"> 12 <div class="d-flex"> 13 <div class="wt-chart-horizontal-spacer"> 14 <div class="wt-chart-horizontal-first-parent"></div> 15 </div> 16 17 <div class="align-self-center"> 18 <?php if ($individual === null): ?> 19 <?= view('chart-box', ['individual' => null]) ?> 20 <?php elseif ($family === null): ?> 21 <div class="wt-chart-box"> 22 <?php if ($individual->canEdit()): ?> 23 <a class="btn btn-link" href="<?= e(route('add-parent-to-individual', ['tree' => $individual->tree()->name(), 'xref' => $individual->xref(), 'gender' => 'M'])) ?>"> 24 <?= I18N::translate('Add a father') ?> 25 </a> 26 <?php endif ?> 27 </div> 28 <?php elseif ($family->husband() === null): ?> 29 <div class="wt-chart-box"> 30 <?php if ($family->canEdit()): ?> 31 <a class="btn btn-link" href="<?= e(route('add-spouse-to-family', ['tree' => $family->tree()->name(), 'xref' => $family->xref(), 'famtag' => 'HUSB'])) ?>"> 32 <?= I18N::translate('Add a father') ?> 33 </a> 34 <?php endif ?> 35 </div> 36 <?php else: ?> 37 <?= view('chart-box', ['individual' => $family ? $family->husband() : null]) ?> 38 <?php endif ?> 39 </div> 40 </div> 41 42 <div class="d-flex"> 43 <div class="wt-chart-horizontal-spacer"> 44 <div class="wt-chart-horizontal-last-parent"></div> 45 </div> 46 47 <div class="align-self-center"> 48 <?php if ($individual === null): ?> 49 <?= view('chart-box', ['individual' => null]) ?> 50 <?php elseif ($family === null): ?> 51 <div class="wt-chart-box"> 52 <?php if ($individual->canEdit()): ?> 53 <a class="btn btn-link" href="<?= e(route('add-parent-to-individual', ['tree' => $individual->tree()->name(), 'xref' => $individual->xref(), 'gender' => 'F'])) ?>"> 54 <?= I18N::translate('Add a mother') ?> 55 </a> 56 <?php endif ?> 57 </div> 58 <?php elseif ($family->wife() === null): ?> 59 <div class="wt-chart-box"> 60 <?php if ($family->canEdit()): ?> 61 <a class="btn btn-link" href="<?= e(route('add-spouse-to-family', ['tree' => $family->tree()->name(), 'xref' => $family->xref(), 'famtag' => 'WIFE'])) ?>"> 62 <?= I18N::translate('Add a mother') ?> 63 </a> 64 <?php endif ?> 65 </div> 66 <?php else: ?> 67 <?= view('chart-box', ['individual' => $family ? $family->wife() : null]) ?> 68 <?php endif ?> 69 </div> 70 </div> 71 </div> 72 <?php if ($family !== null): ?> 73 <div class="align-self-center"> 74 <a class="btn btn-text" href="<?= e($family->url()) ?>" title="<?= strip_tags($family->fullName()) ?>"> 75 <?= view('icons/arrow-right') ?> 76 </a> 77 </div> 78 <?php endif ?> 79</div> 80 81