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/search.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,NOARCHIVE"}}" /> 
     1{{tpl:extends parent="__layout.html"}} 
    62 
    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> 
    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 Search}} - {{tpl:SysSearchString encode_html="1"}} - {{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 Search}} - {{tpl:SysSearchString encode_html="1"}} - {{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-robots"> 
     8     <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" /> 
     9</tpl:Block> 
    2010 
    21   <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    22   <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
     11<tpl:Block name="dc-entry"> 
     12     <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>" /> 
     13     <meta property="dc.language" content="{{tpl:BlogLanguage}}" /> 
     14     <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 
     15</tpl:Block> 
    2316 
    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> 
     17<tpl:Block name="head-linkrel"> 
     18     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
     19     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
     20     <tpl:Entries no_content="1"> 
     21          <tpl:EntriesHeader> 
     22               <tpl:Pagination> 
     23                    <tpl:PaginationIf end="0"> 
     24                         <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" /> 
     25                    </tpl:PaginationIf> 
    3026 
    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> 
     27                    <tpl:PaginationIf start="0"> 
     28                         <link rel="next" title="{{tpl:lang next entries}}" href="{{tpl:PaginationURL offset="-1"}}" /> 
     29                    </tpl:PaginationIf> 
     30               </tpl:Pagination> 
     31          </tpl:EntriesHeader> 
     32          <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" /> 
     33     </tpl:Entries> 
     34     <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     35</tpl:Block> 
    3636 
    37     <link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" /> 
    38   </tpl:Entries> 
     37<tpl:Block name="body-tag"><body class="dc-search"></tpl:Block> 
    3938 
    40   <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     39<tpl:Block name="main-content"> 
     40     <div id="content-info"> 
     41          <h2>{{tpl:lang Search}}</h2> 
     42          <tpl:SysIf search_count="==0"> 
     43               <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned no result."}}</p> 
     44          </tpl:SysIf> 
     45          <tpl:SysIf search_count="==1"> 
     46               <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> result."}}</p> 
     47          </tpl:SysIf> 
     48          <tpl:SysIf search_count="&gt;1"> 
     49               <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> results."}}</p> 
     50          </tpl:SysIf> 
     51     </div> 
    4152 
    42   {{tpl:include src="_head.html"}} 
    43 </head> 
     53     <tpl:Entries> 
     54          <div id="p{{tpl:EntryID}}" class="post {{tpl:EntryIfOdd}} {{tpl:EntryIfFirst}}" lang="{{tpl:EntryLang}}" role="article"> 
     55               <!-- # New day date --> 
     56               <tpl:DateHeader><p class="day-date">{{tpl:EntryDate}}</p></tpl:DateHeader> 
    4457 
    45 <body class="dc-search"> 
    46 <div id="page"> 
    47 {{tpl:include src="_top.html"}} 
     58               <h2 class="post-title"><a 
     59               href="{{tpl:EntryURL}}">{{tpl:EntryTitle encode_html="1"}}</a></h2> 
    4860 
    49 <div id="wrapper"> 
     61               <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}} 
     62               {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}} 
     63               <tpl:EntryIf has_category="1"> 
     64               - <a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a> 
     65               </tpl:EntryIf> 
     66               </p> 
    5067 
    51 <div id="main" role="main"> 
    52   {{tpl:Breadcrumb}} 
    53   <div id="content"> 
     68               <tpl:EntryTags> 
     69                    <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader> 
     70                    <li><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li> 
     71                    <tpl:TagsFooter></ul></tpl:TagsFooter> 
     72               </tpl:EntryTags> 
    5473 
    55   <div id="content-info"> 
    56     <h2>{{tpl:lang Search}}</h2> 
    57     <tpl:SysIf search_count="==0"> 
    58       <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned no result."}}</p> 
    59     </tpl:SysIf> 
    60     <tpl:SysIf search_count="==1"> 
    61       <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> result."}}</p> 
    62     </tpl:SysIf> 
    63     <tpl:SysIf search_count="&gt;1"> 
    64       <p>{{tpl:SysSearchString encode_html="1" string="Your search for <em>%1$s</em> returned <strong>%2$s</strong> results."}}</p> 
    65     </tpl:SysIf> 
    66   </div> 
     74               <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
     75               {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
    6776 
    68   <tpl:Entries> 
    69     <div id="p{{tpl:EntryID}}" class="post {{tpl:EntryIfOdd}} {{tpl:EntryIfFirst}}" lang="{{tpl:EntryLang}}" role="article"> 
    70     <!-- # New day date --> 
    71     <tpl:DateHeader><p class="day-date">{{tpl:EntryDate}}</p></tpl:DateHeader> 
     77               <!-- # Entry with an excerpt --> 
     78               <tpl:EntryIf extended="1"> 
     79                    <div class="post-content">{{tpl:EntryExcerpt}}</div> 
     80                    <p class="read-it"><a href="{{tpl:EntryURL}}" 
     81                    title="{{tpl:lang Continue reading}} {{tpl:EntryTitle encode_html="1"}}">{{tpl:lang Continue 
     82                    reading}}</a><span class="readmore-ellipsis">...</span></p> 
     83               </tpl:EntryIf> 
    7284 
    73     <h2 class="post-title"><a 
    74     href="{{tpl:EntryURL}}">{{tpl:EntryTitle encode_html="1"}}</a></h2> 
     85               <!-- # Entry without excerpt --> 
     86               <tpl:EntryIf extended="0"> 
     87                    <div class="post-content">{{tpl:EntryContent}}</div> 
     88               </tpl:EntryIf> 
    7589 
    76     <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}} 
    77     {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}} 
    78     <tpl:EntryIf has_category="1"> 
    79     - <a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a> 
    80     </tpl:EntryIf> 
    81     </p> 
     90               <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
     91               {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
    8292 
    83     <tpl:EntryTags> 
    84     <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader> 
    85     <li><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li> 
    86     <tpl:TagsFooter></ul></tpl:TagsFooter> 
    87     </tpl:EntryTags> 
     93               <!-- # Number of comments, trackbacks and attachments --> 
     94               <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1"> 
     95                    <p class="post-info-co"> 
     96               </tpl:EntryIf> 
     97               <tpl:EntryIf show_comments="1"> 
     98                    <a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a> 
     99               </tpl:EntryIf> 
     100               <tpl:EntryIf show_pings="1"> 
     101                    <a href="{{tpl:EntryURL}}#pings" class="ping_count">{{tpl:EntryPingCount}}</a></tpl:EntryIf> 
     102               <tpl:EntryIf has_attachment="1"> 
     103                    <a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a></tpl:EntryIf> 
     104               <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1"> 
     105                    </p> 
     106               </tpl:EntryIf> 
     107          </div> 
    88108 
    89     <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
    90     {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
    91  
    92     <!-- # Entry with an excerpt --> 
    93     <tpl:EntryIf extended="1"> 
    94       <div class="post-content">{{tpl:EntryExcerpt}}</div> 
    95       <p class="read-it"><a href="{{tpl:EntryURL}}" 
    96       title="{{tpl:lang Continue reading}} {{tpl:EntryTitle encode_html="1"}}">{{tpl:lang Continue 
    97       reading}}</a><span class="readmore-ellipsis">...</span></p> 
    98     </tpl:EntryIf> 
    99  
    100     <!-- # Entry without excerpt --> 
    101     <tpl:EntryIf extended="0"> 
    102       <div class="post-content">{{tpl:EntryContent}}</div> 
    103     </tpl:EntryIf> 
    104  
    105     <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
    106     {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
    107  
    108     <!-- # Number of comments, trackbacks and attachments --> 
    109     <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1"> 
    110       <p class="post-info-co"> 
    111     </tpl:EntryIf> 
    112     <tpl:EntryIf show_comments="1"> 
    113       <a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a> 
    114     </tpl:EntryIf> 
    115     <tpl:EntryIf show_pings="1"> 
    116       <a href="{{tpl:EntryURL}}#pings" class="ping_count">{{tpl:EntryPingCount}}</a></tpl:EntryIf> 
    117     <tpl:EntryIf has_attachment="1"> 
    118       <a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a></tpl:EntryIf> 
    119     <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1"> 
    120       </p> 
    121     </tpl:EntryIf> 
    122     </div> 
    123  
    124     <tpl:EntriesFooter> 
    125       <tpl:Pagination> 
    126         <p class="pagination"><tpl:PaginationIf end="0"><a href="{{tpl:PaginationURL offset="+1"}}" class="prev">&#171; 
    127         {{tpl:lang previous entries}}</a> - </tpl:PaginationIf> 
    128         {{tpl:lang page}} {{tpl:PaginationCurrent}} {{tpl:lang of}} {{tpl:PaginationCounter}} 
    129         <tpl:PaginationIf start="0"> - <a href="{{tpl:PaginationURL offset="-1"}}" class="next">{{tpl:lang next entries}} 
    130         &#187;</a></tpl:PaginationIf></p> 
    131       </tpl:Pagination> 
    132     </tpl:EntriesFooter> 
    133   </tpl:Entries> 
    134   </div> 
    135 </div> <!-- End #main --> 
    136  
    137 <div id="sidebar" role="complementary"> 
    138   <div id="blognav"> 
    139     {{tpl:Widgets type="nav"}} 
    140   </div> <!-- End #blognav --> 
    141  
    142   <div id="blogextra"> 
    143     {{tpl:Widgets type="extra"}} 
    144   </div> <!-- End #blogextra --> 
    145 </div> 
    146  
    147 </div> <!-- End #wrapper --> 
    148  
    149 {{tpl:include src="_footer.html"}} 
    150 </div> <!-- End #page --> 
    151 </body> 
    152 </html> 
     109          <tpl:EntriesFooter> 
     110               <tpl:Pagination> 
     111                    <p class="pagination"><tpl:PaginationIf end="0"><a href="{{tpl:PaginationURL offset="+1"}}" class="prev">&#171; 
     112                    {{tpl:lang previous entries}}</a> - </tpl:PaginationIf> 
     113                    {{tpl:lang page}} {{tpl:PaginationCurrent}} {{tpl:lang of}} {{tpl:PaginationCounter}} 
     114                    <tpl:PaginationIf start="0"> - <a href="{{tpl:PaginationURL offset="-1"}}" class="next">{{tpl:lang next entries}} 
     115                    &#187;</a></tpl:PaginationIf></p> 
     116               </tpl:Pagination> 
     117          </tpl:EntriesFooter> 
     118     </tpl:Entries> 
     119</tpl:Block> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map