1 <?xml version="1.0" encoding="utf-8"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <title><?= htmlspecialchars($json->title); ?> - OUYA game</title>
5 <meta name="generator" content="stouyapi"/>
6 <link rel="stylesheet" type="text/css" href="../ouya-game.css"/>
10 <img class="ouyalogo" src="../ouya-logo.grey.svg" alt="OUYA logo" width="20%"/>
12 <section class="text">
13 <h1><?= htmlspecialchars($json->title); ?></h1>
17 <span class="average average-<?= round($json->rating->average) ?>"><?= $json->rating->average ?></span>
18 <span class="count">(<?= $json->rating->count ?>)</span>
23 <?= htmlspecialchars($json->developer->name) ?>
26 <dt>Suggested age</dt>
27 <dd class="contentRating">
28 <?= htmlspecialchars($json->suggestedAge) ?>
31 <dt>Number of players</dt>
33 <?= htmlspecialchars(implode(', ', $json->gamerNumbers)) ?>
36 <dt>Download size</dt>
38 <?= number_format($json->apk->fileSize / 1024 / 1024, 2) ?> MiB
42 <p class="description">
43 <?= nl2br(htmlspecialchars($json->description)) ?>
47 <section class="media">
50 <?php foreach ($json->mediaTiles as $tile): ?>
51 <?php if ($tile->type == 'image'): ?>
52 <img src="<?= htmlspecialchars($tile->urls->thumbnail) ?>" alt="Screenshot of <?= htmlspecialchars($json->title); ?>"/>
53 <?php elseif ($tile->type == 'video'): ?>
55 <source src="<?= htmlspecialchars($tile->url) ?>"/>
62 <section class="buttons">
64 <a href="<?= $apkDownloadUrl ?>">Download .apk</a>
66 Version <?= $json->version->number ?>, published
67 <?= gmdate('Y-m-d', $json->version->publishedAt) ?>
73 <?php foreach ($navLinks as $url => $title): ?>
74 <a rel="up" href="<?= htmlspecialchars($url) ?>"><?= htmlspecialchars($title) ?></a>