-
Notifications
You must be signed in to change notification settings - Fork 19
/
articleeditor_advanced.thtml
358 lines (311 loc) · 15.3 KB
/
articleeditor_advanced.thtml
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
{# begin {templatelocation} #}
{noscript}
<div id="advanced_editor" style="display: none;">
{navbar}
<form name="frmstory" action="{site_admin_url}/article.php" method="post" enctype="multipart/form-data" onsubmit='set_postcontent();' id="frmstory" class="compact uk-form">
<div class="admin_basic">
<dl class="form_block">
<dt>{lang_author}</dt>
<dd class="controls_text">{story_author}</dd>
<dt><label for="admin-storyeditor_advanced-title">{lang_title}</label></dt>
<dd><input type="text" maxlength="128" {!if titletoid}onkeyup="TitleToId('admin-storyeditor_advanced-title','admin-storyeditor_advanced-sid');" {!endif}value="{story_title}" name="title" id="admin-storyeditor_advanced-title" class="size6"{xhtml}></dd>
<dt><label for="admin-storyeditor-page_title">{lang_page_title}</label></dt>
<dd><input type="text" maxlength="128" value="{page_title}" name="page_title" id="admin-storyeditor-page_title" class="size6"{xhtml}></dd>
<dt><label for="admin-storyeditor_advanced-sid">{lang_sid}</label></dt>
<dd><input type="text" maxlength="128" value="{story_id}" name="sid" id="admin-storyeditor_advanced-sid" class="size6"{xhtml}></dd>
<dt{hide_meta}><label for="admin-storyeditor-metadescription">{lang_metadescription}</label></dt>
<dd{hide_meta}><textarea name="meta_description" id="admin-storyeditor-metadescription" style="width:95%" cols="70" rows="2">{meta_description}</textarea></dd>
<dt{hide_meta}><label for="admin-storyeditor-metakeywords">{lang_metakeywords}</label></dt>
<dd{hide_meta}><textarea name="meta_keywords" id="admin-storyeditor-metakeywords" style="width:95%" cols="70" rows="2">{meta_keywords}</textarea></dd>
<dt><label for="tid">{lang_topic}</label></dt>
<dd class="controls_text">{topic_selection}</dd>
<dt><label for="admin-storyeditor_advanced-show_topic_icon">{lang_show_topic_icon}</label></dt>
<dd class="controls_text"><input type="checkbox" {show_topic_icon_checked} name="show_topic_icon" id="admin-storyeditor_advanced-show_topic_icon"{xhtml}></dd>
<dt><label for="admin-storyeditor_advanced-structureddata">{lang_structured_data_type}</label></dt>
<dd><select name="structured_data_type" id="admin-storyeditor_advanced-structureddata">
{structured_data_options}
</select>
</dd>
<dt><label for="admin-storyeditor_advanced-cachetime">{lang_cachetime}</label></dt>
<dd><input type="text" size="8" value="{cache_time}" name="cache_time" id="admin-storyeditor_advanced-cachetime" class="text" aria-describedby="desc-admin-storyeditor_advanced-cachetime"{xhtml}></dd>
<dd class="description" id="desc-admin-storyeditor_advanced-cachetime">{lang_cachetime_desc}</dd>
<dt><label for="admin-storyeditor_advanced-draft_flag">{lang_draft}</label></dt>
<dd class="controls_text"><input type="checkbox" {is_checked} name="draft_flag" id="admin-storyeditor_advanced-draft_flag"{xhtml}></dd>
<dt>{lang_story_stats}</dt>
<dd class="controls_text"><div class="clearfix">
<span class="story_stats">{lang_hits}: {story_hits}</span>
<span class="story_stats">{lang_comments}: {story_comments}</span>
<span class="story_stats">{lang_trackbacks}: {story_trackbacks}</span>
<span class="story_stats">{lang_emails}: {story_emails}</span>
</div></dd>
<dt><label for="sel_editmode">{lang_postmode}</label></dt>
<dd>
<select {change_editormode} name="postmode" id="sel_editmode">
{post_options}
</select>
</dd>
</dl>
</div>
<div class="clearboth">
<div id="text_editor" class="story_editor" style="display: {show_texteditor};">
<dl class="form_block">
<dt><label for="introtext">{lang_introtext}</label></dt>
<dd>
<div class="uk-button-group">
<button class="uk-button uk-button-mini" type="button" title="{lang_expandhelp}" onclick="changeTextAreaSize('introtext','larger');" alt="expand button"><i class="uk-icon-plus"></i></button>
<button class="uk-button uk-button-mini" type="button" title="{lang_reducehelp}" onclick="changeTextAreaSize('introtext','smaller');" alt="collapse button"><i class="uk-icon-minus"></i></button>
</div>
<textarea cols="45" rows="14" name="introtext" id="introtext" class="wide" aria-describedby="desc-admin-storyeditor-text">{story_introtext}</textarea>
</dd>
<dt><label for="bodytext">{lang_bodytext}</label></dt>
<dd>
<div class="uk-button-group">
<button class="uk-button uk-button-mini" type="button" title="{lang_expandhelp}" onclick="changeTextAreaSize('bodytext','larger');" alt="expand button"><i class="uk-icon-plus"></i></button>
<button class="uk-button uk-button-mini" type="button" title="{lang_reducehelp}" onclick="changeTextAreaSize('bodytext','smaller');" alt="collapse button"><i class="uk-icon-minus"></i></button>
</div>
<textarea cols="45" rows="14" name="bodytext" id="bodytext" class="wide" aria-describedby="desc-admin-storyeditor-text">{story_bodytext}</textarea>
</dd>
<dd class="description" id="desc-admin-storyeditor-text">{lang_allowed_html}</dd>
</dl>
</div>
<div id="html_editor" class="story_editor" style="display: {show_htmleditor};">
<dl class="form_block">
<dt><label for="adveditor_toolbar_selector">{lang_toolbar}</label></dt>
<dd><select id="adveditor_toolbar_selector" name="adveditor_toolbar_selector" onchange="changeToolbar(this.value);">
<option value="editor-toolbar1">{toolbar1}</option>
<option value="editor-toolbar2" selected="selected">{toolbar2}</option>
<option value="editor-toolbar3">{toolbar3}</option>
<option value="Default">{toolbar5}</option>
</select></dd>
<dt><label for="introhtml">{lang_introtext}</label></dt>
<dd>
<div class="uk-button-group">
<button class="uk-button uk-button-mini" type="button" title="{lang_expandhelp}" onclick="changeHTMLTextAreaSize('introhtml','larger');" alt="expand button"><i class="uk-icon-plus"></i></button>
<button class="uk-button uk-button-mini" type="button" title="{lang_reducehelp}" onclick="changeHTMLTextAreaSize('introhtml','smaller');" alt="collapse button"><i class="uk-icon-minus"></i></button>
</div>
<textarea cols="45" rows="12" name="introhtml" id="introhtml" class="wide">{story_introtext}</textarea>
</dd>
<dt><label for="bodyhtml">{lang_bodytext}</label></dt>
<dd>
<div class="uk-button-group">
<button class="uk-button uk-button-mini" type="button" title="{lang_expandhelp}" onclick="changeHTMLTextAreaSize('bodyhtml','larger');" alt="expand button"><i class="uk-icon-plus"></i></button>
<button class="uk-button uk-button-mini" type="button" title="{lang_reducehelp}" onclick="changeHTMLTextAreaSize('bodyhtml','smaller');" alt="collapse button"><i class="uk-icon-minus"></i></button>
</div>
<textarea cols="45" rows="20" name="bodyhtml" id="bodyhtml" class="wide">{story_bodytext}</textarea>
<div id="editor_mode">{lang_allowed_html}</div>
</dd>
</dl>
</div>
</div>
<div id="se_options" style="display: none;">
<div id="se_publish" style="display: none;">
<fieldset>
<legend>{lang_publishdate}</legend>
<dl class="form_block">
<dt><label for="admin-storyeditor_advanced-publish_month">{lang_date}</label></dt>
<dd>
<select name="publish_month" id="admin-storyeditor_advanced-publish_month" aria-describedby="desc-admin-storyeditor-publish_month">
{publish_month_options}
</select>
/
<select name="publish_day">
{publish_day_options}
</select>
/
<select name="publish_year">
{publish_year_options}
</select>
<select name="publish_hour">
{publish_hour_options}
</select>
:
<select name="publish_minute">
{publish_minute_options}
</select>
{publishampm_selection}
</dd>
<dd class="description" id="desc-admin-storyeditor-publish_month">{publish_date_explanation}</dd>
</dl>
</fieldset>
<fieldset>
<legend>{lang_publishoptions}</legend>
<dl class="form_block">
<dt><label for="publish-options">{lang_mode}</label></dt>
<dd>
{featured_options}
<select name="frontpage" id="publish-options">
{frontpage_options}
</select>
<select name="commentcode">
{comment_options}
</select>
<select name="trackbackcode">
{trackback_options}
</select>
</dd>
<dt><label for="cmt_close_flag">{lang_cmt_disable}</label></dt>
<dd>
<label for="cmt_close_flag">{lang_enabled}</label>
<input type="checkbox" name="cmt_close_flag" id="cmt_close_flag" value="1" {is_checked5} onclick="enablecmtclose(this);"{xhtml}>
<span dir="ltr">
<select name="cmt_close_month">
{cmt_close_month_options}
</select>
/
<select name="cmt_close_day">
{cmt_close_day_options}
</select>
/
<select name="cmt_close_year">
{cmt_close_year_options}
</select>
<select name="cmt_close_hour">
{cmt_close_hour_options}
</select>
:
<select name="cmt_close_minute">
{cmt_close_minute_options}
</select>
{cmt_close_ampm_selection}
<input type="hidden" name="cmt_close_second" value="{cmt_close_second}"{xhtml}>
</span>
</dd>
</dl>
</fieldset>
</div>
<div id="se_images" style="display: none;">
<fieldset>
<legend>{lang_images}</legend>
<dl class="form_block">
<dt><label>{lang_images}</label></dt>
<dd>
{image_form}
{image_add_instructions}
{allow_user_scaling}
{image_preview_instructions}
</dd>
</dl>
</fieldset>
</div>
<div id="se_archive" style="display: none;">
<fieldset>
<legend>{lang_archivetitle}</legend>
<dl class="form_block">
<dt><label for="admin-storyeditor_advanced-archiveflag">{lang_archivetitle}</label></dt>
<dd class="controls_text">
<label for="admin-storyeditor_advanced-archiveflag">{lang_enabled}</label>
<input type="checkbox" value="1" {is_checked2} onclick="enablearchive(this);" name="archiveflag" id="admin-storyeditor_advanced-archiveflag"{xhtml}>
<input type="checkbox" name="statuscode" id="storycode10" value="10" {is_checked3}{xhtml}><label for="storycode10">{lang_optionarchive}</label>
<input type="checkbox" name="statuscode" id="storycode11" value="11" {is_checked4}{xhtml}>
<label for="storycode11">{lang_optiondelete}</label>
</dd>
<dt><label for="admin-storyeditor_advanced-expire_month"></label></dt>
<dd>
{lang_date}
<select name="expire_month" id="admin-storyeditor_advanced-expire_month">
{expire_month_options}
</select>
/
<select name="expire_day">
{expire_day_options}
</select>
/
<select name="expire_year">
{expire_year_options}
</select>
<select name="expire_hour">
{expire_hour_options}
</select>
:
<select name="expire_minute">
{expire_minute_options}
</select>
{expireampm_selection}
</dd>
</dl>
</fieldset>
</div>
<div id="se_perms" style="display: none;">
<fieldset>
<legend>{lang_accessrights}</legend>
<dl class="form_block">
<dt>{lang_owner}</dt>
<dd class="controls_text">{owner_name}</dd>
<dt><label for="group_id">{lang_group}</label></dt>
<dd>{group_dropdown}</dd>
<dt>{lang_permissions}</dt>
<dd>{permissions_editor}</dd>
<dd class="description">{lang_perm_key}</dd>
<dd class="description">{lang_permissions_msg}</dd>
</dl>
</fieldset>
</div>
</div>
<div id="se_bottom" style="display:{show_submitoptions}">
<div class="submit">
<button type="submit" name="mode" value="{lang_save}" class="uk-button uk-button-primary">{lang_save}</button>
<button type="submit" name="mode" value="{lang_preview}" class="uk-button uk-button-success">{lang_preview}</button>
{!if allow_delete}
<button type="submit" name="mode" value="{lang_delete}" class="uk-button uk-button-danger" onclick="return confirm('{confirm_message}');">{lang_delete}</button>
{!endif}
<button type="submit" name="mode" value="{lang_cancel}" class="uk-button">{lang_cancel}</button>
<input type="hidden" name="uid" value="{story_uid}"{xhtml}>
<input type="hidden" name="publish_second" value="{publish_second}"{xhtml}>
<input type="hidden" name="old_sid" value="{old_story_id}"{xhtml}>
<input type="hidden" name="hour_mode" value="{hour_mode}"{xhtml}>
<input type="hidden" name="expire_second" value="{expire_second}"{xhtml}>
<input type="hidden" name="hits" value="{story_hits}"{xhtml}>
<input type="hidden" name="comments" value="{story_comments}"{xhtml}>
<input type="hidden" name="trackbacks" value="{story_trackbacks}"{xhtml}>
<input type="hidden" name="numemails" value="{story_emails}"{xhtml}>
<input type="hidden" name="owner_id" value="{owner_id}"{xhtml}>
<input type="hidden" name="{gltoken_name}" value="{gltoken}"{xhtml}>
{submission_option}
</div>
</div>
</form>
</div>
<div id="preview" class="article" style="display: {show_preview};">
{preview_content}
</div>
<!-- BEGIN image-form -->
<div class="uk-overflow-container uk-margin-small">
<table class="admin-list-table uk-table uk-table-hover uk-table-striped">
<thead>
<tr>
<th class="admin-list-headerfield">{lang_number}</th>
<th class="admin-list-headerfield">{lang_resized}</th>
<th class="admin-list-headerfield">{lang_original}</th>
<th class="admin-list-headerfield">{lang_upload_or_replace}</th>
<th class="admin-list-headerfield">{lang_delete}</th>
</tr>
</thead>
<tbody>
{image_form_elements}
</tbody>
</table>
</div>
<!-- END image-form -->
<!-- BEGIN image-form-elements -->
<tr>
<td class="admin-list-field">{imagecount}</td>
<td class="admin-list-field">
<div class="gl-image-form-thumb-frame" uk-tooltip="{imagefilename}" data-uk-tooltip title="{imagefilename}">
{!if imagelink}<a href="{imagelink}" title="" data-uk-lightbox target="_blank">{!endif}
<img src="{thumblink}" alt="">
{!if imagelink}</a>{!endif}
</div>
</td>
<td class="admin-list-field">
<div class="gl-image-form-thumb-frame" uk-tooltip="{largefilename}" data-uk-tooltip title="{largefilename}">
{!if largelink}<a href="{largelink}" title="" data-uk-lightbox target="_blank">{!endif}
<img src="{largethumblink}" alt="">
{!if largelink}</a>{!endif}
</div>
</td>
<td class="admin-list-field"><input type="file" dir="ltr" name="file{imagecount}"{xhtml}></td>
<td class="admin-list-field"><input type="checkbox" name="delete[{imagecount}]" class="uk-checkbox"{xhtml}></td>
</tr>
<!-- END image-form-elements -->
{# end {templatelocation} #}