aboutsummaryrefslogtreecommitdiff
path: root/src/View/templates/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/View/templates/header.php')
-rw-r--r--src/View/templates/header.php58
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
2declare(strict_types=1);
3use 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