silverstripe-blog/templates/Includes/BlogPagination.ss

27 lines
722 B
Scheme
Raw Normal View History

2007-09-07 00:33:58 +02:00
<% if BlogEntries.MoreThanOnePage %>
<div id="PageNumbers">
<p>
<% if BlogEntries.NotFirstPage %>
<a class="prev" href="$BlogEntries.PrevLink" title="View the previous page">Prev</a>
<% end_if %>
2007-09-07 00:33:58 +02:00
<span>
2008-12-08 10:26:40 +01:00
<% control BlogEntries.PaginationSummary(4) %>
<% if CurrentBool %>
<span class="current">$PageNum</span>
<% else %>
<% if Link %>
2008-12-08 10:26:40 +01:00
<a href="$Link" title="View page number $PageNum">$PageNum</a>
<% else %>
&hellip;
2008-12-08 10:26:40 +01:00
<% end_if %>
<% end_if %>
<% end_control %>
</span>
2007-09-07 00:33:58 +02:00
<% if BlogEntries.NotLastPage %>
<a class="next" href="$BlogEntries.NextLink" title="View the next page">Next</a>
<% end_if %>
</p>
2007-09-07 00:33:58 +02:00
</div>
<% end_if %>