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 / 2 / post.php

post.php in wpForo Forum 3.1.6, at themes/2026/layouts/2/post.php

100 lines 5.6 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
6 <div class="wpfl-2 wpforo-section">
7
8 <div class="wpforo-post-head">
9 <?php wpforo_topic_head($forum, $topic); ?>
10 </div>
11 <?php wpforo_moderation_tools(); ?>
12
13 <?php foreach($posts as $key => $post) : ?>
14
15 <?php $member = wpforo_member($post); $wpf_is_anon = function_exists('wpforo_is_anonymous_mask_member') ? wpforo_is_anonymous_mask_member($member) : false; $post_url = wpforo_post($post['postid'],'url'); ?>
16 <div id="post-<?php echo wpforo_bigintval($post['postid']) ?>" data-postid="<?php echo wpforo_bigintval($post['postid']) ?>" data-userid="<?php echo wpforo_bigintval($member['userid']) ?>" data-mention="<?php echo esc_attr( ( wpforo_setting( 'profiles', 'mention_nicknames' ) ? $member['user_nicename'] : '') ) ?>" data-isowner="<?php echo esc_attr( (int) (bool) wpforo_is_owner($member['userid']) ) ?>" class="post-wrap wpfn-<?php echo ($key+1); ?><?php if( $post['is_first_post'] ) echo ' wpfp-first' ?>">
17 <?php wpforo_share_toggle($post_url, $post['body']); ?>
18 <div class="wpforo-post wpfcl-1">
19 <div class="wpf-left">
20 <?php if( WPF()->usergroup->can('va') && wpforo_setting( 'profiles', 'avatars' ) ): ?>
21 <div class="author-avatar"><?php echo wpforo_user_avatar($member, 110) ?></div>
22 <?php endif; ?>
23 <div class="author-data">
24 <div class="author-name"><span><?php WPF()->member->show_online_indicator($member['userid']) ?></span>&nbsp;<?php wpforo_member_link($member); ?></div>
25 <?php if( empty($wpf_is_anon) ) { wpforo_member_nicename($member, '@'); } ?>
26 <?php if( (int) wpfval($member, 'userid') ) : ?>
27 <div class="wpf-member-profile-buttons">
28 <?php WPF()->tpl->member_buttons($member) ?>
29 </div>
30 <?php endif; ?>
31 <?php if( empty($wpf_is_anon) ): ?>
32 <div class="author-posts">
33 <?php wpforo_phrase('Posts') ?>: <?php echo intval($member['posts']) ?>
34 </div>
35 <?php endif; ?>
36 <?php if( (int) wpfval($member, 'userid') ) : ?>
37 <div class="author-title">
38 <?php wpforo_member_title($member) ?>
39 </div>
40 <?php wpforo_member_badge($member) ?>
41 <?php endif; ?>
42 </div>
43 <div class="wpf-clear"></div>
44 </div><!-- left -->
45 <div class="wpf-right">
46 <div class="wpforo-post-content-top">
47 <?php wpforo_topic_starter($topic, $post) ?>
48 <?php do_action( 'wpforo_post_content_top_left', $post ) ?>
49 <div>&nbsp;</div>
50 <div class="wpf-post-actions">
51 <?php
52 $buttons = [ 'topic-id', 'custom-top', 'bookmark', 'report', 'link' ];
53 wpforo_post_buttons( 'icon-text', $buttons, $forum, $topic, $post );
54 ?>
55 </div>
56 <?php wpforo_share_toggle($post_url, $post['body'], 'top'); ?>
57 </div>
58 <div class="wpforo-post-content">
59 <?php wpforo_content($post); ?>
60 <?php wpforo_post_edited($post); ?>
61 <?php do_action( 'wpforo_tpl_post_loop_after_content', $post, $member ) ?>
62 <?php if( wpforo_setting( 'profiles', 'signature' ) ): ?>
63 <?php if($member['signature']): ?><div class="wpforo-post-signature"><?php wpforo_signature( $member ) ?></div><?php endif; ?>
64 <?php endif; ?>
65 <div class="wpf-post-button-actions">
66 <?php if($post['status']): ?>
67 <span class="wpf-mod-message"><i class="fas fa-exclamation-circle" aria-hidden="true"></i> <?php wpforo_phrase('Awaiting moderation') ?></span>
68 <?php endif; ?>
69 <div>&nbsp;</div>
70 <?php
71 $buttons = [ 'custom-bottom', 'reply', 'quote', 'approved', 'edit', 'delete' ];
72 wpforo_post_buttons( 'icon', $buttons, $forum, $topic, $post );
73 ?>
74 </div>
75 <?php do_action( 'wpforo_post_content_end', $post, $topic, $forum, 2 ); ?>
76 <?php do_action( 'wpforo_post_content_footer', $post, $topic, $forum, 2 ) ?>
77 </div>
78 <div class="wpforo-post-content-bottom">
79 <div class="cbleft wpfcl-0">
80 <?php wpforo_phrase('Posted') ?> : <?php wpforo_date($post['created'], 'd/m/Y g:i a') ?>
81 <?php do_action( 'wpforo_post_bottom_end', $post, $topic, $forum, 2 ); ?>
82 </div>
83 <div class="wpf-clear"></div>
84 </div>
85 </div><!-- right -->
86 <div class="wpf-clear"></div>
87 </div><!-- wpforo-post -->
88 </div><!-- post-wrap -->
89
90 <?php if( $post['is_first_post'] ): ?>
91 <div class="wpforo-topic-meta">
92 <?php wpforo_tags( $topic ); ?>
93 </div>
94 <?php endif; ?>
95
96 <?php do_action( 'wpforo_loop_hook', $key ) ?>
97
98 <?php endforeach; ?>
99 </div><!-- wpfl-2 -->
100