Dotclear

source: themes/freshy2/tpl/contribute.html @ 3035

Revision 3035, 17.8 KB checked in by Moe, 12 years ago (diff)

Freshy v2 1.7.10: updated contribute.html

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:BlogLanguage}}"
4     lang="{{tpl:BlogLanguage}}">
5<head>
6  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7  <meta name="MSSmartTagsPreventParsing" content="TRUE" />
8  <meta name="robots" content="noindex, nofollow" />
9  <title>{{tpl:lang Contribute}} - {{tpl:BlogName encode_html="1"}}</title>
10
11  <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
12  <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
13
14  <link rel="alternate" type="application/rss+xml" title="RSS 2.0"
15     href="{{tpl:BlogFeedURL type="rss2"}}" />
16  <link rel="alternate" type="application/atom+xml" title="Atom 1.0"
17     href="{{tpl:BlogFeedURL type="atom"}}" />
18  <link rel="meta" type="application/xbel+xml" title="Blogroll"
19     href="{{tpl:BlogrollXbelLink}}" />
20
21  <style type="text/css">
22          #main label {display:block;}
23          #main input[type=text], #main textarea {width:100%;}
24          .message {
25               padding:0.5em;
26               background: #ffc;
27               border: 2px solid yellow;
28               font-weight: bold;
29               color: Black;
30          }
31          #available-tags .tags li, #available-tags .tags li a {display:inline;}
32          #contribute-preview {
33               padding:1em;
34               border: 2px solid yellow;
35          }
36     </style>
37
38  {{tpl:include src="_head.html"}}
39
40  <link rel="stylesheet" type="text/css" href="{{tpl:BlogQmarkURL}}pf=contribute/style/jsToolBar/jsToolBar.css" />
41
42  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/contribute.pack.js"></script>
43
44  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/jsToolBar/jsToolBar.js"></script>
45  <!-- # load WYSIWYG only when required -->
46  <tpl:ContributeIf operator="or" choose_format="1" format="xhtml">
47     <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/jsToolBar/jsToolBar.wysiwyg.pack.js"></script>
48  </tpl:ContributeIf>
49     <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/confirm-close.js"></script>
50
51     <link rel="stylesheet" type="text/css" href="{{tpl:BlogQmarkURL}}pf=contribute/style/datePicker/date-picker.css" />
52     <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/date-picker.js"></script>
53
54     <script type="text/javascript">
55     //<![CDATA[
56          jsToolBar.prototype.iframe_css =
57          'body{font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;'+
58          'color : #000;background: #f9f9f9;margin: 0;padding : 2px;border: none;}'+
59          'pre, code, kbd, samp {font-family:"Courier New",Courier,monospace;font-size : 1.1em;}'+
60          'code {color : #666;font-weight : bold;}body > p:first-child {margin-top: 0;}';
61
62          jsToolBar.prototype.legend_msg = '{{tpl:lang You can use the following shortcuts to format your text.}}';
63          jsToolBar.prototype.elements.blocks.options.none = '{{tpl:lang -- none --}}';
64          jsToolBar.prototype.elements.blocks.options.nonebis = '{{tpl:lang -- block format --}}';
65          jsToolBar.prototype.elements.blocks.options.p = '{{tpl:lang Paragraph}}';
66          jsToolBar.prototype.elements.blocks.options.h1 = '{{tpl:lang Level 1 header}}';
67          jsToolBar.prototype.elements.blocks.options.h2 = '{{tpl:lang Level 2 header}}';
68          jsToolBar.prototype.elements.blocks.options.h3 = '{{tpl:lang Level 3 header}}';
69          jsToolBar.prototype.elements.blocks.options.h4 = '{{tpl:lang Level 4 header}}';
70          jsToolBar.prototype.elements.blocks.options.h5 = '{{tpl:lang Level 5 header}}';
71          jsToolBar.prototype.elements.blocks.options.h6 = '{{tpl:lang Level 6 header}}';
72          jsToolBar.prototype.elements.strong.title = '{{tpl:lang Strong emphasis}}';
73          jsToolBar.prototype.elements.em.title = '{{tpl:lang Emphasis}}';
74          jsToolBar.prototype.elements.ins.title = '{{tpl:lang Inserted}}';
75          jsToolBar.prototype.elements.del.title = '{{tpl:lang Deleted}}';
76          jsToolBar.prototype.elements.quote.title = '{{tpl:lang Inline quote}}';
77          jsToolBar.prototype.elements.code.title = '{{tpl:lang Code}}';
78          jsToolBar.prototype.elements.br.title = '{{tpl:lang Line break}}';
79          jsToolBar.prototype.elements.blockquote.title = '{{tpl:lang Blockquote}}';
80          jsToolBar.prototype.elements.pre.title = '{{tpl:lang Preformated text}}';
81          jsToolBar.prototype.elements.ul.title = '{{tpl:lang Unordered list}}';
82          jsToolBar.prototype.elements.ol.title = '{{tpl:lang Ordered list}}';
83          jsToolBar.prototype.elements.link.title = '{{tpl:lang Link}}';
84          jsToolBar.prototype.elements.link.href_prompt = '{{tpl:lang URL?}}';
85          jsToolBar.prototype.elements.link.hreflang_prompt = '{{tpl:lang Language?}}';
86          jsToolBar.prototype.elements.img.title = '{{tpl:lang External image}}';
87          jsToolBar.prototype.elements.img.src_prompt = '{{tpl:lang URL?}}';
88
89          jsToolBar.prototype.switcher_visual_title = '{{tpl:lang visual}}';
90          jsToolBar.prototype.switcher_source_title = '{{tpl:lang source}}';
91
92          confirmClosePage = new confirmClose('entry-form');
93          confirmClose.prototype.prompt = "{{tpl:lang You have unsaved changes.}}";
94
95          // Add date(s) picker(s)
96
97          datePicker.prototype.months[0] = '{{tpl:lang January}}';
98          datePicker.prototype.months[1] = '{{tpl:lang February}}';
99          datePicker.prototype.months[2] = '{{tpl:lang March}}';
100          datePicker.prototype.months[3] = '{{tpl:lang April}}';
101          datePicker.prototype.months[4] = '{{tpl:lang May}}';
102          datePicker.prototype.months[5] = '{{tpl:lang June}}';
103          datePicker.prototype.months[6] = '{{tpl:lang July}}';
104          datePicker.prototype.months[7] = '{{tpl:lang August}}';
105          datePicker.prototype.months[8] = '{{tpl:lang September}}';
106          datePicker.prototype.months[9] = '{{tpl:lang October}}';
107          datePicker.prototype.months[10] = '{{tpl:lang November}}';
108          datePicker.prototype.months[11] = '{{tpl:lang December}}';
109
110          datePicker.prototype.days[0] = '{{tpl:lang Monday}}';
111          datePicker.prototype.days[1] = '{{tpl:lang Tuesday}}';
112          datePicker.prototype.days[2] = '{{tpl:lang Wednesday}}';
113          datePicker.prototype.days[3] = '{{tpl:lang Thursday}}';
114          datePicker.prototype.days[4] = '{{tpl:lang Friday}}';
115          datePicker.prototype.days[5] = '{{tpl:lang Saturday}}';
116          datePicker.prototype.days[6] = '{{tpl:lang Sunday}}';
117
118          datePicker.prototype.img_src = '{{tpl:BlogQmarkURL}}pf=contribute/style/datePicker/date-picker.png';
119
120          datePicker.prototype.close_msg = '{{tpl:lang close}}';
121          datePicker.prototype.now_msg = '{{tpl:lang now}}';
122
123          $(document).ready(function() {
124               $('.contribute_mymeta_date').each(function() {
125                    var post_dtPick = new datePicker($(this).get(0));
126                    post_dtPick.img_top = '1.5em';
127                    post_dtPick.draw();
128               });
129               $('.contribute_mymeta_date_help').each(function() {
130                    $(this).remove();
131               });
132          });
133
134     //]]>
135     </script>
136</head>
137
138<body class="dc-post">
139  <div id="body">
140    {{tpl:include src="_top.html"}}
141
142    <div id="page" class="{{tpl:Freshy2LayoutClass}}">
143      <div class="container">
144     <div id="frame">
145       <div id="content">
146
147<div class="content-inner">
148     <div id="content-info">
149          <h2>
150               {{tpl:lang Contribute}}
151          </h2>
152     </div>
153
154     <tpl:ContributeIf message="preview">
155          <p class="message">{{tpl:lang This is a preview.}}
156               {{tpl:lang Click on <strong>save</strong> when the post is ready.}}
157               {{tpl:lang It needs to be approved by an administrator to be published.}}
158          </p>
159     </tpl:ContributeIf>
160
161     <tpl:ContributeIf message="sent">
162          <p class="message">{{tpl:lang The post has been saved.}}
163               {{tpl:lang It needs to be approved by an administrator to be published.}}
164          </p>
165     </tpl:ContributeIf>
166
167     <tpl:SysIfFormError>
168          <p class="error">{{tpl:lang Error:}} {{tpl:SysFormError}}</p>
169     </tpl:SysIfFormError>
170
171     <tpl:ContributePreview>
172          <div class="post" id="contribute-preview">
173         <h2 id="p{{tpl:EntryID}}" class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2>
174
175         <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
176         {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
177
178         <!-- # Entry with an excerpt -->
179         <tpl:EntryIf extended="1">
180           <div class="post-excerpt">{{tpl:EntryExcerpt}}</div>
181         </tpl:EntryIf>
182
183         <div class="post-content">{{tpl:EntryContent}}</div>
184
185         <!-- # --BEHAVIOR-- publicEntryAfterContent -->
186         {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
187
188      <div class="meta">
189        <ul>
190          <!-- # item auteur -->
191          <li>{{tpl:lang By}} <span class="author">{{tpl:EntryAuthorLink}}</span> | {{tpl:EntryDate}} | {{tpl:EntryTime}}</li>
192
193             <!-- # item comm cat tags -->
194             <li>
195          <!-- # comm -->
196               <tpl:EntryIf show_comments="1">{{tpl:lang Comments}}<span class="item"><a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a></span></tpl:EntryIf>
197               <!-- # cat -->
198               <tpl:EntryIf has_category="1">{{tpl:lang Category}}<span class="item"><tpl:EntryCategoriesBreadcrumb><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> &rsaquo; </tpl:EntryCategoriesBreadcrumb><a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a></span></tpl:EntryIf>
199            <!-- # meta -->
200          <tpl:EntryTags>
201                <tpl:TagsHeader>{{tpl:lang Tags}}<span class="item"></tpl:TagsHeader><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a><tpl:LoopPosition start="1" length="-1">, </tpl:LoopPosition>
202                <tpl:TagsFooter></span></tpl:TagsFooter>
203                </tpl:EntryTags>
204          </li>
205        </ul>
206      </div>
207       </div>
208
209       <hr />
210  </tpl:ContributePreview>
211
212     <tpl:ContributeForm>
213          <div id="contribute">
214          {{tpl:ContributeHelp}}
215          <form method="post" action="{{tpl:SysSelfURI}}" id="entry-form">
216               <!-- # it's a trick : when pressing Enter, the preview button
217                    will be selected instead of Convert to XHTML -->
218               <p>
219                    <input type="submit" name="preview" value="{{tpl:lang preview}}" />
220                    <tpl:ContributePreview>
221                         <input type="submit" name="add" value="{{tpl:lang save}}" />
222                    </tpl:ContributePreview>
223               </p>
224
225               <tpl:ContributeIf choose_format="1">
226                    <p>
227                         <tpl:ContributeFormaters>
228                              <tpl:LoopPosition start="1" length="1">
229                                   <label for="post_format">{{tpl:lang Text formating}}
230                                        &nbsp;:</label>
231                                   <select name="post_format" id="post_format">
232                              </tpl:LoopPosition>
233                              <option value="{{tpl:ContributeFormat}}"<tpl:ContributeIfSelected format="1"> selected="selected"</tpl:ContributeIfSelected>>{{tpl:ContributeFormat encode_html="1"}}</option>
234                              <tpl:LoopPosition start="-1">
235                                   </select>
236                              </tpl:LoopPosition>
237                         </tpl:ContributeFormaters>
238                    </p>
239
240                    <p id="p-convert-xhtml">
241                         <input type="submit" name="convert-xhtml" id="convert-xhtml" value="{{tpl:lang convert to XHTML}}" />
242                    </p>
243               </tpl:ContributeIf>
244
245               <tpl:ContributeIf choose_format="0">
246                    <p>
247                         <input type="hidden" name="post_format" id="post_format" value="{{tpl:ContributeFormat}}" />
248                    </p>
249               </tpl:ContributeIf>
250
251               <p id="wiki-syntax-reference">
252                    <a href="{{tpl:lang http://dotclear.org/documentation/2.0/usage/syntaxes}}">
253                         {{tpl:lang wiki syntax reference}}</a>
254               </p>
255
256               <p>
257                    <label for="post_title">{{tpl:lang Title}}&nbsp;:</label>
258                         <input type="text" id="post_title" name="post_title" size="20" maxlength="255" value="{{tpl:EntryTitle encode_html="1"}}" />
259               </p>
260
261               <tpl:ContributeIf excerpt="1">
262                    <p>
263                         <label for="post_excerpt">{{tpl:lang Excerpt}} ({{tpl:lang optional}})&nbsp;:</label>
264                         <textarea id="post_excerpt" name="post_excerpt" cols="60" rows="10">{{tpl:ContributeEntryExcerpt}}</textarea>
265                    </p>
266               </tpl:ContributeIf>
267
268               <p>
269                    <label for="post_content">{{tpl:lang Content}}&nbsp;:</label>
270                    <textarea id="post_content" name="post_content" cols="60" rows="20">{{tpl:ContributeEntryContent}}</textarea>
271               </p>
272
273               <tpl:ContributeIf category="1">
274                    <p>
275                         <tpl:Categories>
276                              <tpl:CategoriesHeader>
277                                   <label for="cat_id">{{tpl:lang Category}} ({{tpl:lang optional}})&nbsp;:</label>
278                                   <select name="cat_id" id="cat_id">
279                                        <option value=""></option>
280                              </tpl:CategoriesHeader>
281                              <option value="{{tpl:ContributeCategoryID}}"
282                                   <tpl:ContributeIfSelected category="1"> selected="selected"</tpl:ContributeIfSelected>>
283                                   {{tpl:ContributeCategorySpacer string="&nbsp;&nbsp;"}}
284                                   &bull; {{tpl:CategoryTitle encode_html="1"}}
285                              </option>
286                              <tpl:CategoriesFooter>
287                                   </select>
288                              </tpl:CategoriesFooter>
289                         </tpl:Categories>
290                    </p>
291               </tpl:ContributeIf>
292
293               <tpl:ContributeIf tags="1">
294              <tpl:Tags type="tag">
295                   <tpl:LoopPosition start="1" length="1">
296                    <div id="available-tags">
297                         <h3>{{tpl:lang Tags}}&nbsp;:</h3>
298                         <ul class="tags">
299                   </tpl:LoopPosition>
300                   <!-- # don't display selected tags -->
301                      <tpl:ContributeEntryTagsFilter>
302                         <li><a href="#" class="tag{{tpl:TagRoundPercent}}">{{tpl:TagID}}</a></li>
303                      </tpl:ContributeEntryTagsFilter>
304                      <tpl:LoopPosition start="-1">
305                    </ul>
306                    </div>
307                   </tpl:LoopPosition>
308              </tpl:Tags>
309             
310                    <p>
311                         <label for="post_tags">{{tpl:lang Tags}} ({{tpl:lang separate tags by a comma}}) ({{tpl:lang optional}})&nbsp;:</label>
312                         <!-- # avoid unnecessary spaces and line breaks -->
313                         <input type="text" name="post_tags" id="post_tags"
314                              value="<tpl:EntryTags>{{tpl:TagID}}<tpl:LoopPosition start="1" length="-1">, </tpl:LoopPosition></tpl:EntryTags>" />
315                    </p>
316            </tpl:ContributeIf>
317
318               <tpl:ContributeIf mymeta="1">
319                 <tpl:ContributeEntryMyMeta>
320                         <p>
321                     <!-- # string -->
322                              <tpl:ContributeEntryMyMetaIf type="string">
323                                   <label for="mymeta_{{tpl:ContributeEntryMyMetaID}}">{{tpl:ContributeEntryMyMetaPrompt}}
324                              ({{tpl:lang optional}})&nbsp;:</label>
325                                   <input type="text" id="mymeta_{{tpl:ContributeEntryMyMetaID}}"
326                                        name="mymeta_{{tpl:ContributeEntryMyMetaID}}"
327                                        value="{{tpl:ContributeEntryMyMetaValue}}" />
328                              </tpl:ContributeEntryMyMetaIf>
329                              <!-- # list -->
330                              <tpl:ContributeEntryMyMetaIf type="list">
331                                   <tpl:ContributeEntryMyMetaValues>
332                                        <tpl:LoopPosition start="1" length="1">
333                                             <label for="mymeta_{{tpl:ContributeEntryMyMetaID}}">
334                                                  {{tpl:ContributeEntryMyMetaPrompt}}&nbsp;:</label>
335                                   <select name="mymeta_{{tpl:ContributeEntryMyMetaID}}"
336                                        id="mymeta_{{tpl:ContributeEntryMyMetaID}}">
337                              </tpl:LoopPosition>
338                                        <option value="{{tpl:ContributeEntryMyMetaValuesID}}"
339                                        <tpl:ContributeIfSelected mymeta="1"> selected="selected"</tpl:ContributeIfSelected>>
340                                        {{tpl:ContributeEntryMyMetaValuesDescription encode_html="1"}}</option>
341                                        <tpl:LoopPosition start="-1">
342                                             </select>
343                              </tpl:LoopPosition>
344                                   </tpl:ContributeEntryMyMetaValues>
345                              </tpl:ContributeEntryMyMetaIf>
346                              <!-- # boolean (checkbox) -->
347                              <tpl:ContributeEntryMyMetaIf type="boolean">
348                                   <label>
349                                   <input type="checkbox" id="mymeta_{{tpl:ContributeEntryMyMetaID}}"
350                                        name="mymeta_{{tpl:ContributeEntryMyMetaID}}"
351                                        value="1"
352                                        <tpl:ContributeEntryMyMetaIfChecked>
353                                        checked="checked"
354                                        </tpl:ContributeEntryMyMetaIfChecked>
355                                         />&nbsp;
356                                        {{tpl:ContributeEntryMyMetaPrompt}}</label>
357                              </tpl:ContributeEntryMyMetaIf>
358                              <!-- # section -->
359                              <tpl:ContributeEntryMyMetaIf type="section">
360                                   <h3>{{tpl:ContributeEntryMyMetaPrompt}}</h3>
361                              </tpl:ContributeEntryMyMetaIf>
362                              <!-- # date -->
363                              <tpl:ContributeEntryMyMetaIf type="date">
364                                   <label for="mymeta_{{tpl:ContributeEntryMyMetaID}}">{{tpl:ContributeEntryMyMetaPrompt}}
365                              ({{tpl:lang optional}})&nbsp;:</label>
366                                   <input type="text" id="mymeta_{{tpl:ContributeEntryMyMetaID}}"
367                                        name="mymeta_{{tpl:ContributeEntryMyMetaID}}"
368                                        value="{{tpl:ContributeEntryMyMetaValue}}"
369                                        size="20" maxlength="20"
370                                        class="contribute_mymeta_date" />
371                                        <span class="contribute_mymeta_date_help">{{tpl:lang Example:}} <kbd>{{tpl:EntryDate format="%Y-%m-%d %H:%M"}}</kbd></span>
372                              </tpl:ContributeEntryMyMetaIf>
373                         </p>
374                 </tpl:ContributeEntryMyMeta>
375               </tpl:ContributeIf>
376
377         <tpl:ContributeIf notes="1">
378              <p>
379               <label for="post_notes">{{tpl:lang Notes}} ({{tpl:lang only visible by administrators, won't be displayed in the post}}
380             ({{tpl:lang optional}})&nbsp;:</label>
381                         <textarea id="post_notes" name="post_notes" cols="50" rows="5">{{tpl:ContributeEntryNotes}}</textarea>
382                    </p>
383               </tpl:ContributeIf>
384
385               <tpl:ContributeIf author="1">
386                    <div id="comments">
387                         <h3>{{tpl:lang Your informations}}&nbsp;:</h3>
388                         <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}
389                              <tpl:ContributeIfNameAndEmailAreNotRequired>({{tpl:lang optional}})
390                              </tpl:ContributeIfNameAndEmailAreNotRequired>&nbsp;:</label>
391             <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
392             value="{{tpl:CommentPreviewName encode_html="1"}}" />
393             </p>
394
395             <p class="field"><label for="c_mail">{{tpl:lang Email address}}
396               <tpl:ContributeIfNameAndEmailAreNotRequired>
397                    ({{tpl:lang optional}})
398               </tpl:ContributeIfNameAndEmailAreNotRequired>
399               ({{tpl:lang won't be displayed}})&nbsp;:</label>
400             <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
401             value="{{tpl:CommentPreviewEmail encode_html="1"}}" />
402             </p>
403
404             <p class="field"><label for="c_site">{{tpl:lang Website}}
405                              ({{tpl:lang optional}})&nbsp;:</label>
406             <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
407             value="{{tpl:CommentPreviewSite encode_html="1"}}" />
408             </p>
409           </div>
410      </tpl:ContributeIf>
411
412      <p style="display:none"><input name="f_mail" type="text" size="30"
413          maxlength="255" value="" /></p>
414
415               <p>
416                    <input type="submit" name="preview" value="{{tpl:lang preview}}" />
417                    <tpl:ContributePreview>
418                         <input type="submit" name="add" value="{{tpl:lang save}}" />
419                    </tpl:ContributePreview>
420               </p>
421          </form>
422
423          </div><!-- End #contribute -->
424     </tpl:ContributeForm>
425
426</div><!-- End #content-inner -->
427
428       </div> <!-- End #content -->
429
430       {{tpl:include src="_sidebar.html"}}
431     </div> <!-- End #frame -->
432      </div> <!-- End #container -->
433    </div> <!-- End #page -->
434
435    {{tpl:include src="_footer.html"}}
436  </div> <!-- End #body -->
437</body>
438</html>
Note: See TracBrowser for help on using the repository browser.

Sites map