PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.0.0
Forumax – AI Powered Advanced Community Forum Plugin v2.0.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 2.1.0 All 29 releases
bbp-core / templates / content-single-topic-lead.php

content-single-topic-lead.php in Forumax – AI Powered Advanced Community Forum Plugin 2.0.0, at templates/content-single-topic-lead.php

135 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Single Topic Lead Content Part
5 *
6 * @package bbPress
7 * @subpackage Theme
8 */
9
10 // Exit if accessed directly
11
12 defined( 'ABSPATH' ) || exit;
13 do_action( 'bbp_template_before_lead_topic' );
14 ?>
15 <div class="main-post">
16 <div class="topic-content-wrapper">
17
18 <div class="forum-post-top">
19 <div class="bbp-author-wrap">
20 <div class="author-avatar bbp-author-link">
21 <?php
22 echo bbp_get_topic_author_link( array(
23 'post_id' => get_the_ID(),
24 'size' => 40,
25 'type' => 'avatar'
26 ));
27 ?>
28 </div>
29
30 <div class="forum-post-author">
31 <div class="topic-author author-flex author-gap">
32 <?php
33 echo bbp_get_topic_author_link( array(
34 'post_id' => get_the_ID(),
35 'type' => 'name'
36 ));
37 ?>
38 <div class="author-badge badge <?php echo sanitize_title(forumax_get_bbp_user_role()) ?>">
39 <?php forumax_bbp_user_role_icon(); ?>
40 <span><?php echo forumax_get_bbp_user_role(); ?></span>
41 </div>
42 </div>
43
44 <div class="forum-author-meta meta">
45 <a href="<?php the_permalink(); ?>" title="<?php bbp_topic_post_date(); ?>">
46 <?php bbp_topic_post_date(get_the_ID(), true); ?>
47 </a>
48 <span class="dot"></span>
49 <a href="#topic-<?php bbp_topic_id(); ?>-replies" class="replies-count">
50 <?php forumax_topic_reply_count(); esc_html_e(' Replies'); ?>
51 </a>
52 </div>
53 </div>
54 </div>
55
56 <div class="action-button-container">
57 <?php
58 if ( is_user_logged_in() ) :
59 bbp_topic_subscription_link( array(
60 'before' => '',
61 'after' => '',
62 'unsubscribe' => esc_html__( 'Subscribed', 'forumax' ),
63 ));
64 endif;
65 ?>
66 </div>
67 </div>
68
69 <div class="q-title">
70 <span class="question-icon" title="Question">
71 <?php echo esc_html( forumax_get_opt('topic_title_prefix', 'Q:') ); ?>
72 </span>
73 <h1>
74 <?php
75 the_title();
76 do_action('bbpc-resolved-topics');
77 ?>
78 </h1>
79 </div>
80
81 <?php do_action('bbp_theme_after_topic_author_details'); ?>
82
83 <div class="forum-post-content">
84 <div class="content editor-content">
85 <?php do_action('bbp_theme_before_topic_content'); ?>
86 <?php bbp_topic_content(); ?>
87 <?php do_action('bbp_theme_after_topic_content'); ?>
88 </div>
89
90 <div class="forum-post-btm meta">
91 <?php if ( bbp_get_topic_tag_list(get_the_ID()) ) : ?>
92 <div class="taxonomy forum-post-tags">
93 <?php
94 bbp_topic_tag_list('', array(
95 'before' => '<i class="icon_tags_alt"></i> <strong>' . esc_html__('Tagged:', 'forumax') . '</strong> <span class="tags">',
96 'after' => '</span>'
97 ));
98 ?>
99 </div>
100 <?php endif; ?>
101
102 <div class="taxonomy forum-post-cat">
103 <?php echo get_the_post_thumbnail(bbp_get_topic_forum_id(), 'forumax_20x20'); ?>
104 <a href="<?php bbp_forum_permalink(bbp_get_topic_forum_id()); ?>">
105 <?php echo bbp_get_topic_forum_title(); ?>
106 </a>
107 </div>
108 </div>
109
110 <div class="action-button-container action-btns">
111 <?php if ( is_user_logged_in() ) : ?>
112 <ul class="bbp-admin-links admin-links-flex">
113 <?php
114 bbp_topic_admin_links(array(
115 'before' => '<li>',
116 'after' => '</li>',
117 'sep' => '</li><li>'
118 ));
119 ?>
120 </ul>
121 <?php endif; ?>
122
123 <?php
124 bbp_topic_favorite_link(array(
125 'before' => '',
126 ));
127 ?>
128 </div>
129 </div>
130
131 </div>
132 </div>
133
134 <?php
135 do_action( 'bbp_template_after_lead_topic' );