PluginProbe
wpForo Forum / 3.1.6
wpForo Forum v3.1.6
3.1.7 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 All 139 releases
wpforo / themes / 2026 / layouts / 4 / forum-thread.php

forum-thread.php in wpForo Forum 3.1.6, at themes/2026/layouts/4/forum-thread.php

55 lines 3.3 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 function wpforo_thread_forum_template( $topicid ){
6 $thread = wpforo_thread( $topicid );
7 if(empty($thread)) return;
8 ?>
9 <div class="wpf-thread <?php wpforo_topic_types($thread); 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['status_html']; ?></div>
13 </div>
14 <div class="wpf-thread-box wpf-thread-author">
15 <?php echo $thread['author_html']; ?>
16 </div>
17 <div class="wpf-thread-box wpf-thread-title">
18 <div class="wpf-thread-head">
19 <span class="wpf-thread-status-mobile"><?php wpforo_topic_icon($thread); ?> </span>
20 <?php wpforo_topic_title($thread, $thread['url'], '{p}{au}{tc}{/a}{n}{v}', true, '', wpforo_setting( 'forums', 'layout_threaded_intro_topics_length' )) ?>
21 </div>
22 <div class="wpf-thread-author-name">
23 <span><?php wpforo_phrase('by') ?></span> <?php wpforo_member_link( $thread['user'] ) ?><span class="wpforo-date wpforo-date-ago">, <?php wpforo_date($thread['created'],'ago-date'); ?></span>&nbsp; <?php wpforo_tags($thread, true, 'text') ?>
24 </div>
25 <div class="wpf-thread-forum-mobile">
26 <i class="<?php echo $thread['forum']['icon'] ?>" style="color: <?php echo $thread['forum']['color'] ?>"></i>&nbsp;
27 <?php $forum_description = (wpfval($thread['forum'], 'description')) ? 'wpf-tooltip="' . esc_attr(strip_tags((string) $thread['forum']['description'])) . '" wpf-tooltip-size="long"' : ''; ?>
28 <a href="<?php echo esc_url((string) $thread['forum']['url']); ?>" <?php echo $forum_description ?>>
29 <?php echo esc_attr($thread['forum']['title'])?>
30 </a>
31 </div>
32 </div>
33 <div class="wpf-thread-box wpf-thread-forum">
34 <span style="font-size: 150%; opacity: 0.8; border: 2px solid <?php echo $thread['forum']['color'] ?>; border-radius: 50%; width: 44px; height: 44px; display: flex; justify-content: center; align-items: center;" wpf-tooltip="<?php echo esc_attr($thread['forum']['title'])?>" wpf-tooltip-position="left" wpf-tooltip-size="long"><i class="<?php echo $thread['forum']['icon'] ?>" style="color: <?php echo $thread['forum']['color'] ?>"></i></span>
35 </div>
36 <div class="wpf-thread-box wpf-thread-posts">
37 <span><?php echo wpforo_print_number((intval($thread['posts']) - 1)) ?></span>
38 </div>
39 <div class="wpf-thread-box wpf-thread-views">
40 <span><?php echo wpforo_print_number($thread['views']) ?></span>
41 </div>
42 <div class="wpf-thread-box wpf-thread-last-reply">
43 <div class="wpf-thread-last-info">
44 <div class="wpf-thread-last-user">
45 <div class="wpf-thread-last-avatar"><?php echo $thread['reply_html'] ?></div>
46 <?php wpforo_member_link( $thread['last_user'], 'by', 14) ?>
47 </div>
48 <div class="wpf-thread-last-date"><?php wpforo_date($thread['modified']) ?></div>
49 </div>
50 </div>
51 </div>
52 </div>
53 <?php
54 }
55