61 lines
1.9 KiB
PHP
61 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* آمار انجمن
|
|
*
|
|
* @package Hesabix2
|
|
* @subpackage bbPress
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
$stats = bbp_get_statistics();
|
|
|
|
?>
|
|
|
|
<dl role="main" class="bbp-stats">
|
|
|
|
<?php do_action( 'bbp_before_statistics' ); ?>
|
|
|
|
<dt><?php esc_html_e( 'کاربران ثبتنامشده', 'hesabix2' ); ?></dt>
|
|
<dd><strong><?php echo esc_html( $stats['user_count'] ); ?></strong></dd>
|
|
|
|
<dt><?php esc_html_e( 'انجمنها', 'hesabix2' ); ?></dt>
|
|
<dd><strong><?php echo esc_html( $stats['forum_count'] ); ?></strong></dd>
|
|
|
|
<dt><?php esc_html_e( 'موضوعات', 'hesabix2' ); ?></dt>
|
|
<dd><strong><?php echo esc_html( $stats['topic_count'] ); ?></strong></dd>
|
|
|
|
<dt><?php esc_html_e( 'پاسخها', 'hesabix2' ); ?></dt>
|
|
<dd><strong><?php echo esc_html( $stats['reply_count'] ); ?></strong></dd>
|
|
|
|
<dt><?php esc_html_e( 'برچسب موضوع', 'hesabix2' ); ?></dt>
|
|
<dd><strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong></dd>
|
|
|
|
<?php if ( ! empty( $stats['empty_topic_tag_count'] ) ) : ?>
|
|
<dt><?php esc_html_e( 'برچسبهای خالی', 'hesabix2' ); ?></dt>
|
|
<dd><strong><?php echo esc_html( $stats['empty_topic_tag_count'] ); ?></strong></dd>
|
|
<?php endif; ?>
|
|
|
|
<?php if ( ! empty( $stats['topic_count_hidden'] ) ) : ?>
|
|
<dt><?php esc_html_e( 'موضوعات مخفی', 'hesabix2' ); ?></dt>
|
|
<dd>
|
|
<strong>
|
|
<abbr title="<?php echo esc_attr( $stats['hidden_topic_title'] ); ?>"><?php echo esc_html( $stats['topic_count_hidden'] ); ?></abbr>
|
|
</strong>
|
|
</dd>
|
|
<?php endif; ?>
|
|
|
|
<?php if ( ! empty( $stats['reply_count_hidden'] ) ) : ?>
|
|
<dt><?php esc_html_e( 'پاسخهای مخفی', 'hesabix2' ); ?></dt>
|
|
<dd>
|
|
<strong>
|
|
<abbr title="<?php echo esc_attr( $stats['hidden_reply_title'] ); ?>"><?php echo esc_html( $stats['reply_count_hidden'] ); ?></abbr>
|
|
</strong>
|
|
</dd>
|
|
<?php endif; ?>
|
|
|
|
<?php do_action( 'bbp_after_statistics' ); ?>
|
|
|
|
</dl>
|
|
|
|
<?php unset( $stats );
|