Use developer URL in game details page and all games list
[stouyapi.git] / data / templates / game.tpl.php
index 60f93266dececd292741e764493214e7d1f81851..4f7779e2f4d13d0f6452440cb77683c53d1b3455 100644 (file)
@@ -23,8 +23,8 @@
 
     <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 ?>
@@ -47,6 +47,9 @@
    </dl>
 
    <p class="description">
+    <?php if ($json->inAppPurchases): ?>
+    <strong>* Includes in-app purchases</strong><br/><br/>
+    <?php endif ?>
     <?= nl2br(htmlspecialchars($json->description)) ?>
    </p>
   </section>
@@ -68,6 +71,7 @@
 
   <section class="buttons">
    <h2>Links</h2>
+   <?php if ($apkDownloadUrl): ?>
    <div>
     <a href="<?= $apkDownloadUrl ?>">Download .apk</a>
     <p>
      <?= gmdate('Y-m-d', $json->version->publishedAt) ?>
     </p>
    </div>
+   <?php endif ?>
+   <?php if ($internetArchiveUrl): ?>
+   <div>
+    <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>
     <form method="post" action="<?= htmlspecialchars($pushUrl) ?>" id="push" onsubmit="pushToMyOuya();return false;">
      <button name="push" type="submit" class="push-to-my-ouya">