forked from SimonPadbury/b4st
-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
63 lines (54 loc) · 2.56 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
<?php
if ( ! class_exists( 'B4stHelpers' ) )
wp_die( 'Class B4stHelpers not found!' );
global $b4sth;
?>
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php wp_head(); ?>
<?php echo isset( B4stHelpers::$options['analytics_head'] ) ? B4stHelpers::$options['analytics_head'] : '' ?>
</head>
<body <?php body_class(); ?>>
<nav class="navbar navbar-expand-md navbar-light bg-light">
<div class="container">
<?php $b4sth->get_logo(); ?>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarDropdown"
aria-controls="navbarDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarDropdown">
<?php
wp_nav_menu( array(
'theme_location' => 'navbar',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="navbar-nav mr-auto mt-2 mt-lg-0 %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new B4stWalkerNavMenu(),
) );
?>
<?php $b4sth->the_socials( 'navbar-text ml-lg-4' ); ?>
<form class="form-inline ml-auto pt-2 pt-md-0" role="search" method="get" id="header_search" action="<?php echo home_url( '/' ) ?>">
<div class="input-group">
<input
id="header_search_s"
class="form-control"
name="s"
type="text"
value="<?php the_search_query() ?>"
placeholder="<?php _e( 'Поиск', _B4ST_TTD ) ?>..."
aria-label="<?php _e( 'Поиск', _B4ST_TTD ) ?>"
>
<div class="input-group-append">
<button type="submit" id="header_search_searchsubmit" value="<?php _e( 'Поиск', _B4ST_TTD ) ?>" class="btn btn-primary"><i class="fas fa-search"></i></button>
</div>
</div>
</form>
</div>
</div>
</nav>