-
Notifications
You must be signed in to change notification settings - Fork 10
/
header.php
57 lines (51 loc) · 1.7 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
<?php
/**
* Template for the header of the website. Sets the meta information and opens up a bunch of wrapper elements.
*
* @package WordPress-960
* @see footer.php
*/
?><!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php bloginfo('name'); ?> | <?php is_home() ? bloginfo('description') : wp_title(''); ?></title>
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
<?php wp_head(); ?>
</head>
<body>
<?php global $wordpress_960; ?>
<div class="container_12">
<header>
<!-- Site Description & Title -->
<hgroup id="header" class="grid_12 alpha omega">
<h1><a href="<?php echo site_url(); ?>"><?php bloginfo('title'); ?></a></h1>
<?php
// Description is actually labelled "Tagline" in Wordpress 3.x
$description = get_bloginfo('description');
if (! empty($description)) : ?>
<h4 class="subheader"><?php echo $description; ?></h4>
<?php endif; ?>
</hgroup>
<!-- Header Navigation -->
<div class="grid_8 alpha">
<?php wp_nav_menu( array(
'theme_location' => 'header',
'menu_class' => 'nav-bar',
'container' => 'nav'
) ); ?>
</div>
<!-- Search -->
<div class="grid_4 omega">
<?php get_search_form(); ?>
</div>
<div class="clear"></div>
<!-- Header Widgets -->
<aside class="grid_12 alpha omega">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Header') ) : ?><?php endif; ?>
<div class="clear"></div>
</aside>
</header>
<div class="clear"></div>
<!-- Content Wrapper -->
<div id="content" class="content-wrapper">