2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
4 <meta charset="utf-8"/>
5 <title><?= htmlspecialchars($title); ?></title>
6 <meta name="generator" content="stouyapi"/>
7 <link rel="stylesheet" type="text/css" href="../ouya-discover.css"/>
8 <link rel="icon" href="../favicon.ico"/>
10 <body class="discover">
12 <h1><?= htmlspecialchars($json->title); ?></h1>
13 <img class="ouyalogo" src="../ouya-logo.grey.svg" alt="OUYA logo" width="50"/>
16 <?php foreach ($sections as $section): ?>
18 <?php if ($section->title): ?>
19 <h2><?= htmlspecialchars($section->title) ?></h2>
23 <?php foreach ($section->tiles as $tile): ?>
24 <section class="tile<?= ($tile->thumb == '') ? ' noimg' : '' ?>">
25 <h3 class="title"><a href="<?= htmlspecialchars($tile->detailUrl) ?>"><?= htmlspecialchars($tile->title) ?></a></h3>
26 <?php if ($tile->thumb != ''): ?>
27 <a href="<?= htmlspecialchars($tile->detailUrl) ?>"><img src="<?= htmlspecialchars($tile->thumb) ?>" alt="Screenshot of <?= htmlspecialchars($tile->detailUrl) ?>"/></a>
29 <?php if ($tile->type == 'app' && $tile->ratingCount > 0): ?>
31 <span class="average average-<?= round($tile->rating) ?>"><?= $tile->rating ?></span>
32 <span class="count">(<?= $tile->ratingCount ?>)</span>
43 <?php foreach ($navLinks as $url => $title): ?>
44 <a rel="up" href="<?= htmlspecialchars($url) ?>"><?= htmlspecialchars($title) ?></a>