This commit is contained in:
BlackAngelTV committed 2026-09-25 07:32:18 +02:00
commit ffc80f619b
7 files changed
+394 -17

No files matched your search

+11 -1
View File
@@ -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';
@@ -275,10 +277,18 @@ function fws_site_active(string $route, string $prefix): string
<a href="https://discord.gg/6mnpPr2jq4" target="_blank" rel="noopener noreferrer">Discord</a>
</section>
<section aria-label="Informations légales">
<h2>Légal</h2>
<a href="<?= e(fws_url('/?p/mentions-legales/')) ?>">Mentions légales</a>
<a href="<?= e(fws_url('/?p/conditions/')) ?>">Conditions d'utilisation</a>
<a href="<?= e(fws_url('/?p/confidentialite/')) ?>">Confidentialité</a>
</section>
</div>
<div class="footer-bottom">
<p>&copy; <?= date('Y') ?> FWS Linux</p>
<p class="footer-hosting">Powered by <a href="https://zi-host.ch" target="_blank" rel="noopener noreferrer">ZI-HOST.ch</a></p>
</div>
</div>
</footer>