PluginProbe
wpForo Forum / 1.2.0
wpForo Forum v1.2.0
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 / 2 / post.php

post.php in wpForo Forum 1.2.0, at wpf-themes/classic/layouts/2/post.php

80 lines 4.8 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">
7
8 <div class="wpforo-post-head">
9 <div class="wpf-left">&nbsp;<a href="<?php echo esc_url($wpforo->post->get_post_url($topic['last_post'])) ?>" class="wpfcl-2"><i class="fa fa-caret-square-o-down fa-0x wpfcl-3"></i> &nbsp; <span class="wpfcl-3"><?php wpforo_phrase('Last Post'); ?></span></a></div>
10 <div class="wpf-right">&nbsp;<a href="<?php $wpforo->feed->rss2_url(); ?>" class="wpfcl-2" title="<?php wpforo_phrase('Topic RSS Feed') ?>"><span class="wpfcl-3"><?php wpforo_phrase('RSS') ?></span> <i class="fa fa-rss fa-0x wpfcl-3"></i></a></div>
11 <div class="wpf-clear"></div>
12 </div>
13
14 <?php foreach($posts as $key => $post) : ?>
15
16 <?php $member = $wpforo->member->get_member($post['userid'], true); ?>
17 <div id="post-<?php echo intval($post['postid']) ?>" class="post-wrap">
18 <div class="wpforo-post wpfcl-1">
19 <div class="wpf-left">
20 <?php if( wpforo_feature('avatars', $wpforo) ): ?>
21 <div class="author-avatar"><?php echo $wpforo->member->avatar($member, 'alt="'.esc_attr($member['display_name']).'"', 110, true) ?></div>
22 <?php endif; ?>
23 <div class="author-data">
24 <div class="author-name"><span><?php $wpforo->member->show_online_indicator($member['userid']) ?></span>&nbsp;<a href="<?php echo esc_url($member['profile_url']) ?>"><?php echo esc_html($member['display_name']) ?></a></div>
25 <div class="wpf-member-profile-buttons">
26 <?php $wpforo->tpl->member_buttons($member) ?>
27 </div>
28 <div class="author-title">
29 <?php wpforo_member_title($member) ?>
30 </div>
31 <?php wpforo_member_badge($member) ?>
32 </div>
33 <div class="wpf-clear"></div>
34 </div><!-- left -->
35 <div class="wpf-right">
36 <div class="wpforo-post-content-top">
37 <div class="wpf-post-actions">
38 <?php if( $post['is_first_post'] ){
39 $buttons = array( 'solved', 'sticky', 'private', 'close', 'report', 'move', 'delete' );
40 $wpforo->tpl->buttons( $buttons, $forum, $topic, $post, TRUE );
41 }else{
42 $buttons = array( 'report', 'delete' );
43 $wpforo->tpl->buttons( $buttons, $forum, $topic, $post );
44 } ?>
45 </div>
46 <a href="<?php echo esc_url($wpforo->post->get_post_url($post['postid'])) ?>"><i class="fa fa-link fa-0x"></i></a>
47 </div>
48 <div class="wpforo-post-content">
49 <?php echo wpforo_content_filter( wpforo_kses($post['body'], 'post') ) ?>
50 <?php do_action( 'wpforo_tpl_post_loop_after_content', $post, $member ) ?>
51 <?php wpforo_post_edited($post); ?>
52 <?php if( wpforo_feature('signature', $wpforo) ): ?>
53 <?php if($member['signature']): ?><div class="wpforo-post-signature"><?php echo wpautop(wpforo_kses(stripslashes($member['signature']), 'user_description')) ?></div><?php endif; ?>
54 <?php endif; ?>
55 <div class="wpf-post-button-actions">
56 <?php if( $post['is_first_post'] ){
57 $buttons = array( 'reply', 'quote', 'edit', 'like' );
58 $wpforo->tpl->buttons( $buttons, $forum, $topic, $post, TRUE );
59 }else{
60 $buttons = array( 'reply', 'quote', 'edit', 'like' );
61 $wpforo->tpl->buttons( $buttons, $forum, $topic, $post );
62 } ?>
63 <?php if($post['status']): ?><span class="wpf-mod-message"><i class="fa fa-exclamation-circle" aria-hidden="true"></i> <?php wpforo_phrase('Awaiting moderation') ?></span></span><?php endif; ?>
64 </div>
65 </div>
66 <div class="wpforo-post-content-bottom">
67 <div class="cbleft wpfcl-0"><?php wpforo_phrase('Posted') ?> : <?php wpforo_date($post['created'], 'd/m/Y g:i a') ?>
68 <span class="bleft"><?php echo $wpforo->tpl->likers($post['postid']); ?></span>
69 </div>
70 <div class="wpf-clear"></div>
71 </div>
72 </div><!-- right -->
73 <div class="wpf-clear"></div>
74 </div><!-- wpforo-post -->
75 </div><!-- post-wrap -->
76
77 <?php do_action( 'wpforo_loop_hook', $key ) ?>
78
79 <?php endforeach; ?>
80 </div><!-- wpfl-2 -->