PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / trunk
Forumax – AI Powered Advanced Community Forum Plugin vtrunk
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-topic.php

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

52 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Topics Loop - Single
4 *
5 * @package bbPress
6 * @subpackage Theme
7 */
8
9 // Exit if accessed directly
10 defined( 'ABSPATH' ) || exit;
11 $favoriters = bbp_get_topic_favoriters();
12 $favorite_count = !empty($favoriters) ? $favoriters[0] : '0';
13 ?>
14
15 <div class="community-post style-two">
16 <div class="post-content">
17 <div class="entry-content">
18 <a href="<?php bbp_topic_permalink(); ?>">
19 <h3 class="post-title">
20 <?php do_action( 'bbp_theme_before_topic_title' ); ?>
21 <?php bbp_topic_title(); ?>
22 </h3>
23 </a>
24 <?php do_action( 'bbp_theme_after_topic_title' ); ?>
25 <ul class="meta">
26 <li>
27 <?php echo get_the_post_thumbnail(bbp_get_topic_forum_id(), array(40, 40)); ?>
28 <a href="<?php echo get_permalink( bbp_get_topic_forum_id() ); ?>">
29 <?php echo get_the_title( bbp_get_topic_forum_id() ); ?>
30 </a>
31 </li>
32 <li><i class="icon_clock_alt"></i> <?php bbp_topic_post_date(get_the_ID(), true); ?> </li>
33 </ul>
34 </div>
35 </div>
36 <div class="post-meta-wrapper">
37 <ul class="post-meta-info">
38 <li>
39 <a href="<?php bbp_topic_permalink(); ?>">
40 <i class="icon_chat_alt"></i>
41 <?php bbp_show_lead_topic() ? bbp_topic_reply_count(get_the_ID()) : bbp_topic_post_count(get_the_ID()); ?>
42 </a>
43 </li>
44 <li>
45 <a href="<?php bbp_topic_permalink(); ?>">
46 <i class="icon_star_alt"></i> <?php echo esc_html($favorite_count) ?>
47 </a>
48 </li>
49 </ul>
50 </div>
51 </div>
52