-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathheader.php
47 lines (44 loc) · 1.69 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
<?php
/**
* Header.php is generally used on all the pages of your site and is called somewhere near the top
* of your template files. It's a very important file that should never be deleted.
*
* @package dangopress
*/ ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header>
<div class="container">
<hgroup class="logo left">
<?php if (is_home()): ?>
<h1><a href="<?php echo esc_url(home_url()); ?>" title="<?php bloginfo('name'); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
<?php else: ?>
<a href="<?php echo esc_url(home_url()); ?>" title="<?php bloginfo('name'); ?>" rel="home"><?php bloginfo('name'); ?></a>
<?php endif; ?>
</hgroup>
<nav class="menubar right" role="navigation" itemscope itemtype="https://schema.org/SiteNavigationElement">
<?php
$nav_menu = wp_nav_menu(array(
'theme_location' => 'primary',
'container' => '',
'menu_class' => "menu clearfix",
"before" => '<span itemscope="itemscope" itemtype="http://www.schema.org/SiteNavigationElement">',
"after" => '</span>',
"link_before" => '<span itemprop="name">',
"link_after" => '</span>',
"echo" => false
));
echo preg_replace('/<a /', '<a itemprop="url" ', $nav_menu);
?>
</nav>
</div>
</header>
<section id="content">
<div class="container">
<?php dangopress_breadcrumb(); ?>