blob: 81a4d9b196143c754d3d8c2b6f123338088e024b (
plain)
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
|
<ste:load name="master.html" />
<ste:comment>Create textprocessor options. The default will be tags content.</ste:comment>
<ste:mktag name="textprocessor_options">
<ste:set var="txtproc_default"><ste:tagcontent /></ste:set>
<ste:foreach array="textprocessors" value="txtproc">
<option value="<ste:escape>$txtproc</ste:escape>"?{~{$txtproc|eq|$txtproc_default}| selected="selected"|}><ste:escape>$txtproc</ste:escape></option>
</ste:foreach>
</ste:mktag>
<ste:block name="content">
<form action="$rel_path_to_root/backend/content/write/$article_editurl" method="POST" accept_charset="utf-8">
<ste:if>$failed
<ste:then>
<div class="error">
<p><strong><ste:get_translation for="article_edit_error" /></strong></p>
<ul>
<ste:foreach array="failed" value="v"><li>$v</li></ste:foreach>
</ul>
</div>
</ste:then>
</ste:if>
<ste:if>$success
<ste:then>
<div class="success">$success</div>
</ste:then>
</ste:if>
<div class="triplecolumns">
<div class="column_left">
<h2>Markdown Cheat Sheet</h2>
<h3>Emphasis / Strong</h3>
<p>
<code>*<em>emphasis</em>*</code><br />
<code>_<em>emphasis</em>_</code><br />
<code>**<strong>strong</strong>**</code><br />
<code>__<strong>strong</strong>__</code>
</p>
<h3>Paragraphs and manual line breaks.</h3>
<p>
<code>First Paragraph<br />
<br />
Second Paragraph with<br />
long<br />
text<br />
<br />
To enforce a line break <br />
end a line with two whitespaces.</code>
</p>
<h3>Headers</h3>
<p>
<code>Header 1<br />
========<br />
<br />
Header 2<br />
--------<br />
<br />
# Header 1<br />
<br />
## Header 2<br />
<br />
...<br />
<br />
###### Header 6<br /></code>
</p>
<h3>Linking</h3>
<p>
<code>[Linktext](http://url/to/resource "Optional title")</code>
</p>
<p>
<code>[Linktext][id]. Somewhere else:<br />
<br />
[id]: http://url/to/resource "Optional title"</code>
</p>
<h3>Images</h3>
<p>
<code>![alt text](/path/to/image "Optional title")</code>
</p>
<h3>Ordered / Unordered Lists</h3>
<p>
<code>* Item A<br />
* Item B<br />
<br />
With a second paragraph.<br />
<br />
* Item C<br />
* Item C1<br />
* Item C2<br /></code>
</p>
<p>
<code>1. First element<br />
2. Second Element
</code>
</p>
<h3>Learn More</h3>
<p>
<a href="http://daringfireball.net/projects/markdown/syntax">Complete Syntax</a><br />
<a href="http://daringfireball.net/projects/markdown/dingus">Test Markdown</a>
</p>
</div>
<div class="column_right">
<h2><ste:get_translation for="settings_meta" /></h2>
<p><ste:get_translation for="urlname" />: <input type="text" name="urlname" value="<ste:escape>$urlname</ste:escape>" class="fullwidth" /></p>
<p>
<ste:get_translation for="article_section" />:
<select name="section" class="fullwidth">
<ste:foreach array="sections" value="section_name">
<option name="<ste:escape>$section_name</ste:escape>"?{~{$section_name|eq|$article_section}| selected="selected"|}><ste:escape>$section_name</ste:escape></option>
</ste:foreach>
</select>
</p>
<p><ste:get_translation for="tags_cs" />: <input type="text" name="tags" value="<ste:escape>$tags</ste:escape>" class="fullwidth" /></p>
<p><ste:get_translation for="date_time" />:<br />(YYYY-MM-DD HH:MM:SS) <input type="text" name="date"?{$date| value="<ste:date timestamp='$date'>%Y-%m-%d %H:%M:%S</ste:date>"|} class="fullwidth" /></p>
<p>
<ste:get_translation for="article_status" />:
<ste:set var="article_status">?{$article_status|$article_status|1}</ste:set>
<select name="article_status" class="fullwidth">
<option value="0"?{~{$article_status|eq|0}| selected="selected"|}><ste:get_translation for="article_status_hidden" /></option>
<option value="1"?{~{$article_status|eq|1}| selected="selected"|}><ste:get_translation for="article_status_live" /></option>
<option value="2"?{~{$article_status|eq|2}| selected="selected"|}><ste:get_translation for="article_status_sticky" /></option>
</select>
</p>
<p><ste:get_translation for="allow_comments" />: <input type="checkbox" name="allow_comments" value="yes" ?{$allow_comments|checked="checked" |}/></p>
</div>
<div class="column_main">
<ste:if>$morelangs
<ste:then>
<h2><ste:get_translation for="article_other_languages" /></h2>
<p>
<ste:foreach array="morelangs" value="lang" counter="i">
?{~{$i|eq|0}|| - }<a href="$rel_path_to_root/backend/content/write/$lang[url]"><ste:escape>$lang[full]</ste:escape></a>
</ste:foreach>
</p>
</ste:then></ste:if>
<p>
<ste:get_translation for="articleedit_title" />:
<input type="text" name="title" value="<ste:escape>$title</ste:escape>" class="fullwidth" />
</p>
<p>
<ste:get_translation for="articleedit_content" />: <select name="content_txtproc"><ste:textprocessor_options>$content_txtproc</ste:textprocessor_options></select>
<textarea name="content" cols="80" rows="20" class="fullwidth"><ste:escape>$content</ste:escape></textarea>
</p>
<p>
<ste:get_translation for="articleedit_excerpt" />: <select name="excerpt_txtproc"><ste:textprocessor_options>$excerpt_txtproc</ste:textprocessor_options></select>
<textarea name="excerpt" cols="80" rows="10" class="fullwidth"><ste:escape>$excerpt</ste:escape></textarea>
</p>
<p style="text-align: center;">
<ste:get_translation for="save_texts_as_lang" />: <select name="saveaslang">
<ste:set var="default_langsel">?{$editlang|$editlang|$user[lang]}</ste:set>
<ste:foreach array="all_languages" key="code" value="name">
<option value="$code"?{~{$default_langsel|eq|$code}| selected="selected"|}>($code) $name</option>
</ste:foreach>
</select><br />
<input type="submit" name="save_article" />
</p>
</div>
</div>
<div class="triplecolumns_stop"></div>
</form>
</ste:block>
|