-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
137 lines (131 loc) · 4.42 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package poligon22
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<body id="body">
<header id="header" class="is-header">
<div class="container">
<div class="row">
<div class="col-md-6 col-lg-3 brand">
<a href="<?php echo get_home_url(); ?>" class="">
<img src="<?php echo get_template_directory_uri() . "/assets/img/poligon_logo.png" ?>" alt="Полигон22" class="img-fluid is-brand__logo">
<div class="is-brand">
<h1 class="is-brand__title">
Полигон 22
</h1>
<p class="is-brand__description">
Лазертаг от команды профессионалов!
</p>
</div>
</a>
</div>
<div class="col-md-6 col-lg-3">
<p class="is-header__games-counter">
<? echo get_option( 'poligon22_years' ); ?> организуем
</p>
<p class="is-header__games-type">
игры в лазертаг
</p>
</div>
<div class="col-md-6 col-lg-3">
<div class="is-header__phone">
<?
$poligon22_phone = get_option( 'poligon22_phone' );
if ($poligon22_phone) { ?>
<a href="tel:<? echo get_option( 'poligon22_phone' ); ?>" class="tel">
<? echo get_option( 'poligon22_phone' ); ?>
</a> <?
}
?>
</div>
<div class="is-header__socials">
<?
$poligon22_vk = get_option( 'poligon22_vk' );
if ($poligon22_vk) { ?>
<a href="<? echo get_option( 'poligon22_vk' ); ?>" class="social vk" target="_blank">
<i class="fab fa-vk"></i>
</a> <?
}
?>
<?
$poligon22_youtube = get_option( 'poligon22_youtube' );
if ($poligon22_youtube) { ?>
<a href="<? echo get_option( 'poligon22_youtube' ); ?>" class="social yt" target="_blank">
<i class="fab fa-youtube"></i>
</a> <?
}
?>
<?
$poligon22_ok = get_option( 'poligon22_ok' );
if ($poligon22_ok) { ?>
<a href="<? echo get_option( 'poligon22_ok' ); ?>" class="social ok" target="_blank">
<i class="fab fa-odnoklassniki"></i>
</a> <?
}
?>
<?
$poligon22_instagram = get_option( 'poligon22_instagram' );
if ($poligon22_instagram) { ?>
<a href="<? echo get_option( 'poligon22_instagram' ); ?>" class="social inst" target="_blank">
<i class="fab fa-instagram"></i>
</a> <?
}
?>
</div>
</div>
<div class="col-md-6 offset-lg-1 col-lg-2">
<a
class="btn is-header__games-order"
type="button"
data-toggle="modal"
data-target="#order-game"
>
Заказать игру
</a>
</div>
</div>
</div>
<nav id="navbar" class="navbar navbar-expand-lg navbar-dark is-navbar">
<div class="container">
<button
id="mobile-toggler"
class="navbar-toggler"
type="button"
onclick="toggleMenu()"
>
<i id="toggle-icon" class="fas fa-bars"></i>
</button>
<?
wp_nav_menu( array(
'theme_location' => '',
'depth' => 2, // 1 = no dropdowns, 2 = with dropdowns.
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'poligon22-menu',
'menu_class' => 'navbar-nav mb-2 mb-lg-0',
'menu_id' => 'poligonMenuList',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker(),
) );
?>
</div>
</nav>
</header>