-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
138 lines (132 loc) · 2.35 KB
/
header.php
File metadata and controls
138 lines (132 loc) · 2.35 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
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
<?php
/**
* Header file for the theme.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Vite
* @since x.x.x
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
$core = vite( 'core' );
?>
<!doctype html>
<html
<?php
language_attributes();
$core->print_html_attributes(
'html',
[
'class' => 'no-js',
]
);
?>
>
<head>
<?php
/**
* Action: vite/head/start.
*
* Fires before the head.
*
* @since x.x.x
*/
$core->action( 'head/start' );
?>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php
/**
* Action: vite/head.
*
* Fires in the head.
*
* @since x.x.x
*/
$core->action( 'head' );
wp_head();
/**
* Action: vite/head/end.
*
* Fires after the head.
*/
$core->action( 'head/end' );
?>
</head>
<body<?php $core->print_html_attributes( 'body', [ 'class' => get_body_class() ] ); ?>>
<a
class="skip-link screen-reader-text"
href="#content"
role="link"
title="<?php esc_html_e( 'Skip to content', 'vite' ); ?>">
<?php esc_html_e( 'Skip to content', 'vite' ); ?>
</a>
<?php wp_body_open(); ?>
<?php $core->action( 'body/start' ); ?>
<div
<?php
$core->print_html_attributes(
'body',
[
'id' => 'page',
'class' => [
'wp-site-blocks',
'vite-site',
'hfeed',
],
]
);
?>
>
<?php
/**
* Action: vite/header/start.
*
* Fires before the header.
*
* @since x.x.x
*/
$core->action( 'header/start' );
/**
* Action: vite/header.
*
* Fires in the header.
*
* @since x.x.x
*/
$core->action( 'header' );
/**
* Action: vite/header/end.
*
* Fires after the header.
*
* @since x.x.x
*/
$core->action( 'header/end' );
?>
<div
<?php
$core->print_html_attributes(
'content',
[
'id' => 'content',
'class' => [
'vite-content',
],
]
);
?>
>
<div class="vite-container">
<div id="primary" class="vite-content__area">
<?php
/**
* Action: vite/content/start.
*
* Fires before the content.
*
* @since x.x.x
*/
$core->action( 'content/start' );