Dotclear

source: inc/public/default-templates/baklava/_entry-short.html @ 2982:b3ba63f6c5b1

Revision 2982:b3ba63f6c5b1, 2.9 KB checked in by franck <carnet.franck.paul@…>, 10 years ago (diff)

New baklava templateset (HTML5), first draft

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

Sites map