Dotclear

source: inc/public/default-templates/dotty/_entry-short.html @ 3289:9993fc03f56d

Revision 3289:9993fc03f56d, 3.0 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Implements <time> element whenever it's relevant, thank's Tomek for suggestion

Line 
1<article id="p{{tpl:EntryID}}" class="post short {{tpl:EntryIfOdd}} {{tpl:EntryIfFirst}}" lang="{{tpl:EntryLang}}" role="article">
2
3     <header>
4          <!-- # New day date -->
5          <tpl:DateHeader>
6               <p class="post-day-date"><time datetime="{{tpl:EntryDate iso8601="1"}}">{{tpl:EntryDate}}</time></p>
7          </tpl:DateHeader>
8
9          <h2 class="post-title"><a href="{{tpl:EntryURL}}">{{tpl:EntryTitle encode_html="1"}}</a></h2>
10     </header>
11
12     <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
13     {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
14
15     <!-- # Entry with an excerpt -->
16     <tpl:EntryIf extended="1">
17          <div class="post-content">
18               {{tpl:EntryFirstImage size="t" class="post-icon"}}
19               {{tpl:EntryExcerpt}}
20          </div>
21          <p class="post-read-it"><a href="{{tpl:EntryURL}}"
22           title="{{tpl:lang Continue reading}} {{tpl:EntryTitle encode_html="1"}}">{{tpl:lang Continue reading}}</a></p>
23     </tpl:EntryIf>
24
25     <!-- # Entry without excerpt -->
26     <tpl:EntryIf extended="0">
27          <div class="post-content">
28               {{tpl:EntryFirstImage size="t" class="post-icon"}}
29               <p>
30                    {{tpl:EntryContent encode_html="1" remove_html="1" cut_string="300"}}
31                    <tpl:EntryIfContentCut encode_html="1" remove_html="1" cut_string="300">
32                         <span class="ellipsis">&nbsp;[&#8230;]</span>
33                    </tpl:EntryIfContentCut>
34               </p>
35          </div>
36          <p class="post-read-it"><a href="{{tpl:EntryURL}}"
37           title="{{tpl:lang Continue reading}} {{tpl:EntryTitle encode_html="1"}}">{{tpl:lang Continue reading}}</a></p>
38     </tpl:EntryIf>
39
40     <!-- # --BEHAVIOR-- publicEntryAfterContent -->
41     {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
42
43     <footer class="post-meta">
44          <p class="post-info">
45               <span class="post-author">{{tpl:lang By}} {{tpl:EntryAuthorLink}}, </span>
46               <span class="post-date"><time datetime="{{tpl:EntryDate iso8601="1"}}" pubdate>{{tpl:EntryDate}}</time>.</span>
47               <tpl:EntryIf has_category="1">
48               <span class="post-cat"><tpl:EntryCategoriesBreadcrumb><a
49                    href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> › </tpl:EntryCategoriesBreadcrumb><a
50                    href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a></span>
51               </tpl:EntryIf>
52          </p>
53
54          <tpl:EntryTags>
55               <tpl:TagsHeader>
56                    <ul class="post-tags-list">
57               </tpl:TagsHeader>
58                    <li class="post-tags-item"><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li>
59               <tpl:TagsFooter>
60                    </ul>
61               </tpl:TagsFooter>
62          </tpl:EntryTags>
63
64          <!-- # Number of comments, trackbacks and attachments -->
65          <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1">
66               <p class="post-info-co">
67          </tpl:EntryIf>
68               <tpl:EntryIf show_comments="1">
69                    <a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a>
70               </tpl:EntryIf>
71               <tpl:EntryIf show_pings="1">
72                    <a href="{{tpl:EntryURL}}#pings" class="ping_count">{{tpl:EntryPingCount}}</a></tpl:EntryIf>
73               <tpl:EntryIf has_attachment="1">
74                    <a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a></tpl:EntryIf>
75          <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1">
76               </p>
77          </tpl:EntryIf>
78     </footer>
79</article>
Note: See TracBrowser for help on using the repository browser.

Sites map