This repository was archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathheader.php
executable file
·126 lines (87 loc) · 2.13 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
<?php
/**
* The template for displaying the header.
*
* Displays all of the head element and everything up until the "site-content" div.
*
* @package Primer
* @since 1.0.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
wp_body_open();
/**
* Fires inside the `<body>` element.
*
* @since 1.0.0
*/
do_action( 'primer_body' );
?>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'primer' ); ?></a>
<?php
/**
* Fires before the `<header>` element.
*
* @since 1.0.0
*/
do_action( 'primer_before_header' );
$masthead_classes = array( 'site-header' );
if ( has_header_video() && primer_is_amp() ) {
$masthead_classes[] = 'video-header';
}
?>
<header id="masthead" class="<?php echo esc_attr( implode( ' ', $masthead_classes ) ); ?>" role="banner">
<?php
/**
* Render the video header element
*
* @hooked primer_video_header - 5
*
* @since 1.7.0
*/
do_action( 'primer_before_header_wrapper' );
?>
<div class="site-header-wrapper">
<?php
/**
* Fires inside the `<header>` element.
*
* @hooked primer_add_site_title - 5
* @hooked primer_add_hero - 7
*
* @since 1.0.0
*/
do_action( 'primer_header' );
?>
</div><!-- .site-header-wrapper -->
<?php
/**
* Fires inside the `<div class="site-header-wrapper">` element.
*
* @since 1.0.0
*/
do_action( 'primer_after_site_header_wrapper' );
?>
</header><!-- #masthead -->
<?php
/**
* Fires after the `<header>` element.
*
* @hooked primer_add_primary_navigation - 11
* @hooked primer_add_page_title - 12
*
* @since 1.0.0
*/
do_action( 'primer_after_header' );
?>
<div id="content" class="site-content">