This repository has been archived by the owner on Aug 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
header.php
108 lines (105 loc) · 3.91 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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div class="container">
*
* @package required+ Starter
* @since required+ Starter 0.1.0
*/
?><!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="shortcut icon" type="image/png" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.png">
<link rel="apple-touch-icon" sizes="57x57" href="<?php echo get_stylesheet_directory_uri(); ?>/images/devices/apple-touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo get_stylesheet_directory_uri(); ?>/images/devices/apple-touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo get_stylesheet_directory_uri(); ?>/images/devices/apple-touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="144x144" href="<?php echo get_stylesheet_directory_uri(); ?>/images/devices/apple-touch-icon-ipad.png" />
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<!-- Start the main container -->
<div id="container" class="container" role="document">
<?php
/**
* Include the Foundation Top Bar
*
* It uses the same navigation as nav.php
* so you might want to use a different navigation
* here.
*/
if ( is_page_template( 'page-templates/off-canvas-page.php' ) ) {
get_template_part('nav', 'top-bar');
}
?>
<!-- Row for blog navigation -->
<div class="row">
<header class="twelve columns required-header" role="banner">
<div class="row">
<hgroup class="eight columns">
<h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
<h4 id="site-description" class="subheader"><?php bloginfo( 'description' ); ?></h4>
</hgroup>
<div class="four columns">
<?php wp_nav_menu( array(
'theme_location' => 'meta',
'container' => false,
'menu_class' => 'inline-list right',
'fallback_cb' => false
) ); ?>
<?php
/**
* Search form
*
* If you need the search form just remove the //
* infront of the following statement.
*
*/
//get_search_form();
?>
</div>
</div>
<?php
/**
* Include the default navigation
*
* You could easily do something like:
* if ( is_front_page() ) {
* get_template_part( 'nav', 'front-page' ); // nav-front-page.php
* } else {
* get_template_part( 'nav' ); // nav.php
* }
*/
if ( ! is_page_template( 'page-templates/off-canvas-page.php' ) ) {
get_template_part( 'nav' );
}
?>
<?php
/**
* Include our custom-header.php
*
* Used with the header image stuff.
*/
get_template_part( 'custom-header' );
?>
</header>
</div><!-- // header.php -->