xref: /webtrees/resources/views/modules/places/event-sidebar.phtml (revision 1ff45046fabc22237b5d0d8e489c96f031fc598d)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Place;
6
7/**
8 * @var string $name
9 * @var Place $place
10 * @var string $tag
11 * @var string $url
12 * @var string $value
13 * @var string $date
14 */
15
16?>
17
18<div class="label">
19    <?= $tag ?>
20</div>
21
22<div>
23    <?= $date ?>
24</div>
25
26<?php if ($url !== '') : ?>
27    <a href="<?= e($url) ?>">
28        <?= $name ?>
29    </a>
30<?php endif ?>
31
32<?php if ($value !== '') : ?>
33    <span>
34        <?= $value ?>
35    </span>
36<?php endif ?>
37
38<?php if ($place->gedcomName() !== '') : ?>
39    <div>
40        <?= $place->fullName(true) ?>
41    </div>
42<?php endif ?>
43