-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
126 lines (89 loc) · 4 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
<?php
/**
* The theme's header file that appears on EVERY page.
*
* @since 0.1.0
* @package Love_From_Louie
*/
// Don't load directly
if ( ! defined( 'ABSPATH' ) ) {
die;
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class( 'off-canvas-wrapper' ); ?>>
<div id="wrapper" class = "off-canvass-wrapper-inner" data-off-canvas-wrapper>
<div class="off-canvas position-left nav-menu" id="offCanvasLeft" data-off-canvas>
<?php
wp_nav_menu( array(
'container' => false,
'menu' => __( 'Primary Menu', 'love-from-louie' ),
'menu_class' => 'menu',
'theme_location' => 'primary-menu',
'items_wrap' => '<ul id="%1$s" class="vertical %2$s">%3$s</ul>',
'fallback_cb' => false,
'walker' => new Foundation_Nav_Walker(),
) );
?>
</div>
<div class="off-canvas-content" data-off-canvas-content>
<header id="site-header">
<?php if ( is_front_page() ) : ?>
<?php locate_template( 'partials/static/header-logo.php', true ); ?>
<?php endif; ?>
<div class="top-bar">
<div class="top-bar-content">
<div class="top-bar-left top-bar-band row expanded">
<div class="small-12 top-bar-band-container columns">
<div class="show-for-small-only menu-icon-container" data-responsive-toggle="responsive-menu" data-hide-for="medium">
<button type="button" data-open="offCanvasLeft">
<span class="menu-icon"></span>
<div class="menu-icon-text">
<?php echo _x( 'Menu', 'Hamburger Button Label', 'love-from-louie' ); ?>
</div>
</button>
</div>
<div class="top-bar-right hide-for-small-only nav-menu">
<?php
wp_nav_menu( array(
'container' => false,
'menu' => __( 'Primary Menu', 'love-from-louie' ),
'menu_class' => 'dropdown menu',
'theme_location' => 'primary-menu',
'items_wrap' => '<ul id="%1$s" class="%2$s" data-dropdown-menu>%3$s</ul>',
'fallback_cb' => false,
'walker' => new Foundation_Nav_Walker(),
) );
?>
</div>
<div class="top-bar-right top-bar-logo-no-overlap show-for-small-only">
<a href="<?php bloginfo( 'url' ); ?>" title="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
<img src="<?php echo get_site_icon_url( 30 ); ?>" title="<?php bloginfo( 'name' ); ?>" alt="<?php bloginfo( 'name' ); ?>" />
</a>
</div>
</div>
</div>
<div class="top-bar-left top-bar-logo hide-for-small-only">
<a href="<?php bloginfo( 'url' ); ?>" title="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
<img src="<?php echo get_site_icon_url( 175 ); ?>" title="<?php bloginfo( 'name' ); ?>" alt="<?php bloginfo( 'name' ); ?>" />
</a>
</div>
</div>
</div>
</header>
<section id="site-content">
<?php if ( ! is_front_page() ) : ?>
<div class="row">
<div class="small-12 columns">
<?php lfl_custom_breadcrumbs(); ?>
</div>
</div>
<?php endif; ?>