Last active
December 30, 2015 03:29
-
-
Save fovoc/7769307 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_custom_header_top_navbar_override() { | |
?> | |
<header class="banner navbar navbar-default topnavbar <?php echo shoestrap_navbar_class(); ?>" role="banner"> | |
<div class="navbar-inside <?php echo shoestrap_container_class(); ?>"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-main, .nav-extras"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<?php | |
if ( shoestrap_getVariable( 'navbar_brand' ) != 0 ) : | |
echo '<a class="navbar-brand ' . shoestrap_branding_class( false ) . '" href="' . home_url() . '/">'; | |
if ( shoestrap_getVariable( 'navbar_logo' ) == 1 ) | |
shoestrap_logo(); | |
else | |
bloginfo( 'name' ); | |
echo '</a>'; | |
endif; | |
?> | |
</div> | |
<div class="nav-extras"> | |
<?php do_action( 'shoestrap_pre_main_nav' ); ?> | |
</div> | |
<nav class="nav-main navbar-collapse collapse" role="navigation"> | |
<?php | |
do_action( 'shoestrap_inside_nav_begin' ); | |
if (has_nav_menu('primary_navigation')) : | |
wp_nav_menu( array( 'theme_location' => 'primary_navigation', 'menu_class' => shoestrap_nav_class_pull() ) ); | |
endif; | |
do_action( 'shoestrap_inside_nav_end' ); | |
?> | |
</nav> | |
<?php do_action( 'shoestrap_post_main_nav' ); ?> | |
</div> | |
</header> | |
<?php | |
} | |
add_action( 'shoestrap_header_top_navbar_override', 'my_custom_header_top_navbar_override' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment