forked from argoproject/Argo
-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
header.php
147 lines (118 loc) · 3.12 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
<!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">
<?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
*/
?>
<?php
// Fallback <title> tag on WP pre 4.1
// @link https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/
// @since 0.6
if ( ! function_exists( '_wp_render_title_tag' ) ) {
printf(
'<title>%1$s</title>',
wp_title( '|', false, 'right' )
);
}
?>
<link rel="profile" href="https://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(); ?>>
<?php
/**
* Fires right after the opening body tag.
*
* @since 0.6.4
*/
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' );
}
?>
<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
get_template_part( 'partials/nav', 'sticky' );
if ( of_get_option( 'leaderboard_enabled' ) == TRUE ) {
get_template_part( 'partials/header-ad-zone' );
}
/**
* 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' );
get_template_part( 'partials/nav', 'main' );
if ( SHOW_SECONDARY_NAV === TRUE ) {
get_template_part( 'partials/nav', 'secondary' );
}
get_template_part('partials/homepage-alert');
/**
* 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' );