-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
97 lines (69 loc) · 2.53 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
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<script>
document.body.classList.remove('no-js');
</script>
<header id="header" class="vd-header">
<div class="vd-header__bg"></div>
<div class="vd-header__inner">
<div id="pagetitle" class="vd-section">
<div class="uk-container">
<div class="vd-logo vd-margin-bottom-medium">
<a href="<?= get_bloginfo('siteurl') ?>"><img src="<?= get_template_directory_uri() ?>/dist/images/wmd-logo.png" alt=""></a>
</div>
<h1 class="vd-title vd-pagetitle">
<a href="<?= get_bloginfo('siteurl') ?>">
Was meinst Du?
</a>
<span class="vd-subtitle">Der Alltagsfragenpodcast</span>
<span class="vd-subtitle small">mit <strong>Tom</strong> & <strong>Janis</strong></span>
</h1>
</div>
</div>
<section id="subscribar" class="vd-section">
<div class="uk-container vd-text-wrapper">
<div class="vd-subscribar">
<div class="vd-subscribar__button">
<button id="podlove-subscriberoni" class="vd-icon-link vd-subscribe-button">
<!-- <span class="vd-icon-link__icon fas fa-podcast"></span>
<span class="vd-icon-link__label">
<span class="title">Abonnieren</span>
</span> -->
<?= do_shortcode('[podlove-podcast-subscribe-button style="frameless" color="white" format="rectangle" language="de"]'); ?>
</button>
</div>
<?php if (get_field('services','option')) :?>
<?php $services = get_field('services','option'); ?>
<div class="vd-subscribar__services">
<ul>
<?php foreach($services as $service) : ?>
<?php
$service_tooltip = '';
if ($service['service_tooltip']) {
$service_tooltip = $service['service_tooltip'];
}
else {
$service_tooltip = 'Was meinst du? auf '.$service['service_name'];
}
?>
<li>
<a title="<?= $service_tooltip ?>" href="<?= $service['url'] ?>" target="blank">
<span class="<?= $service['service_icon_class'] ?>"></span>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
</div>
</div>
</section>
</div>
</header>