Dotclear

source: themes/ductile/tpl/_simple-entry.html @ 694:cdb899b3d7ac

Revision 694:cdb899b3d7ac, 6.2 KB checked in by kozlika, 14 years ago (diff)

Ductile : on allège un peu.

Line 
1<div id="p{{tpl:EntryID}}" class="post simple">
2     <h2 class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2>
3     
4     <div class="post-attr">
5          <p class="post-info">
6               <span class="post-author">{{tpl:lang By}} {{tpl:EntryAuthorLink}}, </span>
7               <span class="post-date">{{tpl:EntryDate}}. </span>
8               <span class="permalink"><a href="{{tpl:EntryURL}}">{{tpl:lang Permalink}}</a></span>
9               <tpl:EntryIf has_category="1">
10                    <span class="post-cat"><tpl:EntryCategoriesBreadcrumb><a 
11                    href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> › </tpl:EntryCategoriesBreadcrumb><a 
12                    href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a></span>
13               </tpl:EntryIf>
14          </p>
15         
16          <tpl:EntryTags>
17               <tpl:TagsHeader>
18                    <p class="post-tags">
19               </tpl:TagsHeader>
20                         <a href="{{tpl:TagURL}}">{{tpl:TagID}} </a>
21               <tpl:TagsFooter>
22                    </p>
23               </tpl:TagsFooter>
24          </tpl:EntryTags>
25     </div>   
26     
27     <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
28     {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
29     
30     <!-- # Entry with an excerpt -->
31     <tpl:EntryIf extended="1">
32          <div class="post-excerpt">{{tpl:EntryExcerpt}}</div>
33     </tpl:EntryIf>
34     
35     <div class="post-content">{{tpl:EntryContent}}</div>
36     
37     <!-- # --BEHAVIOR-- publicEntryAfterContent -->
38     {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
39</div>
40
41<!-- # Attachments -->
42<tpl:Attachments>
43     <tpl:AttachmentsHeader>
44          <div id="attachments">
45               <h3>{{tpl:lang Attachments}}</h3>
46               <ul>
47     </tpl:AttachmentsHeader>
48                    <li class="{{tpl:AttachmentType}}">
49                         <tpl:AttachmentIf is_mp3="1">
50                              {{tpl:include src="_mp3_player.html"/}} -
51                         </tpl:AttachmentIf>
52                         <tpl:AttachmentIf is_flv="1">
53                              {{tpl:include src="_flv_player.html"/}}
54                         </tpl:AttachmentIf>
55                         <tpl:AttachmentIf is_flv="0">
56                              <a href="{{tpl:AttachmentURL}}"
57                               title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a>
58                         </tpl:AttachmentIf>
59                    </li>
60     <tpl:AttachmentsFooter>
61               </ul>
62          </div>
63     </tpl:AttachmentsFooter>
64</tpl:Attachments>
65
66<!-- # Comments -->
67<tpl:EntryIf show_comments="1">
68     <tpl:Comments with_pings="1">
69          <tpl:CommentsHeader>
70               <div id="comments">
71                    <h3>{{tpl:EntryCommentCount count_all="1" one="%s" more="%s"}} {{tpl:lang reactions}}</h3>
72                    <ul>
73          </tpl:CommentsHeader>
74                         <tpl:CommentIf is_ping="0">
75                              <li id="c{{tpl:CommentID}}" class="comment {{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}">
76                         </tpl:CommentIf>
77                         <tpl:CommentIf is_ping="1">
78                              <li id="c{{tpl:PingID}}" class="ping {{tpl:PingIfOdd}} {{tpl:PingIfFirst}}">
79                         </tpl:CommentIf>
80                                   <p class="comment-info"><a href="#c{{tpl:CommentID}}" class="comment-number">{{tpl:CommentOrderNumber}}</a>
81                                        {{tpl:lang From}} {{tpl:CommentAuthorLink}} - {{tpl:CommentDate format="%d"}}/{{tpl:CommentDate format="%m"}}/{{tpl:CommentDate format="%Y"}}, {{tpl:CommentTime}}
82                                   </p>
83                                   <div class="comment-content">
84                                        <!-- # --BEHAVIOR-- publicCommentBeforeContent -->
85                                        {{tpl:SysBehavior behavior="publicCommentBeforeContent"}}
86                                       
87                                        {{tpl:CommentContent}}
88                                       
89                                        <!-- # --BEHAVIOR-- publicCommentAfterContent -->
90                                        {{tpl:SysBehavior behavior="publicCommentAfterContent"}}
91                                   </div>
92                              </li>
93          <tpl:CommentsFooter>
94                         </ul>
95                    </div>
96          </tpl:CommentsFooter>
97     </tpl:Comments>
98</tpl:EntryIf>
99
100<tpl:EntryIf operator="or" comments_active="1" pings_active="1">
101     <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}"
102           title="{{tpl:lang This post's comments Atom feed}}">{{tpl:lang This post's comments feed}}</a></p>
103</tpl:EntryIf>
104
105<tpl:EntryIf comments_active="1">   
106     <tpl:SysIfFormError>
107          <p class="error" id="pr">{{tpl:SysFormError}}</p>
108     </tpl:SysIfFormError>
109     
110     <tpl:SysIfCommentPublished>
111          <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p>
112     </tpl:SysIfCommentPublished>
113     
114     <tpl:SysIfCommentPending>
115          <p class="message" id="pr">{{tpl:lang Your comment has been submitted and will be reviewed for publication.}}</p>
116     </tpl:SysIfCommentPending>
117     
118     <!-- # Comment form -->
119     <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form">
120          <tpl:IfCommentPreview>
121               <div id="pr">
122                    <h3>{{tpl:lang Your comment}}</h3>
123                    <ul>
124                         <li class="comment-preview">{{tpl:CommentPreviewContent}}</li>
125                    </ul>
126                    <p class="buttons"><input type="submit" class="submit" value="{{tpl:lang send}}" /></p>
127               </div>
128          </tpl:IfCommentPreview>
129         
130          <h3>{{tpl:lang Add a comment}}</h3>
131          <fieldset>
132               <!-- # --BEHAVIOR-- publicCommentFormBeforeContent -->
133               {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}}
134               
135               <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label>
136                    <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
137                     value="{{tpl:CommentPreviewName encode_html="1"}}" />
138               </p>
139               
140               <p class="field"><label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label>
141                    <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
142                     value="{{tpl:CommentPreviewEmail encode_html="1"}}" />
143               </p>
144               
145               <p class="field"><label for="c_site">{{tpl:lang Website}} ({{tpl:lang optional}})&nbsp;:</label>
146                    <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
147                     value="{{tpl:CommentPreviewSite encode_html="1"}}" />
148               </p>
149               
150               <p style="display:none">
151                    <input name="f_mail" type="text" size="30" maxlength="255" value="" />
152               </p>
153               
154               <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label>
155                    <textarea name="c_content" id="c_content" cols="35"
156                     rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea>
157               </p>
158               
159               <p class="form-help">{{tpl:CommentHelp}}</p>
160               
161               <!-- # --BEHAVIOR-- publicCommentFormAfterContent -->
162               {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}}
163          </fieldset>
164         
165          <fieldset>
166               <p class="buttons">
167                    <input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" />
168                    <tpl:IfCommentPreview>
169                         <input type="submit" class="submit" value="{{tpl:lang send}}" />
170                    </tpl:IfCommentPreview>
171               </p>
172          </fieldset>
173     </form>
174</tpl:EntryIf>
175 
176<tpl:EntryIf pings_active="1">
177     <div id="ping-url">
178          <h3>{{tpl:lang Add ping}}</h3>
179          <p>{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p>
180     </div>
181</tpl:EntryIf>
Note: See TracBrowser for help on using the repository browser.

Sites map