# wpforo/3.1.6/themes/classic/layouts/4/topic-thread.php

wpForo Forum, version 3.1.6. 38 lines.

- Page: https://pluginprobe.com/plugins/wpforo/3.1.6/code/themes/classic/layouts/4/topic-thread.php
- Raw: https://pluginprobe.com/plugins/wpforo/3.1.6/raw/themes/classic/layouts/4/topic-thread.php
- Modified: 2026-09-18T16:11:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpforo/3.1.6/code/themes/classic/layouts/4/topic-thread.php#L10-L20`.

```php
<?php
// Exit if accessed directly
if( ! defined( 'ABSPATH' ) ) exit;

function wpforo_thread_topic_template( $topicid ) {
	$thread = wpforo_thread( $topicid );
	if( empty( $thread ) ) return;
	?>
    <div class="wpf-thread <?php wpforo_unread( $topicid, 'topic' ); ?>">
        <div class="wpf-thread-body">
            <div class="wpf-thread-box wpf-thread-status">
                <div class="wpf-thread-statuses" <?php echo $thread['wrap']; ?>><?php echo $thread['icons_html']; ?></div>
            </div>
            <div class="wpf-thread-box wpf-thread-title">
                <span class="wpf-thread-status-mobile"><?php wpforo_topic_icon( $thread ); ?> </span>
				<?php wpforo_topic_title( $thread, $thread['url'], '{p}{au}{tc}{/a}{n}{v}', true, '', wpforo_setting( 'forums', 'layout_threaded_intro_topics_length' ) ) ?>
				<?php wpforo_tags( $thread, true, 'text' ) ?>
            </div>
            <div class="wpf-thread-box wpf-thread-posts">
				<?php echo wpforo_print_number( ( intval( $thread['posts'] ) - 1 ) ) ?>
            </div>
            <div class="wpf-thread-box wpf-thread-views">
				<?php echo wpforo_print_number( $thread['views'] ) ?>
            </div>
            <div class="wpf-thread-box wpf-thread-users">
				<?php echo $thread['users_html']; ?>
                <div class="wpf-thread-date-mobile"><?php echo $thread['last_post_date'] ?></div>
            </div>
            <div class="wpf-thread-box wpf-thread-date">
				<?php echo $thread['last_post_date'] ?>
            </div>
        </div>
    </div>
	<?php
}

?>

```
