xref: /webtrees/resources/views/modules/pedigree-map/events.phtml (revision 1270d2767576ed4a83917769b0ee3613e3b010bf)
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        <div>
25            <a href="<?= e($fact->record()->url()) ?>">
26                <?= $fact->record()->fullName() ?>
27            </a>
28        </div>
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