Last active
December 22, 2015 03:08
-
-
Save jedateach/6407878 to your computer and use it in GitHub Desktop.
Reuse your pagination template!!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if $Me.MoreThanOnePage %> | |
<div class="pagination"> | |
<a href="$FirstLink" class="pagination_first">First</a> | |
<% loop $Me.PaginationSummary %> | |
<% if $CurrentBool %> | |
<span class="pagination_num pagination_current">$PageNum</span> | |
<% else %> | |
<% if $Link %> | |
<a class="pagination_num" href="$Link">$PageNum</a> | |
<% else %> | |
... | |
<% end_if %> | |
<% end_if %> | |
<% end_loop %> | |
<a href="$LastLink" class="pagination_last">Last</a> | |
</div> | |
<% end_if %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% with MyDataList %> | |
<% include Pagination %> | |
<% end_with %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment