Advertisement
Guest User

Untitled

a guest
Aug 8th, 2018
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None
  1.  
  2.  
  3. <?php if($pagination->hasPages()): ?>
  4. <nav class="pagination is-centered" role="navigation" aria-label="pagination">
  5.  
  6. <?php if($pagination->hasPrevPage()): ?>
  7. <a class="pagination-previous" href="<?= $pagination->prevPageURL() ?>" rel="prev" title="newer articles">Previous</a>
  8. <?php else: ?>
  9. <a class="pagination-previous is-inactive is-invisible" title="This is the first page" disabled>Previous</a>
  10. <?php endif ?>
  11.  
  12. <?php if($pagination->hasNextPage()): ?>
  13. <a class="pagination-next" href="<?= $pagination->nextPageURL() ?>" rel="next" title="older articles">Next page</a>
  14. <?php else: ?>
  15. <a class="pagination-next is-inactive is-invisible" title="This is the last page" disabled>Next page</a>
  16. <?php endif ?>
  17.  
  18.  
  19. <ul class="pagination-list">
  20. <li><a href="<?= $pagination->firstPageURL() ?>" class="pagination-link" aria-label="Goto page 1">1</a></li>
  21. <li><span class="pagination-ellipsis">&hellip;</span></li>
  22.  
  23.  
  24. <?php foreach($pagination->range(2) as $r): ?>
  25. <li><a class="pagination-link<?php if($pagination->page() == $r) echo ' is-current' ?>" href="<?= $pagination->pageURL($r) ?>" aria-label="<?php if($pagination->page() != $r) echo 'Goto ' ?>Page <?= $r ?>" <?php if($pagination->page() == $r) echo 'aria-current="page"' ?>><?= $r ?></a></li>
  26. <?php endforeach ?>
  27.  
  28.  
  29. <li><span class="pagination-ellipsis">&hellip;</span></li>
  30. <li><a href="<?= $pagination->lastPageURL() ?>" class="pagination-link" aria-label="Goto last page"><?= $pagination->items() ?></a></li>
  31. </ul>
  32. </nav>
  33. <?php endif ?>
Advertisement
RAW Paste Data Copied
Advertisement