-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
143 lines (132 loc) · 5.41 KB
/
Copy pathheader.php
File metadata and controls
143 lines (132 loc) · 5.41 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
<?php
// Bail if accessed directly
if ( ! defined( 'ABSPATH' ) )
exit;
// SDS Theme Options
global $sds_theme_options;
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 9 ]><html class="ie ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
<head>
<?php wp_head(); ?>
<link rel="apple-touch-icon" sizes="180x180" href="/wp-content/themes/baton-child/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/wp-content/themes/baton-child/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/wp-content/themes/baton-child/favicons/favicon-16x16.png">
<link rel="manifest" href="/wp-content/themes/baton-child/favicons/manifest.json">
<link rel="mask-icon" href="/wp-content/themes/baton-child/favicons/safari-pinned-tab.svg" color="#3f70d4">
<link rel="shortcut icon" href="/wp-content/themes/baton-child/favicons/favicon.ico">
<meta name="msapplication-config" content="/wp-content/themes/baton-child/favicons/browserconfig.xml">
<meta name="theme-color" content="#3f70d4"/>
</head>
<body <?php body_class(); ?>>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Header -->
<header id="header" class="cf">
<!-- Primary Navigation (Mobile) -->
<div id="primary-nav-wrap-mobile" class="primary-nav-wrap-mobile">
<nav id="primary-nav-mobile-container" class="primary-nav-mobile-container cf-768">
<a href="#" id="primary-nav-button" class="primary-nav-button button" title="<?php esc_attr_e( 'Toggle Navigation', 'baton' ); ?>">
<span class="primary-nav-button-inner">
<?php
// Primary Navigation label
if ( ( $nav_menu_locations = get_nav_menu_locations() ) && isset( $nav_menu_locations['primary_nav'] ) && ( $primary_nav_menu_object = wp_get_nav_menu_object( $nav_menu_locations['primary_nav'] ) ) ) {
// Output the navigation name
echo $primary_nav_menu_object->name;
}
// Fallback
else
_e( 'Navigation', 'baton' );
?>
</span>
</a>
<?php
// Primary Navigation Menu
wp_nav_menu( array(
'theme_location' => 'primary_nav',
'container' => false,
'menu_class' => 'primary-nav primary-nav-mobile menu',
'menu_id' => 'primary-nav-mobile',
'fallback_cb' => 'baton_mobile_primary_menu_fallback',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
</nav>
</div>
<!-- End Primary Navigation (Mobile) -->
<div class="in baton-flex baton-flex-2-columns baton-flex-header-in">
<!-- Logo/Site Title & Tagline -->
<div id="title-tagline" class="baton-col baton-col-center-vertically baton-col-title-tagline title-tagline">
<?php sds_logo(); ?>
<?php sds_tagline(); ?>
</div>
<!-- End Logo/Site Title & Tagline -->
<!-- Primary Navigation -->
<div id="primary-nav-wrap" class="baton-col baton-col-center-vertically baton-col-primary-nav-wrap primary-nav-wrap">
<nav id="primary-nav-container" class="primary-nav-container cf-768">
<?php
// Primary Navigation Menu
wp_nav_menu( array(
'theme_location' => 'primary_nav',
'container' => false,
'menu_class' => 'primary-nav menu',
'menu_id' => 'primary-nav',
'fallback_cb' => 'sds_primary_menu_fallback',
'link_before' => '<span>',
'link_after' => '</span>'
) );
?>
</nav>
</div>
<!-- End Primary Navigation -->
</div>
<div class="clear"></div>
</header>
<!-- End Header -->
<div class="clear"></div>
<!-- Secondary Navigation -->
<?php if ( has_nav_menu( 'secondary_nav' ) ) : // Secondary Navigation Menu ?>
<div id="secondary-nav-wrap" class="secondary-nav-wrap">
<nav id="secondary-nav-container" class="secondary-nav-container">
<a href="#" id="secondary-nav-button" class="secondary-nav-button button" title="<?php esc_attr_e( 'Toggle Navigation', 'baton' ); ?>">
<span class="secondary-nav-button-inner">
<?php
// Secondary Navigation label
if ( ( $nav_menu_locations = get_nav_menu_locations() ) && isset( $nav_menu_locations['secondary_nav'] ) && ( $secondary_nav_menu_object = wp_get_nav_menu_object( $nav_menu_locations['secondary_nav'] ) ) ) {
// Output the navigation name
echo $secondary_nav_menu_object->name;
}
// Fallback
else
_e( 'Navigation', 'baton' );
?>
</span>
</a>
<div class="in secondary-nav-container-in">
<?php
// Secondary Nav Menu
wp_nav_menu( array(
'theme_location' => 'secondary_nav',
'container' => false,
'menu_class' => 'secondary-nav menu',
'menu_id' => 'secondary-nav',
) );
?>
</div>
</nav>
</div>
<?php endif; ?>
<!-- End Secondary Navigation -->
<!-- Content Wrapper -->
<div class="in content-wrapper-in cf">