forked from WPBuddy/largo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
143 lines (116 loc) · 3.17 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
<!--[if IE 7]> <html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
<!--[if IE 8]> <html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
<!--[if IE 9]> <html <?php language_attributes(); ?> class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html <?php language_attributes(); ?> class="no-js"> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<?php
/**
* The template for displaying the header
*
* Contains the HEAD content and opening of the id=page and id=main DIV elements.
*
* @package Largo
* @since 0.1
*/
?>
<title>
<?php
global $page, $paged;
wp_title( '|', true, 'right' );
bloginfo( 'name' ); // Add the blog name.
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . 'Page ' . max( $paged, $page );
?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<div id="top"></div>
<?php
/**
* Fires at the top of the page, just after the id=top DIV element.
*
* @since 0.4
*/
do_action( 'largo_top' );
?>
<?php
if ( SHOW_GLOBAL_NAV === TRUE ) {
/**
* Fires before the Largo global navigation content.
*
* @since 0.4
*/
do_action( 'largo_before_global_nav' );
get_template_part( 'partials/nav', 'global' );
/**
* Fires after the Largo global navigation content.
*
* @since 0.4
*/
do_action( 'largo_after_global_nav' );
}
?>
<div id="page" class="hfeed clearfix">
<?php
if ( SHOW_STICKY_NAV === TRUE ) {
get_template_part( 'partials/nav', 'sticky' );
}
?>
<?php get_template_part('partials/header-ad-zone'); ?>
<?php
/**
* Fires before the Largo header content.
*
* @since 0.4
*/
do_action( 'largo_before_header' );
get_template_part( 'partials/largo-header' );
/**
* Fires after the Largo header content.
*
* @since 0.4
*/
do_action( 'largo_after_header' );
?>
<?php
if ( SHOW_MAIN_NAV === TRUE ) {
get_template_part( 'partials/nav', 'main' );
}
if ( SHOW_SECONDARY_NAV === TRUE ) {
get_template_part( 'partials/nav', 'secondary' );
}
?>
<?php get_template_part('partials/homepage-alert'); ?>
<?php
/**
* Fires after the Largo navigation content.
*
* @since 0.4
*/
do_action( 'largo_after_nav' );
?>
<div id="main" class="row-fluid clearfix">
<?php
/**
* Fires at the top of the Largo id=main DIV element.
*
* @since 0.4
*/
do_action( 'largo_main_top' );