Skip to content

Instantly share code, notes, and snippets.

@niallthompson
Created June 18, 2014 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niallthompson/697ba0a3cbe5221960e5 to your computer and use it in GitHub Desktop.
Save niallthompson/697ba0a3cbe5221960e5 to your computer and use it in GitHub Desktop.
{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