summaryrefslogtreecommitdiff
path: root/resources/views/modules/pedigree-map/events.phtml
blob: 2e071a09f75a3e4479370e876e0efd34f72325d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php

declare(strict_types=1);

use Fisharebest\Webtrees\Fact;

/**
 * @var string $class
 * @var Fact   $fact
 * @var string $relationship
 * @var int    $sosa
 */

?>
<div class="d-flex justify-content-between">
    <div>
        <div>
            <a href="#" data-wt-sosa="<?= $sosa ?>">
                <span class="<?= $class ?>"><?= view('icons/location') ?></span>
                <?= $relationship ?>
            </a>
        </div>

        <div>
            <a href="<?= e($fact->record()->url()) ?>">
                <?= $fact->record()->fullName() ?>
            </a>
        </div>

        <div>
            <?= $fact->label() ?>: <?= $fact->date()->display($fact->record()->tree()) ?>
        </div>

        <div>
            <?= $fact->place()->fullName(true) ?>
        </div>
    </div>
    <div class="d-none d-lg-block">
        <?= $fact->record()->displayImage(40, 50, 'crop', ['class' => 'wt-pedigree-map-thumbnail']) ?>
    </div>
</div>