diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-21 17:33:46 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-21 17:33:46 +0500 |
| commit | 92ea7a326b4430f3dbeb94f150df680e432f5ddf (patch) | |
| tree | 0fa7d96a4c45837d4c41b5e84b3c7c1aa16286be /src/emotes/multiple_page.php | |
| parent | 3c97031c879a227018dbdc4189b896a0a8998b06 (diff) | |
feat: check emote if it has been already added
Diffstat (limited to 'src/emotes/multiple_page.php')
| -rw-r--r-- | src/emotes/multiple_page.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emotes/multiple_page.php b/src/emotes/multiple_page.php index 8e2b4d7..25c4c9c 100644 --- a/src/emotes/multiple_page.php +++ b/src/emotes/multiple_page.php @@ -23,6 +23,11 @@ if (isset($emotes)) { foreach ($emotes as $e) { echo "<a class=\"box emote\" href=\"/emotes/" . $e->get_id() . "\">"; + + if ($e->is_added_by_user()) { + echo '<img src="/static/img/icons/yes.png" class="emote-check" />'; + } + echo "<img src=\"/static/userdata/emotes/" . $e->get_id() . "/2x." . $e->get_ext() . "\" alt=\"" . $e->get_code() . "\"/>"; echo "<p>" . $e->get_code() . "</p>"; echo "</a>"; |
