/bp-forums/bbpress/bb-templates/kakumei/stats.php

  1. <?php bb_get_header(); ?> 
  2.  
  3. <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option( 'name' ); ?></a> » <?php _e( 'Statistics' ); ?></div> 
  4.  
  5. <dl role="main" class="left"> 
  6. <dt><?php _e( 'Registered Users' ); ?></dt> 
  7. <dd><strong><?php bb_total_users(); ?></strong></dd> 
  8. <dt><?php _e( 'Posts' ); ?></dt> 
  9. <dd><strong><?php total_posts(); ?></strong></dd> 
  10. <?php do_action( 'bb_stats_left' ); ?> 
  11. </dl> 
  12.  
  13. <div class="right"> 
  14. <?php if ( $popular ) : ?> 
  15. <h3><?php _e( 'Most Popular Topics' ); ?></h3> 
  16. <ol> 
  17. <?php foreach ( $popular as $topic ) : ?> 
  18. <li><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> — <?php printf( _n( '%s post', '%s posts', get_topic_posts() ), bb_number_format_i18n( get_topic_posts() ) ); ?></li> 
  19. <?php endforeach; ?> 
  20. </ol> 
  21. <?php endif; ?> 
  22.  
  23. <?php do_action( 'bb_stats_right' ); ?> 
  24. </div> 
  25.  
  26. <?php bb_get_footer(); ?> 
.