Dotclear

source: inc/public/default-templates/dotty/_entry-short.html @ 3431:48ca825d24b9

Revision 3431:48ca825d24b9, 3.1 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Continue reading link not needed if entry content is not cut

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          <tpl:EntryIfContentCut encode_html="1" remove_html="1" cut_string="300">
37               <p class="post-read-it"><a href="{{tpl:EntryURL}}"
38                title="{{tpl:lang Continue reading}} {{tpl:EntryTitle encode_html="1"}}">{{tpl:lang Continue reading}}</a></p>
39          </tpl:EntryIfContentCut>
40     </tpl:EntryIf>
41
42     <!-- # --BEHAVIOR-- publicEntryAfterContent -->
43     {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
44
45     <footer class="post-meta">
46          <p class="post-info">
47               <span class="post-author">{{tpl:lang By}} {{tpl:EntryAuthorLink}}, </span>
48               <span class="post-date"><time datetime="{{tpl:EntryDate iso8601="1"}}">{{tpl:EntryDate}}</time>.</span>
49               <tpl:EntryIf has_category="1">
50               <span class="post-cat"><tpl:EntryCategoriesBreadcrumb><a
51                    href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> › </tpl:EntryCategoriesBreadcrumb><a
52                    href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a></span>
53               </tpl:EntryIf>
54          </p>
55
56          <tpl:EntryTags>
57               <tpl:TagsHeader>
58                    <ul class="post-tags-list">
59               </tpl:TagsHeader>
60                    <li class="post-tags-item"><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li>
61               <tpl:TagsFooter>
62                    </ul>
63               </tpl:TagsFooter>
64          </tpl:EntryTags>
65
66          <!-- # Number of comments, trackbacks and attachments -->
67          <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1">
68               <p class="post-info-co">
69          </tpl:EntryIf>
70               <tpl:EntryIf show_comments="1">
71                    <a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a>
72               </tpl:EntryIf>
73               <tpl:EntryIf show_pings="1">
74                    <a href="{{tpl:EntryURL}}#pings" class="ping_count">{{tpl:EntryPingCount}}</a></tpl:EntryIf>
75               <tpl:EntryIf has_attachment="1">
76                    <a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a></tpl:EntryIf>
77          <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1">
78               </p>
79          </tpl:EntryIf>
80     </footer>
81</article>
Note: See TracBrowser for help on using the repository browser.

Sites map