58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Template Name: bbPress - آمار انجمن
|
|
*
|
|
* @package Hesabix2
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<main id="main-content" class="site-main hesabix2-bbp-main">
|
|
<div class="hesabix2-bbp-wrap max-w-6xl mx-auto px-3 sm:px-4 lg:px-6 py-3 sm:py-4 lg:py-5">
|
|
<?php
|
|
if ( function_exists( 'hesabix2_bbpress_render_shell' ) ) {
|
|
hesabix2_bbpress_render_shell();
|
|
}
|
|
?>
|
|
|
|
<div class="hesabix2-bbp-content" id="bbp-statistics">
|
|
<?php
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
?>
|
|
<?php if ( get_the_content() ) : ?>
|
|
<div class="hesabix2-bbp-intro entry-content">
|
|
<?php the_content(); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div id="bbpress-forums" class="bbpress-wrapper">
|
|
<?php bbp_get_template_part( 'content', 'statistics' ); ?>
|
|
|
|
<?php do_action( 'bbp_before_popular_topics' ); ?>
|
|
<?php bbp_set_query_name( 'bbp_popular_topics' ); ?>
|
|
|
|
<?php if ( bbp_view_query( 'popular' ) ) : ?>
|
|
<h2 class="hesabix2-bbp-section-title"><?php esc_html_e( 'موضوعات پربحث', 'hesabix2' ); ?></h2>
|
|
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
|
|
<?php bbp_get_template_part( 'loop', 'topics' ); ?>
|
|
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php bbp_reset_query_name(); ?>
|
|
<?php do_action( 'bbp_after_popular_topics' ); ?>
|
|
</div>
|
|
<?php
|
|
endwhile;
|
|
?>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<?php
|
|
get_footer();
|