Dotclear


Ignore:
Timestamp:
06/26/15 17:04:37 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/default-templates/mustek/category.html

    r3009 r3017  
    1 <!DOCTYPE html> 
    2 <html lang="{{tpl:BlogLanguage}}"> 
    3 <head> 
    4   <meta charset="UTF-8" /> 
    5   <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX"}}" /> 
     1{{tpl:extends parent="__layout.html"}} 
    62 
    7   <title>{{tpl:CategoryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title> 
    8   <meta name="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription encode_html="1" cut_string="180" remove_html="1"}}" /> 
    9   <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    10   <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    11   <meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     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> 
    126 
    13   <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> 
    14   <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>" /> 
    15   <meta property="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription remove_html="1"}}" /> 
    16   <meta property="dc.language" content="{{tpl:BlogLanguage}}" /> 
    17   <meta property="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    18   <meta property="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    19   <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
    20   <meta property="dc.type" content="text" /> 
    21   <meta property="dc.format" content="text/html" /> 
     7<tpl:Block name="meta-robots"> 
     8     <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX"}}" /> 
     9</tpl:Block> 
    2210 
    23   <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    24   <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
     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> 
    2516 
    26   <tpl:Entries no_content="1"> 
    27     <tpl:EntriesHeader> 
    28       <tpl:Pagination> 
    29         <tpl:PaginationIf end="0"> 
    30         <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" /> 
    31         </tpl:PaginationIf> 
     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> 
    3223 
    33         <tpl:PaginationIf start="0"> 
    34         <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" /> 
    35         </tpl:PaginationIf> 
    36       </tpl:Pagination> 
    37     </tpl:EntriesHeader> 
     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}}" /> 
    3827 
    39     <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" /> 
    40   </tpl:Entries> 
     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> 
    4134 
    42   <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:CategoryFeedURL type="atom"}}" /> 
     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> 
    4340 
    44   {{tpl:include src="_head.html"}} 
    45 </head> 
     41          <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" /> 
     42     </tpl:Entries> 
    4643 
    47 <body class="dc-category"> 
    48 <div id="page"> 
    49 {{tpl:include src="_top.html"}} 
     44     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:CategoryFeedURL type="atom"}}" /> 
     45</tpl:Block> 
    5046 
    51 <div id="wrapper"> 
     47<tpl:Block name="body-tag"><body class="dc-category"></tpl:Block> 
    5248 
    53 <div id="main" role="main"> 
    54   {{tpl:Breadcrumb}} 
    55   <div id="content"> 
     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}} 
    5654 
    57   <div id="content-info"> 
    58     <h2><tpl:CategoryParents><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> &rsaquo; </tpl:CategoryParents> 
    59     {{tpl:CategoryTitle encode_html="1"}}</h2> 
    60     {{tpl:CategoryDescription}} 
     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> 
    6158 
    62     <tpl:CategoryIf has_entries="1"> 
    63       <p><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}" 
    64       title="{{tpl:lang This category's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a> 
     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> 
    6566 
    66       <tpl:SysIf operator="or" comments_active="1" pings_active="1"> 
    67       - <a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}/comments" 
    68       title="{{tpl:lang This category's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a> 
    69       </tpl:SysIf> 
    70       </p> 
    71     </tpl:CategoryIf> 
    72   </div> 
     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> 
    7379 
    74   <tpl:CategoryFirstChildren> 
    75     <tpl:CategoriesHeader> 
    76       <div id="subcategories"> 
    77       <h3>{{tpl:lang Subcategories}}</h3> 
    78       <ul> 
    79     </tpl:CategoriesHeader> 
    80     <li><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a></li> 
    81     <tpl:CategoriesFooter> 
    82       </ul> 
    83       </div> 
    84     </tpl:CategoriesFooter> 
    85   </tpl:CategoryFirstChildren> 
     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> 
    8684 
    87   <tpl:Entries> 
    88     <div id="p{{tpl:EntryID}}" class="post {{tpl:EntryIfOdd}} {{tpl:EntryIfFirst}}" lang="{{tpl:EntryLang}}" role="article"> 
    89     <!-- # New day date --> 
    90     <tpl:DateHeader><p class="day-date">{{tpl:EntryDate}}</p></tpl:DateHeader> 
     85               <h2 class="post-title"><a 
     86               href="{{tpl:EntryURL}}">{{tpl:EntryTitle encode_html="1"}}</a></h2> 
    9187 
    92     <h2 class="post-title"><a 
    93     href="{{tpl:EntryURL}}">{{tpl:EntryTitle encode_html="1"}}</a></h2> 
     88               <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}} 
     89               {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}}</p> 
    9490 
    95     <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}} 
    96     {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}}</p> 
     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> 
    9796 
    98     <tpl:EntryTags> 
    99     <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader> 
    100     <li><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li> 
    101     <tpl:TagsFooter></ul></tpl:TagsFooter> 
    102     </tpl:EntryTags> 
     97               <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
     98               {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
    10399 
    104     <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
    105     {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
     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> 
    106107 
    107     <!-- # Entry with an excerpt --> 
    108     <tpl:EntryIf extended="1"> 
    109       <div class="post-content">{{tpl:EntryExcerpt}}</div> 
    110       <p class="read-it"><a href="{{tpl:EntryURL}}" 
    111       title="{{tpl:lang Continue reading}} {{tpl:EntryTitle encode_html="1"}}">{{tpl:lang Continue 
    112       reading}}</a><span class="readmore-ellipsis">...</span></p> 
    113     </tpl:EntryIf> 
     108               <!-- # Entry without excerpt --> 
     109               <tpl:EntryIf extended="0"> 
     110                    <div class="post-content">{{tpl:EntryContent}}</div> 
     111               </tpl:EntryIf> 
    114112 
    115     <!-- # Entry without excerpt --> 
    116     <tpl:EntryIf extended="0"> 
    117       <div class="post-content">{{tpl:EntryContent}}</div> 
    118     </tpl:EntryIf> 
     113               <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
     114               {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
    119115 
    120     <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
    121     {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
     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> 
    122131 
    123     <!-- # Number of comments, trackbacks and attachments --> 
    124     <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1"> 
    125       <p class="post-info-co"> 
    126     </tpl:EntryIf> 
    127     <tpl:EntryIf show_comments="1"> 
    128       <a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a> 
    129     </tpl:EntryIf> 
    130     <tpl:EntryIf show_pings="1"> 
    131       <a href="{{tpl:EntryURL}}#pings" class="ping_count">{{tpl:EntryPingCount}}</a></tpl:EntryIf> 
    132     <tpl:EntryIf has_attachment="1"> 
    133       <a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a></tpl:EntryIf> 
    134     <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1"> 
    135       </p> 
    136     </tpl:EntryIf> 
    137     </div> 
    138  
    139     <tpl:EntriesFooter> 
    140       <tpl:Pagination> 
    141         <p class="pagination"><tpl:PaginationIf end="0"><a href="{{tpl:PaginationURL offset="+1"}}" class="prev">&#171; 
    142         {{tpl:lang previous entries}}</a> - </tpl:PaginationIf> 
    143         {{tpl:lang page}} {{tpl:PaginationCurrent}} {{tpl:lang of}} {{tpl:PaginationCounter}} 
    144         <tpl:PaginationIf start="0"> - <a href="{{tpl:PaginationURL offset="-1"}}" class="next">{{tpl:lang next entries}} 
    145         &#187;</a></tpl:PaginationIf></p> 
    146       </tpl:Pagination> 
    147     </tpl:EntriesFooter> 
    148   </tpl:Entries> 
    149   </div> 
    150 </div> <!-- End #main --> 
    151  
    152 <div id="sidebar" role="complementary"> 
    153   <div id="blognav"> 
    154     {{tpl:Widgets type="nav"}} 
    155   </div> <!-- End #blognav --> 
    156  
    157   <div id="blogextra"> 
    158     {{tpl:Widgets type="extra"}} 
    159   </div> <!-- End #blogextra --> 
    160 </div> 
    161  
    162 </div> <!-- End #wrapper --> 
    163  
    164 {{tpl:include src="_footer.html"}} 
    165 </div> <!-- End #page --> 
    166 </body> 
    167 </html> 
     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 TracChangeset for help on using the changeset viewer.

Sites map