<{if $pages.total_pages >1}>
<{if $pages.cur > 1}> <{$lang.prev}> <{/if}> <{section name=loop loop=$pages.total_pages}> <{assign var="p" value=$smarty.section.loop.index+1 }> <{if $pages.total_pages > 5 and $p > ($pages.cur+2) and $p < ($pages.total_pages-1) or $p < ($pages.cur-2)}> <{if $p eq ($pages.total_pages-2)}>...<{/if}> <{else}> class="cur" <{/if}>><{$smarty.section.loop.index+1}> <{/if}> <{/section}> <{if $pages.next < $pages.total_pages}> <{$lang.next}> <{/if}>
<{/if}>