{* *}{strip} {if !empty($Pages)} {$c = $CurrentPage|default:0} {* *} {foreach $Pages as $i => $url} {if $i == $c} {$i + 1} {else} {$i + 1} {/if} {/foreach} {* *} {if !empty($AllOnPageUrl)} все {/if} {/if} {/strip}