forked from jnanamurti/developer-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paging.tpl
33 lines (25 loc) · 1.31 KB
/
paging.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{if $aPaging and $aPaging.iCountPage>1}
<div class="pagination">
<ul>
{if $aPaging.iPrevPage}
<li class="prev"><a href="{$aPaging.sBaseUrl}/page{$aPaging.iPrevPage}/{$aPaging.sGetParams}" class="js-paging-prev-page" title="{$aLang.paging_previos}">←</a></li>
{else}
<li class="prev"><span>←</span></li>
{/if}
{if $aPaging.iCurrentPage>1}<li><a href="{$aPaging.sBaseUrl}/{$aPaging.sGetParams}" title="{$aLang.paging_first}">...</a></li>{/if}
{foreach from=$aPaging.aPagesLeft item=iPage}
<li><a href="{$aPaging.sBaseUrl}/page{$iPage}/{$aPaging.sGetParams}">{$iPage}</a></li>
{/foreach}
<li class="active"><span>{$aPaging.iCurrentPage}</span></li>
{foreach from=$aPaging.aPagesRight item=iPage}
<li><a href="{$aPaging.sBaseUrl}/page{$iPage}/{$aPaging.sGetParams}">{$iPage}</a></li>
{/foreach}
{if $aPaging.iCurrentPage<$aPaging.iCountPage}<li><a href="{$aPaging.sBaseUrl}/page{$aPaging.iCountPage}/{$aPaging.sGetParams}" title="{$aLang.paging_last}">...</a></li>{/if}
{if $aPaging.iNextPage}
<li class="next"><a href="{$aPaging.sBaseUrl}/page{$aPaging.iNextPage}/{$aPaging.sGetParams}" class="js-paging-next-page" title="{$aLang.paging_next}">→</a></li>
{else}
<li class="next"><span>→</span></li>
{/if}
</ul>
</div>
{/if}