forked from FWS/FWS-TEMPLATE-Website-OnePage
feat(pages): add legal pages for Swiss compliance
Mentions légales, conditions d'utilisation and privacy policy pages, built for Swiss law (LPD) and the Zi-Host hosting situation. Shared legal.css styling and new routes registered in the front controller.
This commit is contained in:
5 files changed
+348
-1
No files matched your search
@@ -63,7 +63,7 @@ if (preg_match('/^paquets\/(\d+)$/', $route, $m)) {
|
||||
$route = 'paquets/_detail';
|
||||
$pageFile = __DIR__ . '/p/paquets/detail.php';
|
||||
} else {
|
||||
$known = ['index', 'dl', 'paquets', 'equipe', 'contact'];
|
||||
$known = ['index', 'dl', 'paquets', 'equipe', 'contact', 'mentions-legales', 'conditions', 'confidentialite'];
|
||||
if (in_array($route, $known, true)) {
|
||||
$pageFile = __DIR__ . '/p/' . $route . '/index.php';
|
||||
}
|
||||
@@ -122,6 +122,8 @@ if ($title === null) {
|
||||
$labels = [
|
||||
'index' => 'Accueil', 'dl' => 'Téléchargements', 'paquets' => 'Paquets',
|
||||
'paquets/_detail' => 'Paquet', 'equipe' => "L'équipe", 'contact' => 'Contact',
|
||||
'mentions-legales' => 'Mentions légales', 'conditions' => "Conditions d'utilisation",
|
||||
'confidentialite' => 'Confidentialité',
|
||||
];
|
||||
$label = $labels[$route] ?? 'FWS Linux';
|
||||
$title = $label . ' | FWS Linux';
|
||||
@@ -263,6 +265,7 @@ function fws_site_active(string $route, string $prefix): string
|
||||
<a href="https://github.com/You-re-like-Windows-a-bitch/ISO" target="_blank" rel="noopener noreferrer">GitHub</a>
|
||||
<a href="https://discord.gg/6mnpPr2jq4" target="_blank" rel="noopener noreferrer">Discord</a>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-bottom">
|
||||
|
||||
Reference in new issue
Block a user