Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 94 lines (76 sloc) 2.48 KB
<?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">