-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaging.tpl
36 lines (35 loc) · 1.16 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
34
35
36
{if $aPaging and $aPaging.iCountPage>1}
<div class="pagination">
<p>
←
{if $aPaging.iPrevPage}
<a href="{$aPaging.sBaseUrl}/page{$aPaging.iPrevPage}/{$aPaging.sGetParams}">{$aLang.paging_previos}</a>
{else}
{$aLang.paging_previos}
{/if}
{if $aPaging.iNextPage}
<a href="{$aPaging.sBaseUrl}/page{$aPaging.iNextPage}/{$aPaging.sGetParams}">{$aLang.paging_next}</a>
{else}
{$aLang.paging_next}
{/if}
→
</p>
<ul>
<li>{$aLang.paging}:</li>
{if $aPaging.iCurrentPage>1}
<li><a href="{$aPaging.sBaseUrl}/{$aPaging.sGetParams}">←</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">{$aPaging.iCurrentPage}</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}">{$aLang.paging_last}</a></li>
{/if}
</ul>
</div>
{/if}