summaryrefslogtreecommitdiff
path: root/src/emotes/multiple_page.php
blob: e46c7abed06f7ae39b2edb18b4693a1b3314b9df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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>