-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
50 lines (43 loc) · 1.78 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
<!DOCTYPE html>
<html class="no-js" prefix="og: http://ogp.me/ns#" <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<?php if (is_search()) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
<title><?php wp_title(''); ?></title>
<meta name="viewport" content="width=device-width">
<link rel="icon" href="/favicon.png">
<meta name="msapplication-TileColor" content="#bada55">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php get_template_part('lib/svg-defs'); ?>
<!--[if IE]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<header class="site__header">
<a class="site__logo" href="<?php home_url(); ?>/">
<img src="<?php header_image(); ?>" alt="<?php bloginfo('name'); ?>" />
</a>
<nav class="site__nav" role="navigation">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-nav" aria-controls="main-nav" aria-expanded="false" aria-label="Toggle navigation">
☰
</button>
<?php
$show = ( wp_is_mobile() ) ? '' : 'show';
wp_nav_menu(
array(
'theme_location' => 'main-nav',
'menu_class' => 'menu main__nav',
'container' => 'div',
'container_id' => 'main-nav',
'container_class' => 'collapse ' . $show,
//'walker' => new BASE_nav_walker()
)
);
?>
</nav>
</header>
<main class="site__content" role="main">