<?php
register_nav_menus(array(
- 'top-bar' => 'Site Navigation'
+ 'top-bar' => 'Site Navigation',
+ 'header-nav' => 'Second Header Navigation'
));
/**
'after' => '', // after each link </a>
'link_before' => '', // before each link text
'link_after' => '', // after each link text
- 'depth' => 3, // limit the depth of the nav
+ 'depth' => 2, // limit the depth of the nav
'fallback_cb' => false, // fallback function (see below)
'walker' => new Glm_Theme_Top_Bar_Walker()
));
'after' => '', // after each link </a>
'link_before' => '', // before each link text
'link_after' => '', // after each link text
- 'depth' => 5, // limit the depth of the nav
+ 'depth' => 2, // limit the depth of the nav
'fallback_cb' => false, // fallback function (see below)
'walker' => new Glm_Theme_Off_Canvas_Walker()
));
return preg_replace( array( '%^<ul[^>]*>%', '%</ul>$%' ), '', $menu );
}
+/**
+ * Header
+ */
+if ( ! function_exists( 'glm_theme_head_nav' ) ) {
+ function glm_theme_head_nav() {
+ wp_nav_menu(array(
+ 'container' => false, // remove nav container
+ 'container_class' => '', // class of container
+ 'menu' => '', // menu name
+ 'menu_class' => '', // adding custom nav class
+ 'theme_location' => 'header-nav', // where it's located in the theme
+ 'before' => '', // before each link <a>
+ 'after' => '', // after each link </a>
+ 'link_before' => '', // before each link text
+ 'link_after' => '', // after each link text
+ 'depth' => 1, // limit the depth of the nav
+ 'fallback_cb' => false, // fallback function (see below)
+ ));
+ }
+}
+
/**
* Footer
*/
<header class="main">
<div class="row medium-uncollapse large-collapse">
- <div id="logo-tag" class="small-12 text-center medium-12 columns">
- <?php get_custom_logo($blog_id = 0 );?>
- <?php the_custom_logo($blog_id = 0 );?>
- <?php
- if ( is_front_page() && is_home() ) : ?>
- <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
- <?php else : ?>
- <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
- <?php endif;
- $description = get_bloginfo( 'description', 'display' );
- if ( $description || is_customize_preview() ) : ?>
- <h3 class="site-description"><?php echo $description; ?></h3>
- <?php endif;
- ?>
+ <div id="logo-tag" class="small-12 text-center medium-3 columns">
+ <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img src="<?php bloginfo('template_url');?>/assets/brewbakers-logo.png"></a>
+ </div>
+ <div class="medium-9 columns show-for-medium-up">
+ <div class="right">
+ <?php glm_theme_head_nav(); ?>
+ </div>
+ <?php include "sections/top-bar.php";?>
</div>
</div>
</header>
\ No newline at end of file