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

Location:
inc/public/default-templates/currywurst
Files:
2 edited

Legend:

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

    r2603 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:lang Document not found}} - {{tpl:BlogName encode_html="1"}}</title> 
     5</tpl:Block> 
     6 
     7<tpl:Block name="meta-robots"> 
    58     <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" /> 
     9</tpl:Block> 
    610 
    7      <title>{{tpl:lang Document not found}} - {{tpl:BlogName encode_html="1"}}</title> 
    8      <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    9      <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    10  
    11      <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> 
     11<tpl:Block name="dc-entry"> 
    1212     <meta property="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Document not found}} - {{tpl:BlogName encode_html="1"}}" /> 
    1313     <meta property="dc.language" content="{{tpl:BlogLanguage}}" /> 
    14      <meta property="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    15      <meta property="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    16      <meta property="dc.type" content="text" /> 
    17      <meta property="dc.format" content="text/html" /> 
     14</tpl:Block> 
    1815 
     16<tpl:Block name="head-linkrel"> 
    1917     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    2018     <link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" /> 
    2119     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> 
     20</tpl:Block> 
    2221 
    23      {{tpl:include src="_head.html"}} 
    24 </head> 
    25 <body class="dc-404"> 
    26      <div id="page"> 
    27           {{tpl:include src="_top.html"}} 
     22<tpl:block name="body-tag"><body class="dc-404"></tpl:Block> 
    2823 
    29           <div id="wrapper"> 
     24<tpl:Block name="main-content"> 
     25     <div id="content-info"> 
     26          <h2>{{tpl:lang Document not found}}</h2> 
     27          <p>{{tpl:lang URL you've tried has typos, or the page has been deleted or moved.}}</p> 
     28     </div> 
    3029 
    31                <div id="main" role="main"> 
    32                     <div id="content"> 
    33  
    34                          <div id="content-info"> 
    35                               <h2>{{tpl:lang Document not found}}</h2> 
    36                               <p>{{tpl:lang URL you've tried has typos, or the page has been deleted or moved.}}</p> 
    37                          </div> 
    38  
    39                          <div class="content-inner"> 
    40                               <h3>{{tpl:lang Suggestions:}}</h3> 
    41                               <ul> 
    42                                    <li><a href="{{tpl:BlogURL}}">{{tpl:lang Go to homepage}}</a></li> 
    43                                    <li><a href="#search">{{tpl:lang Use search form}}</a></li> 
    44                                    <li><a href="{{tpl:BlogURL}}archive">{{tpl:lang Explore archives}}</a></li> 
    45                               </ul> 
    46                          </div> <!-- End #content-inner --> 
    47  
    48                     </div> <!-- End #content --> 
    49                </div> <!-- End #main --> 
    50  
    51                {{tpl:include src="_sidebar.html"}} 
    52  
    53           </div> <!-- End #wrapper --> 
    54  
    55           {{tpl:include src="_footer.html"}} 
    56      </div> <!-- End #page --> 
    57 </body> 
    58 </html> 
     30     <div class="content-inner"> 
     31          <h3>{{tpl:lang Suggestions:}}</h3> 
     32          <ul> 
     33               <li><a href="{{tpl:BlogURL}}">{{tpl:lang Go to homepage}}</a></li> 
     34               <li><a href="#search">{{tpl:lang Use search form}}</a></li> 
     35               <li><a href="{{tpl:BlogURL}}archive">{{tpl:lang Explore archives}}</a></li> 
     36          </ul> 
     37     </div> <!-- End #content-inner --> 
     38</tpl:Block> 
  • 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