diff options
Diffstat (limited to '')
| -rw-r--r-- | gaming/collection/hardware.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gaming/collection/hardware.php b/gaming/collection/hardware.php new file mode 100644 index 0000000..62cae6e --- /dev/null +++ b/gaming/collection/hardware.php @@ -0,0 +1,36 @@ +<?php +/** + * Hardware inventory (name :: model). + */ +require_once __DIR__ . '/_lib.php'; + +$data = collection_load(); +$rows = collection_hardware_inventory_rows($data); + +collection_page_open( + 'hardware', + t('collection.hardware_title'), + t('collection.hardware_page_blurb'), + 'hardware' +); +?> + <p class="gc-page-blurb"><?= collection_h('collection.hardware_page_blurb') ?></p> + <p class="gc-count"><?= count($rows) ?> <?= collection_h('collection.hardware_label') ?></p> + +<?php if (!$rows): ?> + <p class="gc-empty"><?= collection_h('collection.hardware_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/"><?= collection_h('collection.menu_games') ?></a> + · + <a href="/gaming/"><?= collection_h('collection.back_gaming') ?></a> + </p> +<?php +collection_page_close(); |
