:: calendar

:: calendar_widgets[widget]
<<widget 'currentDayEventsList'>>
    <ul class="eventList">
        <<if $pc.isSchoolStudent>>
            <<set _holidayIds = $time.currentHolidays(true,false)>>
        <<else>>
            <<set _holidayIds = $time.currentHolidays(false,true)>>
        <</if>>
        <<for _possibleHolidayId range ['winter','summer','spring','autumn']>>
            <<if _holidayIds.includes(_possibleHolidayId)>>
                <<set _daysLeft = $time.daysOfHolidayLeft(_possibleHolidayId)>>
                <li><<=_possibleHolidayId.toUpperFirst()>> Holidays (_daysLeft <<plural _daysLeft 'day' 'days'>> left)</li>
            <</if>>
        <</for>>
    </ul>
<</widget>>
