diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-03 14:10:08 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-03 14:10:08 +0200 |
commit | cc2a438199b02c78e5b2e2b71de8e56f6617eae9 (patch) | |
tree | 7ddbeba11a3c16ada13663e7b3bba9bef0f96ca6 /pages/toys.inc | |
parent | 48afc99d05c7bcd54231f340635f5102a03fbda4 (diff) | |
download | pluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.tar.gz pluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.tar.bz2 pluralconnect-cc2a438199b02c78e5b2e2b71de8e56f6617eae9.zip |
Updated 15 files (automated)
Diffstat (limited to 'pages/toys.inc')
-rw-r--r-- | pages/toys.inc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pages/toys.inc b/pages/toys.inc index 870bb62..df34af0 100644 --- a/pages/toys.inc +++ b/pages/toys.inc @@ -366,31 +366,6 @@ $parts = explode("/", $pagename); <div class="card-body"> <h4 class="card-title"><?= $item["name"] ?></h4> <p class="card-text"> - <!-- - <?php - - $uniquePonies = []; - - foreach ($item["ponies"] as $ponies) { - foreach ($ponies["members"] as $member) { - if (isset($uniquePonies[$member]) && !$uniquePonies[$member]) { - $uniquePonies[$member] = false; - } else { - $uniquePonies[$member] = $ponies["deprecated"]; - } - } - } - - foreach ($uniquePonies as $name => $deprecated): if (!$deprecated): ?> - <span data-bs-toggle="tooltip" title="<?= getMemberWithoutSystem($name)["display_name"] ?? getMemberWithoutSystem($name)["display_name"] ?>" style="display: inline-block;"> - <img src="/assets/uploads/pt-<?= getMemberWithoutSystem($name)["name"] ?>.png" style="width:32px;"> - </span> - <?php endif; endforeach; ?> - <?php foreach ($uniquePonies as $name => $deprecated): if ($deprecated): ?> - <span data-bs-toggle="tooltip" data-bs-html="true" title="<i><?= strip_tags(getMemberWithoutSystem($name)["display_name"] ?? getMemberWithoutSystem($name)["name"]) ?></i>" style="opacity:.5;display: inline-block;"> - <img src="/assets/uploads/pt-<?= getMemberWithoutSystem($name)["name"] ?>.png" style="width:32px;"> - </span> - <?php endif; endforeach; ?>--> <?= strlen(strip_tags($item["description"])) > 100 ? substr(strip_tags($item["description"]), 0, 100) . "…" : strip_tags($item["description"]) ?> </p> <?php if ($item["water"] === "in"): ?> |