cyberstammtisch-silverstripe/themes/cyberstamm/templates/UncleCheese/EventCalendar/Includes/EventList.ss

46 lines
2.0 KiB
Scheme
Executable File

<ul>
<% loop $Events %>
<li class="vevent clearfix">
<h3 class="summary"><% if Announcement %>$Title<% else %><a class="url" href="$Link">$Event.Title</a><% end_if %></h3>
<p class="dates">
$DateRange
<% if AllDay %> <% _t('UncleCheese\EventCalendar\Pages\Calendar.ALLDAY','All Day') %>
<% else %>
<% if $StartTime %> $TimeRange<% end_if %>
<% end_if %>
</p>
<p>
<a href="$ICSLink"><% _t('UncleCheese\EventCalendar\Pages\Calendar.ADD','Add this to Calendar') %></a>
</p>
<% if $Announcement %>
$Content
<% else %>
<% with $Event %>$Content.LimitWordCount(60)<% end_with %> <a href="$Link"><% _t('Calendar.MORE','Read more&hellip;') %></a>
<% end_if %>
<% if $OtherDates %>
<div class="event-other-dates">
<h4><% _t('UncleCheese\EventCalendar\Pages\Calendar.ADDITIONALDATES','Additional Dates for this Event') %>:</h4>
<ul>
<% loop $OtherDates %>
<li>
<a href="$Link" title="$Event.Title">
$DateRange
<% if AllDay %> <% _t('UncleCheese\EventCalendar\Pages\Calendar.ALLDAY','All Day') %>
<% else %>
<% if StartTime %> $TimeRange<% end_if %>
<% end_if %>
</a>
</li>
<% end_loop %>
</ul>
</div>
<% end_if %>
</li>
<% end_loop %>
</ul>
<% if $MoreEvents %>
<a href="$MoreLink" class="calendar-view-more"><% _t('UncleCheese\EventCalendar\Pages\Calendar.VIEWMOREEVENTS', 'View more events...') %></a>
<% end_if %>