Dotclear


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

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

Location:
plugins/tags/default-templates/currywurst
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/tags/default-templates/currywurst/tag.html

    r2603 r2704  
    1 <!DOCTYPE html> 
    2 <html lang="{{tpl:BlogLanguage}}"> 
    3 <head> 
    4   <meta charset="UTF-8" /> 
    5   <meta name="ROBOTS" content="{{tpl:BlogMetaRobots}}" /> 
     1{{tpl:extends parent="__layout.html"}} 
    62 
    7   <title>{{tpl:lang Tag}} - {{tpl:TagID}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title> 
    8   <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    9   <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    10   <meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     3<tpl:Block name="head-title"> 
     4     <title>{{tpl:lang Tag}} - {{tpl:TagID}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title> 
     5</tpl:Block> 
    116 
    12   <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> 
    13   <meta property="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Tag}} - {{tpl:TagID}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" /> 
    14   <meta property="dc.language" content="{{tpl:BlogLanguage}}" /> 
    15   <meta property="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    16   <meta property="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    17   <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
    18   <meta property="dc.type" content="text" /> 
    19   <meta property="dc.format" content="text/html" /> 
     7<tpl:Block name="meta-entry"> 
     8     <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> 
     9     <meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     10</tpl:Block> 
    2011 
    21   <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    22   <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
     12<tpl:Block name="dc-entry"> 
     13     <meta property="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Tag}} - {{tpl:TagID}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" /> 
     14     <meta property="dc.language" content="{{tpl:BlogLanguage}}" /> 
     15     <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     16</tpl:Block> 
    2317 
    24   <tpl:Entries no_content="1"> 
    25     <tpl:EntriesHeader> 
    26       <tpl:Pagination> 
    27         <tpl:PaginationIf end="0"> 
    28           <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" /> 
    29         </tpl:PaginationIf> 
     18<tpl:Block name="head-linkrel"> 
     19     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
     20     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
    3021 
    31         <tpl:PaginationIf start="0"> 
    32           <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" /> 
    33         </tpl:PaginationIf> 
    34       </tpl:Pagination> 
    35     </tpl:EntriesHeader> 
     22     <tpl:Entries no_content="1"> 
     23          <tpl:EntriesHeader> 
     24               <tpl:Pagination> 
     25                    <tpl:PaginationIf end="0"> 
     26                         <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" /> 
     27                    </tpl:PaginationIf> 
    3628 
    37     <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" /> 
    38   </tpl:Entries> 
     29                    <tpl:PaginationIf start="0"> 
     30                         <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" /> 
     31                    </tpl:PaginationIf> 
     32               </tpl:Pagination> 
     33          </tpl:EntriesHeader> 
    3934 
    40   <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:TagFeedURL type="atom"}}" /> 
    41   <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     35          <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" /> 
     36     </tpl:Entries> 
    4237 
    43   {{tpl:include src="_head.html"}} 
    44 </head> 
    45 <body class="dc-tag"> 
    46   <div id="page"> 
    47     {{tpl:include src="_top.html"}} 
     38     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:TagFeedURL type="atom"}}" /> 
     39     <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     40</tpl:Block> 
    4841 
    49     <div id="wrapper"> 
     42<tpl:block name="body-tag"><body class="dc-tag"></tpl:Block> 
    5043 
    51       <div id="main" role="main"> 
    52         <div id="content"> 
     44<tpl:Block name="main-content"> 
     45     <div id="content-info"> 
     46          <h2>{{tpl:lang Tag}} - {{tpl:TagID}}</h2> 
     47          <p><a type="application/atom+xml" href="{{tpl:TagFeedURL type="atom"}}" 
     48               title="{{tpl:lang This tag's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a> 
     49               <tpl:SysIf operator="or" comments_active="1" pings_active="1"> 
     50                     - <a type="application/atom+xml" href="{{tpl:TagFeedURL type="atom"}}/comments" 
     51                    title="{{tpl:lang This tag's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a> 
     52               </tpl:SysIf> 
     53          </p> 
     54     </div> 
    5355 
    54           <div id="content-info"> 
    55             <h2>{{tpl:lang Tag}} - {{tpl:TagID}}</h2> 
    56             <p><a type="application/atom+xml" href="{{tpl:TagFeedURL type="atom"}}" 
    57               title="{{tpl:lang This tag's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a> 
    58               <tpl:SysIf operator="or" comments_active="1" pings_active="1"> 
    59                  - <a type="application/atom+xml" href="{{tpl:TagFeedURL type="atom"}}/comments" 
    60                 title="{{tpl:lang This tag's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a> 
    61               </tpl:SysIf> 
    62             </p> 
    63           </div> 
     56     <div class"content-inner"> 
     57          <tpl:Entries> 
     58               {{tpl:include src="_entry-short.html"}} 
    6459 
    65           <div class"content-inner"> 
    66             <tpl:Entries> 
    67               {{tpl:include src="_entry-short.html"}} 
     60               <tpl:EntriesFooter> 
     61                    {{tpl:include src="_pagination.html"}} 
     62               </tpl:EntriesFooter> 
    6863 
    69               <tpl:EntriesFooter> 
    70                 {{tpl:include src="_pagination.html"}} 
    71               </tpl:EntriesFooter> 
    72  
    73             </tpl:Entries> 
    74           </div> <!-- End #content-inner --> 
    75         </div> <!-- End #content --> 
    76       </div> <!-- End #main --> 
    77  
    78       {{tpl:include src="_sidebar.html"}} 
    79  
    80     </div> <!-- End #wrapper --> 
    81  
    82     {{tpl:include src="_footer.html"}} 
    83   </div> <!-- End #page --> 
    84 </body> 
    85 </html> 
     64          </tpl:Entries> 
     65     </div> <!-- End #content-inner --> 
     66</tpl:Block> 
  • plugins/tags/default-templates/currywurst/tags.html

    r2603 r2704  
    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:lang Tags}} - {{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   <meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     3<tpl:Block name="head-title"> 
     4     <title>{{tpl:lang Tags}} - {{tpl:BlogName encode_html="1"}}</title> 
     5</tpl:Block> 
    116 
    12   <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> 
    13   <meta property="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Tags}} - {{tpl:BlogName encode_html="1"}}" /> 
    14   <meta property="dc.language" content="{{tpl:BlogLanguage}}" /> 
    15   <meta property="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    16   <meta property="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    17   <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
    18   <meta property="dc.type" content="text" /> 
    19   <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> 
    2010 
     11<tpl:Block name="dc-entry"> 
     12     <meta property="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Tags}} - {{tpl:BlogName encode_html="1"}}" /> 
     13     <meta property="dc.language" content="{{tpl:BlogLanguage}}" /> 
     14     <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     15</tpl:Block> 
     16 
     17<tpl:Block name="head-linkrel"> 
    2118  <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    2219  <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
     20  <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     21</tpl:Block> 
    2322 
    24   <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     23<tpl:block name="body-tag"><body class="dc-tags"></tpl:Block> 
    2524 
    26   {{tpl:include src="_head.html"}} 
    27 </head> 
    28 <body class="dc-tags"> 
    29   <div id="page"> 
    30     {{tpl:include src="_top.html"}} 
     25<tpl:Block name="main-content"> 
     26  <div id="content-info"> 
     27     <h2>{{tpl:lang Tags}}</h2> 
     28  </div> 
    3129 
    32     <div id="wrapper"> 
    33  
    34       <div id="main" role="main"> 
    35         <div id="content"> 
    36  
    37           <div id="content-info"> 
    38             <h2>{{tpl:lang Tags}}</h2> 
    39           </div> 
    40  
    41           <div class="content-inner"> 
    42             <ul class="tags"> 
    43               <tpl:Tags> 
    44                 <li><a href="{{tpl:TagURL}}" class="tag{{tpl:TagRoundPercent}}">{{tpl:TagID}}</a></li> 
    45               </tpl:Tags> 
    46             </ul> 
    47           </div> 
    48  
    49         </div> 
    50       </div> <!-- End #main --> 
    51  
    52       {{tpl:include src="_sidebar.html"}} 
    53  
    54     </div> <!-- End #wrapper --> 
    55  
    56     {{tpl:include src="_footer.html"}} 
    57   </div> <!-- End #page --> 
    58 </body> 
    59 </html> 
     30  <div class="content-inner"> 
     31     <ul class="tags"> 
     32       <tpl:Tags> 
     33          <li><a href="{{tpl:TagURL}}" class="tag{{tpl:TagRoundPercent}}">{{tpl:TagID}}</a></li> 
     34       </tpl:Tags> 
     35     </ul> 
     36  </div> 
     37</tpl:Block> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map