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