-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
102 lines (92 loc) · 3.91 KB
/
header.php
File metadata and controls
102 lines (92 loc) · 3.91 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
<?php
/**
* The Header for NJSL 2014 theme
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title( '|', true, 'right' ); /* bloginfo('name'); */ ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
<!--[if lt IE 8]>
<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/IE7-compat.css">
<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/bootstrap-IE7.css">
<link rel="stylesheet" href="<?php echo get_template_directory_uri() ?>/css/font-awesome-ie7.css">
<![endif]-->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.min.js" type="text/javascript"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/respond.min.js" type="text/javascript"></script>
<![endif]-->
</head>
<body <?php body_class(); ?>>
<div class="container" style="position: relative">
<!-- Collapse menu box for small screens -->
<div class="navbar-header">
<button type="button" class="navbar-toggle btn btn-default pull-left" data-toggle="collapse" data-target="#main-menu-collapse">
<span class="sr-only">Toggle navigation</span>
<i class="fa fa-bars"></i>
</button>
</div>
<!-- Site search box -->
<form id="search-form" role="search" class="navbar-form navbar-right hidden-xs hidden-print" method="GET" action="<?php echo esc_url( home_url('/') ) ?>" style="position: absolute; right: 0" role="search">
<div class="form-group">
<input type="search" class="form-control" name="s" placeholder="<?php _e( 'Search this site', 'njsl-2014' ) ?>">
</div>
<button type="submit" class="btn btn-default">
<i class="fa fa-fw fa-search" title="<?php _e( 'Search', 'njsl-2014' ) ?>"></i>
<span class="sr-only"><?php _e( 'Search', 'njsl-2014' ) ?></span>
</button>
<?php
// Display social icons from Crafty Social Buttons if available
if( class_exists( 'SH_Crafty_Social_Buttons_Shortcode' ) ) {
echo '<div class="clearfix"></div>';
do_action( 'crafty-social-link-buttons' );
}
?>
</form>
<div class="navbar-inner">
<h1 class="sr-only"><?php echo get_bloginfo( 'name' ) ?></h1>
<a
class="header-logo"
href="<?php echo esc_url( home_url( '/' ) ) ?>"
title="<?php echo esc_attr( sprintf( __( '%s Home', 'njsl-2014' ), get_bloginfo( 'name' ) ) ) ?>"
>
<img
class="<?php echo esc_attr( apply_filters( 'njsl_header_image_class', 'hidden-xs' ) ) ?>"
src="<?php header_image(); ?>"
height="<?php echo get_custom_header()->height; ?>"
width="<?php echo get_custom_header()->width; ?>"
style="height: <?php echo get_custom_header()->height; ?>px; width: <?php echo get_custom_header()->width; ?>px;"
alt="<?php echo esc_attr( sprintf( __( '%s Logo', 'njsl-2014' ), get_bloginfo( 'name' ) ) ) ?>"
>
<?php do_action( 'njsl_header_image_after' ); ?>
</a>
</div>
<main>
<header class="hidden-print">
<nav>
<h1 class="sr-only">Navigation menu</h1>
<div class="collapse navbar-collapse" id="main-menu-collapse">
<?php wp_nav_menu(
array(
'menu' => 'main_menu',
'container' => false,
'theme_location' => 'main_menu',
'menu_class' => 'nav nav-justified sf-menu',
'depth' => 3,
'exclude' => njsl_get_hidden_pages(), // Exclude the "access denied" and "Horizon" pages
'fallback_cb' => 'njsl_page_menu'
)
) ?>
</div>
</nav>
</header>
<?php if( is_home() ) : ?>
<div class="home-page">
<?php endif; ?>
<div class="row">
<!-- Page goes here -->