1<?php 2 3use Fisharebest\Webtrees\I18N; 4 5/** 6 * @var string $icon 7 * @var string[] $siblings 8 * @var string[] $spouses 9 * @var string[] $children 10 */ 11 12?> 13 14<div class="dropdown px-2"> 15 <a href="#" role="button" id="pedigree-previous-link" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 16 <?= $icon ?> 17 </a> 18 <div class="dropdown-menu" aria-labelledby="pedigree-previous-link"> 19 <?php if (count($siblings) > 1) : ?> 20 <strong class="dropdown-item-text"><?= I18N::translate('Siblings') ?></strong> 21 <?php elseif (count($siblings) > 0 ) : ?> 22 <strong class="dropdown-item-text"><?= I18N::translate('Sibling') ?></strong> 23 <?php endif ?> 24 <?php foreach ($siblings as $sibling) : ?> 25 <?= $sibling ?> 26 <?php endforeach ?> 27 28 <?php if (count($spouses) > 1) : ?> 29 <strong class="dropdown-item-text"><?= I18N::translate('Spouses') ?></strong> 30 <?php elseif (count($spouses) > 0 ) : ?> 31 <strong class="dropdown-item-text"><?= I18N::translate('Spouse') ?></strong> 32 <?php endif ?> 33 <?php foreach ($spouses as $spouse) : ?> 34 <?= $spouse ?> 35 <?php endforeach ?> 36 37 <?php if (count($children) > 1) : ?> 38 <strong class="dropdown-item-text"><?= I18N::translate('Children') ?></strong> 39 <?php elseif (count($children) > 0 ) : ?> 40 <strong class="dropdown-item-text"><?= I18N::translate('Child') ?></strong> 41 <?php endif ?> 42 <?php foreach ($children as $child) : ?> 43 <?= $child ?> 44 <?php endforeach ?> 45 </div> 46</div> 47