-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
64 lines (50 loc) · 1.9 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
54
55
56
57
58
59
60
61
62
63
64
<?php if ( ! defined( 'WPINC' ) ) { die('Direct access prohibited!'); } ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?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">Skip to content</a>
<header id="masthead" role="banner">
<?php if ( has_custom_logo() ) : ?>
<div class="site-logo"><?php the_custom_logo(); ?></div>
<?php endif; ?>
<div class="site-branding">
<?php if ( get_bloginfo( 'name' ) ) : ?>
<?php if ( is_front_page() && ! is_paged() ) : ?>
<h1 class="site-title"><?php bloginfo('name') ?></h1>
<?php elseif ( is_front_page() && ! is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo site_url(); ?>"><?php bloginfo('name') ?></a></h1>
<?php else : ?>
<p class="site-title"><a href="<?php echo site_url(); ?>"><?php bloginfo('name') ?></a></p>
<?php endif; ?>
<?php endif; ?>
<p class="site-description">
<?php bloginfo( 'description' ) ?>
</p>
</div><!-- .site-branding -->
<?php get_search_form(); ?>
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<nav id="site-navigation" class="primary-navigation" role="navigation" aria-label="Primary menu">
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'menu-wrapper',
'container_class' => 'primary-menu-container',
'items_wrap' => '<ul id="primary-menu-list" class="%2$s">%3$s</ul>',
'fallback_cb' => false,
)
);
?>
</nav><!-- #site-navigation -->
<?php endif; ?>
</header><!-- #masthead -->
<div id="content" class="site-content">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">