mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
27 lines
722 B
Scheme
27 lines
722 B
Scheme
|
<% 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 %>
|
||
|
|
||
|
<span>
|
||
|
<% control BlogEntries.PaginationSummary(4) %>
|
||
|
<% if CurrentBool %>
|
||
|
<span class="current">$PageNum</span>
|
||
|
<% else %>
|
||
|
<% if Link %>
|
||
|
<a href="$Link" title="View page number $PageNum">$PageNum</a>
|
||
|
<% else %>
|
||
|
…
|
||
|
<% end_if %>
|
||
|
<% end_if %>
|
||
|
<% end_control %>
|
||
|
</span>
|
||
|
|
||
|
<% if BlogEntries.NotLastPage %>
|
||
|
<a class="next" href="$BlogEntries.NextLink" title="View the next page">Next</a>
|
||
|
<% end_if %>
|
||
|
</p>
|
||
|
</div>
|
||
|
<% end_if %>
|