/templates/default/extras/page-forum-statistics.php

  1. <?php 
  2.  
  3. /** 
  4. * Template Name: bbPress - Statistics 
  5. * 
  6. * @package bbPress 
  7. * @subpackage Theme 
  8. */ 
  9.  
  10. get_header(); ?> 
  11.  
  12. <?php do_action( 'bbp_before_main_content' ); ?> 
  13.  
  14. <?php do_action( 'bbp_template_notices' ); ?> 
  15.  
  16. <?php while ( have_posts() ) : the_post(); ?> 
  17.  
  18. <div id="bbp-statistics" class="bbp-statistics"> 
  19. <h1 class="entry-title"><?php the_title(); ?></h1> 
  20. <div class="entry-content"> 
  21.  
  22. <?php get_the_content() ? the_content() : _e( '<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress' ); ?> 
  23.  
  24. <div id="bbpress-forums"> 
  25.  
  26. <?php bbp_get_template_part( 'content', 'statistics' ); ?> 
  27.  
  28. <?php do_action( 'bbp_before_popular_topics' ); ?> 
  29.  
  30. <?php bbp_set_query_name( 'bbp_popular_topics' ); ?> 
  31.  
  32. <?php if ( bbp_view_query( 'popular' ) ) : ?> 
  33.  
  34. <h2 class="entry-title"><?php _e( 'Popular Topics', 'bbpress' ); ?></h2> 
  35.  
  36. <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 
  37.  
  38. <?php bbp_get_template_part( 'loop', 'topics' ); ?> 
  39.  
  40. <?php bbp_get_template_part( 'pagination', 'topics' ); ?> 
  41.  
  42. <?php endif; ?> 
  43.  
  44. <?php bbp_reset_query_name(); ?> 
  45.  
  46. <?php do_action( 'bbp_after_popular_topics' ); ?> 
  47.  
  48. </div> 
  49. </div> 
  50. </div><!-- #bbp-statistics --> 
  51.  
  52. <?php endwhile; ?> 
  53.  
  54. <?php do_action( 'bbp_after_main_content' ); ?> 
  55.  
  56. <?php get_sidebar(); ?> 
  57.  
  58. <?php get_footer(); 
.