diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-09 01:51:38 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-09 01:51:38 +0500 |
| commit | 64a9bfae4a659f38f33320e59004a1d1dd259a40 (patch) | |
| tree | 037ada7511f50fa78dff1c6645b984b327f77ce2 /emotes/index.php | |
| parent | 29477e67ede12347b153e2255325327374e1b073 (diff) | |
upd: replaced <?php echo with <?=
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; ?> |
