| @@ -9,15 +9,14 @@ | ||
| 9 | 9 | // Exit if accessed directly |
| 10 | 10 | defined('ABSPATH') || exit; |
| 11 | 11 | |
| 12 | 12 | $has_sidebar = is_active_sidebar('forum_archive_sidebar'); |
| 13 | -$main_col_class = $has_sidebar ? 'frmx-col-lg-8' : 'frmx-col-lg-12'; | |
| 14 | 13 | ?> |
| 15 | 14 | <section <?php bbp_topic_class(get_the_ID(), array('forum-single-content')); ?>> |
| 16 | 15 | <div class="forum-layout"> |
| 17 | 16 | |
| 18 | 17 | <div class="frmx-row frmx-sidebar-<?php echo esc_attr(forumax_get_opt('sidebar_position', 'right')); ?>"> |
| 19 | - <div class="<?php echo esc_attr($main_col_class); ?> forum-main-column"> | |
| 18 | + <div class="frmx-col-lg-<?php echo esc_attr($has_sidebar ? '8' : '12'); ?> forum-main-column"> | |
| 20 | 19 | |
| 21 | 20 | <?php |
| 22 | 21 | if (post_password_required()): |
| 23 | 22 | bbp_get_template_part('form', 'protected'); |
| @@ -29,31 +28,19 @@ | ||
| 29 | 28 | |
| 30 | 29 | <div id="topic-<?php bbp_topic_id(); ?>-replies" class="all-answers"> |
| 31 | 30 | |
| 32 | 31 | <div class="all-replies-header frmx-all-replies-header"> |
| 33 | - <div class="frmx-header-left"> | |
| 34 | - <h5 class="replies-title"> | |
| 35 | - <svg class="frmx-reply-count-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg> | |
| 36 | - <?php | |
| 37 | - $reply_count = bbp_get_topic_reply_count( bbp_get_topic_id() ); | |
| 38 | - printf( | |
| 39 | - /* translators: %s: number of replies */ | |
| 40 | - esc_html( _n( '%s Reply', '%s Replies', $reply_count, 'forumax' ) ), | |
| 41 | - esc_html( number_format_i18n( $reply_count ) ) | |
| 42 | - ); | |
| 43 | - ?> | |
| 44 | - </h5> | |
| 45 | - </div> | |
| 32 | + <h5 class="replies-title"> | |
| 33 | + <?php esc_html_e('All Replies', 'forumax'); ?> | |
| 34 | + </h5> | |
| 46 | 35 | |
| 47 | - <div class="frmx-header-right"> | |
| 48 | - <div class="replies-sorting"> | |
| 49 | - <select name="sort-replies" id="sort-replies" class="replies-sort-select"> | |
| 50 | - <option selected disabled><?php esc_html_e( 'Sort By', 'forumax' ); ?></option> | |
| 51 | - <option value="desc"><?php esc_html_e( 'Newest First', 'forumax' ); ?></option> | |
| 52 | - <option value="asc"><?php esc_html_e( 'Oldest First', 'forumax' ); ?></option> | |
| 53 | - <option value="vote"><?php esc_html_e( 'Highest Votes First', 'forumax' ); ?></option> | |
| 54 | - </select> | |
| 55 | - </div> | |
| 36 | + <div class="replies-sorting"> | |
| 37 | + <select name="sort-replies" id="sort-replies" class="replies-sort-select"> | |
| 38 | + <option selected disabled>Sort By</option> | |
| 39 | + <option value="desc">Newest First</option> | |
| 40 | + <option value="asc">Oldest First</option> | |
| 41 | + <option value="vote">Highest Votes First</option> | |
| 42 | + </select> | |
| 56 | 43 | </div> |
| 57 | 44 | </div> |
| 58 | 45 | |
| 59 | 46 | <div class="reply-result"> |