Commits

Doug Stewart  committed 4cd0211

Conditionally load the entire BP infrastructure.

  • Participants
  • Parent commits c7ba67d

Comments (0)

Files changed (2)

File bp-wrapper-footer.php

 		</div><!-- #lb-content -->
 	</div><!-- #wrapper -->
 	
-	<?php get_sidebar( 'buddypress' ) ?>
+	<?php //get_sidebar( 'buddypress' ) ?>
+	<?php locate_template( array( 'sidebar.php' ), true ) ?>
 	
 </div><!-- #allwrapper -->

File functions.php

 
 require_once( LBLG_FUNCTIONS_DIR . 'supports.php' );
 
-require_once( LBLG_FUNCTIONS_DIR . 'buddypress.php' );
-
+// Only load the BuddyPress-related code if BP is active
+if( function_exists( 'bp_init' ))
+	require_once( LBLG_FUNCTIONS_DIR . 'buddypress.php' );
 ?>