/
header.php
executable file
·70 lines (62 loc) · 2.72 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
65
66
67
68
69
<!DOCTYPE html class="no-js">
<html <?php language_attributes(); ?>>
<head>
<?php // Load Meta ?>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title('|', true, 'right'); ?></title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php //Modernizr ?>
<script src="<?php echo get_template_directory_uri() . '/js/modernizr.js' ?>"></script>
<?php // Metatags ?>
<meta name="keywords" content="Matt Fairley, developer, Front End Development, Matt, Fairley, Front end developer, Toronto Developer">
<meta name="description" content="Front-end developer. Pop culture nerd. Not a robot.">
<meta name="author" content="Matt Fairley">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Matt Fairley">
<meta property="og:type" content="website">
<meta property="og:url" content="http://mattfairley.com">
<meta property="og:image" content="http://mattfairley.com/images/headshot1.jpg">
<meta property="og:site_name" content="Matt Fairley">
<meta property="og:description" content="Front-end developer. Pop culture nerd. Not a robot.">
<?php // Load our CSS ?>
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700|Arvo:400' rel='stylesheet' type='text/css'>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<!-- favicon -->
<link rel="icon" type="image/png" href="<?php echo get_template_directory_uri() . '/img/favicon.png' ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header>
<div class="container">
<h2 class="logo">
<a href="<?php echo home_url( '/' ); ?>" title="<?php bloginfo( 'name', 'display' ); ?>" rel="home">
<?php get_template_part('img/inline', 'logo.svg'); ?>
<?php the_field('page_title_short', 'option'); ?>
</a>
</h2>
<?php
if (is_page('matt-fairley') == true) {
wp_nav_menu( array(
'container' => 'nav',
'container_class' => 'nav',
'container_id' => 'nav',
'menu' => 'header',
'theme_location' => 'primary'
));
} else {
wp_nav_menu( array(
'container' => 'nav',
'container_class' => 'nav',
'container_id' => 'nav',
'menu' => 'header',
'theme_location' => 'secondary'
));
} ?>
<span class="nav lines-button arrow arrow-left x hamburger" type="button" role="button" aria-label="Toggle Navigation" id="nav-button">
<span class="lines"></span>
</span>
<div id="overlay"></div>
</div> <!-- /.container -->
</header><!--/.header-->