{
$json = json_decode(file_get_contents($discoverFile));
- $title = $json->title;
+ $title = $json->title . ' OUYA games';
$sections = [];
foreach ($json->rows as $row) {
$section = (object) [
}
$navLinks = [];
- if ($title == 'DISCOVER') {
+ if ($json->title == 'DISCOVER') {
$navLinks['../'] = 'back';
+ $title = 'OUYA games list';
} else {
$navLinks['./'] = 'discover';
}
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8"/>
- <title>OUYA: <?= htmlspecialchars($title); ?></title>
+ <title><?= htmlspecialchars($title); ?></title>
<meta name="generator" content="stouyapi"/>
<link rel="stylesheet" type="text/css" href="../ouya-discover.css"/>
<link rel="icon" href="../favicon.ico"/>
</head>
<body class="discover">
<header>
- <h1><?= htmlspecialchars($title); ?></h1>
+ <h1><?= htmlspecialchars($json->title); ?></h1>
<img class="ouyalogo" src="../ouya-logo.grey.svg" alt="OUYA logo" width="50"/>
</header>