mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
d33e209ee5
Updated template elements for 3.0. Made html follow proper heading hierarchy Optimized generated html so it can be more easily styled.
41 lines
1.1 KiB
Scheme
41 lines
1.1 KiB
Scheme
<% if BlogEntries.MoreThanOnePage %>
|
|
<div class="pagination">
|
|
<ul class="PageNumbers">
|
|
<% if BlogEntries.NotFirstPage %>
|
|
<li class="prev">
|
|
<a class="paginate-left" href="$BlogEntries.PrevLink" title="View the previous page"><</a>
|
|
</li>
|
|
<% else %>
|
|
<li class="prev disabled">
|
|
<a class="paginate-left disabled"><</a>
|
|
</li>
|
|
<% end_if %>
|
|
|
|
<% loop BlogEntries.PaginationSummary(4) %>
|
|
<% if CurrentBool %>
|
|
<li class="active"><a class="disabled">$PageNum</a></li>
|
|
<% else %>
|
|
<% if Link %>
|
|
<li>
|
|
<a class="<% if BeforeCurrent %>paginate-left<% else %>paginate-right<% end_if %>" href="$Link">
|
|
$PageNum
|
|
</a>
|
|
</li>
|
|
<% else %>
|
|
<li class="disabled"><a class="disabled">…</a></li>
|
|
<% end_if %>
|
|
<% end_if %>
|
|
<% end_loop %>
|
|
|
|
<% if BlogEntries.NotLastPage %>
|
|
<li class="next">
|
|
<a class="next paginate-right" href="$BlogEntries.NextLink" title="View the next page">></a>
|
|
</li>
|
|
<% else %>
|
|
<li class="next disabled">
|
|
<a class="next paginate-right disabled">></a>
|
|
</li>
|
|
<% end_if %>
|
|
</ul>
|
|
</div>
|
|
<% end_if %> |