-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
129 lines (102 loc) · 2.64 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
127
128
129
<?php
/**
* The theme's header file that appears on EVERY page.
*
* @since 1.0.0
* @package MMHC
*/
// 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' ); ?>">
<!--[if lt IE 9]>
<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/vendor/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper">
<header id="site-header">
<div class="header-top row">
<div class="columns small-12">
<div class="site-logo left">
<a href="<?php bloginfo( 'url' ); ?>">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/header-logo.png" width="300"
height="95"/>
</a>
</div>
<div class="right small-only-text-center">
<div class="line hide-for-small-only">
<div class="search">
<?php
global $mmhc_search_options;
$mmhc_search_options = array(
'input_id' => 'header-search-input',
);
get_search_form();
?>
</div>
<nav class="top-nav">
<?php
wp_nav_menu( array(
'theme_location' => 'top',
'container' => false,
) );
?>
</nav>
</div>
<p class="phone">
<span class="flaticon-iphone26"></span><?php echo _mmhc_sc_phone(); ?>
</p>
<p class="hours">
<?php echo _mmhc_sc_hours_condensed(); ?>
</p>
</div>
</div>
</div>
<nav id="site-nav">
<div class="site-nav-toggle">
<span class="text">
MENU
</span>
<span class="menu-icon-holder">
<span class="menu-icon"></span>
</span>
</div>
<div class="mobile-search">
<?php get_search_form(); ?>
</div>
<div class="row">
<div class="columns small-12">
<?php
global $_mmhc_primary_nav_count;
$primary_nav = wp_get_nav_menu_object( 'primary' );
$_mmhc_primary_nav_count = $primary_nav->count;
require_once __DIR__ . '/includes/primary-nav-walker.php';
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false,
'walker' => new MMHC_Walker_PrimaryNav,
) );
?>
</div>
</div>
<div class="mobile-sub-nav">
<?php
wp_nav_menu( array(
'theme_location' => 'top',
'container' => false,
) );
?>
</div>
</nav>
</header>
<section id="site-content">