-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patharticle-comments-form.tpl
125 lines (107 loc) · 5.62 KB
/
article-comments-form.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
{{dynamic}}
{{ if !$gimme->publication->public_comments }}
<!-- public comments are not allowed-->
{{ if $gimme->user->logged_in }}
<!-- user is logged in -->
{{ if $gimme->article->number && $gimme->article->comments_locked == 0 && $gimme->article->comments_enabled == 1}}
{{ if $gimme->submit_comment_action->defined && $gimme->submit_comment_action->rejected }}
<p><em>{{'commentNotAccepted'|translate}}</em></p>
{{ /if }}
{{ if $gimme->submit_comment_action->is_error }}
<p><em>{{ $gimme->submit_comment_action->error_message }}</em></p>
{{ else }}
{{ if $gimme->submit_comment_action->defined }}
{{ if $gimme->publication->moderated_comments }}
<p><em>{{'commentSentApproval'|translate}}</em></p>
{{ /if }}
{{ /if }}
{{ /if }}
<h3>{{'leaveReply'|translate}}</h3>
{{ comment_form html_code="id=\"commentform\"" submit_button="{{'submit'|translate}}" button_html_code="class=\"clearfix\" tabindex=\"6\"" }}
<div class="form-element clearfix">
<label for="comment">{{'comment'|translate}}</label>
{{ camp_edit object="comment" attribute="content" html_code="id=\"comment\" tabindex=\"4\"" }}
</div>
<div class="form-element clearfix">
<label for="f_captcha_code">{{'enterCode'|translate}}</label>
{{ recaptcha }}
</div>
{{ /comment_form }}
{{ else }}
<p>{{'commentsLockedDisabled'|translate}}</p>
{{ /if }}
{{ else }}
<!-- user is not logged in -->
<p>{{'notLoggedInMessage'|translate}}</p>
{{ /if }}
{{ else }}
<!-- public comments are allowed-->
{{ if $gimme->user->logged_in }}
<!-- user is logged in -->
{{ if $gimme->article->number && $gimme->article->comments_locked == 0 && $gimme->article->comments_enabled == 1}}
{{ if $gimme->submit_comment_action->defined && $gimme->submit_comment_action->rejected }}
<p><em>{{'commentNotAccepted'|translate}}</em></p>
{{ /if }}
{{ if $gimme->submit_comment_action->is_error }}
<p><em>{{ $gimme->submit_comment_action->error_message }}</em></p>
{{ else }}
{{ if $gimme->submit_comment_action->defined }}
{{ if $gimme->publication->moderated_comments }}
<p><em>{{'commentSentApproval'|translate}}</em></p>
{{ /if }}
{{ /if }}
{{ /if }}
<h3>{{'leaveReply'|translate}}</h3>
{{ comment_form html_code="id=\"commentform\"" submit_button="{{'submit'|translate}}" button_html_code="tabindex=\"6\" class=\"clearfix\" " }}
<div class="form-element clearfix">
<label for="comment">{{'comment'|translate}}</label>
{{ camp_edit object="comment" attribute="content" html_code="id=\"comment\" tabindex=\"4\"" }}
</div>
<div class="form-element clearfix">
<label for="f_captcha_code">{{'enterCode'|translate}}</label>
{{ recaptcha }}
</div>
{{ /comment_form }}
{{ else }}
<p>{{'commentsLockedDisabled'|translate}}</p>
{{ /if }}
{{ else }}
<!-- user is not logged in -->
{{ if $gimme->article->number && $gimme->article->comments_locked == 0 && $gimme->article->comments_enabled == 1}}
{{ if $gimme->submit_comment_action->defined && $gimme->submit_comment_action->rejected }}
<p><em>{{'commentNotAccepted'|translate}}</em></p>
{{ /if }}
{{ if $gimme->submit_comment_action->is_error }}
<p><em>{{ $gimme->submit_comment_action->error_message }}</em></p>
{{ else }}
{{ if $gimme->submit_comment_action->defined }}
{{ if $gimme->publication->moderated_comments }}
<p><em>{{'commentSentApproval'|translate}}</em></p>
{{ /if }}
{{ /if }}
{{ /if }}
<h3>{{'leaveReply'|translate}}</h3>
{{ comment_form html_code="id=\"commentform\"" submit_button="{{'submit'|translate}}" button_html_code="tabindex=\"6\" class=\"clearfix\"" }}
<div class="form-element clearfix">
<label for="author"><small>{{'nameRequired'|translate}}</small></label>
{{ camp_edit object="comment" attribute="nickname" html_code="id=\"author\" tabindex=\"1\"" }}
</div>
<div class="form-element clearfix">
<label for="email"><small>{{'emailRequired'|translate}}</small></label>
{{ camp_edit object="comment" attribute="reader_email" html_code="id=\"email\" tabindex=\"2\"" }}
</div>
<div class="form-element clearfix">
<label for="comment">{{'comment'|translate}}</label>
{{ camp_edit object="comment" attribute="content" html_code="id=\"comment\" tabindex=\"4\"" }}
</div>
<div class="form-element clearfix">
<label for="f_captcha_code">{{'enterCode'|translate}}</label>
{{ recaptcha }}
</div>
{{ /comment_form }}
{{ else }}
<p>{{'commentsLockedDisabled'|translate}}</p>
{{ /if }}
{{ /if }}
{{ /if }}
{{/dynamic}}