This repository was archived by the owner on Feb 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrelease-notes.php
More file actions
31 lines (30 loc) · 1.35 KB
/
release-notes.php
File metadata and controls
31 lines (30 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
include_once "../static.getnightingale.com/php/env.php";
if(file_exists('version-info/'.$_GET['version'].'.json'))
$content = json_decode(file_get_contents('version-info/'.$_GET['version'].'.json'));
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" media="screen" href="chrome://songbird/skin/html.css" >
<script type="text/javascript" src="<?php echo $protocol; ?>static.getnightingale.com/javascript/l10n.js"></script>
<link rel="prefetch" type="application/l10n" href="<?php echo $protocol; ?>static.getnightingale.com/l10n/locales<?php echo $_GET['version']; ?>.ini" >
</head>
<body class="darkest">
<h2 data-l10n-id="releasenotes_title" data-l10n-args='{"version":"<?php echo $_GET['version']; ?>"}'>Nightingale <?php echo $_GET['version']; ?> Release Notes</h2>
<?php
if(isset($content)) {
$list = '<ul>';
foreach($content->changes as $i => $change) {
$list .= '<li data-l10n-id="releasenotes_'.$i.'">'.$change->title.'</li>
';
}
echo $list.'</ul>',PHP_EOL;
}
else {
echo "<p data-l10n-id='releasenotes_versionNotFound'>Sorry, we found no release notes for this version</p>",PHP_EOL;
}
?>
</body>
</html>