diff options
Diffstat (limited to 'changelog/latest.php')
| -rwxr-xr-x | changelog/latest.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/changelog/latest.php b/changelog/latest.php new file mode 100755 index 0000000..434246a --- /dev/null +++ b/changelog/latest.php @@ -0,0 +1,34 @@ +<?php +require_once __DIR__ . '/api/parser.php'; +$latest = get_changelog_entries(5); +?> +<div class="changelog-container"> + <?php foreach ($latest as $e): ?> + <div class="changelog-entry"> + <b>Site update</b><br> + <span style="font-size:13px;"> + <time datetime="<?= htmlspecialchars($e['date']) ?>"><?= htmlspecialchars($e['display_date']) ?></time> + </span><br> + <span class="text"><?= htmlspecialchars($e['text']) ?></span><br> + <a class="changelog-more" href="https://www.sillylaird.ca/changelog/#year-<?= (int)$e['year'] ?>">more (<?= (int)$e['year'] ?>) →</a> + </div> + <?php endforeach; ?> +</div> + +<div class="changelog-files-section"> + <p><strong>Raw Log Files:</strong></p> + <ul class="changelog-files"> + <?php + $files = glob(__DIR__ . '/*-changelog.txt'); + rsort($files); + foreach ($files as $file): + $base = basename($file); + $size = filesize($file); + if ($size <= 0) continue; + ?> + <li><a href="https://www.sillylaird.ca/changelog/<?= htmlspecialchars($base) ?>"><?= htmlspecialchars($base) ?></a> (<?= $size ?> bytes)</li> + <?php endforeach; ?> + </ul> +</div> + +<a href="https://www.sillylaird.ca/changelog/">Full changelog →</a> |
