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