-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
72 lines (61 loc) · 2.96 KB
/
Copy pathheader.php
File metadata and controls
72 lines (61 loc) · 2.96 KB
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
<?php
/*
* The header template
*
* @package Inception
* @author Adam Chamberlin
* @since 1.0
*
*/
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<!-- Meta-Data -->
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="Adam Chamberlin">
<meta name="description" content="<?php bloginfo( 'description' ); ?>">
<meta name="viewport" content="maximum-scale=1.0, width=device-width, initial-scale=1.0">
<!-- Title -->
<title><?php
if( is_single() ) { single_post_title(); }
elseif( is_home() || is_front_page()) { bloginfo( 'name' ); print ' | '; bloginfo( 'description' ); get_page_number(); }
elseif(is_page()) { single_post_title(''); }
elseif(is_search()) { bloginfo( 'name' ); print ' | Search results for ' . wp_specialchars($s); get_page_number(); }
elseif(is_404()) { bloginfo( 'name' ); print ' | Not Found'; }
else { bloginfo( 'name' ); wp_title('|'); get_page_number(); }
?></title>
<!-- Links, favicons and feeds -->
<link rel="stylesheet" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link rel="shortcut icon" href="<?php echo IMAGES_PATH; ?>/favicon.ico">
<link rel="apple-touch-icon" href="<?php echo IMAGES_PATH; ?>/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo IMAGES_PATH; ?>/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo IMAGES_PATH; ?>/apple-touch-icon-114x114.png">
<!-- IE Fix and hack -->
<!-- [iflt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<link rel="stylesheet" href="<?php echo CSS_PATH; ?>/ie.css">
<![endif]-->
<?php wp_head(); // WordPress head hook ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper" class="hfeed">
<header id="masthead" role="banner">
<hgroup>
<h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<nav id="main-navigation" role="navigation">
<h1 class="assistive-text"><?php __( 'Menu', 'inception' ); ?></h1>
<div class="skip-link">
<a href="#content" title="<?php __( 'Skip to content', 'inception' ); ?>"><?php __( 'Skip to content', 'inception' ); ?></a>
</div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #access -->
</header><!-- #header -->