| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( ! defined( 'ABSPATH' ) ) exit; |
| 4 |
|
| 5 |
function wpforo_thread_topic_template( $topicid ) { |
| 6 |
$thread = wpforo_thread( $topicid ); |
| 7 |
if( empty( $thread ) ) return; |
| 8 |
?> |
| 9 |
<div class="wpf-thread <?php wpforo_unread( $topicid, 'topic' ); ?>"> |
| 10 |
<div class="wpf-thread-body"> |
| 11 |
<div class="wpf-thread-box wpf-thread-status"> |
| 12 |
<div class="wpf-thread-statuses" <?php echo $thread['wrap']; ?>><?php echo $thread['icons_html']; ?></div> |
| 13 |
</div> |
| 14 |
<div class="wpf-thread-box wpf-thread-title"> |
| 15 |
<span class="wpf-thread-status-mobile"><?php wpforo_topic_icon( $thread ); ?> </span> |
| 16 |
<?php wpforo_topic_title( $thread, $thread['url'], '{p}{au}{tc}{/a}{n}{v}', true, '', wpforo_setting( 'forums', 'layout_threaded_intro_topics_length' ) ) ?> |
| 17 |
<?php wpforo_tags( $thread, true, 'text' ) ?> |
| 18 |
</div> |
| 19 |
<div class="wpf-thread-box wpf-thread-posts"> |
| 20 |
<?php echo wpforo_print_number( ( intval( $thread['posts'] ) - 1 ) ) ?> |
| 21 |
</div> |
| 22 |
<div class="wpf-thread-box wpf-thread-views"> |
| 23 |
<?php echo wpforo_print_number( $thread['views'] ) ?> |
| 24 |
</div> |
| 25 |
<div class="wpf-thread-box wpf-thread-users"> |
| 26 |
<?php echo $thread['users_html']; ?> |
| 27 |
<div class="wpf-thread-date-mobile"><?php echo $thread['last_post_date'] ?></div> |
| 28 |
</div> |
| 29 |
<div class="wpf-thread-box wpf-thread-date"> |
| 30 |
<?php echo $thread['last_post_date'] ?> |
| 31 |
</div> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
<?php |
| 35 |
} |
| 36 |
|
| 37 |
?> |
| 38 |
|