summaryrefslogtreecommitdiff
path: root/src/emotes/multiple_page.php
blob: 25c4c9cb2b6c1ad8b0c8ecdc79d9c8967f50feb0 (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
38
39
40
41
42
43
44
45
46
47
48
<html>

<head>
    <title>AlrightTV</title>
    <link rel="stylesheet" href="/static/style.css">
</head>

<body>
    <div class="container">
        <div class="wrapper">
            <?php html_navigation_bar(); ?>
            <main class="page">
                <section class="sidebar">
                    <?php html_navigation_search(); ?>
                </section>
                <section 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() . "\">";

                                    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>";
                                }
                            } else {
                                // info
                                echo "";
                            }
                            ?>
                        </div>
                    </section>
                </section>
            </main>
        </div>
    </div>
</body>

</html>