1<?php 2 3use Fisharebest\Webtrees\I18N; 4use Fisharebest\Webtrees\Tree; 5 6/** 7 * @var string $module 8 * @var Tree $tree 9 * @var string $action 10 * @var string $title 11 * @var string $current 12 * @var array $breadcrumbs 13 * @var bool $note 14 * @var string $content 15 * @var bool $showeventslink 16 * @var string $place 17 * @var array $parent 18 * @var array $nextaction 19 */ 20 21?> 22 23<div id="place-hierarchy"> 24 <div class="container"> 25 <h4><?= $title ?></h4> 26 <h5 class="text-center"> 27 <?php if ($current) : ?> 28 <a href="<?= e(route('module', ['module' => $module, 'action' => $action, 'tree' => $tree->name()])) ?>"> 29 <?= I18N::translate('World') ?> 30 </a> 31 <?php else : ?> 32 <?= I18N::translate('World') ?> 33 <?php endif ?> 34 35 <?php foreach ($breadcrumbs as $item) : ?> 36 - 37 <a href="<?= e($item->url()) ?>" dir="auto"><?= $item->placeName() ?></a> 38 <?php endforeach ?> 39 40 <?php if ($current) : ?> 41 - <?= $current->placeName() ?> 42 <?php endif ?> 43 </h5> 44 <?php if ($note) : ?> 45 <div class="text-center small text-muted"> 46 <?= I18N::translate('Places without valid co-ordinates do not appear on the map and are indicated by the sidebar entry being crossed through') ?> 47 </div> 48 <?php endif ?> 49 <?= $content ?> 50 <div class="text-center"> 51 <?php if ($showeventslink) : ?> 52 <a class="formField" href= <?= e(route('module', ['module' => $module, 'action' => $action, 'tree' => $tree->name(), 'parent' => $parent, 'action2' => 'hierarchy-e'])) ?>> 53 <?= I18N::translate('View table of events occurring in %s', $place) ?> 54 </a> 55 | 56 <?php endif ?> 57 58 <a href="<?= e(route('module', ['module' => $module, 'action' => $action, 'tree' => $tree->name(), 'action2' => key($nextaction)])) ?>"> 59 <?= current($nextaction) ?> 60 </a> 61 </div> 62 </div> 63</div> 64 65