Skip to content

Instantly share code, notes, and snippets.

@adamthebig
Last active October 9, 2019 06:48
Show Gist options
  • Save adamthebig/28bfe60ffae90d5ed0d0 to your computer and use it in GitHub Desktop.
Save adamthebig/28bfe60ffae90d5ed0d0 to your computer and use it in GitHub Desktop.
ExpressionEngine Pagination with Bootstrap 3
{paginate}
{pagination_links}
<ul class="pagination">
{first_page}
<li><a href="{pagination_url}" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>
{/first_page}
{page}
<li{if current_page} class="active"{/if}><a href="{pagination_url}">{pagination_page_number}</a></li>
{/page}
{last_page}
<li><a href="{pagination_url}" aria-label="Previous"><span aria-hidden="true">&raquo;</span></a></li>
{/last_page}
</ul>
{/pagination_links}
{/paginate}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment