-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
executable file
·66 lines (53 loc) · 2.44 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<!-- "H5": The HTML-5 WordPress Template Theme -->
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">
<title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
<meta name="description" content="<?php bloginfo('description'); ?>">
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<?php wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js');
wp_enqueue_script('jquery');
?>
<?php wp_head(); ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen">
<link rel="alternate" type="text/xml" title="<?php bloginfo('name'); ?> RSS 0.92 Feed" href="<?php bloginfo('rss_url'); ?>">
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>">
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS 2.0 Feed" href="<?php bloginfo('rss2_url'); ?>">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<script src="<?php bloginfo('template_directory'); ?>/javascript/h5.js"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/coin-slider-styles.css" media="screen">
</head>
<body <?php body_class(); ?>>
<header>
<h1><a href="<?php bloginfo('url'); ?>/"><span><?php bloginfo('name'); ?></span></a></h1>
<h2><span><?php bloginfo('description'); ?></span></h2>
</header>
<nav>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
<div class="subnav">
<?php
if (is_front_page()) {
echo "<span class=\"menunote\">We invite you to join us this June for Apogaea 2013<span>";
} else {
?>
<ul style="clear: both">
<?php
if (is_home()) {
$parent = 2014;
} else if ($post->post_parent) {
$ancestors=get_post_ancestors($post->ID);
$root=count($ancestors)-1;
$parent = $ancestors[$root];
} else {
$parent = $post->ID;
}
wp_list_pages("title_li=&child_of=". $parent ."&echo=1&depth=1");
?>
</ul>
</div>
<?php
}
?>
</nav>