Dotclear


Ignore:
Timestamp:
02/25/14 13:30:43 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Applying inheritance/extension template mechanism on currywurst templateset, step 1, addresses #1933

File:
1 edited

Legend:

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

    r2603 r2675  
    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">{{tpl:lang Search}} - {{tpl:SysSearchString encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></tpl:Block> 
     4 
     5<tpl:Block name="head-meta"> 
    56     <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" /> 
    6  
    7      <title>{{tpl:lang Search}} - {{tpl:SysSearchString encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title> 
    87     <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    98     <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    109     <meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     10</tpl:Block> 
    1111 
     12<tpl:Block name="head-dc"> 
    1213     <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> 
    1314     <meta property="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Search}} - {{tpl:SysSearchString encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" /> 
     
    1819     <meta property="dc.type" content="text" /> 
    1920     <meta property="dc.format" content="text/html" /> 
     21</tpl:Block> 
    2022 
     23<tpl:Block name="head-linkrel"> 
    2124     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    2225     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
    23  
    2426     <tpl:Entries no_content="1"> 
    2527          <tpl:EntriesHeader> 
     
    2830                         <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" /> 
    2931                    </tpl:PaginationIf> 
    30  
    3132                    <tpl:PaginationIf start="0"> 
    3233                         <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" /> 
     
    3435               </tpl:Pagination> 
    3536          </tpl:EntriesHeader> 
    36  
    3737          <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" /> 
    3838     </tpl:Entries> 
     39     <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     40</tpl:Block> 
    3941 
    40      <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     42<tpl:Block name="body-attr">class="dc-search"</tpl:Block> 
    4143 
    42      {{tpl:include src="_head.html"}} 
    43 </head> 
    44 <body class="dc-search"> 
    45      <div id="page"> 
    46           {{tpl:include src="_top.html"}} 
     44<tpl:Block name="main-content"> 
     45     <div id="content-info"> 
     46          <h2>{{tpl:lang Search}}</h2> 
     47          <tpl:SysIf search_count="==0"> 
     48               <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned no result."}}</p> 
     49          </tpl:SysIf> 
     50          <tpl:SysIf search_count="==1"> 
     51               <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> result."}}</p> 
     52          </tpl:SysIf> 
     53          <tpl:SysIf search_count="&gt;1"> 
     54               <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> results."}}</p> 
     55          </tpl:SysIf> 
     56     </div> 
    4757 
    48           <div id="wrapper"> 
     58     <div class="content-inner"> 
     59          <tpl:Entries type="post,page"> 
    4960 
    50                <div id="main" role="main"> 
    51                     <div id="content"> 
     61               {{tpl:include src="_entry-short.html"}} 
    5262 
    53                          <div id="content-info"> 
    54                               <h2>{{tpl:lang Search}}</h2> 
    55                               <tpl:SysIf search_count="==0"> 
    56                                    <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned no result."}}</p> 
    57                               </tpl:SysIf> 
    58                               <tpl:SysIf search_count="==1"> 
    59                                    <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> result."}}</p> 
    60                               </tpl:SysIf> 
    61                               <tpl:SysIf search_count="&gt;1"> 
    62                                    <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> results."}}</p> 
    63                               </tpl:SysIf> 
    64                          </div> 
    65  
    66                          <div class="content-inner"> 
    67                               <tpl:Entries type="post,page"> 
    68  
    69                                    {{tpl:include src="_entry-short.html"}} 
    70  
    71                                    <tpl:EntriesFooter> 
    72                                         <tpl:Pagination> 
    73                                              <p class="pagination"> 
    74                                                   <tpl:PaginationIf end="0"> 
    75                                                        <a href="{{tpl:PaginationURL offset="+1"}}" class="prev">&#171; {{tpl:lang previous entries}}</a> - 
    76                                                   </tpl:PaginationIf> 
    77                                                    {{tpl:lang page}} {{tpl:PaginationCurrent}} {{tpl:lang of}} {{tpl:PaginationCounter}} 
    78                                                   <tpl:PaginationIf start="0"> 
    79                                                         - <a href="{{tpl:PaginationURL offset="-1"}}" class="next">{{tpl:lang next entries}} &#187;</a> 
    80                                                   </tpl:PaginationIf> 
    81                                              </p> 
    82                                         </tpl:Pagination> 
    83                                    </tpl:EntriesFooter> 
    84                               </tpl:Entries> 
    85                          </div> <!-- End #content-inner --> 
    86                     </div> <!-- End #content --> 
    87                </div> <!-- End #main --> 
    88  
    89                {{tpl:include src="_sidebar.html"}} 
    90  
    91           </div> <!-- End #wrapper --> 
    92  
    93           {{tpl:include src="_footer.html"}} 
    94      </div> <!-- End #page --> 
    95 </body> 
    96 </html> 
     63               <tpl:EntriesFooter> 
     64                    <tpl:Pagination> 
     65                         <p class="pagination"> 
     66                              <tpl:PaginationIf end="0"> 
     67                                   <a href="{{tpl:PaginationURL offset="+1"}}" class="prev">&#171; {{tpl:lang previous entries}}</a> - 
     68                              </tpl:PaginationIf> 
     69                               {{tpl:lang page}} {{tpl:PaginationCurrent}} {{tpl:lang of}} {{tpl:PaginationCounter}} 
     70                              <tpl:PaginationIf start="0"> 
     71                                    - <a href="{{tpl:PaginationURL offset="-1"}}" class="next">{{tpl:lang next entries}} &#187;</a> 
     72                              </tpl:PaginationIf> 
     73                         </p> 
     74                    </tpl:Pagination> 
     75               </tpl:EntriesFooter> 
     76          </tpl:Entries> 
     77     </div> <!-- End #content-inner --> 
     78</tpl:Block> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map