| @@ -14,11 +14,11 @@ | ||
| 14 | 14 | <div id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class('', array('community-post', 'style-two', 'forum-item') ); ?>> |
| 15 | 15 | <?php do_action( 'bbp_theme_before_forum_title' ); ?> |
| 16 | 16 | |
| 17 | 17 | <div class="frmx-col-md-6 post-content"> |
| 18 | - <?php if ( has_post_thumbnail( bbp_get_forum_id() ) ) : ?> | |
| 18 | + <?php if ( has_post_thumbnail(get_the_ID()) ) : ?> | |
| 19 | 19 | <div class="author-avatar forum-icon"> |
| 20 | - <?php echo wp_kses_post( get_the_post_thumbnail( bbp_get_forum_id(), 'forumax_60x60' ) ); ?> | |
| 20 | + <?php the_post_thumbnail('forumax_60x60'); ?> | |
| 21 | 21 | </div> |
| 22 | 22 | <?php endif; ?> |
| 23 | 23 | <div class="entry-content"> |
| 24 | 24 | <a href="<?php bbp_forum_permalink(); ?>"> |
| @@ -23,11 +23,9 @@ | ||
| 23 | 23 | <div class="entry-content"> |
| 24 | 24 | <a href="<?php bbp_forum_permalink(); ?>"> |
| 25 | 25 | <h3 class="post-title"> <?php bbp_forum_title(); ?> </h3> |
| 26 | 26 | </a> |
| 27 | - <?php if ( bbp_get_forum_content() ) : ?> | |
| 28 | - <p><?php bbp_forum_content(); ?></p> | |
| 29 | - <?php endif; ?> | |
| 27 | + <p> <?php bbp_forum_content(); ?> </p> | |
| 30 | 28 | </div> |
| 31 | 29 | </div> |
| 32 | 30 | |
| 33 | 31 | <div class="frmx-col-md-6 post-meta-wrapper"> |
| @@ -42,24 +40,22 @@ | ||
| 42 | 40 | <?php bbp_forum_freshness_link(); ?> |
| 43 | 41 | <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?> |
| 44 | 42 | </div> |
| 45 | 43 | </div> |
| 46 | - <?php if ( bbp_get_forum_last_active_id() ) : ?> | |
| 47 | - <div class="freshness-btm"> | |
| 48 | - <?php do_action( 'bbp_theme_before_topic_author' ); ?> | |
| 49 | - <?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'type' => 'name' ) ); ?> | |
| 50 | - <?php do_action( 'bbp_theme_after_topic_author' ); ?> | |
| 51 | - <?php | |
| 52 | - $verified_user = bbp_get_topic_author_id( bbp_get_forum_last_active_id() ); | |
| 53 | - $verified_class = ''; | |
| 54 | - if ( $verified_user == 'verified' ) { | |
| 55 | - $verified_class = 'disputo-verified-user'; | |
| 56 | - } | |
| 57 | - ?> | |
| 58 | - <?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 45, 'type' => 'avatar' ) ); ?> | |
| 59 | - </div> | |
| 60 | - <?php endif; ?> | |
| 44 | + <div class="freshness-btm"> | |
| 45 | + <?php do_action( 'bbp_theme_before_topic_author' ); ?> | |
| 46 | + <?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'type' => 'name' ) ); ?> | |
| 47 | + <?php do_action( 'bbp_theme_after_topic_author' ); ?> | |
| 48 | + <?php | |
| 49 | + $verified_user = bbp_get_topic_author_id(bbp_get_forum_last_active_id()); | |
| 50 | + $verified_class = ''; | |
| 51 | + if ($verified_user == 'verified') { | |
| 52 | + $verified_class = 'disputo-verified-user'; | |
| 53 | + } | |
| 54 | + ?> | |
| 55 | + <?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 45, 'type' => 'avatar' ) ); ?> | |
| 56 | + </div> | |
| 61 | 57 | </div> |
| 62 | 58 | </li> |
| 63 | 59 | </ul> |
| 64 | 60 | </div> |
| 65 | 61 | </div> |