Skip to content

Commit

Permalink
Merge pull request #214 from IACR/importantDates
Browse files Browse the repository at this point in the history
Check for nulls in metadata.json.
  • Loading branch information
kaymckelly authored Jun 27, 2022
2 parents 5e1a4c8 + a52d82a commit 28eaf7d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 43 deletions.
70 changes: 28 additions & 42 deletions includes/important_dates.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,45 @@
with what is in json/metadata.json, which is why we use
$META['submitdate'] and $META['dates'].
*/
?>
<article class="customCard">
<h4 class="customCardHeader">
Important Dates
</h4>
<div class="customCardRow row">
<h6 class="dateTitle col-5 col-md-4">
<?php echo $META['submitdate'];?>
</h6>
<p class="col-7 col-md-8">
Submission deadline at 21:00 UTC
</p>
</div>
<div class="customCardRow row">
<h6 class="dateTitle col-5 col-md-4">
<?php echo $META['firstRound'];?>
</h6>
<p class="col-7 col-md-8">
First round notification
</p>
</div>
<div class="customCardRow row">
function showDate($key, $title) {
global $META;
if (!array_key_exists($key, $META) || $META[$key] == null) {
return;
}
$date = $META[$key];
echo <<< EOR
<div class="customCardRow row">
<h6 class="dateTitle col-5 col-md-4">
<?php echo $META['rebuttalDue'];?>
$date
</h6>
<p class="col-7 col-md-8">
Rebuttal deadline at 11:45 UTC
</p>
</div>
<div class="customCardRow row">
<h6 class="dateTitle col-5 col-md-4">
<?php echo $META['finalNotification'];?>
</h6>
<p class="col-7 col-md-8">
Final notification
</p>
</div>
<div class="customCardRow row">
<h6 class="dateTitle col-5 col-md-4">
<?php echo $META['finalNotification'];?>
</h6>
<p class="col-7 col-md-8">
Final version due
$title
</p>
</div>
EOR;
}
?>
<article class="customCard">
<h4 class="customCardHeader">
Important Dates
</h4>
<?php showDate('submitdate', 'Submission deadline'); ?>
<?php showDate('firstRound', 'First round notification'); ?>
<?php showDate('rebuttalDue', 'Rebuttal deadline'); ?>
<?php showDate('notificationdate', 'Final Notification'); ?>
<?php showDate('finalversions', 'Final versions due'); ?>
<!-- An example of a custom date not in metadata.json. -->
<!--
<div class="customCardRow row">
<h6 class="dateTitle col-5 col-md-4">
<?php echo $META['startdate'];?>
1 Jan 1970
</h6>
<p class="col-7 col-md-8">
Conference begins
Custom date can be entered
</p>
</div>
-->
<?php showDate('startdate', 'Conference begins'); ?>
<div class="customCardFooter">
<img src="images/icons/exclamation.svg" class="icon" /> For further details,
consult the <a href="papersubmission.php">paper submission page</a>.
Expand Down
3 changes: 2 additions & 1 deletion json/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 28eaf7d

Please sign in to comment.