/bp-forums/bbpress/index.php

  1. <?php 
  2.  
  3. require('./bb-load.php'); 
  4.  
  5. bb_repermalink(); 
  6.  
  7. $bb_db_override = false; 
  8. do_action( 'bb_index.php_pre_db' ); 
  9.  
  10. if ( isset($_GET['new']) && '1' == $_GET['new'] ) : 
  11. $forums = false; 
  12. elseif ( !$bb_db_override ) : 
  13. $forums = bb_get_forums(); // Comment to hide forums 
  14. if ( $topics = get_latest_topics( false, $page ) ) { 
  15. bb_cache_last_posts( $topics ); 
  16. if ( $super_stickies = get_sticky_topics() ) { 
  17. bb_cache_last_posts( $super_stickies ); 
  18. endif; 
  19.  
  20. bb_load_template( 'front-page.php', array('bb_db_override', 'super_stickies') ); 
  21.  
  22. ?> 
.