From 6449b37a165e5348757bab754af1b1cf127582d5 Mon Sep 17 00:00:00 2001 From: Kevin McCurley Date: Fri, 10 Jun 2022 18:46:08 +0000 Subject: [PATCH 1/2] Check for nulls in metadata.json. --- includes/important_dates.php | 67 ++++++++++++++---------------------- json/metadata.json | 3 +- 2 files changed, 27 insertions(+), 43 deletions(-) diff --git a/includes/important_dates.php b/includes/important_dates.php index d57e8d8..0a67e8a 100644 --- a/includes/important_dates.php +++ b/includes/important_dates.php @@ -4,59 +4,42 @@ with what is in json/metadata.json, which is why we use $META['submitdate'] and $META['dates']. */ -?> -
-

- Important Dates -

-
-
- -
-

- Submission deadline at 21:00 UTC -

-
-
-
- -
-

- First round notification -

-
-
+function showDate($key, $title) { + global $META; + if (!array_key_exists($key, $META) || $META[$key] == null) { + return; + } + $date = $META[$key]; + echo <<< EOR +
- + $date

- Rebuttal deadline at 11:45 UTC -

-
-
-
- -
-

- Final notification -

-
-
-
- -
-

- Final version due + $title

+ EOR; +} +?> +
+

+ Important Dates +

+ + + + +
- + 1 Jan 1970

- Conference begins + Custom date can be entered

+
For further details, consult the paper submission page. diff --git a/json/metadata.json b/json/metadata.json index ccf8a8c..78d55ca 100644 --- a/json/metadata.json +++ b/json/metadata.json @@ -12,7 +12,8 @@ "submitdate": "11 Feb 2020", "firstRound": "2 Apr 2020", "rebuttalDue": "21 Apr 2020", - "finalNotification": "26 Apr 2020", + "notificationdate": "26 Apr 2020", + "finalversions": null, "cameraReady": "5 Jul 2022", "latitude": -119.84698971268, "longitude": 34.411605668706, From a52d82aa115a4e4fa00d928087902c24148aeb31 Mon Sep 17 00:00:00 2001 From: Kevin McCurley Date: Mon, 27 Jun 2022 20:21:05 +0000 Subject: [PATCH 2/2] Comment out custom date. --- includes/important_dates.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/important_dates.php b/includes/important_dates.php index 0a67e8a..16173c9 100644 --- a/includes/important_dates.php +++ b/includes/important_dates.php @@ -31,6 +31,8 @@ function showDate($key, $title) { + +
For further details,