| 1 |
<section <?php bbp_topic_class(get_the_ID(), array('forum-single-content')); ?>> |
| 2 |
<div class="forum-layout"> |
| 3 |
|
| 4 |
<div class="forum-main-column"> |
| 5 |
|
| 6 |
<?php |
| 7 |
if ( post_password_required() ) : |
| 8 |
bbp_get_template_part( 'form', 'protected' ); |
| 9 |
else : |
| 10 |
bbp_get_template_part( 'content', 'single-topic-lead' ); |
| 11 |
?> |
| 12 |
|
| 13 |
<?php if ( bbp_has_replies() ) : ?> |
| 14 |
|
| 15 |
<div id="topic-<?php bbp_topic_id(); ?>-replies" class="all-answers"> |
| 16 |
|
| 17 |
<div class="all-replies-header frmx-all-replies-header"> |
| 18 |
<h5 class="replies-title"> |
| 19 |
<?php esc_html_e('All Replies', 'forumax'); ?> |
| 20 |
</h5> |
| 21 |
|
| 22 |
<div class="replies-sorting"> |
| 23 |
<select name="sort-replies" id="sort-replies" class="replies-sort-select"> |
| 24 |
<option selected disabled>Sort By</option> |
| 25 |
<option value="desc">Newest First</option> |
| 26 |
<option value="asc">Oldest First</option> |
| 27 |
<option value="vote">Highest Votes First</option> |
| 28 |
</select> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
|
| 32 |
<div class="reply-result"> |
| 33 |
<?php bbp_get_template_part( 'loop', 'replies' ); ?> |
| 34 |
</div> |
| 35 |
|
| 36 |
<?php bbp_get_template_part( 'pagination', 'replies' ); ?> |
| 37 |
|
| 38 |
</div> |
| 39 |
|
| 40 |
<?php endif; ?> |
| 41 |
|
| 42 |
<?php bbp_get_template_part( 'form', 'reply' ); ?> |
| 43 |
|
| 44 |
<?php bbp_get_template_part( 'alert', 'topic-lock' ); ?> |
| 45 |
|
| 46 |
<?php do_action( 'bbp_template_after_single_topic' ); ?> |
| 47 |
|
| 48 |
<?php endif; ?> |
| 49 |
|
| 50 |
</div> |
| 51 |
<!-- /.forum-main-column --> |
| 52 |
</div> |
| 53 |
</section> |