Skip to content

Commit

Permalink
Update of header to include menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hypertexture committed Apr 26, 2014
1 parent a47dbab commit c98f3f8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,31 @@
<body <?php body_class(); ?>>

<div id="header">
<?php do_action( 'before' ); ?>

<div class="sleeve">
<h1><a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<?php if ( get_bloginfo( 'description' ) ) : ?>
<small><?php bloginfo( 'description' ); ?></small>
<?php endif; ?>
<a class="secondary" href="<?php echo home_url( '/' ); ?>"></a>

<?php if ( current_user_can( 'publish_posts' ) ) : ?>
<a href="" id="mobile-post-button" style="display: none;"><?php _e( 'Post', 'p2' ) ?></a>
<?php endif; ?>
</div>

<?php if ( has_nav_menu( 'primary' ) ) : ?>
<div role="navigation" class="site-navigation main-navigation">
<h1 class="assistive-text"><?php _e( 'Menu', 'p2' ); ?></h1>
<div class="assistive-text skip-link"><a href="#main" title="<?php esc_attr_e( 'Skip to content', 'p2' ); ?>"><?php _e( 'Skip to content', 'p2' ); ?></a></div>

<?php wp_nav_menu( array(
'theme_location' => 'primary',
'fallback_cb' => '__return_false',
) ); ?>
</div>
<?php endif; ?>

</div>

Expand Down

0 comments on commit c98f3f8

Please sign in to comment.