-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathheader.php
50 lines (45 loc) · 1.53 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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Kawi
*/
?>
<!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(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'kawi' ); ?></a>
<?php if( has_nav_menu( 'topbar-menu' ) ): ?>
<nav id="topbar-nav" class="topbar-nav" role="navigation" aria-label="<?php esc_attr_e( 'Top bar menu', 'kawi' ); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'topbar-menu',
'menu_id' => 'topbar-menu',
'menu_class' => 'menu topbar-menu',
'container' => 'ul',
'link_before' => '<span>',
'link_after' => '</span>',
'depth' => 1,
) );
?>
</nav>
<?php endif; ?>
<header id="masthead" class="site-header" role="banner">
<?php
get_template_part( 'template-parts/header/navbar/navbar', get_theme_mod( 'kawi-navbar', 'default' ) );
get_template_part( 'template-parts/header/hero/hero', get_theme_mod( 'kawi-hero', 'default' ) );
?>
</header><!-- #masthead -->
<div id="content" class="content-area">