elbee-elgee / page-forum-statistics.php

The default branch has multiple heads

<?php

/**
 * Template Name: bbPress - Statistics
 *
 * @package bbPress
 * @subpackage Theme
 */

// Get the statistics and extract them for later use in this template
// @todo - remove variable references
extract( bbp_get_statistics(), EXTR_SKIP );

?>

<?php get_header(); ?>

<?php get_template_part( 'bbp-wrapper-header' ); ?>

				<?php do_action( 'bbp_template_notices' ); ?>

				<?php while ( have_posts() ) : the_post(); ?>

					<div id="bbp-statistics" class="bbp-statistics">
						<h1 class="entry-title"><?php the_title(); ?></h1>
						<div class="entry-content">

							<?php get_the_content() ? the_content() : _e( '<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress' ); ?>

							<dl role="main">

								<?php do_action( 'bbp_before_statistics' ); ?>

								<dt><?php _e( 'Registered Users', 'bbpress' ); ?></dt>
								<dd>
									<strong><?php echo $user_count; ?></strong>
								</dd>

								<dt><?php _e( 'Forums', 'bbpress' ); ?></dt>
								<dd>
									<strong><?php echo $forum_count; ?></strong>
								</dd>

								<dt><?php _e( 'Topics', 'bbpress' ); ?></dt>
								<dd>
									<strong><?php echo $topic_count; ?></strong>
								</dd>

								<dt><?php _e( 'Replies', 'bbpress' ); ?></dt>
								<dd>
									<strong><?php echo $reply_count; ?></strong>
								</dd>

								<dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt>
								<dd>
									<strong><?php echo $topic_tag_count; ?></strong>
								</dd>

								<?php if ( !empty( $empty_topic_tag_count ) ) : ?>

									<dt><?php _e( 'Empty Topic Tags', 'bbpress' ); ?></dt>
									<dd>
										<strong><?php echo $empty_topic_tag_count; ?></strong>
									</dd>

								<?php endif; ?>

								<?php if ( !empty( $hidden_topic_count ) ) : ?>

									<dt><?php _e( 'Hidden Topics', 'bbpress' ); ?></dt>
									<dd>
										<strong>
											<abbr title="<?php echo esc_attr( $hidden_topic_title ); ?>"><?php echo $hidden_topic_count; ?></abbr>
										</strong>
									</dd>

								<?php endif; ?>

								<?php if ( !empty( $hidden_reply_count ) ) : ?>

									<dt><?php _e( 'Hidden Replies', 'bbpress' ); ?></dt>
									<dd>
										<strong>
											<abbr title="<?php echo esc_attr( $hidden_reply_title ); ?>"><?php echo $hidden_reply_count; ?></abbr>
										</strong>
									</dd>

								<?php endif; ?>

								<?php do_action( 'bbp_after_statistics' ); ?>

							</dl>

							<?php do_action( 'bbp_before_popular_topics' ); ?>

							<?php bbp_set_query_name( 'bbp_popular_topics' ); ?>

							<?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'posts_per_page' => 15, 'max_num_pages' => 1, 'orderby' => 'meta_value_num', 'show_stickies' => false ) ) ) : ?>

								<h2 class="entry-title"><?php _e( 'Popular Topics', 'bbpress' ); ?></h2>

								<?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>

								<?php bbp_get_template_part( 'bbpress/loop',       'topics' ); ?>

								<?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>

							<?php endif; ?>

							<?php bbp_reset_query_name(); ?>

							<?php do_action( 'bbp_after_popular_topics' ); ?>

						</div>
					</div><!-- #bbp-statistics -->

				<?php endwhile; ?>

<?php get_template_part( 'bbp-wrapper-footer' ); ?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.