-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_forum_latest_discussions.tpl
114 lines (111 loc) · 4.13 KB
/
view_forum_latest_discussions.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<style>
* {
border-radius: 0 !important;
}
* {
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
@border-radius-base: 0px;
@border-radius-large: 0px;
@border-radius-small: 0px;
</style>
<body background="https://i.gyazo.com/fe2e45c80f1320b9c9e21460302450be.png" style="background-size:100%; background-attachment: fixed;">
<div class="container">
<div style="background:white" class="well">
<div class="row">
<div class="col-md-9 pull-right">
<ol class="breadcrumb">
{$BREADCRUMBS}
</ol>
<h3 style="display: inline;">{$FORUM_TITLE}</h3><span class="pull-right">{$NEW_TOPIC_BUTTON}</span><br /><br />
{if !empty($SUBFORUMS)}
<div class="well well-sm">
{$SUBFORUMS_LANGUAGE} {$SUBFORUMS}
</div>
{/if}
<table class="table table-striped">
<tr>
<th>{$DISCUSSION}</th>
<th>{$STATS}</th>
<th>{$LAST_REPLY}</th>
</tr>
{foreach from=$STICKY_DISCUSSIONS item=sticky}
<tr>
<td>
<i class="fa fa-thumb-tack"></i> {if $sticky.locked == 1}<i class="fa fa-lock"></i> {/if}{$sticky.label} <a href="/forum/view_topic/?tid={$sticky.topic_id}">{$sticky.topic_title}</a><br />
<small><span rel="tooltip" data-trigger="hover" data-original-title="{$sticky.topic_created}">{$sticky.topic_created_rough}</span> {$BY} <a href="/profile/{$sticky.topic_created_mcname}">{$sticky.topic_created_username}</a></small>
</td>
<td>
<strong>{$sticky.views}</strong> {$VIEWS}<br />
<strong>{$sticky.posts}</strong> {$POSTS}
</td>
<td>
<div class="row">
<div class="col-md-3">
<div class="frame">
<a href="/profile/{$sticky.last_reply_mcname}">{$sticky.last_reply_avatar}</a>
</div>
</div>
<div class="col-md-9">
<span rel="tooltip" data-trigger="hover" data-original-title="{$sticky.last_reply}">{$sticky.last_reply_rough}</span><br />{$BY} <a href="/profile/{$sticky.last_reply_mcname}">{$sticky.last_reply_username}</a>
</div>
</div>
</td>
</tr>
{/foreach}
{foreach from=$LATEST_DISCUSSIONS item=discussion}
<tr>
<td>
{if $discussion.locked == 1}<i class="fa fa-lock"></i> {/if}<h4 style="display:inline;">{$discussion.label}</h4> <a href="/forum/view_topic/?tid={$discussion.topic_id}">{$discussion.topic_title}</a><br />
<small><span rel="tooltip" data-trigger="hover" data-original-title="{$discussion.topic_created}">{$discussion.topic_created_rough}</span> {$BY} <a href="/profile/{$discussion.topic_created_mcname}">{$discussion.topic_created_username}</a></small>
</td>
<td>
<strong>{$discussion.views}</strong> {$VIEWS}<br />
<strong>{$discussion.posts}</strong> {$POSTS}
</td>
<td>
<div class="row">
<div class="col-md-3">
<div class="frame">
<a href="/profile/{$discussion.last_reply_mcname}">{$discussion.last_reply_avatar}</a>
</div>
</div>
<div class="col-md-9">
<span rel="tooltip" data-trigger="hover" data-original-title="{$discussion.last_reply}">{$discussion.last_reply_rough}</span><br />{$BY} <a href="/profile/{$discussion.last_reply_mcname}">{$discussion.last_reply_username}</a>
</div>
</div>
</td>
</tr>
{/foreach}
</table>
{$PAGINATION}
</div>
<div class="col-md-3 pull-left">
{$SEARCH_FORM}
<br />
<div class="span4">
<h4>{$FORUMS}</h4>
<ul class="nav nav-list">
<li class="" style="font-size: 15px;">{$OVERVIEW}</li>
<li style="text-indent:7px;"><a href="/forum">{$LATEST_DISCUSSIONS_TITLE}</a></li>
{foreach from=$SIDEBAR_FORUMS key=category item=subforums}
{if !empty($subforums)}
<li style="font-size: 15px;">{$category}</li>
{foreach $subforums item=subforum}
<li style="text-indent: 7px;" {if $subforum.title == $FORUM_TITLE} class="active"{/if}><a href="/forum/view_forum/?fid={$subforum.id}">{$subforum.title}</a></li>
{/foreach}
{/if}
{/foreach}
</ul>
</div>
<div class="span4 pull-left">
<h4>{$ONLINE_USERS}</h4>
{$ONLINE_USERS_LIST}
</div>
</div>
</div>
</div>
</div>
</div>