-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
113 lines (98 loc) · 3.63 KB
/
header.php
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
105
106
107
108
109
110
111
112
113
<?php
if (get_field('title')) {
$title = get_field('title') . ' – ' . get_bloginfo('name');
} else {
$title = get_the_title() . ' – ' . get_bloginfo('name');
}
?>
<!doctype html>
<html <?php language_attributes();?> class="no-js">
<head>
<meta charset="<?php bloginfo('charset');?>">
<title><?php echo $title; ?></title>
<link href="//www.google-analytics.com" rel="dns-prefetch">
<link href="<?php echo esc_url(get_template_directory_uri()); ?>/assets/img/favicon.ico" rel="shortcut icon">
<link href="/wp-content/uploads/2021/05/richtershof-small.png" rel="apple-touch-icon-precomposed">
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name');?>" href="<?php bloginfo('rss2_url');?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php the_field('description')?>" />
<?php wp_head();?>
</head>
<body <?php body_class();?>>
<style>
@media(max-width:700px) {
body > iframe {
display:none!important;
}
}
</style>
<script>
(function(h,o,t,e,l,g,s){h[l]=h[l]||function(){
(h[l].q=h[l].q||[]).push(arguments)},h[l].l=1*new Date();g=o.createElement(t),
s=o.getElementsByTagName(t)[0];g.async=1;g.src=e;s.parentNode.insertBefore(g,s)
})(window,document,'script','https://api.greensign.de/widget/greensign.js','gs');
gs("GS00407",{ position : "center-left" });
</script>
<!-- wrapper -->
<div class="wrapper">
<?php $icons = get_field('iconsbar', 'option');
$logo = get_field('hotellogo', 'option')?>
<!-- header -->
<header id='header' class="header clear top" role="banner">
<div class='icon-bar'>
<div class='icon-bar-small'>
<?php if ($icons) {
foreach ($icons as $icon) {?>
<a href='<?php echo $icon['link']['url'] ?>'><img src='<?php echo $icon['icon'] ?>'/></a>
<?php }
}?>
</div>
<div class='icon-bar-big'>
<?php if ($logo) {?>
<a target='_blank' href='<?php echo get_field('hotellink', 'option')['url'] ?>'><img src='<?php echo $logo ?>'/></a>
<?php }?>
</div>
</div>
<a href="/" class='icon'>
<img src='<?php echo the_field('logo_small', 'option') ?>'/>
</a>
<div class='header-menu-bar' >
<a href='/sonderangebote'>ANGEBOTE</a>
<a href='/zimmer'>ZIMMER</a>
<a href='/tagen-und-feiern'>FEIERN & TAGEN</a>
<a href='<?php echo get_field('buchen', 'option') ?>'>BUCHEN</a>
<div id="weglot_here"></div>
<div style="width:2rem"></div>
<div id='header-burger'></div>
</div>
</header>
<div id="menu">
<div id='header-burger-close'></div>
<?php wp_nav_menu(array('menu' => 'whr-menu'));?>
</div>
<!-- /header -->
<div class='booking-bar'>
<div class='booking-calendar'>
<input type="text" id="start-text-calendar" class="calendar" ></input>
<div class='start-date-container'>
<div class='label'>Ankunft</div>
<div id='start-date'></div>
</div>
<div>
<div class='label'>Abreise</div>
<div id='end-date'></div>
</div>
</div>
<div class='booking'>
<div class='gast'>Gäste</div>
<select name="gast" id="gast">
<?php for ($i = 1; $i < 10; $i++) {?>
<option <?php if ($i == 2) {echo 'selected="selected"';}?> value="<?php echo $i ?>"><?php echo $i ?></option>
<?php }?>
</select>
</div>
<div class='button-group'>
<div class='whr-button' id='find-room'>ZIMMER FINDEN</div>
</div>
</div>