PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.5.0
Forumax – AI Powered Advanced Community Forum Plugin v2.5.0
2.5.0 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 All 30 releases
← All changes | templates/loop-single-forum.php +64 -60 2.0.0 → 2.5.0 View file →
@@ -1,61 +1,65 @@
1 -<?php
2 -
3 -/**
4 - * Forums Loop - Single Forum
5 - *
6 - * @package bbPress
7 - * @subpackage Theme
8 - */
9 -
10 -// Exit if accessed directly
11 -defined( 'ABSPATH' ) || exit;
12 -?>
13 -
14 -<div id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class('', array('community-post', 'style-two', 'forum-item') ); ?>>
15 - <?php do_action( 'bbp_theme_before_forum_title' ); ?>
16 -
17 - <div class="column-md-6 post-content">
18 - <?php if ( has_post_thumbnail(get_the_ID()) ) : ?>
19 - <div class="author-avatar forum-icon">
20 - <?php the_post_thumbnail('forumax_60x60'); ?>
21 - </div>
22 - <?php endif; ?>
23 - <div class="entry-content">
24 - <a href="<?php bbp_forum_permalink(); ?>">
25 - <h3 class="post-title"> <?php bbp_forum_title(); ?> </h3>
26 - </a>
27 - <p> <?php bbp_forum_content(); ?> </p>
28 - </div>
29 - </div>
30 -
31 - <div class="column-md-6 post-meta-wrapper">
32 - <ul class="forum-titles">
33 - <li class="forum-topic-count"> <?php bbp_forum_topic_count(); ?> </li>
34 - <li class="forum-reply-count"> <?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?> </li>
35 - <li class="forum-freshness">
36 - <div class="freshness-box">
37 - <div class="freshness-top">
38 - <div class="freshness-link">
39 - <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
40 - <?php bbp_forum_freshness_link(); ?>
41 - <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
42 - </div>
43 - </div>
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>
57 - </div>
58 - </li>
59 - </ul>
60 - </div>
1 +<?php
2 +
3 +/**
4 + * Forums Loop - Single Forum
5 + *
6 + * @package bbPress
7 + * @subpackage Theme
8 + */
9 +
10 +// Exit if accessed directly
11 +defined( 'ABSPATH' ) || exit;
12 +?>
13 +
14 +<div id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class('', array('community-post', 'style-two', 'forum-item') ); ?>>
15 + <?php do_action( 'bbp_theme_before_forum_title' ); ?>
16 +
17 + <div class="frmx-col-md-6 post-content">
18 + <?php if ( has_post_thumbnail( bbp_get_forum_id() ) ) : ?>
19 + <div class="author-avatar forum-icon">
20 + <?php echo wp_kses_post( get_the_post_thumbnail( bbp_get_forum_id(), 'forumax_60x60' ) ); ?>
21 + </div>
22 + <?php endif; ?>
23 + <div class="entry-content">
24 + <a href="<?php bbp_forum_permalink(); ?>">
25 + <h3 class="post-title"> <?php bbp_forum_title(); ?> </h3>
26 + </a>
27 + <?php if ( bbp_get_forum_content() ) : ?>
28 + <p><?php bbp_forum_content(); ?></p>
29 + <?php endif; ?>
30 + </div>
31 + </div>
32 +
33 + <div class="frmx-col-md-6 post-meta-wrapper">
34 + <ul class="forum-titles">
35 + <li class="forum-topic-count"> <?php bbp_forum_topic_count(); ?> </li>
36 + <li class="forum-reply-count"> <?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?> </li>
37 + <li class="forum-freshness">
38 + <div class="freshness-box">
39 + <div class="freshness-top">
40 + <div class="freshness-link">
41 + <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
42 + <?php bbp_forum_freshness_link(); ?>
43 + <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
44 + </div>
45 + </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; ?>
61 + </div>
62 + </li>
63 + </ul>
64 + </div>
61 65 </div>