You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.3 KiB
26 lines
1.3 KiB
{strip}
|
|
{if $pagerlast > 1}
|
|
<div class="pager">
|
|
{if $pagecurrent > 1}
|
|
<a title="First" href="{$pagerquerybase}1">First</a>
|
|
<a title="Previous" href="{$pagerquerybase}{$pagecurrent-1}"><</a>
|
|
{/if}
|
|
{section name=pager loop=$pagerlast+1}
|
|
{if $smarty.section.pager.iteration == $pagecurrent}
|
|
<span class="current" title="Current page {$smarty.section.pager.iteration}">{$smarty.section.pager.iteration}</span>
|
|
{elseif $smarty.section.pager.iteration > $pagecurrent && $smarty.section.pager.iteration < ($pagecurrent + 10)}
|
|
... <a title="Goto page {$smarty.section.pager.iteration}"
|
|
href="{$pagerquerybase}{$smarty.section.pager.iteration}{$pagerquerysuffix}">{$smarty.section.pager.iteration}</a>
|
|
{elseif $smarty.section.pager.iteration < $pagecurrent && $smarty.section.pager.index >= ($pagecurrent - 10)}
|
|
<a title="Goto page {$smarty.section.pager.iteration}"
|
|
href="{$pagerquerybase}{$smarty.section.pager.iteration}{$pagerquerysuffix}">{$smarty.section.pager.iteration}</a> ...
|
|
{/if}
|
|
{/section}
|
|
{if $pagecurrent < $pagerlast}
|
|
<a title="Next" href="{$pagerquerybase}{$pagecurrent+1}">></a>
|
|
|
|
<a title="Last" href="{$pagerquerybase}{$pagerlast}">Last</a>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
{/strip}
|
|
|