diff options
Diffstat (limited to 'emotes/index.php')
| -rw-r--r-- | emotes/index.php | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/emotes/index.php b/emotes/index.php index 3999d8e..06d9e43 100644 --- a/emotes/index.php +++ b/emotes/index.php @@ -240,10 +240,9 @@ if (CLIENT_REQUIRES_JSON) { if (isset($_SESSION["user_role"]) && $_SESSION["user_role"]["permission_emoteset_own"]) { echo '' ?> <form action="/emotes/setmanip.php" method="POST"> - <input type="text" name="id" value="<?php echo $emote->get_id() ?>" - style="display: none;"> + <input type="text" name="id" value="<?= $emote->get_id() ?>" style="display: none;"> <input type="text" name="emote_set_id" - value="<?php echo $_SESSION["user_active_emote_set_id"] ?>" style="display: none;"> + value="<?= $_SESSION["user_active_emote_set_id"] ?>" style="display: none;"> <?php if ($added) { ?> @@ -251,13 +250,11 @@ if (CLIENT_REQUIRES_JSON) { <button type="submit" class="red">Remove from my channel</button> </form> <form action="/emotes/setmanip.php" method="POST" class="row"> - <input type="text" name="id" value="<?php echo $emote->get_id() ?>" - style="display: none;"> + <input type="text" name="id" value="<?= $emote->get_id() ?>" style="display: none;"> <input type="text" name="emote_set_id" - value="<?php echo $_SESSION["user_active_emote_set_id"] ?>" style="display: none;"> + value="<?= $_SESSION["user_active_emote_set_id"] ?>" style="display: none;"> <input type="text" name="value" id="emote-alias-input" - value="<?php echo $emote_current_name ?>" - placeholder="<?php echo $emote->get_code() ?>"> + value="<?= $emote_current_name ?>" placeholder="<?= $emote->get_code() ?>"> <input type="text" name="action" value="alias" style="display: none;"> <button type="submit" class="transparent"><img src="/static/img/icons/pencil.png" alt="Rename" title="Rename"></button> @@ -276,15 +273,13 @@ if (CLIENT_REQUIRES_JSON) { <?php if ($emote->get_uploaded_by() === $_SESSION["user_id"]): ?> <form action="/emotes/delete.php" method="post"> - <input type="text" name="id" value="<?php echo $emote->get_id() ?>" - style="display: none;"> + <input type="text" name="id" value="<?= $emote->get_id() ?>" style="display: none;"> <button type="submit" class="transparent"> <img src="/static/img/icons/bin.png" alt="Delete emote" title="Delete emote"> </button> </form> <form action="/emotes/delete.php" method="post"> - <input type="text" name="id" value="<?php echo $emote->get_id() ?>" - style="display: none;"> + <input type="text" name="id" value="<?= $emote->get_id() ?>" style="display: none;"> <input type="text" name="unlink" value="1" style="display:none"> <button type="submit" class="transparent"> <img src="/static/img/icons/link_break.png" alt="Remove your authorship" @@ -481,8 +476,8 @@ if (CLIENT_REQUIRES_JSON) { <tr> <th>Source</th> <td> - <a href="<?php echo $emote->get_source() ?>" - target="_blank"><?php echo $emote->get_source() ?></a> + <a href="<?= $emote->get_source() ?>" + target="_blank"><?= $emote->get_source() ?></a> </td> </tr> <?php endif; ?> |
