Dotclear


Ignore:
Timestamp:
04/28/14 14:09:34 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Applying inheritance/extension template mechanism on currywurst templateset, step 5, closes #1933

File:
1 edited

Legend:

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

    r2644 r2704  
    1 <!DOCTYPE html> 
    2 <html lang="{{tpl:BlogLanguage}}"> 
    3 <head> 
    4      <meta charset="UTF-8" /> 
     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"> 
    58     <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX"}}" /> 
     9</tpl:Block> 
    610 
    7      <title>{{tpl:CategoryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title> 
     11<tpl:Block name="meta-entry"> 
    812     <meta name="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription cut_string="180" remove_html="1"}}" /> 
    9      <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    1013     <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    1114     <meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     15</tpl:Block> 
    1216 
    13      <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> 
     17<tpl:Block name="dc-entry"> 
    1418     <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>" /> 
    1519     <meta property="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:CategoryDescription remove_html="1"}}" /> 
    1620     <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"}}" /> 
    1921     <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
    20      <meta property="dc.type" content="text" /> 
    21      <meta property="dc.format" content="text/html" /> 
     22</tpl:Block> 
    2223 
     24<tpl:Block name="head-linkrel"> 
    2325     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    2426     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
     
    4143 
    4244     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:CategoryFeedURL type="atom"}}" /> 
     45</tpl:Block> 
    4346 
    44      {{tpl:include src="_head.html"}} 
    45 </head> 
    46 <body class="dc-category"> 
    47      <div id="page"> 
    48           {{tpl:include src="_top.html"}} 
     47<tpl:block name="body-tag"><body class="dc-category"></tpl:Block> 
    4948 
    50           <div id="wrapper"> 
     49<tpl:Block name="main-content"> 
     50     <div id="content-info"> 
     51          <h2> 
     52               <tpl:CategoryParents> 
     53                    <a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> &rsaquo; 
     54               </tpl:CategoryParents> 
     55               {{tpl:CategoryTitle encode_html="1"}} 
     56          </h2> 
    5157 
    52                <div id="main" role="main"> 
    53                     <div id="content"> 
     58          <tpl:CategoryIf has_entries="1"> 
     59               <ul class="content-info__feed"> 
     60                    <li><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}" 
     61                     title="{{tpl:lang This category's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a></li> 
    5462 
    55                          <div id="content-info"> 
    56                               <h2> 
    57                                    <tpl:CategoryParents> 
    58                                         <a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> &rsaquo; 
    59                                    </tpl:CategoryParents> 
    60                                    {{tpl:CategoryTitle encode_html="1"}} 
    61                               </h2> 
     63                    <tpl:SysIf operator="or" comments_active="1" pings_active="1"> 
     64                          <li><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}/comments" 
     65                          title="{{tpl:lang This category's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a></li> 
     66                    </tpl:SysIf> 
     67               </ul> 
     68          </tpl:CategoryIf> 
    6269 
    63                               <tpl:CategoryIf has_entries="1"> 
    64                                    <ul class="content-info__feed"> 
    65                                         <li><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}" 
    66                                          title="{{tpl:lang This category's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a></li> 
    67  
    68                                         <tpl:SysIf operator="or" comments_active="1" pings_active="1"> 
    69                                               <li><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}/comments" 
    70                                               title="{{tpl:lang This category's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a></li> 
    71                                         </tpl:SysIf> 
    72                                    </ul> 
    73                               </tpl:CategoryIf> 
    74  
    75                               <div class="content-info__cat-desc"> 
    76                                    {{tpl:CategoryDescription}} 
    77                               </div> 
     70          <div class="content-info__cat-desc"> 
     71               {{tpl:CategoryDescription}} 
     72          </div> 
    7873 
    7974 
    80                               <tpl:CategoryFirstChildren> 
    81                                    <tpl:CategoriesHeader> 
    82                                         <div id="subcategories" class="content-info__sub-cat"> 
    83                                              <h3>{{tpl:lang Subcategories}}</h3> 
    84                                              <ul> 
    85                                    </tpl:CategoriesHeader> 
    86                                                   <li class="post-cat"><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a></li> 
    87                                    <tpl:CategoriesFooter> 
    88                                              </ul> 
    89                                         </div> 
    90                                    </tpl:CategoriesFooter> 
    91                               </tpl:CategoryFirstChildren> 
    92                          </div> 
     75          <tpl:CategoryFirstChildren> 
     76               <tpl:CategoriesHeader> 
     77                    <div id="subcategories" class="content-info__sub-cat"> 
     78                         <h3>{{tpl:lang Subcategories}}</h3> 
     79                         <ul> 
     80               </tpl:CategoriesHeader> 
     81                              <li class="post-cat"><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a></li> 
     82               <tpl:CategoriesFooter> 
     83                         </ul> 
     84                    </div> 
     85               </tpl:CategoriesFooter> 
     86          </tpl:CategoryFirstChildren> 
     87     </div>    <!-- End #content-info --> 
    9388 
    94                          <div class="content-inner"> 
    95                               <tpl:Entries> 
    96                                    {{tpl:include src="_entry-short.html"}} 
     89     <div class="content-inner"> 
     90          <tpl:Entries> 
     91               {{tpl:include src="_entry-short.html"}} 
    9792 
    98                                    <tpl:EntriesFooter> 
    99                                         {{tpl:include src="_pagination.html"}} 
    100                                    </tpl:EntriesFooter> 
    101                               </tpl:Entries> 
    102                          </div> <!-- End #content-inner --> 
    103                     </div> <!-- End #content --> 
    104                </div> <!-- End #main --> 
    105  
    106                {{tpl:include src="_sidebar.html"}} 
    107  
    108           </div> <!-- End #wrapper --> 
    109  
    110           {{tpl:include src="_footer.html"}} 
    111      </div> <!-- End #page --> 
    112 </body> 
    113 </html> 
     93               <tpl:EntriesFooter> 
     94                    {{tpl:include src="_pagination.html"}} 
     95               </tpl:EntriesFooter> 
     96          </tpl:Entries> 
     97     </div> <!-- End #content-inner --> 
     98</tpl:Block> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map