diff options
| author | polo <ordipolo@gmx.fr> | 2025-10-26 22:48:49 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-10-26 22:48:49 +0100 |
| commit | 959527bb712fcd05351d8b4b52ff17786baad454 (patch) | |
| tree | 459f66a07e443a971930e5aa3bce257c33079f20 /src/view/templates | |
| parent | e73ea91a5999dc2cbadc00dfda18c839ef1a158b (diff) | |
| download | cms-959527bb712fcd05351d8b4b52ff17786baad454.zip | |
modification du nom et plus seulement de l'URL des entrées "URL" du menu, header/footer: renommage de classes et input absents du HTML sans être adminHEADmain
Diffstat (limited to 'src/view/templates')
| -rw-r--r-- | src/view/templates/footer.php | 20 | ||||
| -rw-r--r-- | src/view/templates/header.php | 30 |
2 files changed, 21 insertions, 29 deletions
diff --git a/src/view/templates/footer.php b/src/view/templates/footer.php index 4db38ae..dc1c6cb 100644 --- a/src/view/templates/footer.php +++ b/src/view/templates/footer.php | |||
| @@ -4,25 +4,21 @@ | |||
| 4 | <div class="data"> | 4 | <div class="data"> |
| 5 | <div class="contact"> | 5 | <div class="contact"> |
| 6 | <div id="footer_name"> | 6 | <div id="footer_name"> |
| 7 | <span id="footer_name_span"><?= htmlspecialchars($name ?? '') ?></span> | 7 | <span id="footer_name_content"><?= htmlspecialchars($name ?? '') ?></span> |
| 8 | <input type="text" id="footer_name_input" class="hidden" value="<?= htmlspecialchars($name ?? '') ?>" size="30"> | 8 | <?= $admin_footer_name ?> |
| 9 | <?= $buttons_footer_name ?> | ||
| 10 | </div> | 9 | </div> |
| 11 | <div id="footer_address"> | 10 | <div id="footer_address"> |
| 12 | <span id="footer_address_span"><?= htmlspecialchars($address ?? '') ?></span> | 11 | <span id="footer_address_content"><?= htmlspecialchars($address ?? '') ?></span> |
| 13 | <input type="text" id="footer_address_input" class="hidden" value="<?= htmlspecialchars($address ?? '') ?>" size="30"> | 12 | <?= $admin_footer_address ?> |
| 14 | <?= $buttons_footer_address ?> | ||
| 15 | </div> | 13 | </div> |
| 16 | <div id="footer_email"> | 14 | <div id="footer_email"> |
| 17 | <a href="mailto:<?= $email ?>"><span id="footer_email_span"><?= htmlspecialchars($email ?? '') ?></span></a> | 15 | <a id="footer_email_content" href="mailto:<?= $email ?>"><?= htmlspecialchars($email ?? '') ?></a> |
| 18 | <input type="text" id="footer_email_input" class="hidden" value="<?= htmlspecialchars($email ?? '') ?>" size="30"> | 16 | <?= $admin_footer_email ?> |
| 19 | <?= $buttons_footer_email ?> | ||
| 20 | </div> | 17 | </div> |
| 21 | </div> | 18 | </div> |
| 22 | <div id="footer_logo"> | 19 | <div id="footer_logo"> |
| 23 | <a href="<?= new URL ?>"><img id="footer_logo_img" src="<?= $footer_logo ?? '' ?>" alt="logo_alt"></a> | 20 | <a id="footer_logo_content" href="<?= new URL ?>"><img src="<?= $footer_logo ?? '' ?>" alt="logo_alt"></a> |
| 24 | <input type="file" id="footer_logo_input" class="hidden" accept="image/png, image/jpeg, image/gif, image/webp, image/tiff"> | 21 | <?= $admin_footer_logo ?> |
| 25 | <?= $buttons_footer_logo ?> | ||
| 26 | </div> | 22 | </div> |
| 27 | <?php if($_SESSION['admin']){ ?> | 23 | <?php if($_SESSION['admin']){ ?> |
| 28 | <script> | 24 | <script> |
diff --git a/src/view/templates/header.php b/src/view/templates/header.php index ac8af7f..4d3b323 100644 --- a/src/view/templates/header.php +++ b/src/view/templates/header.php | |||
| @@ -5,43 +5,38 @@ | |||
| 5 | <div id="nav_zone"> | 5 | <div id="nav_zone"> |
| 6 | <?= $nav ?> | 6 | <?= $nav ?> |
| 7 | </div> | 7 | </div> |
| 8 | <div class="editing_zone"> | 8 | <div> |
| 9 | <div id="head_favicon" style="margin: <?= $editing_zone_margin ?>;"> | 9 | <div id="head_favicon" style="margin: <?= $editing_zone_margin ?>;"> |
| 10 | <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"> | 10 | <?= $admin_favicon ?> |
| 11 | <?= $buttons_favicon ?> | ||
| 12 | </div> | 11 | </div> |
| 13 | <div id="header_background"> | 12 | <div id="header_background"> |
| 14 | <input type="file" id="header_background_input" class="hidden" accept="image/png, image/jpeg, image/gif, image/webp, image/tiff"> | 13 | <?= $admin_background ?> |
| 15 | <?= $buttons_background ?> | ||
| 16 | </div> | 14 | </div> |
| 17 | </div> | 15 | </div> |
| 18 | <div class="header_content"> | 16 | <div class="header_content"> |
| 19 | <div class="header_left_col"> | 17 | <div class="header_left_col"> |
| 20 | <div id="header_logo"> | 18 | <div id="header_logo"> |
| 21 | <a href="<?= new URL ?>"><img id="header_logo_img" src="<?= $header_logo ?? '' ?>" alt="header_logo"></a> | 19 | <a id="header_logo_content" href="<?= new URL ?>"><img src="<?= $header_logo ?? '' ?>" alt="header_logo"></a> |
| 22 | <input type="file" id="header_logo_input" class="hidden" accept="image/png, image/jpeg, image/gif, image/webp, image/tiff"> | 20 | <?= $admin_header_logo ?> |
| 23 | <?= $buttons_header_logo ?> | ||
| 24 | </div> | 21 | </div> |
| 25 | </div> | 22 | </div> |
| 26 | <div class="nav_button"> | 23 | <div class="nav_button"> |
| 27 | <button>MENU</button> | 24 | <button>MENU</button> |
| 28 | </div> | 25 | </div> |
| 29 | <div class="site_title"> | 26 | <div class="header_center_col"> |
| 30 | <h1 id="header_title"> | 27 | <h1 id="header_title"> |
| 31 | <a href="<?= new URL ?>"><span id="header_title_span"><?= htmlspecialchars($title ?? '') ?></span></a> | 28 | <a id="header_title_content" href="<?= new URL ?>"><?= htmlspecialchars($title ?? '') ?></a></span> |
| 32 | <input type="text" id="header_title_input" class="hidden" value="<?= htmlspecialchars($title ?? '') ?>" size="30"> | 29 | <?= $admin_header_title ?> |
| 33 | <?= $buttons_header_title ?> | ||
| 34 | </h1> | 30 | </h1> |
| 35 | <h2 id="header_description"> | 31 | <h2 id="header_description"> |
| 36 | <span id="header_description_span"><?= htmlspecialchars($description ?? '') ?></span> | 32 | <span id="header_description_content"><?= htmlspecialchars($description ?? '') ?></span> |
| 37 | <input type="text" id="header_description_input" class="hidden" value="<?= htmlspecialchars($description ?? '') ?>" size="30"> | 33 | <?= $admin_header_description ?> |
| 38 | <?= $buttons_header_description ?> | ||
| 39 | </h2> | 34 | </h2> |
| 40 | </div> | 35 | </div> |
| 41 | <div class="header_right_col"> | 36 | <div class="header_right_col"> |
| 42 | <div class="social"> | 37 | <div id="header_social"> |
| 43 | <?= $social_networks ?> | 38 | <?= $social_networks ?> |
| 44 | <?= $buttons_social_networks ?> | 39 | <?= $admin_social_networks ?> |
| 45 | </div> | 40 | </div> |
| 46 | <?= $breadcrumb ?? '' ?> | 41 | <?= $breadcrumb ?? '' ?> |
| 47 | </div> | 42 | </div> |
| @@ -53,6 +48,7 @@ | |||
| 53 | let header_logo = new InputFile('header_logo'); | 48 | let header_logo = new InputFile('header_logo'); |
| 54 | let header_title = new InputText('header_title'); | 49 | let header_title = new InputText('header_title'); |
| 55 | let header_description = new InputText('header_description'); | 50 | let header_description = new InputText('header_description'); |
| 51 | let header_social = new InputFile('header_social'); | ||
| 56 | </script> | 52 | </script> |
| 57 | <?php } ?> | 53 | <?php } ?> |
| 58 | </header> \ No newline at end of file | 54 | </header> \ No newline at end of file |
