-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
46 lines (41 loc) · 1.75 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
<!DOCTYPE html>
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if (gt IE 7) | (!IE)]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<title><?php wp_title('|', true, 'right'); ?></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php do_action('pilcrow_before'); ?>
<div id="container" class="hfeed">
<?php do_action('before'); ?>
<div id="page" class="blog">
<div id="header">
<?php $heading_tag = (is_home() || is_front_page()) ? 'h1' : 'div'; ?>
<<?php echo $heading_tag; ?> id="site-title">
<span>
<a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home"><?php bloginfo('name'); ?></a>
</span>
</<?php echo $heading_tag; ?>>
<div id="nav" role="navigation">
<?php wp_nav_menu(array('container_class' => 'menu-header', 'theme_location' => 'primary')); ?>
</div>
<div id="pic">
<a href="<?php echo get_custom_header()->source; ?>" rel="home">
<?php
if (is_singular() && has_post_thumbnail() &&
($image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'post-thumbnail')) &&
$image[1] >= get_custom_header()->width) :
the_post_thumbnail();
elseif (get_header_image()) : ?>
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
<?php endif; ?>
</a>
</div>
</div>
<div id="content-box">