aboutsummaryrefslogtreecommitdiffstats
path: root/gaming/collection/index.php
blob: a2e3fa7a892746f89081475e53928e7ec4e31af5 (plain) (blame)
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
32
33
34
35
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();