git.cweiske.de
/
stouyapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use developer URL in game details page and all games list
[stouyapi.git]
/
data
/
templates
/
game.tpl.php
diff --git
a/data/templates/game.tpl.php
b/data/templates/game.tpl.php
index 621049c3d505543b2fcfcbffa3fa70e3e080047b..4f7779e2f4d13d0f6452440cb77683c53d1b3455 100644
(file)
--- a/
data/templates/game.tpl.php
+++ b/
data/templates/game.tpl.php
@@
-23,8
+23,8
@@
<dt>Developer</dt>
<dd class="company">
<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 else: ?>
<?= htmlspecialchars($json->developer->name) ?>
<?php endif ?>
@@
-82,7
+82,12
@@
<?php endif ?>
<?php if ($internetArchiveUrl): ?>
<div>
<?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>
</div>
<?php endif ?>
<div>