diff options
| author | polo <ordipolo@gmx.fr> | 2025-11-07 10:58:17 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-11-07 10:58:17 +0100 |
| commit | 63c37a85fc59bd8183ba22c9a87268df9cda25be (patch) | |
| tree | fba197addd021c5e36ed5a5ad218259b3e52b747 | |
| parent | 3855f2dc3a0c1781cac46067351e2b7cbd8bf7c2 (diff) | |
| download | cms-63c37a85fc59bd8183ba22c9a87268df9cda25be.tar.gz cms-63c37a85fc59bd8183ba22c9a87268df9cda25be.tar.bz2 cms-63c37a85fc59bd8183ba22c9a87268df9cda25be.zip | |
petit oubli
| -rw-r--r-- | src/model/Path.php | 2 | ||||
| -rw-r--r-- | src/view/HeaderBuilder.php | 8 | ||||
| -rw-r--r-- | src/view/templates/header.php | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/model/Path.php b/src/model/Path.php index 0b4bb67..4303952 100644 --- a/src/model/Path.php +++ b/src/model/Path.php | |||
| @@ -51,8 +51,6 @@ class Path extends Page | |||
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | // rien trouvé | 53 | // rien trouvé |
| 54 | // pas parfait, échoue si le premier enfant de "children" n'est pas au premier niveau | ||
| 55 | // est-ce que ça peut arriver? | ||
| 56 | header('Location: '. new URL(['page' => Model::$menu->getChildren()[0]->getEndOfPath()])); | 54 | header('Location: '. new URL(['page' => Model::$menu->getChildren()[0]->getEndOfPath()])); |
| 57 | die; | 55 | die; |
| 58 | } | 56 | } |
diff --git a/src/view/HeaderBuilder.php b/src/view/HeaderBuilder.php index c36f6a5..6934e10 100644 --- a/src/view/HeaderBuilder.php +++ b/src/view/HeaderBuilder.php | |||
| @@ -54,11 +54,11 @@ class HeaderBuilder extends AbstractBuilder | |||
| 54 | // boutons mode admin | 54 | // boutons mode admin |
| 55 | if($_SESSION['admin']){ | 55 | if($_SESSION['admin']){ |
| 56 | // assets dans classe header_additional_inputs | 56 | // assets dans classe header_additional_inputs |
| 57 | $admin_favicon = '<input type="file" id="head_favicon_input" class="hidden" accept="image/png, image/jpeg, image/gif, image/webp, image/tiff, image/x-icon, image/bmp"> | 57 | $admin_head_favicon = '<input type="file" id="head_favicon_input" class="hidden" accept="image/png, image/jpeg, image/gif, image/webp, image/tiff, image/x-icon, image/bmp"> |
| 58 | <button id="head_favicon_open" onclick="head_favicon.open()"><img id="head_favicon_content" class="action_icon"> Favicon</button> | 58 | <button id="head_favicon_open" onclick="head_favicon.open()"><img id="head_favicon_content" class="action_icon"> Favicon</button> |
| 59 | <img id="head_favicon_submit" class="action_icon hidden" src="assets/save.svg" onclick="head_favicon.submit()"> | 59 | <img id="head_favicon_submit" class="action_icon hidden" src="assets/save.svg" onclick="head_favicon.submit()"> |
| 60 | <img id="head_favicon_cancel" class="action_icon hidden" src="assets/close.svg" onclick="head_favicon.cancel()">'; | 60 | <img id="head_favicon_cancel" class="action_icon hidden" src="assets/close.svg" onclick="head_favicon.cancel()">'; |
| 61 | $admin_background = '<input type="file" id="header_background_input" class="hidden" accept="image/png, image/jpeg, image/gif, image/webp, image/tiff"> | 61 | $admin_header_background = '<input type="file" id="header_background_input" class="hidden" accept="image/png, image/jpeg, image/gif, image/webp, image/tiff"> |
| 62 | <button id="header_background_open" onclick="header_background.open()"><img id="header_background_content" class="background_button" src="' . $header_background . '"> Image de fond</button> | 62 | <button id="header_background_open" onclick="header_background.open()"><img id="header_background_content" class="background_button" src="' . $header_background . '"> Image de fond</button> |
| 63 | <img id="header_background_submit" class="action_icon hidden" src="assets/save.svg" onclick="header_background.submit()"> | 63 | <img id="header_background_submit" class="action_icon hidden" src="assets/save.svg" onclick="header_background.submit()"> |
| 64 | <img id="header_background_cancel" class="action_icon hidden" src="assets/close.svg" onclick="header_background.cancel()">'; | 64 | <img id="header_background_cancel" class="action_icon hidden" src="assets/close.svg" onclick="header_background.cancel()">'; |
| @@ -100,8 +100,8 @@ class HeaderBuilder extends AbstractBuilder | |||
| 100 | } | 100 | } |
| 101 | } | 101 | } |
| 102 | else{ | 102 | else{ |
| 103 | $admin_favicon = ''; | 103 | $admin_head_favicon = ''; |
| 104 | $admin_background = ''; | 104 | $admin_header_background = ''; |
| 105 | $admin_header_logo = ''; | 105 | $admin_header_logo = ''; |
| 106 | $admin_header_title = ''; | 106 | $admin_header_title = ''; |
| 107 | $admin_header_description = ''; | 107 | $admin_header_description = ''; |
diff --git a/src/view/templates/header.php b/src/view/templates/header.php index a2d472d..ba17dcd 100644 --- a/src/view/templates/header.php +++ b/src/view/templates/header.php | |||
| @@ -7,10 +7,10 @@ | |||
| 7 | </div> | 7 | </div> |
| 8 | <div class="header_additional_inputs"> | 8 | <div class="header_additional_inputs"> |
| 9 | <div id="head_favicon"> | 9 | <div id="head_favicon"> |
| 10 | <?= $admin_favicon ?> | 10 | <?= $admin_head_favicon ?> |
| 11 | </div> | 11 | </div> |
| 12 | <div id="header_background"> | 12 | <div id="header_background"> |
| 13 | <?= $admin_background ?> | 13 | <?= $admin_header_background ?> |
| 14 | </div> | 14 | </div> |
| 15 | </div> | 15 | </div> |
| 16 | <div class="header_content"> | 16 | <div class="header_content"> |
