Use developer URL in game details page and all games list
[stouyapi.git] / data / templates / allgames.tpl.php
index 613caad..ded0ebd 100644 (file)
         <?= htmlspecialchars($game->title) ?>
        </a>
       </td>
         <?= 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>
       <td><?= htmlspecialchars($game->suggestedAge) ?></td>
       <td><?= htmlspecialchars(implode(', ', $game->players)) ?></td>
       <td><?= htmlspecialchars(implode(', ', $game->genres)) ?></td>