-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
104 lines (99 loc) · 4.57 KB
/
header.php
File metadata and controls
104 lines (99 loc) · 4.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.farbmodus--hell {
--akzent: <?php echo get_theme_mod('gymwuetimes_farben_akzent_hell', '#f1c85c'); ?>;
--kontrast: <?php echo get_theme_mod('gymwuetimes_farben_akzent_dunkel', '#5ba44f'); ?>;
--hintergrund: white;
--text: black;
--schatten: gray;
--dezent: #ddd;
--dezenter: #eee;
--grau: #777;
--suche: #eee;
--suche-aktiv: #fff;
}
.farbmodus--dunkel {
--akzent: <?php echo get_theme_mod('gymwuetimes_farben_akzent_dunkel', '#5ba44f'); ?>;
--kontrast: <?php echo get_theme_mod('gymwuetimes_farben_akzent_hell', '#f1c85c'); ?>;
--hintergrund: #181818;
--text: white;
--schatten: black;
--dezent: #222;
--dezenter: #222;
--grau: #888;
--suche: #333;
--suche-aktiv: #444;
}
</style>
<?php wp_head(); ?>
</head>
<body class="farbmodus--hell">
<script>
farbmodus = "hell";
body = document.querySelector("body");
if (localStorage.farbmodus == "dunkel") {
farbmodusWechseln();
}
</script>
<div class="seitenleiste seitenleiste--versteckt">
<!-- <button class="seitenleiste__umschalten" onclick="seitenleisteEinfahren()"><i class="fas fa-chevron-left"></i></button> -->
<a href="<?php echo get_bloginfo( 'wpurl' );?>" class="seitenleiste__start-link">
<img src="<?php echo get_bloginfo('template_directory'); ?>/logo.svg" class="seitenleiste__logo"
alt="<?php echo get_bloginfo( 'name' ); ?>: <?php echo get_bloginfo( 'description' ); ?>"
title="<?php echo get_bloginfo( 'name' ); ?>: <?php echo get_bloginfo( 'description' ); ?>"
height="130px">
</a>
<form role="search" method="get" id="searchform" action="<?php echo get_bloginfo( 'wpurl' );?>" class="seitenleiste__suche">
<input type="text" placeholder="Suchen" spellcheck="false" name="s" id="s" autocomplete="off"
value="<?php echo get_search_query(); ?>" class="seitenleiste__suche__suchfeld">
<button type="submit" id="searchsubmit" class="seitenleiste__suche__button" aria-label="Suchen"><i class="fas fa-search"></i></button>
</form>
<nav class="seitenleiste__nav">
<?php wp_nav_menu( array(
"menu" => "Seiten",
"container" => 0,
"menu_class" => "seitenleiste__nav__liste"
) ); ?>
</nav>
<div class="seitenleiste__buttons">
<a href="https://instagram.com/sz.gwt">
<div class="seitenleiste__buttons__instagram">
<i class="fab fa-instagram"></i>
</div>
</a>
<div class="seitenleiste__buttons__dark-mode" onclick="farbmodusWechseln()">
<i class="fas fa-adjust"></i>
</div>
</div>
<footer class="seitenleiste__footer">
© <?php echo get_bloginfo( 'name' ); ?> <?php echo date("Y"); ?><br/>
<?php wp_nav_menu( array(
"menu" => "Rechtliches",
"container" => 0,
"after" => "<span> | </span>",
) ); ?>
</footer>
</div>
<div class="inhalt">
<div class="inhalt__mobil-header mobile-only">
<!-- Logo mobil -->
<a href="<?php echo get_bloginfo( 'wpurl' );?>">
<img src="<?php echo get_bloginfo('template_directory'); ?>/logo.svg" class="seitenleiste__logo"
alt="<?php echo get_bloginfo( 'name' ); ?>: <?php echo get_bloginfo( 'description' ); ?>"
title="<?php echo get_bloginfo( 'name' ); ?>: <?php echo get_bloginfo( 'description' ); ?>">
</a>
<div class="inhalt__mobil-header__nav">
<button class="inhalt__mobil-header__nav__button inhalt__mobil-header__nav__button--menu" onclick="seitenleisteZeigen()">
<i class="fas fa-bars"></i>
<span class="font1">Menü</span>
</button>
<button class="inhalt__mobil-header__nav__button inhalt__mobil-header__nav__button--share" onclick="share()">
<i class="fas fa-share-alt"></i>
</button>
</div>
<div class="inhalt__overlay" onclick="seitenleisteVerstecken()"></div>
</div>