-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
53 lines (51 loc) · 1.36 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
51
52
53
<?php
/**
* The header for our theme.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package archetype
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div class="wrap">
<a class="skipLink" href='#content'><?php echo esc_html__( 'Skip to content', 'archetype' ); ?></a>
<header id="header" class="shadow" role="banner">
<div class="container">
<div id="headerMenuMobile"><button class="menu-trigger navclosed"><span><?php echo esc_html__( 'Menu', 'archetype' ); ?></span></button></div>
<div id="headerLogo">
<?php
if ( has_custom_logo() ) {
the_custom_logo();
} else {
?>
<div class="site-title">
<a href="<?php echo esc_url( home_url() ); ?>">
<?php echo esc_html( get_bloginfo( 'name' ) ); ?>
</a>
</div>
<div class="site-description">
<?php echo esc_html( get_bloginfo( 'description' ) ); ?>
</div>
<?php } ?>
</div>
<nav id="nav2" class="clearfix" role="navigation">
<?php
wp_nav_menu(
array(
'container' => false,
'theme_location' => 'main-menu',
)
);
?>
</nav>
</div>
</header>