-
Notifications
You must be signed in to change notification settings - Fork 35
/
header.php
93 lines (65 loc) · 3.43 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
93
<!doctype html>
<!--[if IEMobile 7 ]> <html <?php language_attributes(); ?>class="no-js iem7"> <![endif]-->
<!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6 oldie"> <![endif]-->
<!--[if IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie7 oldie"> <![endif]-->
<!--[if IE 8 ]> <html <?php language_attributes(); ?> class="no-js ie8 oldie"> <![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '-', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " - $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' - ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
?></title>
<meta name="description" content="">
<meta name="author" content="">
<!-- mobile optimized -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- IE6 toolbar removal -->
<meta http-equiv="imagetoolbar" content="false" />
<!-- allow pinned sites -->
<meta name="application-name" content="<?php bloginfo('name'); ?>" />
<!-- icons & favicons (for more: http://themble.com/support/adding-icons-favicons/) -->
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
<!-- default stylesheet -->
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/library/css/normalize.css">
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>window.jQuery || document.write(unescape('%3Cscript src="<?php echo get_template_directory_uri(); ?>/library/js/libs/jquery-1.6.2.min.js"%3E%3C/script%3E'))</script>
<!-- modernizr -->
<script src="<?php echo get_template_directory_uri(); ?>/library/js/modernizr.full.min.js"></script>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!-- wordpress head functions -->
<?php wp_head(); ?>
<!-- end of wordpress head -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<!--[if lt IE 9]>
<!-- ie stylesheet -->
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/library/css/ie.css">
<![endif]-->
</head>
<body <?php body_class(); ?>>
<div id="container">
<header role="banner">
<div id="inner-header" class="wrap clearfix">
<!-- to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> -->
<p id="logo" class="h1"><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></p>
<!-- if you'd like to use the site description you can un-comment it below -->
<?php // bloginfo('description'); ?>
<nav role="navigation">
<?php bones_main_nav(); // Adjust using Menus in Wordpress Admin ?>
</nav>
</div> <!-- end #inner-header -->
</header> <!-- end header -->