Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created April 29, 2012 16:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bastianallgeier/2551680 to your computer and use it in GitHub Desktop.
Save bastianallgeier/2551680 to your computer and use it in GitHub Desktop.
<div class="nav prevnext">
<? if($page->hasPrevVisible()): ?>
<a class="prev" href="<?= $page->prevVisible()->url() ?>">&lsaquo; previous article (<?php echo html($page->prevVisible()->title()) ?>)</a>
<? endif ?>
<? if($page->hasNextVisible()): ?>
<a class="next" href="<?= $page->nextVisible()->url() ?>">next article &rsaquo; (<?php echo html($page->nextVisible()->title()) ?>)</a>
<? endif ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment