1b3a775f6SGreg Roach<?php 2b3a775f6SGreg Roach 3b3a775f6SGreg Roachuse Fisharebest\Webtrees\I18N; 4b3a775f6SGreg Roachuse Fisharebest\Webtrees\View; 5b3a775f6SGreg Roach 6b3a775f6SGreg Roach?> 7b3a775f6SGreg Roach 8b3a775f6SGreg Roach<div class="wt-footer wt-footer-privacy-policy text-center py-2"> 9b3a775f6SGreg Roach <a href="<?= e(route('module', ['module' => 'privacy-policy', 'action' => 'Page', 'tree' => $tree->name()])) ?>"> 10b3a775f6SGreg Roach <?= I18N::translate('Privacy policy') ?> 11b3a775f6SGreg Roach </a> 12b3a775f6SGreg Roach 13b3a775f6SGreg Roach <?php if ($uses_analytics): ?> 14b3a775f6SGreg Roach <div class="alert alert-info alert-dismissible fade" id="cookie-warning"> 15b3a775f6SGreg Roach <?= I18N::translate('This website uses cookies to learn about visitor behavior.') ?> 16b3a775f6SGreg Roach 17b3a775f6SGreg Roach <button type="button" id="cookie-warning-button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>"> 18b3a775f6SGreg Roach <span aria-hidden="true">×</span> 19b3a775f6SGreg Roach </button> 20b3a775f6SGreg Roach </div> 21b3a775f6SGreg Roach 22b3a775f6SGreg Roach <?php View::push('javascript') ?> 23b3a775f6SGreg Roach <script> 24b3a775f6SGreg Roach if (localStorage.getItem("cookie-warning") !== "ok") { 25b3a775f6SGreg Roach document.getElementById("cookie-warning").classList.add("show"); 26b3a775f6SGreg Roach } 27b3a775f6SGreg Roach document.getElementById("cookie-warning-button").addEventListener("click", function () { 28b3a775f6SGreg Roach localStorage.setItem("cookie-warning", "ok"); 29*8e24c0d4SGreg Roach }); 30b3a775f6SGreg Roach </script> 31b3a775f6SGreg Roach <?php View::endpush() ?> 32*8e24c0d4SGreg Roach <?php endif ?> 33*8e24c0d4SGreg Roach</div> 34b3a775f6SGreg Roach 35b3a775f6SGreg Roach 36