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"/>
9 <link rel="canonical" href="<?= htmlspecialchars($canonicalUrl) ?>"/>
11 <body class="discover">
13 <h1><?= htmlspecialchars($json->title); ?><?php if($subtitle) { echo ': ' . $subtitle; } ?></h1>
14 <a href="./"><img class="ouyalogo" src="../ouya-logo.grey.svg" alt="OUYA logo" width="50"/></a>
17 <?php foreach ($sections as $section): ?>
19 <?php if ($section->title): ?>
20 <h2><?= htmlspecialchars($section->title) ?></h2>
24 <?php foreach ($section->tiles as $tile): ?>
25 <section class="tile<?= ($tile->thumb == '') ? ' noimg' : '' ?>">
26 <h3 class="title"><a href="<?= htmlspecialchars($tile->detailUrl) ?>"><?= htmlspecialchars($tile->title) ?></a></h3>
27 <?php if ($tile->thumb != ''): ?>
28 <a href="<?= htmlspecialchars($tile->detailUrl) ?>"><img src="<?= htmlspecialchars($tile->thumb) ?>" alt="Screenshot of <?= htmlspecialchars($tile->title) ?>" width="732" height="412"/></a>
30 <?php if ($tile->type == 'app' && $tile->ratingCount > 0): ?>
32 <span class="average average-<?= round($tile->rating) ?>"><?= $tile->rating ?></span>
33 <span class="count">(<?= $tile->ratingCount ?>)</span>
44 <?php foreach ($navLinks as $url => $title): ?>
45 <a rel="up" href="<?= htmlspecialchars($url) ?>"><?= htmlspecialchars($title) ?></a>