'title' => $json->title,
'genres' => $json->genres,
'developer' => $json->developer->name,
+ 'developerUrl' => $json->stouyapi->{'developer-url'} ?? null,
'suggestedAge' => $json->suggestedAge,
'apkVersion' => $json->version->number,
'apkTimestamp' => $json->version->publishedAt,
*/
$internetArchiveUrl = $json->stouyapi->{'internet-archive'} ?? null;
+ $developerUrl = $json->stouyapi->{'developer-url'} ?? null;
$pushUrl = $GLOBALS['pushToMyOuyaUrl']
. '?game=' . urlencode($json->apk->package);
'stouyapi' => [
'internet-archive' => $iaUrl,
+ 'developer-url' => $game->developer->website ?? null,
]
];
}
<?= htmlspecialchars($game->title) ?>
</a>
</td>
- <td><?= htmlspecialchars($game->developer) ?></td>
+ <td>
+ <?php if ($game->developerUrl): ?>
+ <a href="<?= htmlspecialchars($game->developerUrl) ?>"><?= htmlspecialchars($game->developer) ?></a>
+ <?php else: ?>
+ <?= htmlspecialchars($game->developer) ?>
+ <?php endif ?>
+ </td>
<td><?= htmlspecialchars($game->suggestedAge) ?></td>
<td><?= htmlspecialchars(implode(', ', $game->players)) ?></td>
<td><?= htmlspecialchars(implode(', ', $game->genres)) ?></td>
<dt>Developer</dt>
<dd class="company">
- <?php if ($appsJson->app->website): ?>
- <a href="<?= htmlspecialchars($appsJson->app->website) ?>"><?= htmlspecialchars($json->developer->name) ?></a>
+ <?php if ($developerUrl): ?>
+ <a href="<?= htmlspecialchars($developerUrl) ?>"><?= htmlspecialchars($json->developer->name) ?></a>
<?php else: ?>
<?= htmlspecialchars($json->developer->name) ?>
<?php endif ?>
<?php endif ?>
<?php if ($internetArchiveUrl): ?>
<div>
- <a href="<?= $internetArchiveUrl ?>">Internet Archive page</a>
+ <a href="<?= $internetArchiveUrl ?>">Internet Archive</a>
+ </div>
+ <?php endif ?>
+ <?php if ($appsJson->app->website): ?>
+ <div>
+ <a href="<?= $appsJson->app->website ?>">Game website</a>
</div>
<?php endif ?>
<div>