/
header.php
71 lines (65 loc) · 1.45 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
70
71
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<title><?php wp_title(); ?></title>
<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(array('spacing')); ?>>
<header id="header">
<nav id="navigation" class="bg">
<ul class="menu">
<li>
<a href="<?php echo home_url(); ?>"><i class="fa fa-home"></i> <?php echo get_bloginfo('name'); ?></a>
</li>
</ul>
<?php
wp_nav_menu(array(
'menu' => 'header',
'container' => false,
'menu_class' => 'menu links',
));
?>
<div id="mobile-menu">
<a href="#" data-action="toggleMenu">
Menu <i class="fa fa-bars"></i>
</a>
</div>
</nav>
</header>
<?php
if(is_home() || is_front_page()){
?>
<header id="hero">
<h1><?php echo get_bloginfo('name'); ?></h1>
<?php
$siteDescription = get_bloginfo('description');
if(!empty($siteDescription)){
?>
<p><?php echo get_bloginfo('description'); ?></p>
<?php
}
?>
</header>
<?php
}
if(is_post_type_archive('portfolio')){
?>
<header id="hero">
<h1><?php _e('Portfolio', 'chrishutchinson'); ?></h1>
</header>
<?php
} elseif(is_archive()){
?>
<header id="hero">
<h1><?php _e('Blog', 'chrishutchinson'); ?></h1>
</header>
<?php
}
?>
<div id="main">