summaryrefslogtreecommitdiff
path: root/resources/views/places-page.phtml
blob: 647c96ec37aa884295c2660d1d10d38d461f7411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php use Fisharebest\Webtrees\I18N; ?>

<div id="place-hierarchy">
    <div class="container">
        <h4><?= $title ?></h4>
        <h5 class="center">
            <?php if ($current) : ?>
                <a href="<?= e(route('place-hierarchy', ['ged' => $tree->name()])) ?>">
                    <?= I18N::translate('World') ?>
                </a>
            <?php else : ?>
                <?= I18N::translate('World') ?>
            <?php endif ?>

            <?php foreach ($breadcrumbs as $item) : ?>
                -
                <a href="<?= e($item->url()) ?>" dir="auto"><?= $item->placeName() ?></a>
            <?php endforeach ?>

            <?php if ($current) : ?>
                - <?= $current->placeName() ?>
            <?php endif ?>
        </h5>
        <?php if ($note) : ?>
            <div class="center small text-muted">
                <?= I18N::translate("Places without valid co-ordinates are not shown on the map and have a red border around the sidebar entry") ?>
            </div>
        <?php endif ?>
        <?= $content ?>
        <div class="center">
            <?php if ($showeventslink) : ?>
                <a class="formField" href= <?= e(route('place-hierarchy', ['ged' => $tree->name(), 'parent' => $parent, 'action' => 'hierarchy-e'])) ?>>
                    <?= I18N::translate('View table of events occurring in %s', $place) ?>
                </a>
                |
            <?php endif ?>

            <a href="<?= e(route('place-hierarchy', ['ged' => $tree->name(), 'action' => key($nextaction)])) ?>">
                <?= current($nextaction) ?>
            </a>
        </div>
    </div>
</div>