aboutsummaryrefslogtreecommitdiffstats
path: root/gaming/collection/index.php
diff options
context:
space:
mode:
authorsillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
committersillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
commit898b52edcb47bcb3e9d6106e74ca73e74ea01e70 (patch)
tree85c6ee5ad58b860144551184d4cf86b560c62b91 /gaming/collection/index.php
downloadwww-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.tar.gz
www-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.zip
import live www.sillylaird.ca webrootHEADmain
Diffstat (limited to 'gaming/collection/index.php')
-rw-r--r--gaming/collection/index.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/gaming/collection/index.php b/gaming/collection/index.php
new file mode 100644
index 0000000..a2e3fa7
--- /dev/null
+++ b/gaming/collection/index.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Video Games โ€” title library (system :: title).
+ */
+require_once __DIR__ . '/_lib.php';
+
+$data = collection_load();
+$rows = collection_games_library_rows($data);
+
+collection_page_open(
+ 'games',
+ t('collection.title'),
+ t('collection.desc'),
+ 'index'
+);
+?>
+ <p class="gc-page-blurb"><?= collection_h('collection.games_blurb') ?></p>
+ <p class="gc-count"><?= count($rows) ?> <?= collection_h('collection.games_label') ?></p>
+
+<?php if (!$rows): ?>
+ <p class="gc-empty"><?= collection_h('collection.empty') ?></p>
+<?php else: ?>
+ <div class="gc-catalog">
+<?php foreach ($rows as $row) {
+ collection_render_row($row);
+} ?>
+ </div>
+<?php endif; ?>
+
+ <p class="gc-footer-hint">
+ <a href="/gaming/"><?= collection_h('collection.back_gaming') ?></a>
+ ยท
+ <a href="/"><?= collection_h('collection.back_home') ?></a>
+ </p>
+<?php
+collection_page_close();