Uniformisation body : data-page au lieu de classes par page
Deploy HouseHub / deploy (push) Successful in 2s

- <body data-page="pageName"> uniforme sur toutes les pages
- <main> reçoit la classe module via $mainClass (pas le body)
- home.css : body.pf-home → body[data-page="home"]
- family-calendar.css : .pf-family-calendar .pf-main → .pf-family-calendar.pf-main
- dark-mode.css : mise à jour références body.pf-home

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
perco
2026-05-12 10:36:17 +02:00
co-authored by Claude Sonnet 4.6
parent 63d71ab7e4
commit 1e43f4bdc1
8 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ require_once __DIR__ . '/includes/i18n.php';
// Configuration de la page
$pageTitle = tr('home_title');
$activePage = "home";
$bodyClass = "pf-home"; // Important pour l'image de fond définie dans home.css
// background géré par home.css via body[data-page="home"]
$pageCss = "/modules/home/home.css";
require __DIR__ . '/header.php';
@@ -23,7 +23,7 @@ if ($_fid) {
foreach (glob('/uploads/home_bg_' . $_fid . '.*') as $_f) { $_has_custom_bg = true; break; }
}
if ($_has_custom_bg): ?>
<style>body.pf-home { background-image: url('/home-bg.php?v=<?= filemtime($_f) ?>'); }</style>
<style>body[data-page="home"] { background-image: url('/home-bg.php?v=<?= filemtime($_f) ?>'); }</style>
<?php endif; ?>
<div class="pf-container">