Dotclear

source: inc/public/default-templates/currywurst/search.html @ 2865:79f48d6251b8

Revision 2865:79f48d6251b8, 3.2 KB checked in by franck <carnet.franck.paul@…>, 11 years ago (diff)

Optimize search.html of currywurst, thanks pierrevg for reporting it

RevLine 
[2675]1{{tpl:extends parent="__layout.html"}}
2
[2779]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>
[2675]6
[2865]7<tpl:Block name="meta-robots">
[2600]8     <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" />
[2675]9</tpl:Block>
[2600]10
[2865]11<tpl:Block name="dc-entry">
[2602]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>" />
[2865]13     <meta property="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogDescription encode_html="1"}}" />
[2602]14     <meta property="dc.language" content="{{tpl:BlogLanguage}}" />
15     <meta property="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
[2865]16</tpl:Block>   <!-- dc-title-head -->
[2600]17
[2675]18<tpl:Block name="head-linkrel">
[2600]19     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
20     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
21     <tpl:Entries no_content="1">
22          <tpl:EntriesHeader>
23               <tpl:Pagination>
24                    <tpl:PaginationIf end="0">
25                         <link rel="prev" title="{{tpl:lang previous entries}}" href="{{tpl:PaginationURL offset="1"}}" />
26                    </tpl:PaginationIf>
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>
[2675]34     <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" />
35</tpl:Block>
[2600]36
[2781]37<tpl:Block name="body-tag"><body class="dc-search"></tpl:Block>
[2600]38
[2675]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>
[2600]52
[2675]53     <div class="content-inner">
54          <tpl:Entries type="post,page">
[2600]55
[2675]56               {{tpl:include src="_entry-short.html"}}
[2600]57
[2675]58               <tpl:EntriesFooter>
59                    <tpl:Pagination>
60                         <p class="pagination">
61                              <tpl:PaginationIf end="0">
62                                   <a href="{{tpl:PaginationURL offset="+1"}}" class="prev">&#171; {{tpl:lang previous entries}}</a> -
63                              </tpl:PaginationIf>
64                               {{tpl:lang page}} {{tpl:PaginationCurrent}} {{tpl:lang of}} {{tpl:PaginationCounter}}
65                              <tpl:PaginationIf start="0">
66                                    - <a href="{{tpl:PaginationURL offset="-1"}}" class="next">{{tpl:lang next entries}} &#187;</a>
67                              </tpl:PaginationIf>
68                         </p>
69                    </tpl:Pagination>
70               </tpl:EntriesFooter>
71          </tpl:Entries>
72     </div> <!-- End #content-inner -->
73</tpl:Block>
Note: See TracBrowser for help on using the repository browser.

Sites map