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