-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
55 lines (53 loc) · 2.37 KB
/
header.php
File metadata and controls
55 lines (53 loc) · 2.37 KB
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
<!DOCTYPE html>
<html <?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<?php wp_head(); ?>
</head>
<body <?php body_class( 'bghack' ); ?>>
<div class="container">
<header role="banner">
<div class="banner-cont">
<?php if( get_header_image() <> '' ): ?>
<a href="<?php echo esc_url( home_url() ) ?>">
<img src="<?php header_image(); ?>" alt="banner" class="img-fluid">
</a>
<?php endif; ?>
</div> <!-- /.banner-cont -->
<nav class="navbar navbar-expand-sm inner-shadow navbar-dark bg-dark mb-5" role="navigation" id="nav-menu">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="navbar-toggler-icon"></span>
</button>
<?php if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array(
'theme_location' => 'primary',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'bs-example-navbar-collapse-1',
'menu_class' => 'navbar-nav mr-auto',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker()
)
);
}
?>
<?php if ( has_nav_menu( 'accounts' ) ) {
wp_nav_menu( array(
'theme_location' => 'accounts',
'depth' => 2,
'container' => 'div',
// 'container_class' => 'collapse navbar-collapse',
// 'container_id' => 'bs-example-navbar-collapse-1',
'menu_class' => 'navbar-nav ml-auto',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker()
)
);
}
?>
</nav>
</header>
<main class="text-white">
<?php get_template_part( 'social' ); ?>