xref: /webtrees/resources/views/modules/place-hierarchy/popup.phtml (revision abbc0e6b12d5640a6e1ebb544ed0d310dfa08d83)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Place;
6use Fisharebest\Webtrees\I18N;
7
8/**
9 * @var string $edit_url
10 * @var Place  $place
11 * @var string $latitude
12 * @var string $longitude
13 * @var bool   $showlink
14 */
15?>
16<div dir="auto" class="label">
17    <?php if ($showlink) : ?>
18        <a href="<?= e($place->url()) ?>">
19            <?= $place->placeName() ?>
20        </a>
21    <?php else : ?>
22        <?= $place->placeName() ?>
23    <?php endif ?>
24
25    <?php if ($edit_url !== '') : ?>
26        <a href="<?= e($edit_url) ?>"><?= view('icons/edit') ?></a>
27    <?php endif ?>
28
29    <table class="table table-borderless">
30        <tr>
31            <th scope="row" class="p-0"><?= I18N::translate('Latitude') ?></th>
32            <td class="p-0 align-digits"><?= $latitude ?></td>
33        </tr>
34        <tr>
35            <th scope="row" class="p-0"><?= I18N::translate('Longitude') ?></th>
36            <td class="p-0 align-digits"><?= $longitude ?></td>
37        </tr>
38    </table>
39</div>
40