Show in-app purchases on game details
[stouyapi.git] / data / templates / game.tpl.php
index 531fb282323382cbc26acaae8146c609ca803986..621049c3d505543b2fcfcbffa3fa70e3e080047b 100644 (file)
@@ -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>
@@ -56,7 +59,7 @@
    <div class="content">
     <?php foreach ($json->mediaTiles as $tile): ?>
      <?php if ($tile->type == 'image'): ?>
-      <img src="<?= htmlspecialchars($tile->urls->thumbnail) ?>" alt="Screenshot of <?= htmlspecialchars($json->title); ?>"/>
+      <img src="<?= htmlspecialchars($tile->urls->full) ?>" alt="Screenshot of <?= htmlspecialchars($json->title); ?>"/>
      <?php elseif ($tile->type == 'video'): ?>
       <video controls="">
        <source src="<?= htmlspecialchars($tile->url) ?>"/>
@@ -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 page</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">