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