-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
120 lines (94 loc) · 3.52 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
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package tni
*/
?><!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' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'gridbox' ); ?></a>
<div id="header-top" class="header-bar-wrap"><?php do_action( 'gridbox_header_bar' ); ?></div>
<header id="masthead" class="site-header clearfix" role="banner">
<div class="header-main container clearfix">
<button id="main-navigation-toggle" class="main-navigation-toggle"><span class="screen-reader-text"><?php _e( 'Menu', 'tni' ) ?></span></button>
<div id="logo" class="site-branding clearfix">
<?php gridbox_site_logo(); ?>
<?php gridbox_site_title(); ?>
<?php gridbox_site_description(); ?>
</div><!-- .site-branding -->
<?php if( is_active_sidebar( 'header' ) ) : ?>
<div class="header-widget">
<?php dynamic_sidebar( 'header' ); ?>
</div><!-- .header-widget -->
<?php endif; ?>
<nav id="social-navigation" class="social-navigation navigation clearfix" role="navigation">
<?php
// Display Social Navigation.
wp_nav_menu(
array(
'theme_location' => 'social',
'container' => 'div',
'container_id' => 'menu-social',
'container_class' => 'menu',
'menu_id' => 'menu-social-items',
'menu_class' => 'menu-items',
'depth' => 1,
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>',
'fallback_cb' => '',
)
);
?>
</nav><!-- #social-navigation -->
<nav id="mobile-navigation" class="mobile-navigation navigation clearfix" role="navigation">
<?php
// Display Mobile Navigation.
wp_nav_menu(
array(
'theme_location' => 'mobile',
'container' => 'div',
'container_id' => 'menu-mobile',
'container_class' => 'menu',
'menu_id' => 'menu-mobile-items',
'menu_class' => 'menu-items',
'depth' => 1,
'fallback_cb' => '',
)
);
?>
</nav><!-- #mobile-navigation -->
<nav id="main-navigation" class="primary-navigation navigation clearfix" role="navigation">
<?php
// Display Main Navigation.
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'main-navigation-menu',
'fallback_cb' => false,
'depth' => 1
)
);
?>
</nav><!-- #main-navigation -->
<div class="top-search collapsed" aria-expanded="false">
<?php get_search_form(); ?>
</div>
</div><!-- .header-main -->
</header><!-- #masthead -->
<?php gridbox_header_image(); ?>
<?php gridbox_breadcrumbs(); ?>
<?php if( is_active_sidebar( 'page-header' ) ) : ?>
<?php dynamic_sidebar( 'page-header' ); ?>
<?php endif; ?>
<div id="content" class="site-content container clearfix">