silverstripe-simple/templates/Layout/Page_results.ss
Naomi Guyer df15cd8920 BUG: Simple has base typography defined in layout ( trac #7803)
Moved some style declarations from layout to typography so that the cms
would pick them up.
Moved typography tag to the page.ss before layout is included
Changed typography elements to be wrapped in .typography, rather than a
layout tag within the Layout page templates. This will mean that a
bunch of modules have access to the correct type styling
2012-09-04 12:19:44 +12:00

50 lines
1.7 KiB
Scheme

<div id="Content" class="searchResults">
<h1>$Title</h1>
<% if Query %>
<p class="searchQuery"><strong>You searched for &quot;{$Query}&quot;</strong></p>
<% end_if %>
<% if Results %>
<ul id="SearchResults">
<% control Results %>
<li>
<a class="searchResultHeader" href="$Link">
<% if MenuTitle %>
$MenuTitle
<% else %>
$Title
<% end_if %>
</a>
<p>$Content.LimitWordCountXML</p>
<a class="readMoreLink" href="$Link" title="Read more about &quot;{$Title}&quot;">Read more about &quot;{$Title}&quot;...</a>
</li>
<% end_control %>
</ul>
<% else %>
<p>Sorry, your search query did not return any results.</p>
<% end_if %>
<% if Results.MoreThanOnePage %>
<div id="PageNumbers">
<div class="pagination">
<% if Results.NotFirstPage %>
<a class="prev" href="$Results.PrevLink" title="View the previous page">&larr;</a>
<% end_if %>
<span>
<% control Results.Pages %>
<% if CurrentBool %>
$PageNum
<% else %>
<a href="$Link" title="View page number $PageNum" class="go-to-page">$PageNum</a>
<% end_if %>
<% end_control %>
</span>
<% if Results.NotLastPage %>
<a class="next" href="$Results.NextLink" title="View the next page">&rarr;</a>
<% end_if %>
</div>
<p>Page $Results.CurrentPage of $Results.TotalPages</p>
</div>
<% end_if %>
</div>