-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
109 lines (101 loc) · 4.24 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
<!DOCTYPE html>
<html lang="de-DE">
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<?php wp_head(); ?>
<meta name="ahrefs-site-verification" content="6b9c0c683d94d02847a03035e120f7761fb17cb6e7ade600f7319a99f4c3bd90">
<?php if (is_single()) : ?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "<?php the_title();?>",
"datePublished": "<?php the_date() ?>",
"dateModified": "<?php the_modified_date(); ?>",
"author": [{
"@type": "Person",
"name": "<?php the_author(); ?>",
"url": "<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"
}]
}
</script>
<?php endif; ?>
<style>
.popup {
opacity: 0;
visibility: hidden;
}
</style>
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<header class="header lock-padding">
<div class="header__top">
<div class="container">
<div class="header__top-inner">
<div class="header__top-adress">
<?php echo carbon_get_theme_option('global__adress'); ?>
</div>
<div class="header__top-time">
<?php echo carbon_get_theme_option('global_time'); ?>
</div>
<a class="header__top-phone" href="tel:+<?php echo preg_replace("/[^,.0-9]/", '', carbon_get_theme_option('global_phone')); ?>">
<?php echo carbon_get_theme_option('global_phone'); ?>
</a>
<a class="header__top-mail" href="mailto:<?php echo carbon_get_theme_option('global_email'); ?>">
<?php echo carbon_get_theme_option('global_email'); ?>
</a>
</div>
</div>
</div>
<div class="header__bottom">
<div class="container">
<div class="header__bottom-inner">
<a class="header__logo-link" href="<?php echo get_option('home'); ?>">
<img class="header__logo-img" src="<?php echo get_template_directory_uri(); ?>/resources/images/logo.svg" alt="logo">
</a>
<div class="header__menu-wrapper">
<div class="menu-box">
<a class="menu-box__logo-link" href="<?php echo get_option('home'); ?>">
<img class="menu-box__logo-img" src="<?php echo get_template_directory_uri(); ?>/resources/images/logo.svg" alt="logo">
</a>
<?php
wp_nav_menu([
'theme_location' => 'top-menu',
'container' => 'nav',
'container_class' => 'top-nav',
'container_id' => 'top-nav',
'menu_class' => 'top-menu',
'menu_id' => 'top-menu',
'add_li_class' => 'top-menu__items',
]);
?>
<div class="menu-box__inner">
<div class="menu-box__adress">
<?php echo carbon_get_theme_option('global__adress'); ?>
</div>
<div class="menu-box__time">
<?php echo carbon_get_theme_option('global_time'); ?>
</div>
<a class="menu-box__phone" href="tel:+<?php echo preg_replace("/[^,.0-9]/", '', carbon_get_theme_option('global_phone')); ?>">
<?php echo carbon_get_theme_option('global_phone'); ?>
</a>
<a class="menu-box__mail" href="mailto:<?php echo carbon_get_theme_option('global_email'); ?>">
<?php echo carbon_get_theme_option('global_email'); ?>
</a>
</div>
</div>
<div class="header__btn-wrappper">
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<circle class="header__btn-circle" cx="50" cy="50" r="30" />
<path class="line--1" d="M0 40h62c13 0 6 28-4 18L35 35" />
<path class="line--2" d="M0 50h70" />
<path class="line--3" d="M0 60h62c13 0 6-28-4-18L35 65" />
</svg>
</div>
</div>
</div>
</div>
</div>
</header>