File: cfg_comments.tmpl

package info (click to toggle)
movabletype-opensource 4.2.3-1%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,268 kB
  • ctags: 15,862
  • sloc: perl: 178,892; php: 26,178; sh: 161; makefile: 82
file content (258 lines) | stat: -rw-r--r-- 13,228 bytes parent folder | download
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<mt:setvar name="page_title" value="<__trans phrase="Comment Settings">">
<$mt:setvar name="position_actions_bottom" value="1"$>
<mt:setvar name="comments" value="1">
<MTSetVarBlock name="system_msg">

    <mt:if name="error">
        <mtapp:statusmsg
            id="generic-error"
            class="error">
            <mt:var name="error">
        </mtapp:statusmsg>
    </mt:if>

    <mt:if name="saved">
        <mt:if name="can_rebuild">
            <mt:if name="need_full_rebuild">
                <mtapp:statusmsg
                    id="saved-full-rebuild"
                    class="success"
                    rebuild="all">
                    <__trans phrase="Your preferences have been saved.">
                </mtapp:statusmsg>
            <mt:else>
                <mt:if name="need_index_rebuild">
                    <mtapp:statusmsg
                        id="saved-index-rebuild"
                        class="success"
                        rebuild="index">
                        <__trans phrase="Your preferences have been saved.">
                    </mtapp:statusmsg>
                <mtelse>
                    <mtapp:statusmsg
                        id="saved"
                        class="success">
                        <__trans phrase="Your preferences have been saved.">
                    </mtapp:statusmsg>
                </mt:if>
            <mtelse>
                <mtapp:statusmsg
                    id="saved"
                    class="success">
                    <__trans phrase="Your preferences have been saved.">
                </mtapp:statusmsg>
            </mt:if>
        <mtelse>
            <mtapp:statusmsg
                id="saved"
                class="success">
                <__trans phrase="Your preferences have been saved.">
            </mtapp:statusmsg> 
        </mtif> 
    </mt:if>

</MTSetVarBlock>
<MTSetVarBlock name="content_nav">
    <mt:include name="include/cfg_content_nav.tmpl">
</MTSetVarBlock>
<mt:include name="include/header.tmpl">


<form name="cfg_form" method="post" action="<mt:var name="script_url">">
<input type="hidden" name="id" value="<mt:var name="id" escape="html">" />
<input type="hidden" name="__mode" value="save" />
<input type="hidden" name="_type" value="blog" />
<input type="hidden" name="cfg_screen" value="cfg_comments" />
<input type="hidden" name="blog_id" value="<mt:var name="blog_id" escape="html">" />
<input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" />
<input type="hidden" name="magic_token" value="<mt:var name="magic_token" escape="html">" />

<mt:if name="allow_comments">
<mt:unless name="system_allow_comments">
    <mtapp:statusmsg
        id="system-allow-comments"
        class="alert">
        <__trans phrase="Note: Commenting is currently disabled at the system level.">
    </mtapp:statusmsg>
</mt:unless>
</mt:if>

<mt:unless name="tk_available">
<p><__trans phrase="Comment authentication is not available because one of the needed modules, MIME::Base64 or LWP::UserAgent is not installed. Talk to your host about getting this module installed."></p>
</mt:unless>

<fieldset>

    <mtapp:setting
        id="allow_comments"
        label="<__trans phrase="Accept Comments">"
        content_class="field-content-text"
        help_page="blog_settings_feedback"
        help_section="accept_comments_from">
        <input type="checkbox" name="allow_comments" value="1" id="allow_comments" onclick="toggleHidden('commenting-policy'); toggleHidden('commenting-display-options'); return true"<mt:if name="allow_comments"> checked="checked"</mt:if> class="cb" /> <label for="allow_comments"><__trans phrase="If enabled, comments will be accepted."></label>
    </mtapp:setting>

</fieldset>

<fieldset id="commenting-policy"<mt:unless name="allow_comments"> class="hidden"</mt:unless>>

<h3><__trans phrase="Commenting Policy"></h3>

    <mtapp:setting
        id="moderate_comments"
        label="<__trans phrase="Immediately approve comments from">"
        content_class="field-content-text"
        hint="<__trans phrase="Specify what should happen to comments after submission. Unapproved comments are held for moderation.">"
        help_page="blog_settings_feedback"
        help_section="immediately_publish_comments_from">
        <ul>
            <li><label><input type="radio" name="moderate_comments" value="1"<mt:if name="moderate_comments_1"> checked="checked"</mt:if> class="rb" /> <__trans phrase="No one"></label></li>
            <li><label><input type="radio" name="moderate_comments" value="2"<mt:if name="moderate_comments_2"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Trusted commenters only"></label></li>
            <li><label><input type="radio" name="moderate_comments" value="3"<mt:if name="moderate_comments_3"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Any authenticated commenters"></label></li>
            <li><label><input type="radio" name="moderate_comments" value="0"<mt:if name="moderate_comments_0"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Anyone"></label></li>
        </ul>
    </mtapp:setting>

    <mtapp:setting
        id="allow_comment_html"
        label="<__trans phrase="Allow HTML">"
        content_class="field-content-text"
        help_page="blog_settings_feedback"
        help_section="allow_html">
<input type="checkbox" name="allow_comment_html" id="allow_comment_html" onclick="toggleSubPrefs(this);" value="1"<mt:if name="allow_comment_html"> checked="checked"</mt:if> class="cb" /> <label for="allow_comment_html"><__trans phrase="If enabled, users will be able to enter a limited set of HTML in their comments. If not, all HTML will be stripped out."></label>
    </mtapp:setting>

    <div id="allow_comment_html_prefs"<mt:unless name="allow_comment_html"> class="hidden"</mt:unless>>
    <mtapp:setting
        id="sanitize_spec"
        label="<__trans phrase="Limit HTML Tags">"
        content_class="field-content-text"
        hint="<__trans phrase="Specifies the list of HTML tags allowed by default when cleaning an HTML string (a comment, for example).">"
        help_page="blog_settings_general"
        help_section="limit_html_tags">
        <ul>
        <li><label><input type="radio" name="sanitize_spec" id="sanitize_spec_0" value="0"<mt:if name="sanitize_spec_0"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Use defaults">:</label> <span class="hint"><__trans phrase="([_1])" params="<mt:var name="global_sanitize_spec" escape="html">"></span></li>
        <li><label><input type="radio" name="sanitize_spec" id="sanitize_spec_1" value="1"<mt:if name="sanitize_spec_1"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Use my settings">:</label> <input name="sanitize_spec_manual" id="sanitize_spec_manual" value="<mt:if name="sanitize_spec_1"><mt:var name="sanitize_spec" escape="html"></mt:if>" /></li>
        </ul>
    </mtapp:setting>

    <mtapp:setting
        id="nofollow_urls"
        label="<__trans phrase="Apply 'nofollow' to URLs">"
        content_class="field-content-text"
        help_page="blog_settings_feedback"
        help_section="nofollow_urls"
        show_warning="1"
        warning="<__trans phrase="This preference affects both comments and TrackBacks.">">
        <input type="checkbox" value="1" name="nofollow_urls" id="nofollow_urls"<mt:if name="nofollow_urls"> checked="checked"</mt:if> class="cb" onclick="toggleSubPrefs(this)" /> <label for="nofollow_urls"><__trans phrase="If enabled, all URLs in comments and TrackBacks will be assigned a 'nofollow' link relation."></label>
    </mtapp:setting>

    <div id="nofollow_urls_prefs"<mt:unless name="nofollow_urls"> class="hidden"</mt:unless>>

        <mtapp:setting
            id="follow_auth_links"
            label="<__trans phrase="Disable 'nofollow' for trusted commenters">"
            content_class="field-content-text"
            help_page="blog_settings_feedback"
            help_section="follow_auth_links">
            <input type="checkbox" value="1" name="follow_auth_links" id="follow_auth_links"<mt:if name="follow_auth_links"> checked="checked"</mt:if> class="cb" /> <label for="follow_auth_links"><__trans phrase="If enabled, the 'nofollow' link relation will not be applied to any comments left by trusted commenters."></label>
        </mtapp:setting>

    </div>

    </div>

    <mtapp:setting
        id="email_new_comments"
        label="<__trans phrase="E-mail Notification">"
        content_class="field-content-text"
        hint="<__trans phrase="Specify when Movable Type should notify you of new comments if at all.">"
        help_page="blog_settings_feedback"
        help_section="email_notification">
<ul>
<li><label><input type="radio" name="email_new_comments" value="1"<mt:if name="email_new_comments_1"> checked="checked"</mt:if> class="rb" /> <__trans phrase="On"></label></li>
<li><label><input type="radio" name="email_new_comments" value="2"<mt:if name="email_new_comments_2"> checked="checked"</mt:if> class="rb"  /> <__trans phrase="Only when attention is required"></label></li>
<li><label><input type="radio" name="email_new_comments" value="0"<mt:unless name="email_new_comments"> checked="checked"</mt:unless> class="rb" /> <__trans phrase="Off"></label></li>
</ul>
    </mtapp:setting>

</fieldset>
<fieldset id="commenting-display-options"<mt:unless name="allow_comments"> class="hidden"</mt:unless>>

<h3><__trans phrase="Comment Display Options"></h3>

    <mtapp:setting
        id="sort_order_comments"
        label="<__trans phrase="Comment Order">"
        hint="<__trans phrase="Select whether you want visitor comments displayed in ascending (oldest at top) or descending (newest at top) order.">"
        help_page="blog_settings_general"
        help_section="comment_order">
<select name="sort_order_comments" id="sort_order_comments">
<option value="ascend"<mt:if name="sort_order_comments_ascend"> selected="selected"</mt:if>><__trans phrase="Ascending"></option>
<option value="descend"<mt:if name="sort_order_comments_descend"> selected="selected"</mt:if>><__trans phrase="Descending"></option>
</select>
    </mtapp:setting>

    <mtapp:setting
        id="autolink_urls"
        label="<__trans phrase="Auto-Link URLs">"
        content_class="field-content-text"
        help_page="blog_settings_feedback"
        help_section="autolink_urls">
<input type="checkbox" value="1" name="autolink_urls" id="autolink_urls"<mt:if name="autolink_urls"> checked="checked"</mt:if> class="cb" /> <label for="autolink_urls"><__trans phrase="If enabled, all non-linked URLs will be transformed into links to that URL."></label>
    </mtapp:setting>

    <mtapp:setting
        id="convert_paras_comments"
        label="<__trans phrase="Text Formatting">"
        hint="<__trans phrase="Specifies the Text Formatting option to use for formatting visitor comments.">"
        help_page="blog_settings_feedback"
        help_section="comment_text_formatting">
<select name="convert_paras_comments" id="convert_paras_comments">
<mt:loop name="text_filters_comments">
<option value="<mt:var name="key" escape="html">"<mt:if name="selected"> selected="selected"</mt:if>><mt:var name="label" escape="html"></option>
</mt:loop>
</select>
    </mtapp:setting>

    <mtapp:setting
        id="captcha_provider"
        label="<__trans phrase="CAPTCHA Provider">">
        <mt:if name="captcha_loop">
            <select name="captcha_provider" id="captcha_provider">
            <option value="none"><__trans phrase="none"></option>
            <mt:loop name="captcha_loop">
            <option value="<mt:var name="key" escape="html">"<mt:if name="selected"> selected="selected"</mt:if>><mt:var name="label" escape="html"></option>
            </mt:loop>
            </select>
        <mt:else>
            <p>
            <img src="<mt:var name="static_uri">images/status_icons/warning.gif" alt="<__trans phrase="No CAPTCHA provider available">" width="9" height="9" />
            <span class="alert-warning-inline"><__trans phrase="No CAPTCHA provider is available in this system.  Please check to see if Image::Magick is installed, and CaptchaSourceImageBase directive points to captcha-source directory under mt-static/images."></span>
            </p>
        </mt:if>
    </mtapp:setting>

    <mtapp:setting
        id="use_comment_confirmation"
        label="<__trans phrase="Use Comment Confirmation Page">"
        content_class="field-content-text"
        hint="<__trans phrase="Use comment confirmation page">">
<p><input type="checkbox" value="1" id="use_comment_confirmation" name="use_comment_confirmation"<mt:if name="use_comment_confirmation"> checked="checked"</mt:if> class="cb" /></p>
    </mtapp:setting>

</fieldset>

<mt:setvarblock name="action_buttons">
    <button
        type="submit"
        accesskey="s"
        title="<__trans phrase="Save changes to these settings (s)">"
        class="primary-button"
        ><__trans phrase="Save Changes"></button>
</mt:setvarblock>
<mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1">
</form>


<mt:include name="include/footer.tmpl">