hesabixWpTheme/bbpress/content-single-topic.php

77 lines
1.7 KiB
PHP

<?php
/**
* تک‌موضوع — Hesabix2
*
* @package Hesabix2
* @subpackage bbPress
*/
defined( 'ABSPATH' ) || exit;
?>
<div id="bbpress-forums" class="bbpress-wrapper">
<?php do_action( 'bbp_template_before_single_topic' ); ?>
<?php if ( post_password_required() ) : ?>
<?php bbp_get_template_part( 'form', 'protected' ); ?>
<?php else : ?>
<div class="hesabix2-bbp-topic-facts">
<div class="hesabix2-bbp-topic-facts__main">
<div class="hesabix2-bbp-engagement">
<?php bbp_topic_subscription_link(); ?>
<?php bbp_topic_favorite_link(); ?>
</div>
<?php
if ( bbp_allow_topic_tags() ) {
bbp_topic_tag_list(
0,
array(
'before' => '<div class="bbp-topic-tags hesabix2-bbp-topic-meta__tags"><span class="hesabix2-bbp-topic-meta__label">' . esc_html__( 'برچسب‌ها:', 'hesabix2' ) . '</span> ',
'sep' => ' ',
'after' => '</div>',
)
);
}
?>
<?php bbp_single_topic_description(); ?>
</div>
<?php if ( bbp_has_replies() ) : ?>
<div class="hesabix2-bbp-topic-facts__pager">
<?php bbp_get_template_part( 'pagination', 'replies' ); ?>
</div>
<?php endif; ?>
</div>
<?php if ( bbp_show_lead_topic() ) : ?>
<?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?>
<?php endif; ?>
<?php if ( bbp_has_replies() ) : ?>
<?php bbp_get_template_part( 'loop', 'replies' ); ?>
<?php
if ( function_exists( 'hesabix2_bbpress_topic_has_paged_replies' ) && hesabix2_bbpress_topic_has_paged_replies() ) {
bbp_get_template_part( 'pagination', 'replies' );
}
?>
<?php endif; ?>
<?php bbp_get_template_part( 'form', 'reply' ); ?>
<?php endif; ?>
<?php do_action( 'bbp_template_after_single_topic' ); ?>
</div>