Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (27 sloc) 0.781 kb
{*
* @version $Id: template.phtml 2 2009-07-13 20:58:52Z david@grudl.com $
* @param Paginator $paginator
* @param array $steps
*}
{if $paginator->pageCount > 1}
<div class="paginator">
{if $paginator->isFirst()}
<span class="button">« Previous</span>
{else}
<a href="{link this, 'page' => $paginator->page - 1}">« Previous</a>
{/if}
{foreach $steps as $step}
{if $step == $paginator->page}
<span class="current">{$step}</span>
{else}
<a href="{link this, 'page' => $step}">{$step}</a>
{/if}
{if $iterator->nextValue > $step + 1}<span>…</span>{/if}
{/foreach}
{if $paginator->isLast()}
<span class="button">Next »</span>
{else}
<a href="{link this, 'page' => $paginator->page + 1}">Next »</a>
{/if}
</div>
{/if}
Jump to Line
Something went wrong with that request. Please try again.