diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-14 23:18:20 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-14 23:19:32 +0500 |
| commit | 44334d654977ed4ecd601c7a47127f91dea1517d (patch) | |
| tree | 64b7c5c08c4a69af14dbae9b55566e202c6fe521 /public/emotes/index.php | |
| parent | d461b5be189cb2f38a48e0e1d1e0ee6570b6e877 (diff) | |
feat: emote source
Diffstat (limited to 'public/emotes/index.php')
| -rw-r--r-- | public/emotes/index.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/public/emotes/index.php b/public/emotes/index.php index 978515f..68ae983 100644 --- a/public/emotes/index.php +++ b/public/emotes/index.php @@ -77,7 +77,8 @@ function display_list_emotes(PDO &$db, string $search, string $sort_by, int $pag $uploader, $row["is_in_user_set"], $row["rating"], - $row["visibility"] + $row["visibility"], + $row["source"] )); } @@ -107,7 +108,8 @@ function display_emote(PDO &$db, string $id) $row["uploaded_by"], false, ["total" => $row["total_rating"], "average" => $row["average_rating"]], - $row["visibility"] + $row["visibility"], + $row["source"] ); } } @@ -476,6 +478,15 @@ if (CLIENT_REQUIRES_JSON) { } ?></td> </tr> + <?php if ($emote->get_source()): ?> + <tr> + <th>Source</th> + <td> + <a href="<?php echo $emote->get_source() ?>" + target="_blank"><?php echo $emote->get_source() ?></a> + </td> + </tr> + <?php endif; ?> </table> </section> |
