Dotclear

source: themes/ductile/tpl/_simple-entry.html @ 666:7e7918f58915

Revision 666:7e7918f58915, 6.3 KB checked in by kozlika, 14 years ago (diff)

Ductile - Some enhancement for designers.

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

Sites map