| 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"> |
| 10 |
<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> <span class="wpfcl-3"><?php wpforo_phrase('Last Post'); ?></span></a> |
| 11 |
<?php do_action( 'wpforo_topic_head_left', $forum, $topic ) ?> |
| 12 |
</div> |
| 13 |
<div class="wpf-right"> |
| 14 |
<?php do_action( 'wpforo_topic_head_right', $forum, $topic ) ?> |
| 15 |
<?php $buttons = array( 'tools' ); WPF()->tpl->buttons( $buttons, $forum ); ?> |
| 16 |
<?php if( wpforo_feature('rss-feed') ): ?><a href="<?php WPF()->feed->rss2_url(); ?>" class="wpfcl-2" title="<?php wpforo_phrase('Topic RSS Feed') ?>"><span class="wpfcl-3"><?php wpforo_phrase('RSS') ?></span> <i class="fas fa-rss wpfsx wpfcl-3"></i></a><?php endif; ?> |
| 17 |
</div> |
| 18 |
<div class="wpf-clear"></div> |
| 19 |
</div> |
| 20 |
<?php wpforo_moderation_tools(); ?> |
| 21 |
|
| 22 |
<?php 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']).'"', 110) ?></div> |
| 31 |
<?php endif; ?> |
| 32 |
<div class="author-data"> |
| 33 |
<div class="author-name"><span><?php WPF()->member->show_online_indicator($member['userid']) ?></span> <?php wpforo_member_link($member); ?></div> |
| 34 |
<?php wpforo_member_nicename($member, '@'); ?> |
| 35 |
<div class="wpf-member-profile-buttons"> |
| 36 |
<?php WPF()->tpl->member_buttons($member) ?> |
| 37 |
</div> |
| 38 |
<div class="author-title"> |
| 39 |
<?php wpforo_member_title($member) ?> |
| 40 |
</div> |
| 41 |
<?php wpforo_member_badge($member) ?> |
| 42 |
</div> |
| 43 |
<div class="wpf-clear"></div> |
| 44 |
</div><!-- left --> |
| 45 |
<div class="wpf-right"> |
| 46 |
<div class="wpforo-post-content-top"> |
| 47 |
<div class="wpf-post-actions"> |
| 48 |
<?php if( $post['is_first_post'] ){ |
| 49 |
$buttons = array( 'solved', 'sticky', 'private', 'close', 'report', 'delete' ); |
| 50 |
WPF()->tpl->buttons( $buttons, $forum, $topic, $post, TRUE ); |
| 51 |
}else{ |
| 52 |
$buttons = array( 'report', 'delete' ); |
| 53 |
WPF()->tpl->buttons( $buttons, $forum, $topic, $post ); |
| 54 |
} ?> |
| 55 |
</div> |
| 56 |
<a href="<?php echo esc_url( $post_url ); ?>" class="wpf-post-link"><i class="fas fa-link wpfsx"></i></a> |
| 57 |
<?php wpforo_share_toggle($post_url, $post['body'], 'top'); ?> |
| 58 |
</div> |
| 59 |
<div class="wpforo-post-content"> |
| 60 |
<?php wpforo_content($post); ?> |
| 61 |
<?php wpforo_post_edited($post); ?> |
| 62 |
<?php do_action( 'wpforo_tpl_post_loop_after_content', $post, $member ) ?> |
| 63 |
<?php if( wpforo_feature('signature') ): ?> |
| 64 |
<?php if($member['signature']): ?><div class="wpforo-post-signature"><?php wpforo_signature( $member ) ?></div><?php endif; ?> |
| 65 |
<?php endif; ?> |
| 66 |
<div class="wpf-post-button-actions"> |
| 67 |
<?php if( $post['is_first_post'] ){ |
| 68 |
$buttons = array( 'reply', 'quote', 'approved', 'edit', 'like' ); |
| 69 |
WPF()->tpl->buttons( $buttons, $forum, $topic, $post, TRUE ); |
| 70 |
}else{ |
| 71 |
$buttons = array( 'reply', 'quote', 'approved', 'edit', 'like' ); |
| 72 |
WPF()->tpl->buttons( $buttons, $forum, $topic, $post ); |
| 73 |
} ?> |
| 74 |
<?php if($post['status']): ?> |
| 75 |
<span class="wpf-mod-message"><i class="fas fa-exclamation-circle" aria-hidden="true"></i> <?php wpforo_phrase('Awaiting moderation') ?></span> |
| 76 |
<?php endif; ?> |
| 77 |
</div> |
| 78 |
</div> |
| 79 |
<div class="wpforo-post-content-bottom"> |
| 80 |
<div class="cbleft wpfcl-0"><?php wpforo_phrase('Posted') ?> : <?php wpforo_date($post['created'], 'd/m/Y g:i a') ?> |
| 81 |
<span class="bleft"><?php echo WPF()->tpl->likers($post['postid']); ?></span> |
| 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 do_action( 'wpforo_loop_hook', $key ) ?> |
| 91 |
|
| 92 |
<?php endforeach; ?> |
| 93 |
</div><!-- wpfl-2 --> |