-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
33 lines (32 loc) · 904 Bytes
/
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
<?php
/**
* The header template
*
* @package Octothorpe
* @subpackage Templates
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'octothorpe' ); ?></a>
<?php if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
}
if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu(
array(
'theme_location' => 'primary',
'depth' => 1,
'fallback_cb' => false,
'container' => false,
'items_wrap' => '<nav role="navigation"><ul id="%1$s" class="%2$s">%3$s</ul></nav>'
)
);
} ?>
<div id="content" class="site-content">