This repository has been archived by the owner on Mar 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
/
header.php
executable file
·93 lines (76 loc) · 2.48 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
* AR2's main header template.
*
* @package AR2
* @since 1.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes() ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<?php if ( is_search() || is_author() ) : ?>
<meta name="robots" content="noindex, nofollow" />
<?php endif ?>
<title><?php ar2_document_title() ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ) ?>" />
<?php
wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr.custom.min.js', null, '2012-07-08' );
wp_enqueue_script( 'tinynav', get_template_directory_uri() . '/js/tinynav.min.js', array( 'jquery' ), '2012-08-02' );
if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
?>
<?php wp_head() ?>
</head>
<body <?php body_class() ?>>
<?php ar2_body() ?>
<div id="wrapper">
<nav id="top-menu" class="clearfix" role="navigation">
<?php ar2_above_top_menu() ?>
<?php
wp_nav_menu( array(
'sort_column' => 'menu_order',
'menu_class' => 'menu clearfix',
'theme_location' => 'top-menu',
'container' => false,
'fallback_cb' => ''
) );
?>
<?php ar2_below_top_menu() ?>
</nav><!-- #top-menu -->
<header id="header" role="banner">
<div id="branding" class="clearfix">
<?php if ( is_home() || is_front_page() ) : ?>
<hgroup class="logo">
<h1 class="blog-name"><a href="<?php echo home_url() ?>"><?php bloginfo('name'); ?></a></h1>
<h2 class="blog-description"><?php bloginfo('description'); ?></h2>
</hgroup>
<?php else: ?>
<div class="logo">
<span class="blog-name"><a href="<?php echo home_url() ?>"><?php bloginfo('name'); ?></a></span>
<span class="blog-description"><?php bloginfo('description'); ?></span>
</div>
<?php endif ?>
<div class="banner">
<?php /* Place a 728 x 90 leaderboard banner here? */ ?>
</div>
</div><!-- #branding -->
</header><!-- #header -->
<?php ar2_above_nav() ?>
<nav id="main-nav" role="navigation">
<?php
wp_nav_menu( array(
'sort_column' => 'menu_order',
'menu_class' => 'menu clearfix',
'theme_location'=> 'main-menu',
'container' => false,
'fallback_cb' => 'ar2_nav_fallback_cb'
) );
?>
</nav><!-- #nav -->
<?php ar2_below_nav() ?>
<?php ar2_above_main() ?>
<div id="main" class="clearfix">
<div id="container" class="clearfix">