diff options
| author | sillylaird <sillyfanboy@gmail.com> | 2026-09-03 00:33:59 +0000 |
|---|---|---|
| committer | sillylaird <sillyfanboy@gmail.com> | 2026-09-03 00:33:59 +0000 |
| commit | 898b52edcb47bcb3e9d6106e74ca73e74ea01e70 (patch) | |
| tree | 85c6ee5ad58b860144551184d4cf86b560c62b91 /changelog/index.php | |
| download | www-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.tar.gz www-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.zip | |
Diffstat (limited to 'changelog/index.php')
| -rwxr-xr-x | changelog/index.php | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/changelog/index.php b/changelog/index.php new file mode 100755 index 0000000..bc011ac --- /dev/null +++ b/changelog/index.php @@ -0,0 +1,67 @@ +<?php +require_once __DIR__ . '/api/parser.php'; +$by_year = get_changelog_by_year(); +?> +<!doctype html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <?php + $meta = [ + 'lang' => 'en', + 'title' => 'ChangeLog -- SillyLaird', + 'desc' => 'SillyLaird change log.', + 'base' => 'changelog/index', + 'self_url' => 'https://www.sillylaird.ca/changelog/', + 'en_url' => 'https://www.sillylaird.ca/changelog/', + 'ja_url' => 'https://www.sillylaird.ca/changelog/index_jp.php', + 'zh_url' => 'https://www.sillylaird.ca/changelog/index_zh.php', + 'x_default' => 'https://www.sillylaird.ca/changelog/', + ]; + include __DIR__ . '/../partials/head_meta.php'; +?> + <title>ChangeLog — SillyLaird</title> + <link rel="alternate" type="application/atom+xml" title="Changelog Atom feed" href="/changelog/feed.xml.php" /> + + <link rel="stylesheet" href="/assets/css/fonts.css" /> + <link rel="stylesheet" href="/assets/css/site.css" /> + <link rel="stylesheet" href="/assets/css/skeleton.css" /> + <link rel="stylesheet" href="/assets/css/pages/changelog.css?v=<?= @filemtime(dirname(__DIR__)."/assets/css/pages/changelog.css") ?>" /> +</head> +<body> + <a class="skip-link" href="#main">Skip to content</a> + <?php include '../partials/header.php'; ?> + + <main id="main" class="wrap"> + <section aria-labelledby="changelog-title"> + <h1 id="changelog-title" class="changelog-title">ChangeLog</h1> + <p class="muted">All notes are copied verbatim.</p> + + <?php foreach ($by_year as $year => $entries): ?> + <h2 id="year-<?= (int)$year ?>"><?= $year ?></h2> + <?= render_changelog_list($entries) ?> + <?php endforeach; ?> + + <hr /> + <section> + <h2>Raw Log Files</h2> + <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> + </section> + </section> + </main> + + <?php include '../partials/footer.php'; ?> +</body> +</html> |
