move playable icon next to title

This commit is contained in:
olebeck 2022-09-21 16:25:55 +02:00
parent 8664dc380a
commit 207a52987a
2 changed files with 31 additions and 19 deletions

View File

@ -302,29 +302,31 @@ include("header.php");
} }
} }
} }
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev";
if($playableSearch === true || $searchUsed === false)
$authorUrl .= "&playable=on";
if($simulatorSearch === true || $searchUsed === false)
$authorUrl .= "&simulator=on";
if($unplayableSearch === true || $searchUsed === false)
$authorUrl .= "&unplayable=on";
?> ?>
<a class="psm-game" href="?game=<?php echo $titleid ?>"> <a class="psm-game" href="?game=<?php echo $titleid ?>">
<img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" loading="lazy" width="124" height="124"> <img src="/gameinfo/<?php echo $titleid ?>/icon_128x128.png" loading="lazy" width="124" height="124">
<div class="psm-game-info"> <div class="psm-game-info">
<span><?php echo $title ?></span> <div class="psm-game-title">
<?php if(getSdkType($xml) == "PSM Unity") { ?> <span><?php echo $title ?></span>
<img src="/img/unity.png" title="Made With Unity" width="10" height="10"> <?php if(getSdkType($xml) == "PSM Unity") { ?>
<?php } if($isPlayable) { ?> <img src="/img/unity.png" title="Made With Unity" width="10" height="10">
<img src="/img/playable.png" title="zRIF Known" width="10" height="10"> <?php } if($isPlayable) { ?>
<?php } if($isPlayablePending) { ?> <img src="/img/playable.png" title="zRIF Known" width="10" height="10">
<img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" > <?php } if($isPlayablePending) { ?>
<?php } if($hasSimulator) { ?> <img src="/img/pending_playable.png" title="zRIF Maybe Known" width="10" height="10" >
<img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" > <?php } if($hasSimulator) { ?>
<?php } <img src="/img/simulator.png" title="Simulator Files Avalible" width="10" height="10" >
<?php } ?>
$authorUrl = "libary.php?search=".urlencode($author)."&searchby=dev"; </div>
if($playableSearch === true || $searchUsed === false) <table>
$authorUrl .= "&playable=on";
if($simulatorSearch === true || $searchUsed === false)
$authorUrl .= "&simulator=on";
if($unplayableSearch === true || $searchUsed === false)
$authorUrl .= "&unplayable=on";
?><table>
<tbody> <tbody>
<tr> <tr>
<td>Genre:</td> <td>Genre:</td>

View File

@ -213,6 +213,16 @@
.psm-game-info > table { .psm-game-info > table {
display: block; display: block;
} }
.psm-game-title {
display: flex;
flex-direction: row;
align-items: center;
}
.psm-game-title > span {
margin-right: 3px;
}
.psm-meta { .psm-meta {
backdrop-filter: blur(10px); backdrop-filter: blur(10px);