[ Index ] |
PHP Cross Reference of BBPress |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Statistics Content Part 5 * 6 * @package bbPress 7 * @subpackage Theme 8 */ 9 10 // Exit if accessed directly 11 defined( 'ABSPATH' ) || exit; 12 13 // Get the statistics 14 $stats = bbp_get_statistics(); ?> 15 16 <dl role="main" class="bbp-stats"> 17 18 <?php do_action( 'bbp_before_statistics' ); ?> 19 20 <dt><?php esc_html_e( 'Registered Users', 'bbpress' ); ?></dt> 21 <dd> 22 <strong><?php echo esc_html( $stats['user_count'] ); ?></strong> 23 </dd> 24 25 <dt><?php esc_html_e( 'Forums', 'bbpress' ); ?></dt> 26 <dd> 27 <strong><?php echo esc_html( $stats['forum_count'] ); ?></strong> 28 </dd> 29 30 <dt><?php esc_html_e( 'Topics', 'bbpress' ); ?></dt> 31 <dd> 32 <strong><?php echo esc_html( $stats['topic_count'] ); ?></strong> 33 </dd> 34 35 <dt><?php esc_html_e( 'Replies', 'bbpress' ); ?></dt> 36 <dd> 37 <strong><?php echo esc_html( $stats['reply_count'] ); ?></strong> 38 </dd> 39 40 <dt><?php esc_html_e( 'Topic Tags', 'bbpress' ); ?></dt> 41 <dd> 42 <strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong> 43 </dd> 44 45 <?php if ( ! empty( $stats['empty_topic_tag_count'] ) ) : ?> 46 47 <dt><?php esc_html_e( 'Empty Topic Tags', 'bbpress' ); ?></dt> 48 <dd> 49 <strong><?php echo esc_html( $stats['empty_topic_tag_count'] ); ?></strong> 50 </dd> 51 52 <?php endif; ?> 53 54 <?php if ( ! empty( $stats['topic_count_hidden'] ) ) : ?> 55 56 <dt><?php esc_html_e( 'Hidden Topics', 'bbpress' ); ?></dt> 57 <dd> 58 <strong> 59 <abbr title="<?php echo esc_attr( $stats['hidden_topic_title'] ); ?>"><?php echo esc_html( $stats['topic_count_hidden'] ); ?></abbr> 60 </strong> 61 </dd> 62 63 <?php endif; ?> 64 65 <?php if ( ! empty( $stats['reply_count_hidden'] ) ) : ?> 66 67 <dt><?php esc_html_e( 'Hidden Replies', 'bbpress' ); ?></dt> 68 <dd> 69 <strong> 70 <abbr title="<?php echo esc_attr( $stats['hidden_reply_title'] ); ?>"><?php echo esc_html( $stats['reply_count_hidden'] ); ?></abbr> 71 </strong> 72 </dd> 73 74 <?php endif; ?> 75 76 <?php do_action( 'bbp_after_statistics' ); ?> 77 78 </dl> 79 80 <?php unset( $stats );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Apr 26 01:01:04 2024 | Cross-referenced by PHPXref 0.7.1 |