-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
154 lines (118 loc) · 4.02 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
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
<?php
/**
* The theme's header file that appears on EVERY page.
*
* @since 0.1.0
* @package Inosencio
*/
// 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/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper" class="off-canvas-wrapper">
<div class="off-canvas position-right nav-menu" id="offCanvasRight" data-off-canvas>
<?php
wp_nav_menu( array(
'container' => false,
'menu_class' => 'menu',
'theme_location' => 'primary',
'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">
<div class="foundation-sticky" data-sticky-container>
<nav class="top-bar" data-topbar role="navigation" data-sticky data-sticky-on="small" data-margin-top="0">
<section class="top-bar-left">
<ul class="left">
<li>
<a href="<?php bloginfo( 'url' ); ?>">
<span class="fa fa-home"></span>
</a>
</li>
<li class="divider"></li>
<li>
<a href="mailto:<?php echo get_option( '_inosencio_email' ); ?>">
<span class="fa fa-envelope"></span>
</a>
</li>
<li class="divider"></li>
<li>
<a href="tel:<?php echo get_option( '_inosencio_phone' ); ?>">
<?php echo _inosencio_sc_phone( array( 'icon' => 'yes', 'link' => 'no' ) ); ?>
</a>
</li>
<li class="divider"></li>
</ul>
</section>
<section class="top-bar-right">
<ul class="right">
<li class="divider"></li>
<li class="has-search">
<form class="search row collapse" action="<?php bloginfo( 'url' ); ?>" method="get">
<div class="small-9 columns">
<input type="search" name="s" id="top-bar-search"
data-placeholder="What are you searching for?">
</div>
<div class="text-right small-3 columns">
<a href="#top-bar-search" class="search-button"><span
class="fa fa-search"></span></a>
</div>
</form>
</li>
</ul>
<div class="top-bar-right show-for-small-only menu-icon-container" data-responsive-toggle="responsive-menu" data-hide-for="medium">
<button type="button" data-open="offCanvasRight">
<span class="menu-icon"></span>
</button>
</div>
</section>
</nav>
</div>
<div class="logo-menu row">
<section class="site-logo columns small-12 medium-3 large-4">
<a href="<?php bloginfo( 'url' ); ?>">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/header-logo.png"
alt="inosencio fisk"/>
</a>
</section>
<nav class="site-nav nav-menu columns medium-9 large-8 show-for-medium">
<?php
wp_nav_menu( array(
'container' => false,
'menu' => __( 'Primary Menu', 'good-shepherd-catholic-radio' ),
'menu_class' => 'dropdown menu',
'theme_location' => 'primary',
'items_wrap' => '<ul id="%1$s" class="right %2$s" data-dropdown-menu data-closing-time="50">%3$s</ul>',
'fallback_cb' => false,
'walker' => new Foundation_Nav_Walker(),
) );
?>
</nav>
</div>
<?php do_action( 'inosencio_before_page_title' ); ?>
<?php if ( $title = apply_filters( 'inosencio_page_title', get_the_title() ) ) : ?>
<h1 class="page-title text-center">
<?php echo $title; ?>
</h1>
<?php endif; ?>
<?php do_action( 'inosencio_after_page_title' ); ?>
</header>
<section id="site-content">