-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
157 lines (111 loc) · 4.33 KB
/
header.php
File metadata and controls
157 lines (111 loc) · 4.33 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php
/**
* The theme's header file that appears on EVERY page.
*
* @since 1.0.0
* @package RealBigPlugins
*/
// Don't load directly
if ( ! defined( 'ABSPATH' ) ) {
die;
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js off-canvas-fix">
<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>
<?php
$body_class = array();
if ( has_post_thumbnail() ) {
$body_class[] = 'has-post-thumbnail';
}
if ( has_blocks() ) {
$body_class[] = 'has-blocks';
}
?>
<body <?php body_class( $body_class ); ?>>
<?php do_action( 'rbp_after_body_open' ); ?>
<?php wp_body_open(); ?>
<?php if ( ! edd_is_checkout() ) : ?>
<div class="off-canvas position-left nav-menu" id="offCanvasLeft" data-off-canvas>
<?php wp_nav_menu( array(
'container' => false,
'menu' => __( 'Primary Left Menu', THEME_ID ),
'menu_class' => 'menu show-for-small-only',
'theme_location' => 'primary-left',
'items_wrap' => '<ul id="%1$s" class="vertical %2$s">%3$s</ul>',
'fallback_cb' => false,
'walker' => new Foundation_Nav_Walker(),
) ); ?>
<?php wp_nav_menu( array(
'container' => false,
'menu' => __( 'Primary Right Menu', THEME_ID ),
'menu_class' => 'menu show-for-small-only',
'theme_location' => 'primary-right',
'items_wrap' => '<ul id="%1$s" class="vertical %2$s">%3$s</ul>',
'fallback_cb' => false,
'walker' => new Foundation_Nav_Walker(),
) ); ?>
</div>
<?php endif; ?>
<div class="off-canvas-content" data-off-canvas-content data-sticky-container>
<div id="notice-banner" class="banner text-center">
</div>
<nav class="sticky top-bar is-stuck" data-sticky data-sticky-on="small" data-margin-top="<?php echo is_admin_bar_showing() ? 2 : 0; ?>" style="width:100%" data-top-anchor="notice-banner:bottom">
<div class="top-bar-left mobile-menu show-for-small-only">
<div class="menu-icon-wrapper">
<?php if ( ! edd_is_checkout() ) : ?>
<button class="menu-icon dark" type="button" data-toggle="offCanvasLeft" aria-expanded="false" aria-controls="offCanvasLeft"></button>
<?php else : // Make a fake hamburger button so the height stays the same ?>
<button type="button"></button>
<?php endif; ?>
</div>
</div>
<div class="top-bar-section top-bar row nav-menu">
<div class="top-bar-logo top-bar-left">
<ul class="menu">
<li>
<a href="<?php bloginfo( 'url' ); ?>" title="<?php _e( 'Home', THEME_ID ); ?>">
<?php
$logo_src = locate_template( 'dist/assets/img/rbp-logo.png', false, false );
$logo_src = str_replace( trailingslashit( ABSPATH ), '', $logo_src );
?>
<img src="<?php echo esc_attr( '/' . $logo_src ); ?>" />
</a>
</li>
</ul>
</div>
<?php if ( ! edd_is_checkout() ) : ?>
<div class="top-bar-menus">
<?php wp_nav_menu( array(
'container' => false,
'menu' => __( 'Primary Left Menu', THEME_ID ),
'menu_class' => 'menu hide-for-small-only',
'theme_location' => 'primary-left',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'fallback_cb' => false,
'walker' => new Foundation_Nav_Walker(),
) ); ?>
<?php wp_nav_menu( array(
'container' => false,
'menu' => __( 'Primary Right Menu', THEME_ID ),
'menu_class' => 'menu hide-for-small-only',
'theme_location' => 'primary-right',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'fallback_cb' => false,
'walker' => new Foundation_Nav_Walker(),
) ); ?>
</div>
<?php else : // Make a fake Menu Item so the height stays the same ?>
<ul class="menu fake hide-for-small-only">
<li><a> </a></li>
</ul>
<?php endif; ?>
</div>
</nav>
<section id="site-content"<?php echo ( is_front_page() && ! has_blocks() ) ? ' style="background-image: url(' . wp_get_attachment_image_url( get_theme_mod( 'home_background' ), 'full' ) . '); background-size: cover;"' : ''; ?>>