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