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