forked from inevernu/lighter-bones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
57 lines (39 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
51
52
53
54
55
56
57
<!doctype html>
<html <?php language_attributes(); ?> class="no-js">
<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 a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' - ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
?></title>
<!-- 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.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write(unescape('%3Cscript src="<?php echo get_template_directory_uri(); ?>/library/js/libs/jquery-1.7.1.min.js"%3E%3C/script%3E'))</script>
<!-- drop Google Analytics Here -->
<!-- end analytics -->
<!-- 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'); ?>">
</head>
<body <?php body_class(); ?>>
<div id="wrap">
<header role="banner">
<!-- to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> -->
<h1><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></h1>
<nav role="navigation">
<?php bones_main_nav(); // Adjust using Menus in Wordpress Admin ?>
</nav>
</header><!-- end header -->