silverstripe-simple/templates/Layout/Page_results.ss
Paul Clarke 275f5ba33d ENHANCEMENT basic updates to enhance usability and appearance of theme
Minor clean-up of consistency for tablet main menu styles
Added multilevel subnavigation in sidebar for internal pages
Updated search styling and positioning
Changed header color and link color to provide more consistency for the
theme
Footer links to red on hover and site name to link to homepage
Search results page styling updated
2012-10-08 17:02:34 +13:00

54 lines
1.8 KiB
Scheme

<div id="Content" class="searchResults">
<h1>$Title</h1>
<% if Query %>
<p class="searchQuery">You searched for &quot;{$Query}&quot;</p>
<% end_if %>
<% if Results %>
<ul id="SearchResults">
<% control Results %>
<li>
<h4>
<a href="$Link">
<% if MenuTitle %>
$MenuTitle
<% else %>
$Title
<% end_if %>
</a>
</h4>
<% if Content %>
<p>$Content.LimitWordCountXML</p>
<% end_if %>
<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>