-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
61 lines (53 loc) · 2.37 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
<!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="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
<?php wp_body_open(); ?>
<div id="page">
<header id="site-header" itemscope itemtype="http://schema.org/WPHeader">
<div>
<?php
the_custom_logo();
if (!has_custom_logo()) { ?>
<a href="<?php echo esc_url(home_url('/')); ?>" rel="home" itemscope itemtype="http://schema.org/Brand">
<h1 class="site-title" itemprop="name"><?php bloginfo('name'); ?></h1>
</a>
<?php } ?>
</div>
<div>
<?php get_search_form(); ?>
</div>
<nav id="primary-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
<button id="nav-toggle" class="nav-slide-button" aria-label="open">
<span><span class="screen-reader-text">Menu</span></span></button>
<div id="menu-modal" aria-hidden="true" role="dialog">
<button id="nav-close" class="nav-slide-button" aria-label="close"><span><span class="screen-reader-text">Menu</span></span></button>
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'menu_id' => 'primary-menu',
'menu_class' => 'clear',
'container' => ''
) ); ?>
</div>
<div id="modalOverlay" tabindex="-1"></div>
</nav>
</header>
<?php
if ( is_home() && get_theme_mod( 'writermuse_about_text_setting' ) ) { ?>
<div class="widget" id="intro">
<?php echo esc_html( get_theme_mod( 'writermuse_about_text_setting' ) ); ?>
<a class="nav-link" href="<?php echo esc_url_raw( get_theme_mod( 'writermuse_about_link_setting' ) ); ?>"><?php echo esc_html( get_theme_mod( 'writermuse_about_button_setting' ) ); ?></a>
</div>
<?php } ?>
<?php if (is_search()) { ?>
<main class="grid" itemscope itemtype="http://schema.org/SearchResultsPage">
<?php }
else { ?>
<main class="grid">
<?php } ?>