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 / 3 / topic.php

topic.php in wpForo Forum 3.1.6, at themes/2022/layouts/3/topic.php

77 lines 6.4 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
6 <div class="wpfl-3 wpforo-section">
7 <div class="wpforo-topic-head">
8 <div class="head-stat"><?php wpforo_phrase('Votes & Answers') ?></div>
9 <div class="head-title"><?php wpforo_phrase('Question') ?></div>
10 <div class="head-status"><?php wpforo_phrase('Question Status') ?></div>
11 </div>
12
13 <?php foreach($topics as $key => $topic) : ?>
14
15 <?php
16 $member = wpforo_member($topic);
17 if(isset($topic['last_post']) && $topic['last_post']){
18 $last_post = wpforo_post($topic['last_post']);
19 $last_poster = wpforo_member($last_post);
20 }
21 $topic_url = wpforo_topic($topic['topicid'], 'url');
22 ?>
23 <div class="topic-wrap <?php wpforo_topic_types($topic); wpforo_unread($topic['topicid'], 'topic') ?>">
24 <div class="wpforo-topic">
25 <div class="wpforo-topic-stat wpfcl-2">
26 <div class="wpf-tbox votes <?php if( $topic['answers'] > 0) echo "wpfcl-4" ?>" wpf-tooltip="<?php wpforo_phrase('Votes') ?>" wpf-tooltip-position="top" wpf-tooltip-size="small">
27 <div class="wpforo-label">
28 <svg class="<?php if( $topic['answers'] > 0) echo "wpfcl-4" ?>" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.873,11.021H5.127a2.126,2.126,0,0,1-1.568-3.56L10.046.872a2.669,2.669,0,0,1,3.939.034l6.431,6.528a2.126,2.126,0,0,1-1.543,3.587ZM5.011,8.837a.115.115,0,0,0,0,.109.111.111,0,0,0,.114.075H18.873a.111.111,0,0,0,.114-.075.109.109,0,0,0-.022-.135L12.528,2.276A.7.7,0,0,0,12,2.021a.664.664,0,0,0-.5.221L5.01,8.838ZM12,24.011a2.667,2.667,0,0,1-1.985-.887L3.584,16.6a2.125,2.125,0,0,1,1.543-3.586H18.873a2.125,2.125,0,0,1,1.568,3.558l-6.487,6.589A2.641,2.641,0,0,1,12,24.011Zm-6.873-9a.125.125,0,0,0-.092.209l6.437,6.534a.7.7,0,0,0,.528.257.665.665,0,0,0,.5-.223l6.493-6.6h0a.112.112,0,0,0,0-.108.111.111,0,0,0-.114-.074Z"/></svg>
29 </div>
30 <div class="count"><?php echo intval($topic['votes']) ?></div>
31 </div>
32 <div class="wpf-tbox answers <?php if( $topic['answers'] > 0) echo "wpfcl-5" ?>" wpf-tooltip="<?php wpforo_phrase('Answers') ?>" wpf-tooltip-position="top" wpf-tooltip-size="small">
33 <div class="wpforo-label">
34 <svg class="<?php if( $topic['answers'] > 0) echo "wpfcl-5" ?>" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0867962,18 L6,21.8042476 L6,18 L4,18 C2.8954305,18 2,17.1045695 2,16 L2,4 C2,2.8954305 2.8954305,2 4,2 L20,2 C21.1045695,2 22,2.8954305 22,4 L22,16 C22,17.1045695 21.1045695,18 20,18 L12.0867962,18 Z M8,18.1957524 L11.5132038,16 L20,16 L20,4 L4,4 L4,16 L8,16 L8,18.1957524 Z M11,10.5857864 L15.2928932,6.29289322 L16.7071068,7.70710678 L11,13.4142136 L7.29289322,9.70710678 L8.70710678,8.29289322 L11,10.5857864 Z" fill-rule="evenodd"/></svg>
35 </div>
36 <div class="count">
37 <?php echo intval($topic['answers']) ?>
38 </div>
39 </div>
40 <div class="wpf-tbox views" wpf-tooltip="<?php wpforo_phrase('Views') ?>" wpf-tooltip-position="top" wpf-tooltip-size="small">
41 <div class="wpforo-label">
42 <svg enable-background="new 0 0 32 32" version="1.1" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><polyline fill="none" points=" 649,137.999 675,137.999 675,155.999 661,155.999 " stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"/><polyline fill="none" points=" 653,155.999 649,155.999 649,141.999 " stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"/><polyline fill="none" points=" 661,156 653,162 653,156 " stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"/></g><g><g><path d="M16,25c-4.265,0-8.301-1.807-11.367-5.088c-0.377-0.403-0.355-1.036,0.048-1.413c0.404-0.377,1.036-0.355,1.414,0.048 C8.778,21.419,12.295,23,16,23c4.763,0,9.149-2.605,11.84-7c-2.69-4.395-7.077-7-11.84-7c-4.938,0-9.472,2.801-12.13,7.493 c-0.272,0.481-0.884,0.651-1.363,0.377c-0.481-0.272-0.649-0.882-0.377-1.363C5.147,10.18,10.333,7,16,7 c5.668,0,10.853,3.18,13.87,8.507c0.173,0.306,0.173,0.68,0,0.985C26.853,21.819,21.668,25,16,25z"/></g><g><path d="M16,21c-2.757,0-5-2.243-5-5s2.243-5,5-5s5,2.243,5,5S18.757,21,16,21z M16,13c-1.654,0-3,1.346-3,3s1.346,3,3,3 s3-1.346,3-3S17.654,13,16,13z"/></g></g></svg>
43 </div>
44 <div class="count">
45 <?php echo intval($topic['views']) ?>
46 </div>
47 </div>
48 </div>
49 <div class="wpforo-topic-avatar">
50 <?php if( WPF()->usergroup->can('va') && wpforo_setting( 'profiles', 'avatars' ) ): ?>
51 <?php echo wpforo_user_avatar($member, 60) ?>
52 <?php endif; ?>
53 </div>
54 <div class="wpforo-topic-details">
55 <?php wpforo_topic_title($topic, $topic_url, '{p}{au}{tc}{/a}{n}', true, 'wpforo-topic-title', wpforo_setting( 'forums', 'layout_qa_intro_topics_length' )) ?>
56 <div class="wpforo-topic-author">
57 <span class="wpforo-topic-info wpfcl-2">
58 <?php wpforo_member_link($member, 'by'); ?><span class="wpforo-date wpforo-date-ago">, <?php wpforo_date($topic['modified']); ?></span>
59 </span>
60 </div>
61 <div class="wpforo-topic-bottom">
62 <span class="wpforo-topic-replies wpfcl-2">
63 <i class="fas fa-reply fa-rotate-180"></i> <?php wpforo_phrase('replies', true, 'lower') ?> <?php echo intval($topic['posts']) ?>
64 </span>
65 </div>
66 </div>
67 <div class="wpforo-topic-status wpfcl-2 <?php if($topic['type']) echo "wpfbr-l-10" ?> <?php if( $topic['solved'] && !$topic['type']) echo "wpfbr-l-8" ?>">
68 <?php echo str_replace( 'fa-check-circle', 'fas fa-square-check', wpforo_topic_icon($topic, 'all', true, false)) ?>
69 </div>
70 </div><!-- wpforo-topic -->
71 </div><!-- topic-wrap -->
72
73 <?php do_action( 'wpforo_loop_hook', $key ) ?>
74
75 <?php endforeach; ?>
76 </div><!-- topic-wrap -->
77