diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-23 00:47:32 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-23 00:47:32 +0200 |
| commit | f27cca08ff786ceff1870147f6d6bad14d71117f (patch) | |
| tree | d36597a72025313d6faf4ed228755fa267ebe2f6 /src/View/templates/header.php | |
| parent | c7309f900ef05bd5cb313110ec159b761af394ec (diff) | |
| download | cms-f27cca08ff786ceff1870147f6d6bad14d71117f.tar.gz cms-f27cca08ff786ceff1870147f6d6bad14d71117f.tar.bz2 cms-f27cca08ff786ceff1870147f6d6bad14d71117f.zip | |
dossiers avec majuscule, namespace pour toutes les classes, autoload psr-4, UserDataService::createZip déplacé dans Backup
Diffstat (limited to 'src/View/templates/header.php')
| -rw-r--r-- | src/View/templates/header.php | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/View/templates/header.php b/src/View/templates/header.php new file mode 100644 index 0000000..08bc478 --- /dev/null +++ b/src/View/templates/header.php | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | <?php | ||
| 2 | declare(strict_types=1); | ||
| 3 | use App\Service\URL; | ||
| 4 | ?> | ||
| 5 | <body> | ||
| 6 | <div> | ||
| 7 | <header style="background-image: url('<?= $header_background ?? '' ?>');"> | ||
| 8 | <div id="nav_zone"> | ||
| 9 | <div class="nav_button"> | ||
| 10 | <button onclick="toggleTouchMenu()">MENU</button> | ||
| 11 | </div> | ||
| 12 | <?= $nav ?> | ||
| 13 | </div> | ||
| 14 | <div class="header_above"> | ||
| 15 | <div id="head_favicon"> | ||
| 16 | <?= $admin_head_favicon ?> | ||
| 17 | </div> | ||
| 18 | <div id="header_background"> | ||
| 19 | <?= $admin_header_background ?> | ||
| 20 | </div> | ||
| 21 | </div> | ||
| 22 | <div class="header_content"> | ||
| 23 | <div class="header_left_col"> | ||
| 24 | <div id="header_logo"> | ||
| 25 | <a href="<?= new URL ?>"><img id="header_logo_content" src="<?= $header_logo ?? '' ?>" alt=""></a> | ||
| 26 | <?= $admin_header_logo ?> | ||
| 27 | </div> | ||
| 28 | </div> | ||
| 29 | <div class="header_center_col"> | ||
| 30 | <h1 id="header_title"> | ||
| 31 | <a id="header_title_content" href="<?= new URL ?>"><?= htmlspecialchars($title ?? '') ?></a> | ||
| 32 | <?= $admin_header_title ?> | ||
| 33 | </h1> | ||
| 34 | <h2 id="header_description"> | ||
| 35 | <span id="header_description_content"><?= htmlspecialchars($description ?? '') ?></span> | ||
| 36 | <?= $admin_header_description ?> | ||
| 37 | </h2> | ||
| 38 | </div> | ||
| 39 | <div class="header_right_col"> | ||
| 40 | <div id="header_social"> | ||
| 41 | <div id="header_social_content"> | ||
| 42 | <?= $social_networks ?> | ||
| 43 | </div> | ||
| 44 | </div> | ||
| 45 | <?= $breadcrumb ?? '' ?> | ||
| 46 | </div> | ||
| 47 | </div> | ||
| 48 | <?php if(IS_ADMIN){ ?> | ||
| 49 | <script> | ||
| 50 | document.getElementById("head_favicon_content").src = window.Config.favicon; | ||
| 51 | let head_favicon = new InputFileFavicon('head_favicon'); | ||
| 52 | let header_background = new InputFileHeaderBackground('header_background'); | ||
| 53 | let header_logo = new InputFile('header_logo'); | ||
| 54 | let header_title = new InputText('header_title'); | ||
| 55 | let header_description = new InputText('header_description'); | ||
| 56 | </script> | ||
| 57 | <?php } ?> | ||
| 58 | </header> \ No newline at end of file | ||
