Pagination Code


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. {paginate}
  2. <div id="pagination">
  3. <ul>
  4. {if "{current_page}" == 1}
  5. <li><span id="prev-disabled">Previous Page</span></li>
  6. {/if}
  7. {if previous_page}
  8. <li><a href="{auto_path}" id="prev">Previous Page</a></li>
  9. {/if}
  10. {if "{current_page}" == "{total_pages}"}
  11. <li><span id="next-disabled">Next Page</span></li>
  12. {/if}
  13. {if next_page}
  14. <li><a href="{auto_path}" id="next">Next Page</a></li>
  15. {/if}
  16. </ul>
  17. </div>
  18. {/paginate}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.