Dotclear

source: plugins/contribute/default-templates/contribute.html @ 1849

Revision 1849, 14.2 KB checked in by Moe, 14 years ago (diff)

Contribute 1.0-alpha23 :

  • message is now displayed in Black (in some themes it was invisible)
  • removed   in strings used in emails
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-post">
93<div id="page">
94{{tpl:include src="_top.html"}}
95
96<div id="wrapper">
97
98<div id="main">
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         <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}}
130         {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}}
131         <tpl:EntryIf has_category="1">
132         - <a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a>
133         </tpl:EntryIf>
134         - <a href="{{tpl:EntryURL}}">{{tpl:lang Permalink}}</a>
135         </p>
136         
137         <tpl:EntryTags>
138              <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader>
139              <li><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li>
140              <tpl:TagsFooter></ul></tpl:TagsFooter>
141         </tpl:EntryTags>
142         
143         <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
144         {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
145         
146         <!-- # Entry with an excerpt -->
147         <tpl:EntryIf extended="1">
148           <div class="post-excerpt">{{tpl:EntryExcerpt}}</div>
149         </tpl:EntryIf>
150         
151         <div class="post-content">{{tpl:EntryContent}}</div>
152         
153         <!-- # --BEHAVIOR-- publicEntryAfterContent -->
154         {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
155       </div>
156       
157       <hr />
158  </tpl:ContributePreview>
159     
160     <tpl:ContributeForm>
161          <div id="contribute">
162          {{tpl:ContributeHelp}}
163          <form method="post" action="{{tpl:SysSelfURI}}" id="entry-form">
164               <!-- # it's a trick : when pressing Enter, the preview button
165                    will be selected instead of Convert to XHTML -->
166               <p>
167                    <input type="submit" name="preview" value="{{tpl:lang preview}}" />
168                    <tpl:ContributePreview>
169                         <input type="submit" name="add" value="{{tpl:lang save}}" />
170                    </tpl:ContributePreview>
171               </p>
172               
173               <tpl:ContributeIf choose_format="1">
174                    <p>
175                         <tpl:ContributeFormaters>
176                              <tpl:LoopPosition start="1" length="1">
177                                   <label for="post_format">{{tpl:lang Text formating}}
178                                        &nbsp;:</label>
179                                   <select name="post_format" id="post_format">
180                              </tpl:LoopPosition>
181                              <option value="{{tpl:ContributeFormat}}"<tpl:ContributeIfSelected format="1"> selected="selected"</tpl:ContributeIfSelected>>{{tpl:ContributeFormat encode_html="1"}}</option>
182                              <tpl:LoopPosition start="-1">
183                                   </select>
184                              </tpl:LoopPosition>
185                         </tpl:ContributeFormaters>
186                    </p>
187                   
188                    <p id="p-convert-xhtml">
189                         <input type="submit" name="convert-xhtml" id="convert-xhtml" value="{{tpl:lang convert to XHTML}}" />
190                    </p>
191               </tpl:ContributeIf>
192               
193               <tpl:ContributeIf choose_format="0">
194                    <p>
195                         <input type="hidden" name="post_format" id="post_format" value="{{tpl:ContributeFormat}}" />
196                    </p>
197               </tpl:ContributeIf>
198               
199               <p id="wiki-syntax-reference">
200                    <a href="{{tpl:lang http://dotclear.org/documentation/2.0/usage/syntaxes}}">
201                         {{tpl:lang wiki syntax reference}}</a>
202               </p>
203               
204               <p>
205                    <label for="post_title">{{tpl:lang Title}}&nbsp;:</label>
206                         <input type="text" id="post_title" name="post_title" size="20" maxlength="255" value="{{tpl:EntryTitle encode_html="1"}}" />
207               </p>
208               
209               <tpl:ContributeIf excerpt="1">
210                    <p>
211                         <label for="post_excerpt">{{tpl:lang Excerpt}} ({{tpl:lang optional}})&nbsp;:</label>
212                         <textarea id="post_excerpt" name="post_excerpt" cols="60" rows="10">{{tpl:ContributeEntryExcerpt}}</textarea>
213                    </p>
214               </tpl:ContributeIf>
215               
216               <p>
217                    <label for="post_content">{{tpl:lang Content}}&nbsp;:</label>
218                    <textarea id="post_content" name="post_content" cols="60" rows="20">{{tpl:ContributeEntryContent}}</textarea>
219               </p>
220               
221               <tpl:ContributeIf category="1">
222                    <p>
223                         <tpl:Categories>
224                              <tpl:CategoriesHeader>
225                                   <label for="cat_id">{{tpl:lang Category}} ({{tpl:lang optional}})&nbsp;:</label>
226                                   <select name="cat_id" id="cat_id">
227                                        <option value=""></option>
228                              </tpl:CategoriesHeader>
229                              <option value="{{tpl:ContributeCategoryID}}"
230                                   <tpl:ContributeIfSelected category="1"> selected="selected"</tpl:ContributeIfSelected>>
231                                   {{tpl:ContributeCategorySpacer string="&nbsp;&nbsp;"}}
232                                   &bull; {{tpl:CategoryTitle encode_html="1"}}
233                              </option>
234                              <tpl:CategoriesFooter>
235                                   </select>
236                              </tpl:CategoriesFooter>
237                         </tpl:Categories>
238                    </p>
239               </tpl:ContributeIf>
240               
241               <tpl:ContributeIf tags="1">
242                    <p>
243                         <label for="post_tags">{{tpl:lang Tags}} ({{tpl:lang separate tags by a comma}}) ({{tpl:lang optional}})&nbsp;:</label>
244                         <!-- # avoid unnecessary spaces and line breaks -->
245                         <input type="text" name="post_tags" id="post_tags"
246                              value="<tpl:EntryTags>{{tpl:TagID}}<tpl:LoopPosition start="1" length="-1">, </tpl:LoopPosition></tpl:EntryTags>" />
247                    </p>
248                   
249              <tpl:Tags type="tag">
250                   <tpl:LoopPosition start="1" length="1">
251                    <div id="available-tags">
252                         <h3>{{tpl:lang Tags}}&nbsp;:</h3>
253                         <ul class="tags">
254                   </tpl:LoopPosition>
255                   <!-- # don't display selected tags -->
256                      <tpl:ContributeEntryTagsFilter>
257                         <li><a href="#" class="tag{{tpl:TagRoundPercent}}">{{tpl:TagID}}</a></li>
258                      </tpl:ContributeEntryTagsFilter>
259                      <tpl:LoopPosition start="-1">
260                    </ul>
261                    </div>
262                   </tpl:LoopPosition>
263              </tpl:Tags>
264            </tpl:ContributeIf>
265         
266               <tpl:ContributeIf mymeta="1">
267                 <tpl:ContributeEntryMyMeta>
268                         <p>
269                     <!-- # string -->
270                              <tpl:ContributeEntryMyMetaIf type="string">
271                                   <label for="mymeta_{{tpl:ContributeEntryMyMetaID}}">{{tpl:ContributeEntryMyMetaPrompt}}
272                              ({{tpl:lang optional}})&nbsp;:</label>
273                                   <input type="text" id="mymeta_{{tpl:ContributeEntryMyMetaID}}"
274                                        name="mymeta_{{tpl:ContributeEntryMyMetaID}}"
275                                        value="{{tpl:ContributeEntryMyMetaValue}}" />
276                              </tpl:ContributeEntryMyMetaIf>
277                              <!-- # list -->
278                              <tpl:ContributeEntryMyMetaIf type="list">
279                                   <tpl:ContributeEntryMyMetaValues>
280                                        <tpl:LoopPosition start="1" length="1">
281                                             <label for="mymeta_{{tpl:ContributeEntryMyMetaID}}">
282                                                  {{tpl:ContributeEntryMyMetaPrompt}}&nbsp;:</label>
283                                   <select name="mymeta_{{tpl:ContributeEntryMyMetaID}}"
284                                        id="mymeta_{{tpl:ContributeEntryMyMetaID}}">
285                              </tpl:LoopPosition>
286                                        <option value="{{tpl:ContributeEntryMyMetaValuesID}}"
287                                        <tpl:ContributeIfSelected mymeta="1"> selected="selected"</tpl:ContributeIfSelected>>
288                                        {{tpl:ContributeEntryMyMetaValuesDescription encode_html="1"}}</option>
289                                        <tpl:LoopPosition start="-1">
290                                             </select>
291                              </tpl:LoopPosition>
292                                   </tpl:ContributeEntryMyMetaValues>
293                              </tpl:ContributeEntryMyMetaIf>
294                         </p>
295                 </tpl:ContributeEntryMyMeta>
296               </tpl:ContributeIf>
297               
298         <tpl:ContributeIf notes="1">
299              <p>
300               <label for="post_notes">{{tpl:lang Notes}} ({{tpl:lang only visible by administrators, won't be displayed in the post}}
301             ({{tpl:lang optional}})&nbsp;:</label>
302                         <textarea id="post_notes" name="post_notes" cols="50" rows="5">{{tpl:ContributeEntryNotes}}</textarea>
303                    </p>
304               </tpl:ContributeIf>
305               
306               <tpl:ContributeIf author="1">
307                    <div id="comments">
308                         <h3>{{tpl:lang Your informations}}&nbsp;:</h3>
309                         <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}
310                              <tpl:ContributeIfNameAndEmailAreNotRequired>({{tpl:lang optional}})
311                              </tpl:ContributeIfNameAndEmailAreNotRequired>&nbsp;:</label>
312             <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
313             value="{{tpl:CommentPreviewName encode_html="1"}}" />
314             </p>
315             
316             <p class="field"><label for="c_mail">{{tpl:lang Email address}}
317               <tpl:ContributeIfNameAndEmailAreNotRequired>({{tpl:lang optional}})
318               </tpl:ContributeIfNameAndEmailAreNotRequired>
319               ({{tpl:lang won't be displayed}})&nbsp;:</label>
320             <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
321             value="{{tpl:CommentPreviewEmail encode_html="1"}}" />
322             </p>
323             
324             <p class="field"><label for="c_site">{{tpl:lang Website}}
325                              ({{tpl:lang optional}})&nbsp;:</label>
326             <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
327             value="{{tpl:CommentPreviewSite encode_html="1"}}" />
328             </p>
329           </div>
330      </tpl:ContributeIf>
331     
332      <p style="display:none"><input name="f_mail" type="text" size="30"
333          maxlength="255" value="" /></p>
334     
335               <p>
336                    <input type="submit" name="preview" value="{{tpl:lang preview}}" />
337                    <tpl:ContributePreview>
338                         <input type="submit" name="add" value="{{tpl:lang save}}" />
339                    </tpl:ContributePreview>
340               </p>
341          </form>
342         
343          </div><!-- End #contribute -->
344     </tpl:ContributeForm>
345
346</div><!-- End #content-inner -->
347 
348     </div><!-- End #content -->
349</div> <!-- End #main -->
350
351<div id="sidebar">
352  <div id="blognav">
353    {{tpl:Widgets type="nav"}}
354  </div> <!-- End #blognav -->
355 
356  <div id="blogextra">
357    {{tpl:Widgets type="extra"}}
358  </div> <!-- End #blogextra -->
359</div><!-- End #sidebar -->
360
361</div> <!-- End #wrapper -->
362
363{{tpl:include src="_footer.html"}}
364</div> <!-- End #page -->
365</body>
366</html>
Note: See TracBrowser for help on using the repository browser.

Sites map