Created
June 18, 2014 09:43
-
-
Save niallthompson/697ba0a3cbe5221960e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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}">«</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}">»</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