1 <?xml version="1.0" encoding="utf-8"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <meta charset="utf-8"/>
5 <title><?= htmlspecialchars($json->title); ?> - OUYA game</title>
6 <meta name="generator" content="stouyapi"/>
7 <link rel="stylesheet" type="text/css" href="../ouya-game.css"/>
11 <img class="ouyalogo" src="../ouya-logo.grey.svg" alt="OUYA logo" width="20%"/>
13 <section class="text">
14 <h1><?= htmlspecialchars($json->title); ?></h1>
18 <span class="average average-<?= round($json->rating->average) ?>"><?= $json->rating->average ?></span>
19 <span class="count">(<?= $json->rating->count ?>)</span>
24 <?= htmlspecialchars($json->developer->name) ?>
27 <dt>Suggested age</dt>
28 <dd class="contentRating">
29 <?= htmlspecialchars($json->suggestedAge) ?>
32 <dt>Number of players</dt>
34 <?= htmlspecialchars(implode(', ', $json->gamerNumbers)) ?>
37 <dt>Download size</dt>
39 <?= number_format($json->apk->fileSize / 1024 / 1024, 2) ?> MiB
43 <p class="description">
44 <?= nl2br(htmlspecialchars($json->description)) ?>
48 <section class="media">
51 <?php foreach ($json->mediaTiles as $tile): ?>
52 <?php if ($tile->type == 'image'): ?>
53 <img src="<?= htmlspecialchars($tile->urls->thumbnail) ?>" alt="Screenshot of <?= htmlspecialchars($json->title); ?>"/>
54 <?php elseif ($tile->type == 'video'): ?>
56 <source src="<?= htmlspecialchars($tile->url) ?>"/>
63 <section class="buttons">
65 <a href="<?= $apkDownloadUrl ?>">Download .apk</a>
67 Version <?= $json->version->number ?>, published
68 <?= gmdate('Y-m-d', $json->version->publishedAt) ?>
74 <?php foreach ($navLinks as $url => $title): ?>
75 <a rel="up" href="<?= htmlspecialchars($url) ?>"><?= htmlspecialchars($title) ?></a>