-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
41 lines (36 loc) · 1.51 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
<!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="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> data-color-scheme="light">
<?php wp_body_open(); ?>
<div id="page" class="hfeed site container">
<a class="skip-link screen-reader-text" href="#doc-main"><?php esc_html_e( 'Skip to content', 'bfnest' ); ?></a>
<header id="site-header" class="site-header">
<?php
$title_tag = is_front_page() && is_home() ? 'h1' : 'div';
echo '<' . $title_tag . ' class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home" class="site-logo site-header__site-logo">' . get_bloginfo( 'name' ) . '</a></' . $title_tag . '>' . "\n";
?>
<?php
$site_description = get_bloginfo( 'description' );
if ( ! empty( $site_description ) ) {
echo '<div class="site-description">' . $site_description . '</div>' . "\n";
}
?>
<nav id="site-navigation" class="site-nav nav nav-primary" role="navigation" aria-label="<?php _e( 'Main Navigation', 'bfnest' ); ?>">
<button class="site-nav__toggle" data-expand="site-header"><?php _e( 'Menu', 'bfnest' ); ?></button>
<?php
wp_nav_menu( [
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'menu menu--primary site-nav__menu',
'menu_id' => 'primary-menu'
] );
?>
</nav>
<?php bfnest_color_scheme_button(); ?>
</header>