PluginProbe
wpForo Forum / 3.1.6
wpForo Forum v3.1.6
3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 All 138 releases
wpforo / themes / 2026 / layouts / 3 / comment.php

comment.php in wpForo Forum 3.1.6, at themes/2026/layouts/3/comment.php

50 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Exit if accessed directly
3 if( !defined( 'ABSPATH' ) ) exit;
4
5 function wpforo_qa_comment_template($comment, $forum = array(), $topic = array()){
6 if( !$forum ) $forum = (array) wpfval(WPF()->current_object, 'forum');
7 $comment_member = wpforo_member($comment); ?>
8 <div id="post-<?php echo wpforo_bigintval($comment['postid']) ?>" data-postid="<?php echo wpforo_bigintval($comment['postid']) ?>" data-userid="<?php echo wpforo_bigintval($comment_member['userid']) ?>" data-mention="<?php echo esc_attr( ( wpforo_setting( 'profiles', 'mention_nicknames' ) ? $comment_member['user_nicename'] : '') ) ?>" data-isowner="<?php echo esc_attr( (int) (bool) wpforo_is_owner($comment_member['userid']) ) ?>" class="comment-wrap">
9 <div class="wpforo-comment wpfcl-1">
10 <div class="wpf-left">
11 <div class="wpf-comment-icon wpfcl-0"><i class="fas fa-reply fa-rotate-180"></i></div>
12 </div>
13 <div class="wpf-right">
14 <div class="wpforo-comment-content">
15 <?php if($comment['status']): ?>
16 <div class="wpf-mod-message">
17 <i class="fas fa-exclamation-circle" aria-hidden="true"></i> <?php wpforo_phrase('Awaiting moderation') ?>
18 </div>
19 <?php endif; ?>
20 <div class="wpforo-comment-top">
21 <div class="wpfcl-0 wpforo-comment-meta">
22 <?php if( WPF()->usergroup->can('va') && wpforo_setting( 'profiles', 'avatars' ) ) : ?>
23 <div class="wpforo-comment-avatar"><?php echo wpforo_user_avatar($comment_member, 36) ?></div>
24 <?php endif; ?>
25 <div class="wpforo-comment-author"><?php wpforo_member_link($comment_member); ?></div>
26 <div class="wpforo-comment-starter"><?php wpforo_topic_starter($topic, $comment) ?></div>
27 <div class="wpforo-comment-date"><?php wpforo_date($comment['created'], 'd/m/Y g:i a'); ?></div>
28 <?php do_action( 'wpforo_post_content_top_left', $comment ) ?>
29 </div>
30 <?php do_action( 'wpforo_tpl_post_loop_after_content', $comment, $comment_member ) ?>
31 <?php wpforo_post_edited($comment); ?>
32 </div>
33 <div class="wpforo-comment-text">
34 <?php wpforo_content($comment); ?>
35 <?php do_action( 'wpforo_post_content_footer', $comment, $topic, $forum, 3 ) ?>
36 </div>
37 <div class="wpforo-comment-action-links">&nbsp;
38 <?php
39 $buttons = array( 'report', 'approved', 'edit', 'delete', 'link' );
40 WPF()->tpl->buttons( $buttons, $forum, $comment, $comment );
41 ?>
42 </div>
43 </div>
44 </div><!-- right -->
45 <div class="wpf-clear"></div>
46 </div><!-- wpforo-post -->
47 </div><!-- comment-wrap -->
48 <?php
49 }
50