| @@ -74,12 +74,12 @@ | ||
| 74 | 74 | ?> |
| 75 | 75 | |
| 76 | 76 | <?php do_action( 'bbp_theme_after_topic_title' ); ?> |
| 77 | 77 | |
| 78 | - <ul class="meta community-post-meta"> | |
| 78 | + <ul class="meta"> | |
| 79 | 79 | <li> |
| 80 | 80 | <?php echo get_the_post_thumbnail(bbp_get_topic_forum_id(), array(40, 40)); ?> |
| 81 | - <a href="<?php echo get_permalink( bbp_get_topic_forum_id() ); ?>" class="title"> | |
| 81 | + <a href="<?php echo get_permalink( bbp_get_topic_forum_id() ); ?>"> | |
| 82 | 82 | <?php echo get_the_title( bbp_get_topic_forum_id() ); ?> |
| 83 | 83 | </a> |
| 84 | 84 | </li> |
| 85 | 85 | <li> |
| @@ -108,27 +108,25 @@ | ||
| 108 | 108 | <div class="pagination-wrapper"> |
| 109 | 109 | <div class="view-post-of"> |
| 110 | 110 | <p><?php bbp_forum_pagination_count(); ?></p> |
| 111 | 111 | </div> |
| 112 | - <?php if ( $query->max_num_pages > 1 ) : ?> | |
| 113 | - <div class="bbp-pagination"> | |
| 114 | - <?php | |
| 115 | - $big = 999999999; | |
| 116 | - $current_url = add_query_arg( 'paged', '', get_pagenum_link() ); | |
| 117 | - $current_url = remove_query_arg( 'tab', $current_url ); | |
| 112 | + <div class="bbp-pagination"> | |
| 113 | + <?php | |
| 114 | + $big = 999999999; | |
| 115 | + $current_url = add_query_arg( 'paged', '', get_pagenum_link() ); | |
| 116 | + $current_url = remove_query_arg( 'tab', $current_url ); | |
| 118 | 117 | |
| 119 | - echo paginate_links( array( | |
| 120 | - 'base' => str_replace( $big, '%#%', esc_url( add_query_arg( 'paged', $big, $current_url ) ) ), | |
| 121 | - 'format' => '?paged=%#%', | |
| 122 | - 'current' => max( 1, get_query_var('paged') ), | |
| 123 | - 'total' => $query->max_num_pages, | |
| 124 | - 'prev_text' => '<i class="arrow_carrot-left"></i>', | |
| 125 | - 'next_text' => '<i class="arrow_carrot-right"></i>', | |
| 126 | - 'add_args' => array('tab' => $topic_status === 'publish' ? '' : 'closed') | |
| 127 | - )); | |
| 128 | - ?> | |
| 129 | - </div> | |
| 130 | - <?php endif; ?> | |
| 118 | + echo paginate_links( array( | |
| 119 | + 'base' => str_replace( $big, '%#%', esc_url( add_query_arg( 'paged', $big, $current_url ) ) ), | |
| 120 | + 'format' => '?paged=%#%', | |
| 121 | + 'current' => max( 1, get_query_var('paged') ), | |
| 122 | + 'total' => $query->max_num_pages, | |
| 123 | + 'prev_text' => '<i class="arrow_carrot-left"></i>', | |
| 124 | + 'next_text' => '<i class="arrow_carrot-right"></i>', | |
| 125 | + 'add_args' => array('tab' => $topic_status === 'publish' ? '' : 'closed') | |
| 126 | + )); | |
| 127 | + ?> | |
| 128 | + </div> | |
| 131 | 129 | </div> |
| 132 | 130 | <?php |
| 133 | 131 | |
| 134 | 132 | elseif ( in_array('bbp-user-page', get_body_class()) ): |