PluginProbe
wpForo Forum / 3.1.6
wpForo Forum v3.1.6
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 1.4.13 All 138 releases
wpforo / themes / 2022 / layouts / 4 / topic-thread.php

topic-thread.php in wpForo Forum 3.1.6, at themes/2022/layouts/4/topic-thread.php

54 lines 3.1 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_topic_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 <span class="wpf-thread-status-mobile"><?php wpforo_topic_icon($thread); ?> </span>
19 <?php wpforo_topic_title($thread, $thread['url'], '{p}{au}{tc}{/a}{n}{v}', true, '', wpforo_setting( 'forums', 'layout_threaded_intro_topics_length' )) ?>
20 <div class="wpf-thread-author-name">
21 <span><?php wpforo_phrase('by') ?></span> <?php wpforo_member_link( $thread['user'] ) ?>, <?php wpforo_date($thread['created'],'ago-date'); ?>&nbsp; <?php wpforo_tags($thread, true, 'text') ?>
22 </div>
23 <div class="wpf-thread-forum-mobile">
24 <i class="<?php echo $thread['forum']['icon'] ?>" style="color: <?php echo $thread['forum']['color'] ?>"></i>&nbsp;
25 <?php $forum_description = (wpfval($thread['forum'], 'description')) ? 'wpf-tooltip="' . esc_attr(strip_tags((string) $thread['forum']['description'])) . '" wpf-tooltip-size="long"' : ''; ?>
26 <a href="<?php echo esc_url((string) $thread['forum']['url']); ?>" <?php echo $forum_description ?>>
27 <?php echo esc_attr($thread['forum']['title'])?>
28 </a>
29 </div>
30 </div>
31 <div class="wpf-thread-box wpf-thread-forum" style="border-left: 2px solid <?php echo $thread['forum']['color'] ?>">
32 <span class="wpf-circle wpf-m" 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>
33 </div>
34 <div class="wpf-thread-box wpf-thread-posts">
35 <span><?php echo wpforo_print_number((intval($thread['posts']) - 1)) ?></span>
36 </div>
37 <div class="wpf-thread-box wpf-thread-views">
38 <span><?php echo wpforo_print_number($thread['views']) ?></span>
39 </div>
40 <div class="wpf-thread-box wpf-thread-last-reply">
41 <div class="wpf-thread-last-info">
42 <div class="wpf-thread-last-user">
43 <div class="wpf-thread-last-avatar"><?php echo $thread['reply_html'] ?></div>
44 <?php wpforo_member_link( $thread['last_user'], 'by', 14) ?>
45 </div>
46 <div class="wpf-thread-last-date"><?php wpforo_date($thread['modified']) ?></div>
47 </div>
48 </div>
49 </div>
50 </div>
51 <?php
52 }
53 ?>
54