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