Skip to content

Instantly share code, notes, and snippets.

@stirlinghewitt
Created February 19, 2016 23:35
Show Gist options
  • Save stirlinghewitt/a8ca1c8d196a5e65b18c to your computer and use it in GitHub Desktop.
Save stirlinghewitt/a8ca1c8d196a5e65b18c to your computer and use it in GitHub Desktop.
top performer geoip list
{atbs_geoip lookup=location location=geoip}
{atbs_geoip lookup=events ParentCategoryID=2 max=100 location=geoip assign=geolist}
<div id="geoip">
<table style="width:100%;" cellspacing="1" cellpadding="1" id="geoip">
{foreach from=$geolist key=k item=geo}
{atbs_top_for_category ParentCategoryID=2 limit=200 assign=toplist}
{foreach from=$toplist key=k item=top}
{if $geo.Event == $top.Performer }
<tr class="{cycle values="geoodd,geoeven"}">
<td class="geoEvent"><a href="/{$geo.URL}">{$geo.Event} Tickets</a></td>
<td class="geoDate">{$geo.Date|atbsdate:"D M j <b\\r> g:iA"}</td>
<td class="geoVenue">{$geo.Venue}</td>
<td class="geoMore"><div class="view-ticket-button rounded"> <a href="/{$geo.URL}" class="view-ticket-button-text"><span class="lightwhiteshadow">View Tickets</span></a> </div></td>
</tr>
{/if}
{/foreach}
{/foreach}
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment