Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created January 14, 2012 16:51
Show Gist options
  • Save bastianallgeier/1612015 to your computer and use it in GitHub Desktop.
Save bastianallgeier/1612015 to your computer and use it in GitHub Desktop.
<nav class="pagination">
<div class="count">
<strong><?php echo $pagination->countItems() ?></strong> Results / showing <strong><?php echo $pagination->numStart() ?></strong> - <strong><?php echo $pagination->numEnd() ?></strong>
</div>
<div class="buttons">
<? if($pagination->hasPrevPage()): ?>
<a class="prev" href="<?= $pagination->prevPageURL() ?>">&lsaquo; previous</a>
<? else: ?>
<span class="prev">&lsaquo; previous</span>
<? endif ?>
<? if($pagination->hasNextPage()): ?>
<a class="next" href="<?= $pagination->nextPageURL() ?>">next &rsaquo;</a>
<? else: ?>
<span class="next">next &rsaquo;</span>
<? endif ?>
</div>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment