Add ability to include header without top navbar
This commit is contained in:
11
templates/header-default.php
Normal file
11
templates/header-default.php
Normal 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>
|
||||
18
templates/header-top-navbar.php
Normal file
18
templates/header-top-navbar.php
Normal 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>
|
||||
Reference in New Issue
Block a user