1<?php 2 3use Fisharebest\Webtrees\I18N; 4use Fisharebest\Webtrees\Place; 5use Fisharebest\Webtrees\Tree; 6 7/** 8 * @var string $module 9 * @var Tree $tree 10 * @var string $action 11 * @var string $title 12 * @var string $current 13 * @var array $breadcrumbs 14 * @var bool $note 15 * @var string $content 16 * @var bool $showeventslink 17 * @var Place $place 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 45 <?= $content ?> 46 47 <div class="text-center"> 48 <?php if ($showeventslink) : ?> 49 <a class="formField" href= <?= e(route('module', ['module' => $module, 'action' => $action, 'tree' => $tree->name(), 'place_id' => $place->id(), 'action2' => 'hierarchy-e'])) ?>> 50 <?= I18N::translate('View table of events occurring in %s', $place->fullName()) ?> 51 </a> 52 | 53 <?php endif ?> 54 55 <a href="<?= e(route('module', ['module' => $module, 'action' => $action, 'tree' => $tree->name(), 'action2' => key($nextaction)])) ?>"> 56 <?= current($nextaction) ?> 57 </a> 58 </div> 59 </div> 60</div> 61 62