xref: /webtrees/resources/views/modules/place-hierarchy/page.phtml (revision b0fcccb03b84c12d54b4ae85014c3af52863d08c)
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
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(), 'parent' => $parent, 'action2' => 'hierarchy-e'])) ?>>
50                    <?= I18N::translate('View table of events occurring in %s', $place) ?>
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