Changeset 4497
- Timestamp:
- 11/24/2012 06:14:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/default/extras/page-forum-statistics.php
r4225 r4497 9 9 10 10 // Get the statistics and extract them for later use in this template 11 // @todo - remove variable references 12 extract( bbp_get_statistics(), EXTR_SKIP ); 11 $stats = bbp_get_statistics(); 13 12 14 13 get_header(); ?> … … 34 33 <dt><?php _e( 'Registered Users', 'bbpress' ); ?></dt> 35 34 <dd> 36 <strong><?php echo $ user_count; ?></strong>35 <strong><?php echo $stats['user_count']; ?></strong> 37 36 </dd> 38 37 39 38 <dt><?php _e( 'Forums', 'bbpress' ); ?></dt> 40 39 <dd> 41 <strong><?php echo $ forum_count; ?></strong>40 <strong><?php echo $stats['forum_count']; ?></strong> 42 41 </dd> 43 42 44 43 <dt><?php _e( 'Topics', 'bbpress' ); ?></dt> 45 44 <dd> 46 <strong><?php echo $ topic_count; ?></strong>45 <strong><?php echo $stats['topic_count']; ?></strong> 47 46 </dd> 48 47 49 48 <dt><?php _e( 'Replies', 'bbpress' ); ?></dt> 50 49 <dd> 51 <strong><?php echo $ reply_count; ?></strong>50 <strong><?php echo $stats['reply_count']; ?></strong> 52 51 </dd> 53 52 54 53 <dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt> 55 54 <dd> 56 <strong><?php echo $ topic_tag_count; ?></strong>55 <strong><?php echo $stats['topic_tag_count']; ?></strong> 57 56 </dd> 58 57 59 <?php if ( !empty( $ empty_topic_tag_count) ) : ?>58 <?php if ( !empty( $stats['empty_topic_tag_count'] ) ) : ?> 60 59 61 60 <dt><?php _e( 'Empty Topic Tags', 'bbpress' ); ?></dt> 62 61 <dd> 63 <strong><?php echo $ empty_topic_tag_count; ?></strong>62 <strong><?php echo $stats['empty_topic_tag_count']; ?></strong> 64 63 </dd> 65 64 66 65 <?php endif; ?> 67 66 68 <?php if ( !empty( $ topic_count_hidden) ) : ?>67 <?php if ( !empty( $stats['topic_count_hidden'] ) ) : ?> 69 68 70 69 <dt><?php _e( 'Hidden Topics', 'bbpress' ); ?></dt> 71 70 <dd> 72 71 <strong> 73 <abbr title="<?php echo esc_attr( $ hidden_topic_title ); ?>"><?php echo $topic_count_hidden; ?></abbr>72 <abbr title="<?php echo esc_attr( $stats['hidden_topic_title'] ); ?>"><?php echo $stats['topic_count_hidden']; ?></abbr> 74 73 </strong> 75 74 </dd> … … 77 76 <?php endif; ?> 78 77 79 <?php if ( !empty( $ reply_count_hidden) ) : ?>78 <?php if ( !empty( $stats['reply_count_hidden'] ) ) : ?> 80 79 81 80 <dt><?php _e( 'Hidden Replies', 'bbpress' ); ?></dt> 82 81 <dd> 83 82 <strong> 84 <abbr title="<?php echo esc_attr( $ hidden_reply_title ); ?>"><?php echo $reply_count_hidden; ?></abbr>83 <abbr title="<?php echo esc_attr( $stats['hidden_reply_title'] ); ?>"><?php echo $stats['reply_count_hidden']; ?></abbr> 85 84 </strong> 86 85 </dd> … … 120 119 <?php do_action( 'bbp_after_main_content' ); ?> 121 120 121 <?php unset( $stats ); ?> 122 122 123 <?php get_sidebar(); ?> 123 <?php get_footer(); ?> 124 125 <?php get_footer();
Note: See TracChangeset
for help on using the changeset viewer.