-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·92 lines (71 loc) · 2.62 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<?php if (is_search()) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
<?php
if (function_exists('is_tag') && is_tag()) {
single_tag_title("Tag Archive for ""); echo '" - '; }
elseif (is_archive()) {
wp_title(''); echo ' Archive - '; }
elseif (is_search()) {
echo 'Search for "'.wp_specialchars($s).'" - '; }
elseif (!(is_404()) && (is_single()) || (is_page())) {
wp_title(''); echo ' - '; }
elseif (is_404()) {
echo 'Not Found - '; }
if (is_home()) {
bloginfo('name'); echo ' - '; bloginfo('description'); }
else {
bloginfo('name'); }
if ($paged>1) {
echo ' - page '. $paged; }
?>
</title>
<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/favicon.png">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/styles.css">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="//use.typekit.net/bsz3zdn.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php if ( is_singular() ) wp_enqueue_script('comment-reply'); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header id="site-header">
<div class="inner group">
<h1 id="brand"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a><div class="loading"></div></h1>
<nav id="site-nav" class="links-wrap">
<?php
//create "main menu" in wordpress backend
wp_nav_menu( array(
'menu' => 'main menu',
'container' =>false,
'menu_class' => 'group',
'echo' => true,
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'depth' => 0,
'walker' => new description_walker())
);
;?>
</nav>
<nav id="social-top">
<ul class="group">
<li><a href="http://dribbble.com/billyfrench" target="_blank" class="dribbble">dribbble</a></li>
<li><a href="https://twitter.com/billehfrench" target="_blank" class="twitter">twitter</a></li>
</ul>
</nav>
<i class="shadow"></i>
</div>
</header>
<!-- <div class="description"><?php //bloginfo('description'); ?></div> -->