xref: /webtrees/resources/views/modules/privacy-policy/page.phtml (revision 78606cf427772fbdc5222ff607ee23f43078f94b)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Contracts\UserInterface;
6use Fisharebest\Webtrees\I18N;
7use Fisharebest\Webtrees\Module\ModuleAnalyticsInterface;
8use Illuminate\Support\Collection;
9
10/**
11 * @var Collection<int,UserInterface>            $administrators
12 * @var Collection<int,ModuleAnalyticsInterface> $analytics
13 * @var string                                   $title
14 */
15
16?>
17
18<h2><?= $title ?></h2>
19
20<h3><?= I18N::translate('Personal data') ?></h3>
21
22<ul>
23    <li>
24        <?= I18N::translate('This website processes personal data for the purpose of historical and genealogical research.') ?>
25    </li>
26    <li>
27        <?= I18N::translate('This research is a “legitimate interest” under article 6(f) of the EU General Data Protection Regulations.') ?>
28    </li>
29</ul>
30
31<h3><?= I18N::translate('Cookies') ?></h3>
32
33<ul>
34    <li>
35        <?= I18N::translate('This website uses cookies to enable login sessions, and to remember preferences such as your chosen language.') ?>
36    </li>
37    <li>
38        <?= I18N::translate('These cookies are “essential”, and do not require consent.') ?>
39    </li>
40</ul>
41
42<?php if ($analytics->isNotEmpty()) : ?>
43    <h3><?= I18N::translate('Tracking and analytics') ?></h3>
44
45    <ul>
46        <li>
47            <?= I18N::translate('This website uses third-party services to learn about visitor behavior.') ?>
48            <ul>
49                <?php foreach ($analytics as $module) : ?>
50                    <li>
51                        <?= $module->title() ?>52                        <a href="<?= e($module->externalUrl()) ?>"><?= e($module->externalUrl()) ?></a>
53                    </li>
54                <?php endforeach ?>
55            </ul>
56        </li>
57
58        <li>
59            <?= I18N::translate('These services may use cookies or other tracking technology.') ?>
60        </li>
61
62        <li>
63            <?= I18N::translate('You can opt out of tracking by setting the “Do Not Track” header in your browser preferences.') ?>
64        </li>
65    </ul>
66<?php endif ?>
67
68<h3><?= I18N::translate('Data controller') ?></h3>
69
70<ul>
71    <li>
72        <?= I18N::translate('This website is operated by the following individuals.') ?>
73
74        <ul>
75            <?php foreach ($administrators as $administrator) : ?>
76                <li>
77                    <?= e($administrator->realName()) ?>78                    <a href="mailto:<?= e($administrator->email()) ?>"><?= e($administrator->email()) ?></a>
79
80
81                </li>
82            <?php endforeach ?>
83        </ul>
84
85    </li>
86</ul>
87
88