Add ability to include header without top navbar

This commit is contained in:
Ben Word
2012-05-09 01:28:39 -06:00
parent 7d2b3c1e07
commit f1ff5204a3
6 changed files with 47 additions and 20 deletions

View File

@@ -0,0 +1,11 @@
<header id="banner" role="banner">
<?php roots_header_inside(); ?>
<div class="<?php echo WRAP_CLASSES; ?>">
<a class="brand" href="<?php echo home_url(); ?>/">
<?php bloginfo('name'); ?>
</a>
<nav id="nav-main" role="navigation">
<?php wp_nav_menu(array('theme_location' => 'primary_navigation')); ?>
</nav>
</div>
</header>

View File

@@ -0,0 +1,18 @@
<header id="banner" class="navbar navbar-fixed-top" role="banner">
<?php roots_header_inside(); ?>
<div class="navbar-inner">
<div class="<?php echo WRAP_CLASSES; ?>">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="<?php echo home_url(); ?>/">
<?php bloginfo('name'); ?>
</a>
<nav id="nav-main" class="nav-collapse" role="navigation">
<?php wp_nav_menu(array('theme_location' => 'primary_navigation', 'walker' => new Roots_Navbar_Nav_Walker(), 'menu_class' => 'nav')); ?>
</nav>
</div>
</div>
</header>