PluginProbe
wpForo Forum / 1.4.13
wpForo Forum v1.4.13
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 / wpf-themes / classic / layouts / 1 / post.php

post.php in wpForo Forum 1.4.13, at wpf-themes/classic/layouts/1/post.php

92 lines 5.2 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-1">
7 <div class="wpforo-post-head">
8 <div class="wpf-left">&nbsp;
9 <a href="<?php echo esc_url( wpforo_post($topic['last_post'],'url') ); ?>" class="wpfcl-2"><i class="far fa-caret-square-down wpfsx wpfcl-3"></i> &nbsp; <span class="wpfcl-3"><?php wpforo_phrase('Last Post'); ?></span></a>
10 <?php do_action( 'wpforo_topic_head_left', $forum, $topic ) ?>
11 </div>
12 <div class="wpf-right">
13 <?php do_action( 'wpforo_topic_head_right', $forum, $topic ) ?>
14 <?php $buttons = array( 'tools' ); WPF()->tpl->buttons( $buttons, $forum ); ?>&nbsp;
15 <?php if( wpforo_feature('rss-feed') ): ?><a href="<?php WPF()->feed->rss2_url(); ?>" class="wpfcl-2" title="<?php wpforo_phrase('Topic RSS Feed') ?>" target="_blank"><span class="wpfcl-3">RSS</span> <i class="fas fa-rss wpfsx wpfcl-3"></i></a><?php endif; ?>
16 </div>
17 <br class="wpf-clear" />
18 </div>
19 <?php wpforo_moderation_tools(); ?>
20 <?php
21
22 foreach($posts as $key => $post) : ?>
23
24 <?php $member = wpforo_member($post); $post_url = wpforo_post($post['postid'],'url'); ?>
25 <div id="post-<?php echo intval($post['postid']) ?>" class="post-wrap wpfn-<?php echo ($key+1); ?><?php if( $post['is_first_post'] ) echo ' wpfp-first' ?>">
26 <?php wpforo_share_toggle($post_url, $post['body']); ?>
27 <div class="wpforo-post wpfcl-1">
28 <div class="wpf-left">
29 <?php if( WPF()->perm->usergroup_can('va') && wpforo_feature('avatars') ): ?>
30 <div class="author-avatar"><?php echo WPF()->member->avatar( $member, 'alt="'.esc_attr($member['display_name']).'"', 80 ) ?></div>
31 <?php endif ?>
32 <div class="author-data">
33 <div class="author-name"><span><?php WPF()->member->show_online_indicator($member['userid']) ?></span>&nbsp;<?php wpforo_member_link($member); ?></div>
34 <?php wpforo_member_nicename($member, '@'); ?>
35 <div class="author-title"><?php wpforo_member_title($member) ?></div>
36 <?php wpforo_member_badge($member) ?>
37 <div class="author-joined"><?php wpforo_phrase('Joined') ?>:<?php wpforo_date($member['user_registered']); ?></div>
38 <div class="author-posts"><?php wpforo_phrase('Posts') ?>: <?php echo intval($member['posts']) ?></div>
39 </div>
40 <div class="wpf-clear"></div>
41 <div id="wpforo-memberinfo-toggle-<?php echo intval($post['postid']) ?>" class="wpforo-membertoggle" title="<?php wpforo_phrase('More') ?>">
42 <i class="fas fa-caret-down" aria-hidden="true"></i>
43 </div>
44 <div id="wpforo-memberinfo-<?php echo intval($post['postid']) ?>" class="wpforo-memberinfo">
45 <div class="wpf-member-profile-buttons">
46 <?php WPF()->tpl->member_buttons($member) ?>
47 <?php WPF()->tpl->member_social_buttons($member) ?>
48 </div>
49 </div>
50 </div><!-- left -->
51 <div class="wpf-right">
52 <div class="wpforo-post-content-top">
53 <?php if($post['status']): ?>
54 <span class="wpf-mod-message"><i class="fas fa-exclamation-circle" aria-hidden="true"></i> <?php wpforo_phrase('Awaiting moderation') ?></span>
55 <?php endif; ?>
56 <span><?php wpforo_date($post['created'], 'd/m/Y g:i a'); ?></span> &nbsp;
57 <a href="<?php echo esc_url( $post_url ); ?>" class="wpf-post-link"><i class="fas fa-link wpfsx"></i></a>
58 <?php wpforo_share_toggle($post_url, $post['body'], 'top'); ?>
59 </div><!-- wpforo-post-content-top -->
60 <div class="wpforo-post-content">
61 <?php wpforo_content($post); ?>
62 </div>
63 <?php wpforo_post_edited($post); ?>
64 <?php do_action( 'wpforo_tpl_post_loop_after_content', $post, $member ) ?>
65 <?php if( wpforo_feature('signature') ): ?>
66 <?php if($member['signature']): ?><div class="wpforo-post-signature"><?php wpforo_signature( $member ) ?></div><?php endif; ?>
67 <?php endif; ?>
68 </div><!-- right -->
69 <br class="wpf-clear" />
70 <div class="bottom">
71 <div class="bleft">
72 <?php echo WPF()->tpl->likers($post['postid']); ?>
73 </div>
74 <div class="bright">
75 <?php if( $post['is_first_post'] ){
76 $buttons = array( 'reply', 'quote', 'like', 'solved', 'sticky', 'private', 'close', 'report', 'approved', 'edit', 'delete' );
77 WPF()->tpl->buttons( $buttons, $forum, $topic, $post, TRUE );
78 }else{
79 $buttons = array( 'reply', 'quote', 'like', 'report', 'approved', 'edit', 'delete' );
80 WPF()->tpl->buttons( $buttons, $forum, $topic, $post );
81 } ?>
82 </div>
83 <div class="wpf-clear"></div>
84 </div><!-- bottom -->
85 </div><!-- wpforo-post -->
86 </div><!-- post-wrap -->
87
88 <?php do_action( 'wpforo_loop_hook', $key ) ?>
89
90 <?php endforeach; ?>
91
92 </div><!-- wpfl-1 -->