%
&getEvents( {'duration'=>$in{duration}} );
$DAY = $Grid->{'grid'}->[0]->[0];
$EVENTS = $DAY->{events};
$total_events=0;
%>
<%FOREACH EVENTLIST%>
<%IF EVENTS EXIST%>
<%$total_events++;%>
- <%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%>
-
<%FOREACH EVENT%>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= $EVENT->{'schedule'}->{'start_time'} %><% } %>
<% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= $EVENT->{'schedule'}->{'end_time'} %><% } %>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
<%= $EVENT->{'details'}->{'title'} %>
<%/FOREACH%>
<%/IF%>
<%/FOREACH%>
<%unless($total_events){%>
No Events
<% } %>
?calendar=<%=$calendar_key%>">View Calendar