/
header.php
40 lines (31 loc) · 1.01 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
<?php
/**
* The template for displaying the header
*
* Displays all of the head element and everything up until the "main" tag.
*
* @package lunar
* @since 1.0
*/
?><!DOCTYPE html>
<html>
<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">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="skip-link screen-reader-text" aria-label="first content" href="#sitecontent">
<?php esc_html_e( 'Skip to content', 'lunar' ); ?>
</a>
<div class="container">
<header class="header lunar-row">
<?php get_template_part( 'top', 'section' ); ?>
<?php get_template_part( 'nav', 'top' ); ?>
</header>
</div>