Commits

Doug Stewart committed 1381ffb

Adding hook to support bp-navigation template.

  • Participants
  • Parent commits 32fae67

Comments (0)

Files changed (2)

 		<?php lblg_print_title(); ?>
 		<p class="description"><span><?php bloginfo( 'description' ); ?></span></p>
 	</div>
-	<?php 
-	// If BuddyPress is active, let's display the BP menu
-	/*if(function_exists('bp_is_page')){
-		get_template_part( 'bp-navigation' );
-	}*/
-	?>
+	<?php lblg_print_bp_menu(); ?>
 </div>
 <?php lblg_print_menu(); ?>

File includes/functions/hooks.php

 	do_action( 'lblg_print_menu' );
 }
 
+function lblg_print_bp_menu(){
+	do_action( 'lblg_print_bp_menu' );
+}
+
 function lblg_above_content(){
 	do_action( 'lblg_above_content' );
 }
 	}
 }
 
+function lblg_bp_menu() {
+		get_template_part( 'bp-navigation' );
+}
+
 function lblg_styles(){
 	global $lblg_shortname, $lblg_options;
 	$layout_handle = $lblg_shortname . '_layout_stylesheet';
 // Only load the BuddyPress menu code if BP is active
 if( function_exists( 'bp_get_loggedin_user_nav' ) ){
 	add_action( 'widgets_init', 'lblg_add_default_buddypress_menu' );
+	add_action( 'lblg_print_bp_menu', 'lblg_bp_menu' );
 }
 
 // Only load custom header code if the option is checked