mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
43 lines
1.2 KiB
Scheme
43 lines
1.2 KiB
Scheme
|
<p>Your search for <strong>"$SearchQuery.XML"</strong> found $TotalResults result<% if TotalResults != 1 %>s<% end_if %>.</p>
|
||
|
|
||
|
<% if AdvancedSearchEnabled %>
|
||
|
<h4><% _t('ADVANCEDSEARCH', 'Advanced Search') %></h4>
|
||
|
$AdvancedSearchForm
|
||
|
<% end_if %>
|
||
|
|
||
|
<% if Results %>
|
||
|
<p>Showing page $ThisPage of $TotalPages</p>
|
||
|
|
||
|
<% loop Results %>
|
||
|
<h2><a href="$Link"><% if BreadcrumbTitle %>$BreadcrumbTitle<% else %>$Title<% end_if %></a></h2>
|
||
|
<p>$Content.LimitCharacters(200)</p>
|
||
|
<% end_loop %>
|
||
|
|
||
|
<% if SearchPages %>
|
||
|
<ul class="pagination">
|
||
|
<% if PrevUrl = false %><% else %>
|
||
|
<li class="prev"><a href="$PrevUrl">Prev</a></li>
|
||
|
<% end_if %>
|
||
|
|
||
|
<% loop SearchPages %>
|
||
|
<% if IsEllipsis %>
|
||
|
<li class="ellipsis">...</li>
|
||
|
<% else %>
|
||
|
<% if Current %>
|
||
|
<li class="active"><strong>$PageNumber</strong></li>
|
||
|
<% else %>
|
||
|
<li><a href="$Link">$PageNumber</a></li>
|
||
|
<% end_if %>
|
||
|
<% end_if %>
|
||
|
<% end_loop %>
|
||
|
|
||
|
<% if NextUrl = false %>
|
||
|
<% else %>
|
||
|
<li class="next"><a href="$NextUrl">Next</a></li>
|
||
|
<% end_if %>
|
||
|
</ul>
|
||
|
<% end_if %>
|
||
|
|
||
|
<% else %>
|
||
|
<p>No Results</p>
|
||
|
<% end_if %>
|