xref: /webtrees/resources/views/modules/pedigree-map/events.phtml (revision b11cdcd45131b1585d66693fab363cfeb18c51a4)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Fact;
6
7/**
8 * @var string $class
9 * @var Fact   $fact
10 * @var string $relationship
11 * @var int    $sosa
12 */
13
14?>
15<div class="d-flex justify-content-between">
16    <div>
17        <div>
18            <a href="#" data-wt-sosa="<?= $sosa ?>">
19                <span class="<?= $class ?>"><?= view('icons/location') ?></span>
20                <?= $relationship ?>
21            </a>
22        </div>
23
24        <?php if ($sosa !== 1) : ?>
25            <a href="<?= e($fact->record()->url()) ?>">
26                <?= $fact->record()->fullName() ?>
27            </a>
28        <?php endif ?>
29
30        <div>
31            <?= $fact->label() ?>: <?= $fact->date()->display($fact->record()->tree()) ?>
32        </div>
33
34        <div>
35            <a href="<?= e($fact->place()->url()) ?>">
36                <?= $fact->place()->fullName() ?>
37            </a>
38        </div>
39    </div>
40    <div class="d-none d-lg-block">
41        <?= $fact->record()->displayImage(40, 50, 'crop', ['class' => 'wt-pedigree-map-thumbnail']) ?>
42    </div>
43</div>
44