diff options
| author | polo <ordipolo@gmx.fr> | 2025-10-28 10:11:08 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-10-28 10:11:08 +0100 |
| commit | 0ac8f8d12f117e458271c961b303d3c47f4ead9d (patch) | |
| tree | 30dcd78bef194c4366f8e70c4bf85d3eba3609b9 /src/view/templates/header.php | |
| parent | 959527bb712fcd05351d8b4b52ff17786baad454 (diff) | |
| download | cms-0ac8f8d12f117e458271c961b303d3c47f4ead9d.zip | |
classes Input plus adaptables, séparation des rôles
Diffstat (limited to 'src/view/templates/header.php')
| -rw-r--r-- | src/view/templates/header.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/view/templates/header.php b/src/view/templates/header.php index 4d3b323..9c74f9b 100644 --- a/src/view/templates/header.php +++ b/src/view/templates/header.php | |||
| @@ -5,8 +5,8 @@ | |||
| 5 | <div id="nav_zone"> | 5 | <div id="nav_zone"> |
| 6 | <?= $nav ?> | 6 | <?= $nav ?> |
| 7 | </div> | 7 | </div> |
| 8 | <div> | 8 | <div class="header_additional_inputs"> |
| 9 | <div id="head_favicon" style="margin: <?= $editing_zone_margin ?>;"> | 9 | <div id="head_favicon"> |
| 10 | <?= $admin_favicon ?> | 10 | <?= $admin_favicon ?> |
| 11 | </div> | 11 | </div> |
| 12 | <div id="header_background"> | 12 | <div id="header_background"> |
| @@ -16,7 +16,7 @@ | |||
| 16 | <div class="header_content"> | 16 | <div class="header_content"> |
| 17 | <div class="header_left_col"> | 17 | <div class="header_left_col"> |
| 18 | <div id="header_logo"> | 18 | <div id="header_logo"> |
| 19 | <a id="header_logo_content" href="<?= new URL ?>"><img src="<?= $header_logo ?? '' ?>" alt="header_logo"></a> | 19 | <a href="<?= new URL ?>"><img id="header_logo_content" src="<?= $header_logo ?? '' ?>" alt="header_logo"></a> |
| 20 | <?= $admin_header_logo ?> | 20 | <?= $admin_header_logo ?> |
| 21 | </div> | 21 | </div> |
| 22 | </div> | 22 | </div> |
| @@ -25,7 +25,7 @@ | |||
| 25 | </div> | 25 | </div> |
| 26 | <div class="header_center_col"> | 26 | <div class="header_center_col"> |
| 27 | <h1 id="header_title"> | 27 | <h1 id="header_title"> |
| 28 | <a id="header_title_content" href="<?= new URL ?>"><?= htmlspecialchars($title ?? '') ?></a></span> | 28 | <a id="header_title_content" href="<?= new URL ?>"><?= htmlspecialchars($title ?? '') ?></a> |
| 29 | <?= $admin_header_title ?> | 29 | <?= $admin_header_title ?> |
| 30 | </h1> | 30 | </h1> |
| 31 | <h2 id="header_description"> | 31 | <h2 id="header_description"> |
| @@ -35,7 +35,9 @@ | |||
| 35 | </div> | 35 | </div> |
| 36 | <div class="header_right_col"> | 36 | <div class="header_right_col"> |
| 37 | <div id="header_social"> | 37 | <div id="header_social"> |
| 38 | <?= $social_networks ?> | 38 | <div id="header_social_content"> |
| 39 | <?= $social_networks ?> | ||
| 40 | </div> | ||
| 39 | <?= $admin_social_networks ?> | 41 | <?= $admin_social_networks ?> |
| 40 | </div> | 42 | </div> |
| 41 | <?= $breadcrumb ?? '' ?> | 43 | <?= $breadcrumb ?? '' ?> |
| @@ -43,12 +45,12 @@ | |||
| 43 | </div> | 45 | </div> |
| 44 | <?php if($_SESSION['admin']){ ?> | 46 | <?php if($_SESSION['admin']){ ?> |
| 45 | <script> | 47 | <script> |
| 46 | let head_favicon = new InputFile('head_favicon'); | 48 | let head_favicon = new InputFileFavicon('head_favicon'); |
| 47 | let header_background = new InputFile('header_background'); | 49 | let header_background = new InputFileHeaderBackground('header_background'); |
| 48 | let header_logo = new InputFile('header_logo'); | 50 | let header_logo = new InputFile('header_logo'); |
| 49 | let header_title = new InputText('header_title'); | 51 | let header_title = new InputText('header_title'); |
| 50 | let header_description = new InputText('header_description'); | 52 | let header_description = new InputText('header_description'); |
| 51 | let header_social = new InputFile('header_social'); | 53 | let header_social = new InputToggler('header_social'); |
| 52 | </script> | 54 | </script> |
| 53 | <?php } ?> | 55 | <?php } ?> |
| 54 | </header> \ No newline at end of file | 56 | </header> \ No newline at end of file |
