1 <?xml version="1.0" encoding="utf-8"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <title>OUYA: <?= htmlspecialchars($title); ?></title>
5 <meta name="generator" content="stouyapi"/>
6 <link rel="stylesheet" type="text/css" href="../ouya-discover.css"/>
8 <body class="discover">
10 <h1><?= htmlspecialchars($title); ?></h1>
11 <img class="ouyalogo" src="../ouya-logo.grey.svg" alt="OUYA logo" width="20%"/>
14 <?php foreach ($sections as $section): ?>
16 <?php if ($section->title): ?>
17 <h2><?= htmlspecialchars($section->title) ?></h2>
21 <?php foreach ($section->tiles as $tile): ?>
22 <section class="tile<?= ($tile->thumb == '') ? ' noimg' : '' ?>">
23 <h3 class="title"><a href="<?= htmlspecialchars($tile->detailUrl) ?>"><?= htmlspecialchars($tile->title) ?></a></h3>
24 <?php if ($tile->thumb != ''): ?>
25 <a href="<?= htmlspecialchars($tile->detailUrl) ?>"><img src="<?= htmlspecialchars($tile->thumb) ?>"/></a>
27 <?php if ($tile->type == 'app' && $tile->ratingCount > 0): ?>
29 <span class="average average-<?= round($tile->rating) ?>"><?= $tile->rating ?></span>
30 <span class="count">(<?= $tile->ratingCount ?>)</span>
41 <?php foreach ($navLinks as $url => $title): ?>
42 <a rel="up" href="<?= htmlspecialchars($url) ?>"><?= htmlspecialchars($title) ?></a>