Instantly share code, notes, and snippets.

Embed
What would you like to do?
{exp:low_events:entries channel="broadcasts" unit="passed" show_active="no" limit="6" paginate="bottom" orderby="low_events:end" sort="desc"}
{if no_results}<h3>There are no broadcasts in the archives yet. Please check back later.</h3>{/if}
<figure class="{switch='tb2 db2|tb3 db3|tb4 db4'}">
<a href="{title_permalink='broadcasts/view'}">
{broadcast_image}
<img src="{image:url:medium}" alt="{image:title}" /></a>
{/broadcast_image}
<figcaption><a href="{title_permalink='broadcasts/view'}">{title}</a><br><a>{broadcast_date:start_date format="%j %F %Y"}</a></figcaption>
</figure>
{paginate}
{if {total_pages} > 1}
<nav class="centered m-clear t-clear d-clear" role="toolbar">
<ul class="pagination">
{pagination_links}
{previous_page}<li><a href="{pagination_url}">&laquo;</a></li>{/previous_page}
{page}<li {if current_page}class="active"{/if}><a href="{pagination_url}">{pagination_page_number}</a></li>{/page}
{next_page}<li><a href="{pagination_url}">&raquo;</a></li>{/next_page}
{/pagination_links}
</ul>
</nav>
{/if}
{/paginate}
{/exp:low_events:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment