<xen:require css="EWRatendo.css" />
<xen:if is="{$events} && {$birthdays}">
<xen:title>{xen:phrase events}{xen:phrase and}{xen:phrase birthdays_on_x, 'month={$month}', 'day={$day}', 'year={$year}'}</xen:title>
<xen:h1>{xen:phrase events}{xen:phrase and}{xen:phrase birthdays_on_x, 'month={$month}', 'day={$day}', 'year={$year}'}</xen:h1>
<xen:elseif is="{$events} && !{$birthdays}" />
<xen:title>{xen:phrase events_on_x, 'month={$month}', 'day={$day}', 'year={$year}'}</xen:title>
<xen:h1>{xen:phrase events_on_x, 'month={$month}', 'day={$day}', 'year={$year}'}</xen:h1>
<xen:elseif is="!{$events} && {$birthdays}" />
<xen:title>{xen:phrase birthdays_on_x, 'month={$month}', 'day={$day}'}</xen:title>
<xen:h1 class="subHeading">{xen:phrase birthdays_on_x, 'month={$month}', 'day={$day}'}</xen:h1>
<xen:else />
<xen:title>{xen:phrase events_on_x, 'month={$month}', 'day={$day}', 'year={$year}'}</xen:title>
<xen:h1>{xen:phrase events_on_x, 'month={$month}', 'day={$day}', 'year={$year}'}</xen:h1>
</xen:if>
<div class="section eventDaily">
<xen:if is="{$events}">
<div class="subHeading">{xen:phrase events}</div>
<ol class="overlayScroll">
<xen:foreach loop="$events" value="$event">
<xen:include template="EWRatendo_Daily_Bit" />
</xen:foreach>
</ol>
</xen:if>
<xen:if is="{$birthdays}">
<div class="subHeading">{xen:phrase birthdays}</div>
<ol class="overlayScroll">
<xen:foreach loop="$birthdays" value="$user">
<xen:include template="member_list_item">
<xen:set var="$extraTemplate">{xen:date $user.timeStamp, $user.format} <xen:if is="{$user.age}">({xen:phrase age}: {$user.age})</xen:if></xen:set>
</xen:include>
</xen:foreach>
</ol>
</xen:if>
<div class="sectionFooter overlayOnly"><a class="button primary OverlayCloser">{xen:phrase close}</a></div>
</div>