diff options
author | Minteck <contact@minteck.org> | 2022-08-21 17:31:56 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-08-21 17:31:56 +0200 |
commit | a2df9a69dcc14cb70118cda2ded499055e7ee358 (patch) | |
tree | 6dd283e4e9452d38bce81ddaaae49b5335755842 /includes/system/compare.php | |
parent | 84dd0735820b16b60f600284d35183d76547a71f (diff) | |
download | pluralconnect-a2df9a69dcc14cb70118cda2ded499055e7ee358.tar.gz pluralconnect-a2df9a69dcc14cb70118cda2ded499055e7ee358.tar.bz2 pluralconnect-a2df9a69dcc14cb70118cda2ded499055e7ee358.zip |
m. update
Diffstat (limited to 'includes/system/compare.php')
-rw-r--r-- | includes/system/compare.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/includes/system/compare.php b/includes/system/compare.php index 96eb5d9..6d69cd0 100644 --- a/includes/system/compare.php +++ b/includes/system/compare.php @@ -105,29 +105,33 @@ function getMember(string $id) { <?php foreach ($metadata["species"] ?? [] as $species): ?> <img data-bs-toggle="tooltip" title="<?php switch ($species) { case "earth": - echo "Earth pony"; + if ($metadata["robot"]) echo "Robot earth pony"; else echo "Earth pony"; break; case "alicorn": - echo "Alicorn"; + if ($metadata["robot"]) echo "Robot alicorn"; else echo "Alicorn"; + break; + + case "crystal": + if ($metadata["robot"]) echo "Robot crystal pony"; else echo "Crystal pony"; break; case "pegasus": - echo "Pegasus"; + if ($metadata["robot"]) echo "Robot pegasus"; else echo "Pegasus"; break; case "batpony": - echo "Bat pony"; + if ($metadata["robot"]) echo "Robot bat pony"; else echo "Bat pony"; break; case "unicorn": - echo "Unicorn"; + if ($metadata["robot"]) echo "Robot unicorn"; else echo "Unicorn"; break; default: - echo $species; + echo $species . "_" . $metadata["robot"]; break; - } ?>" style="width:24px;vertical-align: middle;position:relative;top:-5px;" src="/assets/species/<?= $species ?>.png" alt="<?= $species ?>"> + } ?>" style="width:24px;vertical-align: middle;position:relative;top:-5px;" src="/assets/species/<?= $species ?><?= $metadata["robot"] ? "-robot" : "" ?>.png" alt="<?= $species ?>"> <?php endforeach; ?> </span> <span class="comparison-item"> |