Dotclear

source: inc/public/default-templates/mustek/category.html @ 3017:671366477262

Revision 3017:671366477262, 5.8 KB checked in by franck <carnet.franck.paul@…>, 10 years ago (diff)

Apply extension/heritage templating system to mustek templateset, addresses #2099

Line 
1{{tpl:extends parent="__layout.html"}}
2
3<tpl:Block name="head-title">
4     <title>{{tpl:CategoryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title>
5</tpl:Block>
6
7<tpl:Block name="meta-robots">
8     <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX"}}" />
9</tpl:Block>
10
11<tpl:Block name="meta-entry">
12     <meta name="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription encode_html="1" cut_string="180" remove_html="1"}}" />
13     <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />
14     <meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
15</tpl:Block>
16
17<tpl:Block name="dc-entry">
18     <meta property="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" />
19     <meta property="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription remove_html="1"}}" />
20     <meta property="dc.language" content="{{tpl:BlogLanguage}}" />
21     <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
22</tpl:Block>
23
24<tpl:Block name="head-linkrel">
25     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
26     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
27
28     <tpl:Entries no_content="1">
29          <tpl:EntriesHeader>
30               <tpl:Pagination>
31                    <tpl:PaginationIf end="0">
32                         <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" />
33                    </tpl:PaginationIf>
34
35                    <tpl:PaginationIf start="0">
36                         <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" />
37                    </tpl:PaginationIf>
38               </tpl:Pagination>
39          </tpl:EntriesHeader>
40
41          <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" />
42     </tpl:Entries>
43
44     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:CategoryFeedURL type="atom"}}" />
45</tpl:Block>
46
47<tpl:Block name="body-tag"><body class="dc-category"></tpl:Block>
48
49<tpl:Block name="main-content">
50     <div id="content-info">
51          <h2><tpl:CategoryParents><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> &rsaquo; </tpl:CategoryParents>
52          {{tpl:CategoryTitle encode_html="1"}}</h2>
53          {{tpl:CategoryDescription}}
54
55          <tpl:CategoryIf has_entries="1">
56               <p><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}"
57               title="{{tpl:lang This category's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a>
58
59               <tpl:SysIf operator="or" comments_active="1" pings_active="1">
60               - <a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}/comments"
61               title="{{tpl:lang This category's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a>
62               </tpl:SysIf>
63               </p>
64          </tpl:CategoryIf>
65     </div>
66
67     <tpl:CategoryFirstChildren>
68          <tpl:CategoriesHeader>
69               <div id="subcategories">
70                    <h3>{{tpl:lang Subcategories}}</h3>
71                    <ul>
72          </tpl:CategoriesHeader>
73                    <li><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a></li>
74          <tpl:CategoriesFooter>
75                    </ul>
76               </div>
77          </tpl:CategoriesFooter>
78     </tpl:CategoryFirstChildren>
79
80     <tpl:Entries>
81          <div id="p{{tpl:EntryID}}" class="post {{tpl:EntryIfOdd}} {{tpl:EntryIfFirst}}" lang="{{tpl:EntryLang}}" role="article">
82               <!-- # New day date -->
83               <tpl:DateHeader><p class="day-date">{{tpl:EntryDate}}</p></tpl:DateHeader>
84
85               <h2 class="post-title"><a
86               href="{{tpl:EntryURL}}">{{tpl:EntryTitle encode_html="1"}}</a></h2>
87
88               <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}}
89               {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}}</p>
90
91               <tpl:EntryTags>
92                    <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader>
93                    <li><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li>
94                    <tpl:TagsFooter></ul></tpl:TagsFooter>
95               </tpl:EntryTags>
96
97               <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
98               {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
99
100               <!-- # Entry with an excerpt -->
101               <tpl:EntryIf extended="1">
102                    <div class="post-content">{{tpl:EntryExcerpt}}</div>
103                    <p class="read-it"><a href="{{tpl:EntryURL}}"
104                    title="{{tpl:lang Continue reading}} {{tpl:EntryTitle encode_html="1"}}">{{tpl:lang Continue
105                    reading}}</a><span class="readmore-ellipsis">...</span></p>
106               </tpl:EntryIf>
107
108               <!-- # Entry without excerpt -->
109               <tpl:EntryIf extended="0">
110                    <div class="post-content">{{tpl:EntryContent}}</div>
111               </tpl:EntryIf>
112
113               <!-- # --BEHAVIOR-- publicEntryAfterContent -->
114               {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
115
116               <!-- # Number of comments, trackbacks and attachments -->
117               <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1">
118                    <p class="post-info-co">
119               </tpl:EntryIf>
120               <tpl:EntryIf show_comments="1">
121                    <a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a>
122               </tpl:EntryIf>
123               <tpl:EntryIf show_pings="1">
124                    <a href="{{tpl:EntryURL}}#pings" class="ping_count">{{tpl:EntryPingCount}}</a></tpl:EntryIf>
125               <tpl:EntryIf has_attachment="1">
126                    <a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a></tpl:EntryIf>
127               <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1">
128                 </p>
129               </tpl:EntryIf>
130          </div>
131
132          <tpl:EntriesFooter>
133               <tpl:Pagination>
134                    <p class="pagination"><tpl:PaginationIf end="0"><a href="{{tpl:PaginationURL offset="+1"}}" class="prev">&#171;
135                    {{tpl:lang previous entries}}</a> - </tpl:PaginationIf>
136                    {{tpl:lang page}} {{tpl:PaginationCurrent}} {{tpl:lang of}} {{tpl:PaginationCounter}}
137                    <tpl:PaginationIf start="0"> - <a href="{{tpl:PaginationURL offset="-1"}}" class="next">{{tpl:lang next entries}}
138                    &#187;</a></tpl:PaginationIf></p>
139               </tpl:Pagination>
140          </tpl:EntriesFooter>
141     </tpl:Entries>
142</tpl:Block>
Note: See TracBrowser for help on using the repository browser.

Sites map