-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
executable file
·60 lines (55 loc) · 2.02 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
<!DOCTYPE html>
<html <?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!--================Header Menu Area =================-->
<header class="main_menu_area">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<?php
if ( has_custom_logo() ) {
Epsilon_Helper::get_image_with_custom_dimensions( 'sierra_logo_dimensions' );
}
else{
if( display_header_text() ){
?>
<a class="logo" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo('name')?></a><span class="header-tagline"><?php echo get_bloginfo( 'description' ) ?></span>
<?php
}
}
?>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span></span>
<span></span>
<span></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => true,
'menu_class' => 'navbar-nav',
'depth' => 3,
'fallback_cb' => '',
'walker' => new Sierra_wp_bootstrap_navwalker()
) );
?>
</div>
</nav>
</header>
<?php
if( !is_front_page() && !is_404() || is_home() ){
sierra_page_banner();
}
?>