forked from PirateBox-Dev/website-phorum-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
read.tpl
138 lines (123 loc) · 6.04 KB
/
read.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!-- BEGIN TEMPLATE read.tpl -->
<div class="nav">
{IF URL->INDEX}<a class="icon icon-folder" href="{URL->INDEX}">{LANG->ForumList}</a>{/IF}
<a class="icon icon-list" href="{URL->LIST}">{LANG->MessageList}</a>
<a class="icon icon-comment-add" href="{URL->POST}">{LANG->NewTopic}</a>
</div>
{LOOP MESSAGES}
{IF NOT MESSAGES->parent_id 0}
<a name="msg-{MESSAGES->message_id}"></a>
{/IF}
<div class="message">
<div class="generic">
<table border="0" cellspacing="0">
<tr>
<td width="100%">
<div class="message-author icon-user">
{IF MESSAGES->URL->PROFILE}<a href="{MESSAGES->URL->PROFILE}">{/IF}{MESSAGES->author}{IF MESSAGES->URL->PROFILE}</a>{/IF}
{IF MESSAGES->URL->PM}<small>[ <a href="{MESSAGES->URL->PM}">{LANG->PrivateReply}</a> ]</small>{/IF}
</div>
<small>
<strong><a href="{MESSAGES->URL->READ}" rel="nofollow">{MESSAGES->subject}</a> {IF MESSAGES->new}<span class="new-flag">{MESSAGES->new}</span>{/IF}</strong><br />
{MESSAGES->datestamp}
</small>
</td>
<td class="message-user-info" nowrap="nowrap">
{IF MESSAGES->user->admin}
<strong>{LANG->Admin}</strong><br />
{ELSEIF MESSAGES->moderator_post}
<strong>{LANG->Moderator}</strong><br />
{/IF}
{IF MESSAGES->ip}
{LANG->IP}: {MESSAGES->ip}<br />
{/IF}
{IF MESSAGES->user}
{LANG->DateReg}: {MESSAGES->user->date_added}<br />
{LANG->Posts}: {MESSAGES->user->posts}
{/IF}
</td>
</tr>
</table>
</div>
<div class="message-body">
{IF MESSAGES->is_unapproved}
<div class="warning">
{LANG->UnapprovedMessage}
</div>
{/IF}
{MESSAGES->body}
{IF MESSAGES->URL->CHANGES}
(<a href="{MESSAGES->URL->CHANGES}">{LANG->ViewChanges}</a>)
{/IF}
<div class="message-options">
{IF MESSAGES->edit 1}
{IF MODERATOR false}
<a class="icon icon-comment-edit" href="{MESSAGES->URL->EDIT}">{LANG->EditPost}</a>
{/IF}
{/IF}
<a class="icon icon-comment-add" href="{MESSAGES->URL->REPLY}" rel="nofollow">{LANG->Reply}</a>
<a class="icon icon-comment-add" href="{MESSAGES->URL->QUOTE}" rel="nofollow">{LANG->QuoteMessage}</a>
{IF MESSAGES->URL->REPORT}<a class="icon icon-exclamation" href="{MESSAGES->URL->REPORT}">{LANG->Report}</a>{/IF}
</div>
{IF MESSAGES->attachments}
<div class="attachments">
{LANG->Attachments}:<br/>
{LOOP MESSAGES->attachments}
<a href="{MESSAGES->attachments->url}">{LANG->AttachOpen}</a> | <a href="{MESSAGES->attachments->download_url}">{LANG->AttachDownload}</a> -
{MESSAGES->attachments->name}
({MESSAGES->attachments->size})<br/>
{/LOOP MESSAGES->attachments}
</div>
{/IF}
{IF MODERATOR true}
<div class="message-moderation">
{IF MESSAGES->threadstart true}
<a class="icon icon-delete" href="{MESSAGES->URL->DELETE_THREAD}">{LANG->DelMessReplies}</a>
{ELSE}
<a class="icon icon-delete" href="{MESSAGES->URL->DELETE_MESSAGE}">{LANG->DeleteMessage}</a>
<a class="icon icon-delete" href="{MESSAGES->URL->DELETE_THREAD}">{LANG->DelMessReplies}</a>
<a class="icon icon-split" href="{MESSAGES->URL->SPLIT}">{LANG->SplitThread}</a>
{/IF}
{IF MESSAGES->is_unapproved}
<a class="icon icon-accept" href="{MESSAGES->URL->APPROVE}">{LANG->ApproveMessage}</a>
{ELSE}
<a class="icon icon-comment-delete" href="{MESSAGES->URL->HIDE}">{LANG->HideMessage}</a>
{/IF}
<a class="icon icon-comment-edit" href="{MESSAGES->URL->EDIT}">{LANG->EditPost}</a>
</div>
{/IF}
</div>
</div>
{/LOOP MESSAGES}
<div class="nav">
{INCLUDE "paging"}
<!-- CONTINUE TEMPLATE read.tpl -->
<a class="icon icon-prev" href="{URL->NEWERTHREAD}">{LANG->NewerThread}</a>
<a class="icon icon-next" href="{URL->OLDERTHREAD}">{LANG->OlderThread}</a>
</div>
<div id="thread-options" class="nav">
<a class="icon icon-printer" href="{URL->PRINTVIEW}" target="_blank">{LANG->PrintView}</a>
{IF URL->MARKTHREADREAD}
<a class="icon icon-tag-green" href="{URL->MARKTHREADREAD}">{LANG->MarkThreadRead}</a>
{/IF}
{IF TOPIC->URL->FOLLOW}
<a class="icon icon-note-add" href="{TOPIC->URL->FOLLOW}">{LANG->FollowThread}</a>
{/IF}
{IF URL->FEED}
<a class="icon icon-feed" href="{URL->FEED}">{FEED}</a>
{/IF}
{IF MODERATOR true}
<a class="icon icon-merge" href="{TOPIC->URL->MERGE}">{LANG->MergeThread}</a>
{IF TOPIC->closed false}
<a class="icon icon-close" href="{TOPIC->URL->CLOSE}">{LANG->CloseThread}</a>
{ELSE}
<a class="icon icon-open" href="{TOPIC->URL->REOPEN}">{LANG->ReopenThread}</a>
{/IF}
<a class="icon icon-delete" href="{TOPIC->URL->DELETE_THREAD}">{LANG->DeleteThread}</a>
{IF TOPIC->URL->MOVE}<a class="icon icon-move" href="{TOPIC->URL->MOVE}">{LANG->MoveThread}</a>{/IF}
{/IF}
</div>
{IF REPLY_ON_READ}
<a name="REPLY"></a>
{/IF}
<!-- END TEMPLATE read.tpl -->