refactor paginator, introducing new variable $PREV, $NEXT and $END. By

default, 10 pages are display. you can use numPage for managing how many
page are display
This commit is contained in:
Manuel Raynaud
2014-03-03 11:30:40 +01:00
parent 19121c607a
commit c7323d1c5b
3 changed files with 33 additions and 15 deletions

View File

@@ -91,7 +91,7 @@
{pageloop rel="product_list"}
<li{if $PAGE eq $CURRENT} class="active"{/if}><a href="{url path={navigate to="current"} page=$PAGE }"> {$PAGE} </a></li>
{if $PAGE eq $LAST}
<li{if $CURRENT eq $LAST} class="disabled"{/if}><a href="{url path={navigate to="current"} page={$CURRENT+1} }" title="{intl l="Next"}" class="next"><i class="icon-next"></i></a></li>
<li{if $CURRENT eq $LAST} class="disabled"{/if}><a href="{url path={navigate to="current"} page={$NEXT} }" title="{intl l="Next"}" class="next"><i class="icon-next"></i></a></li>
{/if}
{/pageloop}
</ul>