Skip to content

Instantly share code, notes, and snippets.

@twittem twittem/gist:6022669
Created Jul 17, 2013

Embed
What would you like to do?
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/AbaData-nav.png" alt="AbaData Logo" /></a>
<?php
wp_nav_menu( array(
//'sort_column' => 'menu_order',
'menu' => 'header_menu',
'depth' => 4,
'container' => false,
'menu_class' => 'nav',
'walker' => new wp_bootstrap_navwalker())
);
?>
<?php if ( is_user_logged_in()) {
global $current_user;
get_currentuserinfo();
$user = $current_user->ID;
?>
<div class="btn-group pull-right">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<strong>My Account</strong> &nbsp; <i class="glyphicon-chevron-down"></i>
</a>
<?php
wp_nav_menu(
array(
'theme_location' => 'account_menu',
'depth' => 1,
'container' => false,
'menu_class' => 'dropdown-menu pull-right',
'walker' => new wp_bootstrap_navwalker(),
)
);
?>
</div>
<?php } else { ?>
<div class="btn-group pull-right">
<a class="btn btn-register" href="#loginModal" role="button" data-toggle="modal" >
<i class="glyphicon-ok-sign"></i> <strong>Register</strong>
</a>
<a class="btn btn-signin" href="#loginModal" role="button" data-toggle="modal" >
<i class="glyphicon-lock"></i> <strong>Sign In</strong>
</a>
</div>
<?php } //End If ?>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.