| 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"> <a href="<?php echo esc_url( wpforo_post($topic['last_post'], 'url') ); ?>" class="wpfcl-2"><i class="fa fa-caret-square-o-down fa-0x wpfcl-3"></i> <span class="wpfcl-3"><?php wpforo_phrase('Last Post'); ?></span></a></div> |
| 10 |
<div class="wpf-right"> <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($post); ?> |
| 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> <?php wpforo_member_link($member); ?></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($post['postid'], 'url') ); ?>"><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 wpforo_post_edited($post); ?> |
| 51 |
<?php do_action( 'wpforo_tpl_post_loop_after_content', $post, $member ) ?> |
| 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 --> |