From b7f98ae1ab924edebb5a06506cc8545956fd8443 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 16 May 2025 02:35:37 +0500 Subject: feat: emote wall --- src/emote.php | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) (limited to 'src/emote.php') diff --git a/src/emote.php b/src/emote.php index fcc33ad..ce39c09 100644 --- a/src/emote.php +++ b/src/emote.php @@ -247,8 +247,10 @@ function html_featured_emote(PDO &$db) } } -function html_display_emotes(array $emotes) +function html_display_emotes(array $emotes, int $scale = 3) { + $emote_wall = intval($_COOKIE["emotelist_wall"] ?? "0") == 1; + foreach ($emotes as $e) { echo ""; @@ -258,11 +260,16 @@ function html_display_emotes(array $emotes) // icon echo '
'; - echo "{$e->code}"; + $scale = $emote_wall ? "3" : ((string) $scale); + echo "{$e->code}"; echo '
'; // info - echo '
'; + echo '
'; echo "

{$e->code}

"; if ($e->get_uploaded_by()) { @@ -291,4 +298,35 @@ function html_display_emoteset(array $emotesets) echo '
'; } +} + +function html_emotelist_mode() +{ + echo '' ?> + + +