Dotclear

source: inc/public/default-templates/mustek/post.html @ 3167:9b0e5988c0eb

Revision 3167:9b0e5988c0eb, 9.1 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Cope with sort of "un-attached" media → allows new features as "featured media" plugin. Video and Audio HTML5 element are now used (if possible) rather than Flash object for attachments.

Line 
1{{tpl:extends parent="__layout.html"}}
2
3<tpl:Block name="head-title">
4     <title>{{tpl:EntryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}</title>
5</tpl:Block>
6
7<tpl:Block name="meta-entry">
8     <meta name="description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" />
9     <meta name="author" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" />
10     <meta name="date" content="{{tpl:EntryDate iso8601="1"}}" />
11</tpl:Block>
12
13<tpl:Block name="dc-entry">
14     <meta property="dc.title" content="{{tpl:EntryTitle encode_html="1"}}" />
15     <meta property="dc.description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" />
16     <meta property="dc.creator" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" />
17     <meta property="dc.language" content="{{tpl:EntryLang}}" />
18     <meta property="dc.date" content="{{tpl:EntryDate iso8601="1"}}" />
19</tpl:Block>
20
21<tpl:Block name="head-linkrel">
22     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
23     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
24     <tpl:EntryIf pings_active="1"><link rel="pingback" href="{{tpl:BlogXMLRPCURL}}" /></tpl:EntryIf>
25
26     <tpl:EntryNext><link rel="next" href="{{tpl:EntryURL}}"
27     title="{{tpl:EntryTitle encode_html="1"}}" /></tpl:EntryNext>
28
29     <tpl:EntryPrevious><link rel="prev" href="{{tpl:EntryURL}}"
30     title="{{tpl:EntryTitle encode_html="1"}}" /></tpl:EntryPrevious>
31
32     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />
33</tpl:Block>
34
35<tpl:Block name="html-head">
36     {{tpl:parent}}
37
38     <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script>
39     <script type="text/javascript">
40          //<![CDATA[
41          var post_remember_str = '{{tpl:lang Remember me on this blog}}';
42          //]]>
43     </script>
44</tpl:Block>
45
46<tpl:Block name="body-tag"><body class="dc-post"></tpl:Block>
47
48<tpl:Block name="page-top">
49     {{tpl:EntryPingData}}
50     {{tpl:parent}}
51</tpl:Block>
52
53<tpl:Block name="main-content">
54     <p id="navlinks">
55          <tpl:EntryPrevious><a href="{{tpl:EntryURL}}"
56          title="{{tpl:EntryTitle encode_html="1"}}" class="prev">&#171; {{tpl:EntryTitle encode_html="1"
57          cut_string="50"}}</a></tpl:EntryPrevious>
58          <tpl:EntryNext> <span>-</span> <a href="{{tpl:EntryURL}}"
59          title="{{tpl:EntryTitle encode_html="1"}}" class="next">{{tpl:EntryTitle encode_html="1"
60          cut_string="50"}} &#187;</a></tpl:EntryNext>
61     </p>
62
63     <div id="p{{tpl:EntryID}}" class="post" role="article">
64          <h2 class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2>
65
66          <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}}
67          {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}}
68          <tpl:EntryIf has_category="1">
69          - <a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a>
70          </tpl:EntryIf>
71          - <a href="{{tpl:EntryURL}}">{{tpl:lang Permalink}}</a>
72          </p>
73
74          <tpl:EntryTags>
75          <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader>
76          <li><a href="{{tpl:TagURL}}" rel="tag">{{tpl:TagID}}</a></li>
77          <tpl:TagsFooter></ul></tpl:TagsFooter>
78          </tpl:EntryTags>
79
80          <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
81          {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
82
83          <!-- # Entry with an excerpt -->
84          <tpl:EntryIf extended="1">
85               <div class="post-excerpt">{{tpl:EntryExcerpt}}</div>
86          </tpl:EntryIf>
87
88          <div class="post-content">{{tpl:EntryContent}}</div>
89
90          <!-- # --BEHAVIOR-- publicEntryAfterContent -->
91          {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
92     </div>
93
94     <!-- # Attachments -->
95     <tpl:Attachments>
96          <tpl:AttachmentsHeader>
97               <div id="attachments">
98               <h3>{{tpl:lang Attachments}}</h3>
99               <ul>
100          </tpl:AttachmentsHeader>
101               <li class="{{tpl:AttachmentType}}">
102                    <tpl:AttachmentIf is_audio="1">
103                         {{tpl:include src="_audio_player.html"}}
104                    </tpl:AttachmentIf>
105                    <tpl:AttachmentIf is_video="1">
106                         <tpl:AttachmentIf is_flv="0">
107                              {{tpl:include src="_video_player.html"}}
108                         {{tpl:else}}
109                              {{tpl:include src="_flv_player.html"}}
110                         </tpl:AttachmentIf>
111                    </tpl:AttachmentIf>
112           <tpl:AttachmentIf is_audio="0" is_video="0">
113               <a href="{{tpl:AttachmentURL}}"
114          title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a>
115                    </tpl:AttachmentIf>
116               </li>
117          <tpl:AttachmentsFooter>
118               </ul>
119               </div>
120          </tpl:AttachmentsFooter>
121     </tpl:Attachments>
122
123     <!-- # Comments -->
124     <tpl:EntryIf show_comments="1">
125          <tpl:Comments>
126          <tpl:CommentsHeader>
127               <div id="comments">
128                    <h3>{{tpl:lang Comments}}</h3>
129               <dl>
130          </tpl:CommentsHeader>
131               <dt id="c{{tpl:CommentID}}" class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"><a
132               href="#c{{tpl:CommentID}}" class="comment-number">{{tpl:CommentOrderNumber}}.</a>
133               {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}}
134               {{tpl:lang by}} {{tpl:CommentAuthorLink}}</dt>
135
136               <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}">
137               <!-- # --BEHAVIOR-- publicCommentBeforeContent -->
138               {{tpl:SysBehavior behavior="publicCommentBeforeContent"}}
139
140               {{tpl:CommentContent}}
141
142               <!-- # --BEHAVIOR-- publicCommentAfterContent -->
143               {{tpl:SysBehavior behavior="publicCommentAfterContent"}}
144               </dd>
145          <tpl:CommentsFooter>
146               </dl>
147               </div>
148          </tpl:CommentsFooter>
149          </tpl:Comments>
150     </tpl:EntryIf>
151
152     <tpl:EntryIf comments_active="1">
153          <tpl:SysIfFormError>
154               <p class="error" id="pr">{{tpl:SysFormError}}</p>
155          </tpl:SysIfFormError>
156
157          <tpl:SysIfCommentPublished>
158               <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p>
159          </tpl:SysIfCommentPublished>
160
161          <tpl:SysIfCommentPending>
162               <p class="message" id="pr">{{tpl:lang Your comment has been submitted and
163               will be reviewed for publication.}}</p>
164          </tpl:SysIfCommentPending>
165
166          <!-- # Comment form -->
167          <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form" role="form">
168               <tpl:IfCommentPreview>
169                    <div id="pr">
170                         <h3>{{tpl:lang Your comment}}</h3>
171                         <dl>
172                              <dd class="comment-preview">{{tpl:CommentPreviewContent}}</dd>
173                         </dl>
174                         <p class="buttons"><input type="submit" class="submit" value="{{tpl:lang send}}" /></p>
175                    </div>
176               </tpl:IfCommentPreview>
177
178               <h3>{{tpl:lang Add a comment}}</h3>
179               <fieldset>
180                    <!-- # --BEHAVIOR-- publicCommentFormBeforeContent -->
181                    {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}}
182
183                    <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label>
184                    <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
185                    value="{{tpl:CommentPreviewName encode_html="1"}}" />
186                    </p>
187
188                    <p class="field"><label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label>
189                    <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
190                    value="{{tpl:CommentPreviewEmail encode_html="1"}}" />
191                    </p>
192
193                    <p class="field"><label for="c_site">{{tpl:lang Website}} ({{tpl:lang optional}})&nbsp;:</label>
194                    <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
195                    value="{{tpl:CommentPreviewSite encode_html="1"}}" />
196                    </p>
197
198                    <p style="display:none"><input name="f_mail" type="text" size="30"
199                    maxlength="255" value="" /></p>
200
201                    <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label>
202                    <textarea name="c_content" id="c_content" cols="35"
203                    rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea>
204                    </p>
205                    <p class="form-help">{{tpl:CommentHelp}}</p>
206
207                    <!-- # --BEHAVIOR-- publicCommentFormAfterContent -->
208                    {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}}
209               </fieldset>
210
211               <fieldset>
212                    <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" />
213                    <tpl:IfCommentPreviewOptional><input type="submit" class="submit" value="{{tpl:lang send}}" /></tpl:IfCommentPreviewOptional></p>
214               </fieldset>
215          </form>
216     </tpl:EntryIf>
217
218     <!-- # Trackbacks -->
219     <tpl:EntryIf show_pings="1">
220          <div id="pings">
221               <h3>{{tpl:lang They posted on the same topic}}</h3>
222               <tpl:Pings>
223                    <tpl:PingsHeader>
224                    <dl>
225                    </tpl:PingsHeader>
226                         <dt id="c{{tpl:PingID}}" class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"><a href="#c{{tpl:PingID}}"
227                         class="ping-number">{{tpl:PingOrderNumber}}.</a>
228                         {{tpl:lang On}} {{tpl:PingDate}}, {{tpl:PingTime}}
229                         {{tpl:lang by}} {{tpl:PingBlogName encode_html="1"}}</dt>
230
231                         <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}">
232                         <!-- # --BEHAVIOR-- publicPingBeforeContent -->
233                         {{tpl:SysBehavior behavior="publicPingBeforeContent"}}
234
235                         <p><a href="{{tpl:PingAuthorURL}}"
236                         {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p>
237                         {{tpl:PingContent}}
238
239                         <!-- # --BEHAVIOR-- publicPingAfterContent -->
240                         {{tpl:SysBehavior behavior="publicPingAfterContent"}}
241                         </dd>
242                    <tpl:PingsFooter>
243                    </dl>
244                    </tpl:PingsFooter>
245               </tpl:Pings>
246          </div>
247     </tpl:EntryIf>
248
249     <tpl:EntryIf pings_active="1">
250          <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p>
251     </tpl:EntryIf>
252
253     <tpl:EntryIf operator="or" comments_active="1" pings_active="1">
254     <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}"
255     title="{{tpl:lang This post's comments Atom feed}}">{{tpl:lang This post's comments feed}}</a></p>
256     </tpl:EntryIf>
257</tpl:Block>
Note: See TracBrowser for help on using the repository browser.

Sites map