PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.4.4
Forumax – AI Powered Advanced Community Forum Plugin v2.4.4
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 2.1.0 All 29 releases
bbp-core / templates / loop-single-forum.php

loop-single-forum.php in Forumax – AI Powered Advanced Community Forum Plugin 2.4.4, at templates/loop-single-forum.php

65 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>
65 </div>