Dotclear

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

Revision 1867, 16.0 KB checked in by brol, 14 years ago (diff)

Mise à jour template contribute.html avec Contribute 1.0-alpha23

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          label {display:block;}
23          input[type=text], textarea {width:100%;}
24          .message {
25               margin: 20px 0 0;
26               padding: 10px 5px;
27               background: #ffc;
28               border: 2px solid yellow;
29               font-weight: bold;
30               color: Black;
31          }
32          #available-tags .tags li, #available-tags .tags li a {display:inline;}
33     </style>
34     
35  {{tpl:include src="_head.html"}}
36 
37  <link rel="stylesheet" type="text/css" href="{{tpl:BlogQmarkURL}}pf=contribute/style/jsToolBar/jsToolBar.css" />
38 
39  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/contribute.pack.js"></script>
40 
41  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/jsToolBar/jsToolBar.js"></script>
42  <!-- # load WYSIWYG only when required --> 
43  <tpl:ContributeIf operator="or" choose_format="1" format="xhtml">
44     <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/jsToolBar/jsToolBar.wysiwyg.pack.js"></script>
45  </tpl:ContributeIf>
46     <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=contribute/js/confirm-close.js"></script>
47     
48     <script type="text/javascript">
49     //<![CDATA[
50          jsToolBar.prototype.iframe_css =
51          'body{font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;'+
52          'color : #000;background: #f9f9f9;margin: 0;padding : 2px;border: none;}'+
53          'pre, code, kbd, samp {font-family:"Courier New",Courier,monospace;font-size : 1.1em;}'+
54          'code {color : #666;font-weight : bold;}body > p:first-child {margin-top: 0;}';
55
56          jsToolBar.prototype.legend_msg = '{{tpl:lang You can use the following shortcuts to format your text.}}';
57          jsToolBar.prototype.elements.blocks.options.none = '{{tpl:lang -- none --}}';
58          jsToolBar.prototype.elements.blocks.options.nonebis = '{{tpl:lang -- block format --}}';
59          jsToolBar.prototype.elements.blocks.options.p = '{{tpl:lang Paragraph}}';
60          jsToolBar.prototype.elements.blocks.options.h1 = '{{tpl:lang Level 1 header}}';
61          jsToolBar.prototype.elements.blocks.options.h2 = '{{tpl:lang Level 2 header}}';
62          jsToolBar.prototype.elements.blocks.options.h3 = '{{tpl:lang Level 3 header}}';
63          jsToolBar.prototype.elements.blocks.options.h4 = '{{tpl:lang Level 4 header}}';
64          jsToolBar.prototype.elements.blocks.options.h5 = '{{tpl:lang Level 5 header}}';
65          jsToolBar.prototype.elements.blocks.options.h6 = '{{tpl:lang Level 6 header}}';
66          jsToolBar.prototype.elements.strong.title = '{{tpl:lang Strong emphasis}}';
67          jsToolBar.prototype.elements.em.title = '{{tpl:lang Emphasis}}';
68          jsToolBar.prototype.elements.ins.title = '{{tpl:lang Inserted}}';
69          jsToolBar.prototype.elements.del.title = '{{tpl:lang Deleted}}';
70          jsToolBar.prototype.elements.quote.title = '{{tpl:lang Inline quote}}';
71          jsToolBar.prototype.elements.code.title = '{{tpl:lang Code}}';
72          jsToolBar.prototype.elements.br.title = '{{tpl:lang Line break}}';
73          jsToolBar.prototype.elements.blockquote.title = '{{tpl:lang Blockquote}}';
74          jsToolBar.prototype.elements.pre.title = '{{tpl:lang Preformated text}}';
75          jsToolBar.prototype.elements.ul.title = '{{tpl:lang Unordered list}}';
76          jsToolBar.prototype.elements.ol.title = '{{tpl:lang Ordered list}}';
77          jsToolBar.prototype.elements.link.title = '{{tpl:lang Link}}';
78          jsToolBar.prototype.elements.link.href_prompt = '{{tpl:lang URL?}}';
79          jsToolBar.prototype.elements.link.hreflang_prompt = '{{tpl:lang Language?}}';
80          jsToolBar.prototype.elements.img.title = '{{tpl:lang External image}}';
81          jsToolBar.prototype.elements.img.src_prompt = '{{tpl:lang URL?}}';
82         
83          jsToolBar.prototype.switcher_visual_title = '{{tpl:lang visual}}';
84          jsToolBar.prototype.switcher_source_title = '{{tpl:lang source}}';
85         
86          confirmClosePage = new confirmClose('entry-form');
87          confirmClose.prototype.prompt = "{{tpl:lang You have unsaved changes.}}";
88     //]]>
89     </script>
90</head>
91
92<body class="dc-contribute">
93  <div id="body">
94
95    {{tpl:include src="_top.html"}}
96    <div id="page" class="{{tpl:Freshy2LayoutClass}}">
97      <div class="container">
98     <div id="frame">
99       <div id="content">
100
101<div class="content-inner">
102     <div id="content-info">
103          <h2>
104               {{tpl:lang Contribute}}
105          </h2>
106     </div>
107     
108     <tpl:ContributeIf message="preview">
109          <p class="message">{{tpl:lang This is a preview.}}
110               {{tpl:lang Click on <strong>save</strong> when the post is ready.}}
111               {{tpl:lang It needs to be approved by an administrator to be published.}}
112          </p>
113     </tpl:ContributeIf>
114     
115     <tpl:ContributeIf message="sent">
116          <p class="message">{{tpl:lang The post has been saved.}}
117               {{tpl:lang It needs to be approved by an administrator to be published.}}
118          </p>
119     </tpl:ContributeIf>
120     
121     <tpl:SysIfFormError>
122          <p class="error">{{tpl:lang Error:}} {{tpl:SysFormError}}</p>
123     </tpl:SysIfFormError>
124         
125     <tpl:ContributePreview>
126          <div class="post">
127         <h2 id="p{{tpl:EntryID}}" class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2>
128         
129         <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
130         {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
131         
132         <!-- # Entry with an excerpt -->
133         <tpl:EntryIf extended="1">
134           <div class="post-excerpt">{{tpl:EntryExcerpt}}</div>
135         </tpl:EntryIf>
136         
137         <div class="post-content">{{tpl:EntryContent}}</div>
138         
139         <!-- # --BEHAVIOR-- publicEntryAfterContent -->
140         {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
141         
142         <div class="meta">
143        <ul>
144          <!-- # item auteur -->
145          <li>{{tpl:lang By}} <span class="author">{{tpl:EntryAuthorLink}}</span> | {{tpl:EntryDate}} | {{tpl:EntryTime}}</li>
146
147             <!-- # item comm cat tags -->
148             <li>
149          <!-- # comm -->     
150               <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> 
151               <!-- # cat --> 
152               <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> 
153            <!-- # meta -->
154          <tpl:EntryMetaData>
155                <tpl:MetaDataHeader>{{tpl:lang Tags}}<span class="item"></tpl:MetaDataHeader><a href="{{tpl:MetaURL}}">{{tpl:MetaID}}</a>{{tpl:MetaSeparator}}
156                <tpl:MetaDataFooter></span></tpl:MetaDataFooter>
157                </tpl:EntryMetaData>
158          </li>
159          <!-- # item rss-comm rss-ping attach -->
160          <tpl:EntryIf operator="or" comments_active="1" pings_active="1" has_attachment="1">
161          <li>
162          </tpl:EntryIf>
163          <tpl:EntryIf comments_active="1">
164                         <img alt="{{tpl:lang This post's comments Atom feed}}" src="{{tpl:BlogThemeURL}}/images/icons/feed-icon-16x16.gif" /><span class="flux"><a href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}" title="{{tpl:lang This post's comments Atom feed}}">{{tpl:lang This post's comments feed}}</a></span>
165          </tpl:EntryIf>
166          <tpl:EntryIf pings_active="1">
167                <img alt="{{tpl:lang Trackback}}" src="{{tpl:BlogThemeURL}}/images/icons/trackback-icon-16x16.gif" /><span class="flux"><a href="{{tpl:EntryURL}}#pings" rel="trackback" title="{{tpl:lang Trackback}}">{{tpl:EntryPingCount}}</a></span>
168          </tpl:EntryIf>
169               <tpl:EntryIf has_attachment="1">
170               <img alt="{{tpl:lang Attachments}}" src="{{tpl:BlogThemeURL}}/images/icons/download-icon-16x16.gif" /><span class="flux"><a href="{{tpl:EntryURL}}#attachments">{{tpl:EntryAttachmentCount}}</a></span>
171          </tpl:EntryIf>
172          <tpl:EntryIf operator="or" comments_active="1" pings_active="1" has_attachment="1">
173          </li>
174          </tpl:EntryIf> 
175        </ul>
176      </div>
177       </div>
178       
179       <hr />
180  </tpl:ContributePreview>
181     
182     <tpl:ContributeForm>
183          <div id="contribute">
184          {{tpl:ContributeHelp}}
185          <form method="post" action="{{tpl:SysSelfURI}}" id="entry-form">
186               <!-- # it's a trick : when pressing Enter, the preview button
187                    will be selected instead of Convert to XHTML -->
188               <p>
189                    <input type="submit" name="preview" value="{{tpl:lang preview}}" />
190                    <tpl:ContributePreview>
191                         <input type="submit" name="add" value="{{tpl:lang save}}" />
192                    </tpl:ContributePreview>
193               </p>
194               
195               <tpl:ContributeIf choose_format="1">
196                    <p>
197                         <tpl:ContributeFormaters>
198                              <tpl:LoopPosition start="1" length="1">
199                                   <label for="post_format">{{tpl:lang Text formating}}
200                                        &nbsp;:</label>
201                                   <select name="post_format" id="post_format">
202                              </tpl:LoopPosition>
203                              <option value="{{tpl:ContributeFormat}}"<tpl:ContributeIfSelected format="1"> selected="selected"</tpl:ContributeIfSelected>>{{tpl:ContributeFormat encode_html="1"}}</option>
204                              <tpl:LoopPosition start="-1">
205                                   </select>
206                              </tpl:LoopPosition>
207                         </tpl:ContributeFormaters>
208                    </p>
209                   
210                    <p id="p-convert-xhtml">
211                         <input type="submit" name="convert-xhtml" id="convert-xhtml" value="{{tpl:lang convert to XHTML}}" />
212                    </p>
213               </tpl:ContributeIf>
214               
215               <tpl:ContributeIf choose_format="0">
216                    <p>
217                         <input type="hidden" name="post_format" id="post_format" value="{{tpl:ContributeFormat}}" />
218                    </p>
219               </tpl:ContributeIf>
220               
221               <p id="wiki-syntax-reference">
222                    <a href="{{tpl:lang http://dotclear.org/documentation/2.0/usage/syntaxes}}">
223                         {{tpl:lang wiki syntax reference}}</a>
224               </p>
225               
226               <p>
227                    <label for="post_title">{{tpl:lang Title}}&nbsp;:</label>
228                         <input type="text" id="post_title" name="post_title" size="20" maxlength="255" value="{{tpl:EntryTitle encode_html="1"}}" />
229               </p>
230               
231               <tpl:ContributeIf excerpt="1">
232                    <p>
233                         <label for="post_excerpt">{{tpl:lang Excerpt}} ({{tpl:lang optional}})&nbsp;:</label>
234                         <textarea id="post_excerpt" name="post_excerpt" cols="60" rows="10">{{tpl:ContributeEntryExcerpt}}</textarea>
235                    </p>
236               </tpl:ContributeIf>
237               
238               <p>
239                    <label for="post_content">{{tpl:lang Content}}&nbsp;:</label>
240                    <textarea id="post_content" name="post_content" cols="60" rows="20">{{tpl:ContributeEntryContent}}</textarea>
241               </p>
242               
243               <tpl:ContributeIf category="1">
244                    <p>
245                         <tpl:Categories>
246                              <tpl:CategoriesHeader>
247                                   <label for="cat_id">{{tpl:lang Category}} ({{tpl:lang optional}})&nbsp;:</label>
248                                   <select name="cat_id" id="cat_id">
249                                        <option value=""></option>
250                              </tpl:CategoriesHeader>
251                              <option value="{{tpl:ContributeCategoryID}}"
252                                   <tpl:ContributeIfSelected category="1"> selected="selected"</tpl:ContributeIfSelected>>
253                                   {{tpl:ContributeCategorySpacer string="&nbsp;&nbsp;"}}
254                                   &bull; {{tpl:CategoryTitle encode_html="1"}}
255                              </option>
256                              <tpl:CategoriesFooter>
257                                   </select>
258                              </tpl:CategoriesFooter>
259                         </tpl:Categories>
260                    </p>
261               </tpl:ContributeIf>
262               
263               <tpl:ContributeIf tags="1">
264                    <p>
265                         <label for="post_tags">{{tpl:lang Tags}} ({{tpl:lang separate tags by a comma}}) ({{tpl:lang optional}})&nbsp;:</label>
266                         <!-- # avoid unnecessary spaces and line breaks -->
267                         <input type="text" name="post_tags" id="post_tags"
268                              value="<tpl:EntryTags>{{tpl:TagID}}<tpl:LoopPosition start="1" length="-1">, </tpl:LoopPosition></tpl:EntryTags>" />
269                    </p>
270                   
271              <tpl:Tags type="tag">
272                   <tpl:LoopPosition start="1" length="1">
273                    <div id="available-tags">
274                         <h3>{{tpl:lang Tags}}&nbsp;:</h3>
275                         <ul class="tags">
276                   </tpl:LoopPosition>
277                   <!-- # don't display selected tags -->
278                      <tpl:ContributeEntryTagsFilter>
279                         <li><a href="#" class="tag{{tpl:TagRoundPercent}}">{{tpl:TagID}}</a></li>
280                      </tpl:ContributeEntryTagsFilter>
281                      <tpl:LoopPosition start="-1">
282                    </ul>
283                    </div>
284                   </tpl:LoopPosition>
285              </tpl:Tags>
286            </tpl:ContributeIf>
287         
288               <tpl:ContributeIf mymeta="1">
289                 <tpl:ContributeEntryMyMeta>
290                         <p>
291                     <!-- # string -->
292                              <tpl:ContributeEntryMyMetaIf type="string">
293                                   <label for="mymeta_{{tpl:ContributeEntryMyMetaID}}">{{tpl:ContributeEntryMyMetaPrompt}}
294                              ({{tpl:lang optional}})&nbsp;:</label>
295                                   <input type="text" id="mymeta_{{tpl:ContributeEntryMyMetaID}}"
296                                        name="mymeta_{{tpl:ContributeEntryMyMetaID}}"
297                                        value="{{tpl:ContributeEntryMyMetaValue}}" />
298                              </tpl:ContributeEntryMyMetaIf>
299                              <!-- # list -->
300                              <tpl:ContributeEntryMyMetaIf type="list">
301                                   <tpl:ContributeEntryMyMetaValues>
302                                        <tpl:LoopPosition start="1" length="1">
303                                             <label for="mymeta_{{tpl:ContributeEntryMyMetaID}}">
304                                                  {{tpl:ContributeEntryMyMetaPrompt}}&nbsp;:</label>
305                                   <select name="mymeta_{{tpl:ContributeEntryMyMetaID}}"
306                                        id="mymeta_{{tpl:ContributeEntryMyMetaID}}">
307                              </tpl:LoopPosition>
308                                        <option value="{{tpl:ContributeEntryMyMetaValuesID}}"
309                                        <tpl:ContributeIfSelected mymeta="1"> selected="selected"</tpl:ContributeIfSelected>>
310                                        {{tpl:ContributeEntryMyMetaValuesDescription encode_html="1"}}</option>
311                                        <tpl:LoopPosition start="-1">
312                                             </select>
313                              </tpl:LoopPosition>
314                                   </tpl:ContributeEntryMyMetaValues>
315                              </tpl:ContributeEntryMyMetaIf>
316                         </p>
317                 </tpl:ContributeEntryMyMeta>
318               </tpl:ContributeIf>
319               
320         <tpl:ContributeIf notes="1">
321              <p>
322               <label for="post_notes">{{tpl:lang Notes}} ({{tpl:lang only visible by administrators, won't be displayed in the post}}
323             ({{tpl:lang optional}})&nbsp;:</label>
324                         <textarea id="post_notes" name="post_notes" cols="50" rows="5">{{tpl:ContributeEntryNotes}}</textarea>
325                    </p>
326               </tpl:ContributeIf>
327               
328               <tpl:ContributeIf author="1">
329                    <div id="comments">
330                         <h3>{{tpl:lang Your informations}}&nbsp;:</h3>
331                         <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}
332                              <tpl:ContributeIfNameAndEmailAreNotRequired>({{tpl:lang optional}})
333                              </tpl:ContributeIfNameAndEmailAreNotRequired>&nbsp;:</label>
334             <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
335             value="{{tpl:CommentPreviewName encode_html="1"}}" />
336             </p>
337             
338             <p class="field"><label for="c_mail">{{tpl:lang Email address}}
339               <tpl:ContributeIfNameAndEmailAreNotRequired>({{tpl:lang optional}})
340               </tpl:ContributeIfNameAndEmailAreNotRequired>
341               ({{tpl:lang won't be displayed}})&nbsp;:</label>
342             <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
343             value="{{tpl:CommentPreviewEmail encode_html="1"}}" />
344             </p>
345             
346             <p class="field"><label for="c_site">{{tpl:lang Website}}
347                              ({{tpl:lang optional}})&nbsp;:</label>
348             <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
349             value="{{tpl:CommentPreviewSite encode_html="1"}}" />
350             </p>
351           </div>
352      </tpl:ContributeIf>
353     
354      <p style="display:none"><input name="f_mail" type="text" size="30"
355          maxlength="255" value="" /></p>
356     
357               <p>
358                    <input type="submit" name="preview" value="{{tpl:lang preview}}" />
359                    <tpl:ContributePreview>
360                         <input type="submit" name="add" value="{{tpl:lang save}}" />
361                    </tpl:ContributePreview>
362               </p>
363          </form>
364         
365          </div><!-- End #contribute -->
366     </tpl:ContributeForm>
367
368</div><!-- End #content-inner -->
369 
370     </div><!-- End #content -->
371
372       {{tpl:include src="_sidebar.html"}}
373     </div> <!-- End #frame -->
374      </div> <!-- End #container -->
375    </div> <!-- End #page -->
376
377    {{tpl:include src="_footer.html"}}
378  </div> <!-- End #body -->
379</body>
380</html>
Note: See TracBrowser for help on using the repository browser.

Sites map