diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-19 20:48:00 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-19 20:48:00 +0500 |
| commit | a7e961bcd2f1e8d98f2ffbb5ff37c2e7f9b981d1 (patch) | |
| tree | e5279f13563c7f923745990f48eedd89b396ae8d /src/emotes/multiple_page.php | |
| parent | 7a66de9852d4683a7b5cdcedb8e88cfdc73f4b56 (diff) | |
feat: show emotes
Diffstat (limited to 'src/emotes/multiple_page.php')
| -rw-r--r-- | src/emotes/multiple_page.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/emotes/multiple_page.php b/src/emotes/multiple_page.php new file mode 100644 index 0000000..e46c7ab --- /dev/null +++ b/src/emotes/multiple_page.php @@ -0,0 +1,37 @@ +<html> + +<head> + <title>AlrightTV</title> + <link rel="stylesheet" href="/static/style.css"> +</head> + +<body> + <div class="container"> + <div class="wrapper"> + <main class="content"> + <section class="box"> + <div class="box navtab"> + <?php echo isset($emotes) ? "Emotes" : "Emote" ?> + </div> + <div class="box content items"> + <?php + if (isset($emotes)) { + foreach ($emotes as $e) { + echo "<a class=\"box emote\" href=\"/emotes/" . $e->get_id() . "\">"; + 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>"; + } + } else { + // info + echo ""; + } + ?> + </div> + </section> + </main> + </div> + </div> +</body> + +</html>
\ No newline at end of file |
