Файл: theme/tpl/pages.tpl
Строк: 39
<div class="pages">
{if $page > 1}
<a
href="{$link}page=1"><span>1</span></a>
{else}
<span
class="active">1</span>
{/if}
{if $page>4}
<span>..</span>
{/if}
{section name=page
loop=$am_pages}
{if $smarty.section.page.iteration > 1 AND
$smarty.section.page.iteration < $am_pages AND
$smarty.section.page.iteration<=$page+3 AND
$smarty.section.page.iteration>=$page-2}
{if $page ==
$smarty.section.page.iteration}
<span
class="active">{$smarty.section.page.iteration}</span>
{else}
<a
href="{$link}page={$smarty.section.page.iteration}"><span>{$smarty.section.page.iteration}</span></a>
{/if}
{/if}
{/section}
{if
$page < $am_pages-4}
<span>..</span>
{/if}
{if $page ==
$am_pages}
<span
class="active">{$am_pages}</span>
{else}
<a
href="{$link}page={$am_pages}"><span>{$am_pages}</span></a>
{/if}
</div>