forked from livestreet/lstemplate-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment_paging.tpl
49 lines (41 loc) · 1.7 KB
/
comment_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
37
38
39
40
41
42
43
44
45
46
47
48
49
{if $aPagingCmt and $aPagingCmt.iCountPage>1}
{if $aPagingCmt.sGetParams}
{assign var="sGetSep" value='&'}
{else}
{assign var="sGetSep" value='?'}
{/if}
<div class="pagination pagination-comments">
<ul>
<li>{$aLang.paging}:</li>
{if $oConfig->GetValue('module.comment.nested_page_reverse')}
{if $aPagingCmt.iCurrentPage>1}
<li><a href="{$aPagingCmt.sGetParams}{$sGetSep}cmtpage=1">←</a></li>
{/if}
{foreach from=$aPagingCmt.aPagesLeft item=iPage}
<li><a href="{$aPagingCmt.sGetParams}{$sGetSep}cmtpage={$iPage}">{$iPage}</a></li>
{/foreach}
<li class="active">{$aPagingCmt.iCurrentPage}</li>
{foreach from=$aPagingCmt.aPagesRight item=iPage}
<li><a href="{$aPagingCmt.sGetParams}{$sGetSep}cmtpage={$iPage}">{$iPage}</a></li>
{/foreach}
{if $aPagingCmt.iCurrentPage<$aPagingCmt.iCountPage}
<li><a href="{$aPagingCmt.sGetParams}{$sGetSep}cmtpage={$aPagingCmt.iCountPage}">{$aLang.paging_last}</a></li>
{/if}
{else}
{if $aPagingCmt.iCurrentPage<$aPagingCmt.iCountPage}
<li><a href="{$aPagingCmt.sGetParams}{$sGetSep}cmtpage={$aPagingCmt.iCountPage}">{$aLang.paging_last}</a></li>
{/if}
{foreach from=$aPagingCmt.aPagesRight item=iPage}
<li><a href="{$aPagingCmt.sGetParams}{$sGetSep}cmtpage={$iPage}">{$iPage}</a></li>
{/foreach}
<li class="active">{$aPagingCmt.iCurrentPage}</li>
{foreach from=$aPagingCmt.aPagesLeft item=iPage}
<li><a href="{$aPagingCmt.sGetParams}{$sGetSep}cmtpage={$iPage}">{$iPage}</a></li>
{/foreach}
{if $aPagingCmt.iCurrentPage>1}
<li><a href="{$aPagingCmt.sGetParams}{$sGetSep}cmtpage=1">→</a></li>
{/if}
{/if}
</ul>
</div>
{/if}