-
Notifications
You must be signed in to change notification settings - Fork 5
/
header.php
68 lines (59 loc) · 2.47 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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section
*
* @package WordPress
* @subpackage Typical
*/
?>
<!DOCTYPE html>
<!--[if IE 7]> <html class="ie ie7 lt-ie8 lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="ie ie8 lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 9]> <html class="ie ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 9]> <html <?php language_attributes(); ?>> <![endif]-->
<!--[if !IE]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
global $page, $paged;
wp_title( '|', true, 'right' );
bloginfo( 'name' );
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/selectivizr-min.js"></script>
<![endif]-->
<?php wp_head(); ?>
<?php typical_body_font(); ?>
</head>
<body <?php body_class(); ?>>
<header role="banner">
<?php
$logo = get_option( 'logo-image' );
if ( $logo != null ) {
$home_url = home_url( '/' );
$home_url_escaped = esc_url($home_url);
?>
<hgroup>
<h1 class="with-image"><a href="<?php echo $home_url_escaped; ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><span><?php bloginfo( 'name' ); ?></span><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/custom-logo.png" alt="" /></a></h1>
<h2><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<?php } else { ?>
<hgroup>
<h1><a href="<?php echo $home_url_escaped; ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<?php } ?>
<?php wp_nav_menu( array( 'container' => 'nav', 'fallback_cb' => 'typical_menu', 'theme_location' => 'primary' ) ); ?>
<div></div>
</header>
<div>