diff --git a/Vue/gabarit.php b/Vue/gabarit.php index f53f2394..968e895d 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -1,13 +1,20 @@ get_full_path($activeLink); -$fullPath = explode("\ ", $fullPath); +$current_url = $_SERVER['REQUEST_URI']; +$elements = explode('/', $current_url); +$activeLink = $elements[1]; +$fullPath = $gabary->get_full_path($activeLink); +$fullPath = explode('\ ', $fullPath); $activeLevel1 = $activeLink; $activeLevel2 = sizeof($fullPath) > 1 ? $fullPath[1] : ''; @@ -17,43 +24,133 @@ $activeLevel5 = sizeof($fullPath) > 4 ? $fullPath[4] : ''; $_SESSION['firstLevelMenu'] = $activeLink; -const MAX_COMPANY_NAME_LENGTH = 20; +/* ── Constantes ── */ +defined('MAX_COMPANY_NAME_LENGTH') || define('MAX_COMPANY_NAME_LENGTH', 20); +defined('APP_VERSION') || define('APP_VERSION', date('YmdHi')); -$companyDisplayName = htmlspecialchars($_SESSION['nomSociete'], ENT_QUOTES); -$modeDev = $_SESSION['modeDev_C']; -$imgData = $_SESSION['photoAssureCrypte']; +/* ── Variables de présentation ── */ +$companyDisplayName = htmlspecialchars($_SESSION['nomSociete'] ?? '', ENT_QUOTES); +$modeDev = $_SESSION['modeDev_C']; +$imgData = $_SESSION['photoAssureCrypte']; +/* ── Infos de la vue ── */ $infovue = $gabary->getInfosVue($_SESSION['vue']); - -$_SESSION['descriptionVue'] = est_anglophone() ? $infovue['DescriptionEng'] : $infovue['Description']; -$_SESSION['titreRetour'] = est_anglophone() ? $infovue['titreRetourEng'] : $infovue['titreRetour']; +$_SESSION['descriptionVue'] = est_anglophone() ? $infovue['DescriptionEng'] : $infovue['Description']; +$_SESSION['titreRetour'] = est_anglophone() ? $infovue['titreRetourEng'] : $infovue['titreRetour']; $_SESSION['retourVue'] = $infovue['lienRetour']; - -// Pour l'exemple, on désactive le mode test, mais vous pouvez le laisser dynamique -$_SESSION['bdTests_C'] = "0"; +$descriptionVue = $_SESSION['descriptionVue']; ?> - - - - - - - - - + - - - + + + + + - -
- -
+ + - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <?= htmlspecialchars($_SESSION['descriptionVue'] ?? '', ENT_QUOTES) ?> + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+ + + + + +
+
+
+ + + +
+
+
+
+ +
+
+ +
+ + + + + + + + diff --git a/Vue/includes/barre-contexte.php b/Vue/includes/barre-contexte.php index 223b0ddd..e8589868 100644 --- a/Vue/includes/barre-contexte.php +++ b/Vue/includes/barre-contexte.php @@ -1,116 +1,239 @@ - - - -
-
- -
-
- -
+ + +
+ diff --git a/Vue/includes/header.php b/Vue/includes/header.php index ddb26506..b168c8cc 100644 --- a/Vue/includes/header.php +++ b/Vue/includes/header.php @@ -1,101 +1,150 @@ MODE TEST'; +} ?> - \ No newline at end of file + + + + + + + + + + + + + diff --git a/Vue/includes/scripts-footer.php b/Vue/includes/scripts-footer.php index 07d5cc7f..44501be1 100644 --- a/Vue/includes/scripts-footer.php +++ b/Vue/includes/scripts-footer.php @@ -1,164 +1,171 @@ - + + - - - + + - + + + + + + + + + + - - - - + - - + - + - - - - + - + - + - - + + + + + + + + + + + + + - - + + - - - -
- - - - - - -
+ + - - - +
- - - - - - - - \ No newline at end of file + /* Sidebar toggle body class */ + body.toggle-sidebar #sidebar { width: var(--sidebar-collapsed, 68px); } + body.toggle-sidebar #sidebar .nav-link span, + body.toggle-sidebar #sidebar .nav-link .bi-chevron-down, + body.toggle-sidebar #sidebar .sidebar-section-label { display: none; } + body.toggle-sidebar #main { margin-left: var(--sidebar-collapsed, 68px); } + body.toggle-sidebar #sidebar .nav-link { justify-content: center; padding: 10px; } + body.toggle-sidebar #sidebar .nav-link i:first-child { font-size: 1.2rem; width: auto; } + body.toggle-sidebar #sidebar .nav-content { display: none !important; } + + + + diff --git a/Vue/includes/sidebar.php b/Vue/includes/sidebar.php index e553c8ee..6ad82c06 100644 --- a/Vue/includes/sidebar.php +++ b/Vue/includes/sidebar.php @@ -1,47 +1,91 @@ - \ No newline at end of file + + + + +