From 84d43caf0d171b690f632be40ce00f712891f248 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 18 Feb 2020 09:26:11 +0100 Subject: Add formatting for past and current events on list.php --- list.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'list.php') diff --git a/list.php b/list.php index 27858a5..52fc4ce 100644 --- a/list.php +++ b/list.php @@ -69,10 +69,24 @@ foreach ($events as $event){ $start_date=strtotime ($event['start_date']); $end_date=strtotime ($event['end_date']); + $classes=[]; + $month=date ('m',$start_date); - echo $month==$last_month ? '