-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.php
96 lines (88 loc) · 4.54 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
<?php
/**
* The theme header
*
* @package bootstrap-basic
*/
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!--wordpress head-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' );
}
?>
<!--[if lt IE 8]>
<p class="ancient-browser-alert">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a>.</p>
<![endif]-->
<div class="container page-container">
<?php do_action('before'); ?>
<header role="banner">
<div class="row row-with-vspace site-branding">
<div class="col-md-6 site-title">
<h1 class="site-title-heading">
<a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home"><?php bloginfo('name'); ?></a>
</h1>
<div class="site-description">
<small>
<?php bloginfo('description'); ?>
</small>
</div>
</div>
<div class="col-md-6 page-header-top-right">
<div class="sr-only">
<a href="#content" title="<?php esc_attr_e('Skip to content', 'bootstrap-basic'); ?>"><?php _e('Skip to content', 'bootstrap-basic'); ?></a>
</div>
<?php if (is_active_sidebar('header-right')) { ?>
<div class="pull-right">
<?php dynamic_sidebar('header-right'); ?>
</div>
<div class="clearfix"></div>
<?php } // endif; ?>
</div>
</div><!--.site-branding-->
<div class="row main-navigation">
<div class="col-md-12">
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-primary-collapse">
<span class="sr-only"><?php _e('Toggle navigation', 'bootstrap-basic'); ?></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-primary-collapse">
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'container' => false,
'depth' => 2,
'menu_class' => 'nav navbar-nav',
'walker' => new BootstrapBasicMyWalkerNavMenu(),
)
);
?>
<?php dynamic_sidebar('navbar-right'); ?>
</div><!--.navbar-collapse-->
</nav>
</div>
</div><!--.main-navigation-->
</header>
<div id="content" class="row row-with-vspace site-content">