Use developer URL in game details page and all games list
[stouyapi.git] / data / templates / allgames.tpl.php
index 613caadb60a7a718d6838e76babe3e5f3ab05db8..ded0ebd153f1b285794c324189f68b9345e1d855 100644 (file)
         <?= 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>