doc.silverstripe.org/themes/docs/templates/Layout/Page_results.ss
Ingo Schommer aab89e65f8 MINOR Moved project
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@108782 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-08-02 10:06:21 +00:00

46 lines
1.2 KiB
Scheme

<div class="typography">
<% if Results %>
<ul id="search-results">
<% control Results %>
<li>
<% if MenuTitle %>
<h3 class="search-results-header"><a href="$Link">$MenuTitle</a></h3>
<% else %>
<h3><a class="search-results-header" href="$Link">$Title</a></h3>
<% end_if %>
<% if Content %>
$Content.FirstParagraph(html)
<% end_if %>
<a class="read-more-link" 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="page-numbers">
<% if Results.NotLastPage %>
<a class="next" href="$Results.NextLink" title="View the next page">Next</a>
<% end_if %>
<% if Results.NotFirstPage %>
<a class="prev" href="$Results.PrevLink" title="View the previous page">Prev</a>
<% end_if %>
<span>
<% control Results.SummaryPagination(5) %>
<% if CurrentBool %>
$PageNum
<% else %>
<a href="$Link" title="View page number $PageNum">$PageNum</a>
<% end_if %>
<% end_control %>
</span>
</div>
<% end_if %>
</div>