<?php
register_nav_menus(array(
- 'top-bar' => 'Site Navigation',
- 'mobile-menu' => 'Off Canvas',
- 'top-links' => 'Top Links',
+ 'public' => 'Public Topbar',
+ 'owners' => 'Owners Topbar',
+ 'mobile-menu' => 'Off Canvas',
+ 'top-links' => 'Top Links',
));
if ( ! function_exists( 'glm_theme_members_only' ) ) {
* Mobile off-canvas
*/
if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) {
- function glm_theme_mobile_off_canvas($location) {
+ function glm_theme_mobile_off_canvas() {
echo '<div class="left-off-canvas-list">';
echo '<ul><li class="page_item"><a href="' . get_bloginfo('url') . '">Home</a></li>';
- echo glm_get_mobile_nav_menu( 'top-bar' );
if(is_in_tree(OWNERS_PAGE) ){
+ echo glm_get_mobile_nav_menu( 'owners' );
echo glm_get_mobile_nav_menu( 'top-links' );
+ }else{
+ echo glm_get_mobile_nav_menu( 'public' );
}
echo '</ul></div>';
}
<nav class="large-12 columns top-bar text-center show-for-large-up opensearchserver.ignore" data-topbar role="navigation" data-options="sticky_on: large">
<section class="top-bar-section">
- <?php glm_theme_top_bar('top-bar'); ?>
+ <?php
+ if(is_in_tree(OWNERS_PAGE) ):
+ glm_theme_top_bar('owners');
+ else:
+ glm_theme_top_bar('public');
+ endif;
+ ?>
</section>
</nav>
<nav class="tab-bar show-for-medium-down">