{{capture assign="count"}}{{$entries|@count}}{{/capture}} {{* entries per page *}} {{assign var="limit" value="15"}} {{assign var="lastn" value=$limit}} {{* number of pages *}} {{assign var="pages" value=$count/$limit|@ceil}} {{* current page number *}} {{if $smarty.request.p > 1}} {{math assign="p" equation="min($pages,x)" x=$smarty.request.p}} {{else}} {{if $smarty.server.PAGE_NUMBER > 1}} {{math assign="p" equation="min($pages,x)" x=$smarty.server.PAGE_NUMBER}} {{else}} {{assign var="p" value="1"}} {{/if}} {{/if}} {{* current offset used *}} {{math assign="offset" equation="($p-1)*15"}}

Test Post

An unprecedented number of Americans have received unprecedented incomes and accumulated unprecedented net worth in recent years. Sure, the gains are tempered by the reality that while the top tier is gaining, the income shares of the rest are falling. Many Americans have seen no purchasing power gains in decades, and they've only recently advanced because of the big fall in energy prices. But lack of income didn't deter spending. In aggregate terms, spending has risen a half percentage point...

{{math assign="p1" equation="max($p-1,1)"}} {{math assign="n1" equation="min($p+1,$pages)"}} Page {{$p}}{{if $p > 1}}: Previous{{/if}}{{if $n1 > $p}}{{if $p > 1}}|{{else}}: {{/if}}Next{{/if}}


Search