-
Notifications
You must be signed in to change notification settings - Fork 5
/
header.php
executable file
·39 lines (35 loc) · 1.03 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
<link rel="profile" href="http://microformats.org/profile/specs" />
<link rel="profile" href="http://microformats.org/profile/hatom" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrap">
<div id="header">
<h1>
<?php if ( is_home() ) { ?>
<img src="<?php bloginfo( 'stylesheet_directory' ); ?>/img/logo.gif" width="144" height="36" alt="microformats" />
<?php } else { ?>
<a href="/">
<img src="<?php bloginfo( 'stylesheet_directory' ); ?>/img/logo.gif" width="144" height="36" alt="microformats" />
</a>
<?php } ?></h1>
<?php if ( has_nav_menu( 'primary' ) ) { ?>
<nav id="nav">
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'primary-menu',
'container' => '' // Do not wrap in <div>
)
);
?>
</nav>
<?php } ?>
</div>
<hr class="hide" />