root/branches/release-36/tmpl/cms/cfg_entry.tmpl @ 2068

Revision 2068, 15.3 kB (checked in by bchoate, 19 months ago)

Added labels to 'Smart Replace' options. Thanks, Su! BugId:79290

Line 
1<$mt:setvar name="page_title" value="<__trans phrase="Entry Settings">"$>
2<$mt:setvar name="entries" value="1"$>
3<mt:setvarblock name="content_nav">
4    <mt:include name="include/cfg_content_nav.tmpl">
5</mt:setvarblock>
6<MTSetVarBlock name="system_msg">
7    <mt:if name="error">
8        <mtapp:statusmsg
9            id="generic-error"
10            class="error">
11            <mt:var name="error">
12        </mtapp:statusmsg>
13    </mt:if>
14
15    <mt:if name="saved">
16        <mtapp:statusmsg
17            id="saved"
18            class="success"
19            rebuild="all">
20            <__trans phrase="Your preferences have been saved.">
21        </mtapp:statusmsg>
22    </mt:if>
23</MTSetVarBlock>
24
25<mt:include name="include/header.tmpl" position_actions_bottom="1">
26
27<mt:section html_tag="div" id="cfg-entry_display">
28
29<mtapp:form id="cfg_entry" name="cfg_entry" mode="save" object_type="blog">
30    <input type="hidden" name="cfg_screen" value="cfg_entry" />
31
32<mtapp:settinggroup id="display-settings">
33
34<h3><__trans phrase="Display Settings"></h3>
35
36    <mtapp:setting
37        id="list_on_index"
38        label="<__trans phrase="Entry Listing Default">"
39        hint="<__trans phrase="Select the number of days of entries or the exact number of entries you would like displayed on your blog.">"
40        help_page="blog_settings_general"
41        help_section="entries_to_display">
42        <input name="list_on_index" id="list_on_index" size="2" value="<mt:var name="list_on_index" escape="html">" />
43        <select name="days_or_posts" id="days_or_posts">
44            <option value="days"<mt:if name="days"> selected="selected"</mt:if>><__trans phrase="Days"></option>
45            <option value="posts"<mt:if name="posts"> selected="selected"</mt:if>><__trans phrase="Entries"></option>
46        </select>
47    </mtapp:setting>
48
49    <mtapp:setting
50        id="sort_order_posts"
51        label="<__trans phrase="Entry Order">"
52        hint="<__trans phrase="Select whether you want your entries displayed in ascending (oldest at top) or descending (newest at top) order.">"
53        help_page="blog_settings_general"
54        help_section="entry_order">
55        <select name="sort_order_posts" id="sort_order_posts">
56            <option value="ascend"<mt:if name="sort_order_posts_ascend"> selected="selected"</mt:if>><__trans phrase="Ascending"></option>
57            <option value="descend"<mt:if name="sort_order_posts_descend"> selected="selected"</mt:if>><__trans phrase="Descending"></option>
58        </select>
59    </mtapp:setting>
60
61    <mtapp:setting
62        id="words_in_excerpt"
63        label="<__trans phrase="Excerpt Length">"
64        hint="<__trans phrase="Enter the number of words that should appear in an auto-generated excerpt.">"
65        help_page="blog_settings_general"
66        help_section="excerpt_length">
67        <input name="words_in_excerpt" id="words_in_excerpt" size="3" value="<mt:var name="words_in_excerpt" escape="html">" />
68    </mtapp:setting>
69
70    <mtapp:setting
71        id="language"
72        label="<__trans phrase="Date Language">"
73        hint="<__trans phrase="Select the language in which you would like dates on your blog displayed.">"
74        help_page="blog_settings_general"
75        help_section="date_language">
76        <select name="language" id="language">
77            <option value="cz"<mt:if name="language_cz"> selected="selected"</mt:if>><__trans phrase="Czech"></option>
78            <option value="dk"<mt:if name="language_dk"> selected="selected"</mt:if>><__trans phrase="Danish"></option>
79            <option value="nl"<mt:if name="language_nl"> selected="selected"</mt:if>><__trans phrase="Dutch"></option>
80            <option value="en"<mt:if name="language_en"> selected="selected"</mt:if>><__trans phrase="English"></option>
81            <option value="et"<mt:if name="language_et"> selected="selected"</mt:if>><__trans phrase="Estonian"></option>
82            <option value="fr"<mt:if name="language_fr"> selected="selected"</mt:if>><__trans phrase="French"></option>
83            <option value="de"<mt:if name="language_de"> selected="selected"</mt:if>><__trans phrase="German"></option>
84            <option value="is"<mt:if name="language_is"> selected="selected"</mt:if>><__trans phrase="Icelandic"></option>
85            <option value="it"<mt:if name="language_it"> selected="selected"</mt:if>><__trans phrase="Italian"></option>
86            <option value="ja"<mt:if name="language_ja"> selected="selected"</mt:if>><__trans phrase="Japanese"></option>
87            <option value="no"<mt:if name="language_no"> selected="selected"</mt:if>><__trans phrase="Norwegian"></option>
88            <option value="pl"<mt:if name="language_pl"> selected="selected"</mt:if>><__trans phrase="Polish"></option>
89            <option value="pt"<mt:if name="language_pt"> selected="selected"</mt:if>><__trans phrase="Portuguese"></option>
90            <option value="sk"<mt:if name="language_sk"> selected="selected"</mt:if>><__trans phrase="Slovak"></option>
91            <option value="si"<mt:if name="language_si"> selected="selected"</mt:if>><__trans phrase="Slovenian"></option>
92            <option value="es"<mt:if name="language_es"> selected="selected"</mt:if>><__trans phrase="Spanish"></option>
93            <option value="fi"<mt:if name="language_fi"> selected="selected"</mt:if>><__trans phrase="Suomi"></option>
94            <option value="se"<mt:if name="language_se"> selected="selected"</mt:if>><__trans phrase="Swedish"></option>
95        </select>
96    </mtapp:setting>
97
98    <mtapp:setting
99        id="basename_limit"
100        label="<__trans phrase="Basename Length">"
101        hint="<__trans phrase="Specifies the default length of an auto-generated basename. The range for this setting is 15 to 250.">"
102        help_page="blog_settings_entry_defaults"
103        help_section="basename_length">
104        <input type="text" size="3" maxlength="3" value="<mt:var name="basename_limit">" name="basename_limit" id="basename_limit" />
105    </mtapp:setting>
106
107</mtapp:settinggroup>
108
109<mtapp:settinggroup id="entry-settings">
110
111<h3><__trans phrase="New Entry Defaults"></h3>
112
113    <mtapp:setting
114        id="status_default"
115        label="<__trans phrase="Entry Status">"
116        hint="<__trans phrase="Specifies the default Entry Status when creating a new entry.">">
117        <select name="status_default" id="status_default">
118        <option value="1"<mt:if name="STATUS_DEFAULT_1"> selected="selected"</mt:if>><__trans phrase="Unpublished"></option>
119        <option value="2"<mt:if name="STATUS_DEFAULT_2"> selected="selected"</mt:if>><__trans phrase="Published"></option>
120        </select>
121    </mtapp:setting>
122
123    <mtapp:setting
124        id="convert_paras"
125        label="<__trans phrase="Text Formatting">"
126        hint="<__trans phrase="Specifies the default Text Formatting option when creating a new entry.">"
127        help_page="blog_settings_entry_defaults"
128        help_section="text_formatting">
129        <select name="convert_paras" id="convert_paras">
130        <mt:loop name="text_filters">
131        <option value="<mt:var name="key">"<mt:if name="selected"> selected="selected"</mt:if>><mt:var name="label"></option>
132        </mt:loop>
133        </select>
134    </mtapp:setting>
135
136    <mtapp:setting
137        id="allow_comments_default"
138        label="<__trans phrase="Accept Comments">"
139        content_class="field-content-text"
140        help_page="blog_settings_entry_defaults"
141        help_section="accept_comments"
142        hint="<__trans phrase="Specifies the default Accept Comments setting when creating a new entry.">">
143        <input type="checkbox" name="allow_comments_default" id="allow_comments_default" value="1"<mt:if name="ALLOW_COMMENTS_DEFAULT_1"> checked="checked"</mt:if> class="cb" />
144        <mt:unless name="system_allow_comments">
145        <p><img src="<mt:var name="static_uri">images/status_icons/warning.gif" alt="<__trans phrase="Setting Ignored">" width="9" height="9" />
146        <span class="alert-warning-inline"><__trans phrase="Note: This option is currently ignored since comments are disabled either blog or system-wide."></span></p>
147        </mt:unless>
148    </mtapp:setting>
149
150    <mtapp:setting
151        id="allow_pings_default"
152        label="<__trans phrase="Accept TrackBacks">"
153        content_class="field-content-text"
154        help_page="blog_settings_entry_defaults"
155        help_section="allow_trackbacks"
156        hint="<__trans phrase="Specifies the default Accept TrackBacks setting when creating a new entry.">">
157        <input type="checkbox" value="1" name="allow_pings_default" id="allow_pings_default"<mt:if name="allow_pings_default"> checked="checked"</mt:if> class="cb"/>
158        <mt:unless name="system_allow_pings">
159        <p><img src="<mt:var name="static_uri">images/status_icons/warning.gif" alt="<__trans phrase="Setting Ignored">" width="9" height="9" /> <span class="alert-warning-inline"><__trans phrase="Note: This option is currently ignored since TrackBacks are disabled either blog or system-wide."></span></p>
160        </mt:unless>
161    </mtapp:setting>
162
163</mtapp:settinggroup>
164
165<mtapp:settinggroup id="replace-word-settings">
166
167<h3><__trans phrase="Replace Word Chars"></h3>
168
169<mtapp:setting
170    id="nwc_smart_replace"
171    label="<__trans phrase="Smart Replace">"
172    content_class="field-content-text"
173    hint="<__trans phrase="Replace UTF-8 characters frequently used by word processors with their more common web equivalents.">"
174    show_hint="1">
175    <ul>
176        <li><input type="radio" value="2" name="nwc_smart_replace" id="nwc_replace_none" onclick="DOM.addClassName(DOM.getElement('replace-fields'), 'hidden');"<mt:if name="nwc_smart_replace_2"> checked="checked"</mt:if>> <label for="nwc_replace_none"><__trans phrase="No substitution"></label></li>
177        <li><input type="radio" value="1" name="nwc_smart_replace" id="nwc_replace_entities" onclick="DOM.removeClassName(DOM.getElement('replace-fields'), 'hidden');"<mt:if name="nwc_smart_replace_1"> checked="checked"</mt:if>> <label for="nwc_replace_entities"><__trans phrase="Character entities (&amp#8221;, &amp#8220;, etc.)"></label></li>
178        <li><input type="radio" value="0" name="nwc_smart_replace" id="nwc_replace_ascii" onclick="DOM.removeClassName(DOM.getElement('replace-fields'), 'hidden');"<mt:if name="nwc_smart_replace_0"> checked="checked"</mt:if>> <label for="nwc_replace_ascii"><__trans phrase="ASCII equivalents (&quot;, ', ..., -, --)"></label></li>
179    </ul>
180    <div id="replace-fields" class="<mt:if name="nwc_replace_none">hidden</mt:if>">
181        <h4><__trans phrase="Replace Fields"></h4>
182        <ul>
183            <li><input type="checkbox" value="1" name="nwc_title" id="nwc_title"<mt:if name="nwc_title"> checked="checked"</mt:if> class="cb"/> <label for="nwc_title"><__trans phrase="Title"></label></li>
184            <li><input type="checkbox" value="1" name="nwc_text" id="nwc_text"<mt:if name="nwc_text"> checked="checked"</mt:if> class="cb"/> <label for="nwc_text"><__trans phrase="Entry"></label></li>
185            <li><input type="checkbox" value="1" name="nwc_text_more" id="nwc_text_more"<mt:if name="nwc_text_more"> checked="checked"</mt:if> class="cb"/> <label for="nwc_text_more"><__trans phrase="Extended entry"></label></li>
186            <li><input type="checkbox" value="1" name="nwc_keywords" id="nwc_keywords"<mt:if name="nwc_keywords"> checked="checked"</mt:if> class="cb"/> <label for="nwc_keywords"><__trans phrase="Keywords"></label></li>
187            <li><input type="checkbox" value="1" name="nwc_excerpt" id="nwc_excerpt"<mt:if name="nwc_excerpt"> checked="checked"</mt:if> class="cb"/> <label for="nwc_excerpt"><__trans phrase="Excerpt"></label></li>
188            <li><input type="checkbox" value="1" name="nwc_tags" id="nwc_tags"<mt:if name="nwc_tags"> checked="checked"</mt:if> class="cb"/> <label for="nwc_tags"><__trans phrase="Tags"></label></li>
189        </ul>
190    </div>
191
192</mtapp:setting>
193
194</mtapp:settinggroup>
195
196<mtapp:settinggroup id="default-field-settings">
197
198<h3><__trans phrase="Default Editor Fields"></h3>
199<mt:setvarblock name="more_fields" id="more_fields"></mt:setvarblock>
200<mtapp:setting
201    id="entry_prefs"
202    label="<__trans phrase="Editor Fields">"
203    hint="<__trans phrase="_USAGE_ENTRYPREFS">"
204    content_class="field-content-text">
205    <ul id="editor-fields">
206        <li><input type="checkbox" name="custom_prefs" id="custom-prefs-title" value="title" checked="checked" disabled="disabled" class="cb" /> <label for="custom-prefs-title"><__trans phrase="Title"></label></li>
207        <li><input type="checkbox" name="custom_prefs" id="custom-prefs-body" value="body" checked="checked" disabled="disabled" class="cb" /> <label for="custom-prefs-body"><__trans phrase="Body"></label></li>
208        <li><input type="checkbox" name="custom_prefs" id="custom-prefs-category" value="category" <mt:if name="disp_prefs_show_category"> checked="checked"</mt:if> class="cb" /> <label for="custom-prefs-category"><__trans phrase="Category"></label></li>
209        <li><input type="checkbox" name="custom_prefs" id="custom-prefs-excerpt" value="excerpt" <mt:if name="disp_prefs_show_excerpt"> checked="checked"</mt:if> class="cb" /> <label for="custom-prefs-excerpt"><__trans phrase="Excerpt"></label></li>
210        <li><input type="checkbox" name="custom_prefs" id="custom-prefs-keywords" value="keywords" <mt:if name="disp_prefs_show_keywords"> checked="checked"</mt:if> class="cb" /> <label for="custom-prefs-keywords"><__trans phrase="Keywords"></label></li>
211        <li><input type="checkbox" name="custom_prefs" id="custom-prefs-tags" value="tags" <mt:if name="disp_prefs_show_tags"> checked="checked"</mt:if> class="cb" /> <label for="custom-prefs-tags"><__trans phrase="Tags"></label></li>
212        <li><input type="checkbox" name="custom_prefs" id="custom-prefs-publishing" value="publishing" <mt:if name="disp_prefs_show_publishing"> checked="checked"</mt:if> class="cb" /> <label for="custom-prefs-publishing"><__trans phrase="Publishing"></label></li>
213        <li><input type="checkbox" name="custom_prefs" id="custom-prefs-feedback" value="feedback" <mt:if name="disp_prefs_show_feedback"> checked="checked"</mt:if> class="cb" /> <label for="custom-prefs-feedback"><__trans phrase="Feedback"></label></li>
214        <mt:var name="more_fields">
215    </ul>
216</mtapp:setting>
217
218<mtapp:setting
219    id="bar_position"
220    label="<__trans phrase="Action Bars">"
221    hint="<__trans phrase="Select the location of the entry editor&rsquo;s action bar.">"
222    content_class="field-content-text">
223    <ul>
224        <li><label><input type="radio" name="bar_position" value="Top"<mt:unless name="position_actions_both"><mt:if name="position_actions_top"> checked="checked"</mt:if></mt:unless> class="rb" /> <__trans phrase="Top"></label></li>
225        <li><label><input type="radio" name="bar_position" value="Both"<mt:if name="position_actions_both"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Both"></label></li>
226        <li><label><input type="radio" name="bar_position" value="Bottom"<mt:unless name="position_actions_both"><mt:if name="position_actions_bottom"> checked="checked"</mt:if></mt:unless> class="rb" /> <__trans phrase="Bottom"></label></li>
227    </ul>
228</mtapp:setting>
229
230</mtapp:settinggroup>
231
232<mt:setvarblock name="action_buttons" id="action-buttons">
233    <button
234        type="submit"
235        accesskey="s"
236        title="<__trans phrase="Save changes to these settings (s)">"
237        class="primary-button"
238        ><__trans phrase="Save Changes"></button>
239</mt:setvarblock>
240
241<mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1">
242
243</mtapp:form>
244
245</mt:section>
246
247<mt:include name="include/footer.tmpl">
Note: See TracBrowser for help on using the browser.