Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (29 sloc) 1.96 KB
{% if page.type_name == "Event" %}
<span class="addtocalendar atc-style-blue">
<a class="atcb-link" title="Click here to add this event to your Google, Yahoo, iCal or Outlook calendar" id="{{ page.slug }}"><i class="fa fa-calendar-plus-o" aria-hidden="true"></i><span class="desktop-visible right">&nbsp;&nbsp;Add to Calendar</span></a>
<var class="atc_event" id="{{ page.slug }}">
<var class="atc_date_start">{{ page.event.local_start_at | date: '%m/%d/%Y %H:%M:%S' }}</var>
<var class="atc_date_end">{{ page.event.local_end_at | date: '%m/%d/%Y %H:%M:%S' }}</var>
<var class="atc_timezone">America/New_York</var>
<var class="atc_title">{{ page.headline }}</var>
<var class="atc_description">Check {{ page.full_url }} for the latest info.</var>
<var class="atc_location">{{ page.event.venue_address.one_line }}</var>
<var class="atc_organizer">{{ page.event.contact_name }}</var>
<var class="atc_organizer_email">{{ page.event.contact_email }}</var>
</var>
</span>
{% else %}
<span class="addtocalendar atc-style-blue">
<a class="atcb-link" title="Click here to add this event to your Google, Yahoo, iCal or Outlook calendar" id="{{ event.name }}"><i class="fa fa-calendar-plus-o" aria-hidden="true"></i><span class="desktop-visible right">&nbsp;&nbsp;Add to Calendar</span></a>
<var class="atc_event" id="{{ event.slug }}">
<var class="atc_date_start">{{ event.event.local_start_at | date: '%m/%d/%Y %H:%M:%S' }}</var>
<var class="atc_date_end">{{ event.event.local_end_at | date: '%m/%d/%Y %H:%M:%S' }}</var>
<var class="atc_timezone">America/New_York</var>
<var class="atc_title">{{ event.headline }}</var>
<var class="atc_description">Check {{ event.full_url }} for the latest info.</var>
<var class="atc_location">{{ event.event.venue_address.one_line }}</var>
<var class="atc_organizer">{{ event.event.contact_name }}</var>
<var class="atc_organizer_email">{{ event.event.contact_email }}</var>
</var>
</span>
{% endif %}