summaryrefslogtreecommitdiff
path: root/lib/partials.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-10 21:10:04 +0500
committerilotterytea <iltsu@alright.party>2025-12-10 21:10:04 +0500
commit0ffb5175771345f5216402d854f4f240528716f5 (patch)
treecb49a1a92d8045ea14f8fb84051a38f923a8b439 /lib/partials.php
parentf32b2094b304fa7832a8931b08a5bbb9cd1076eb (diff)
fix: sort option in search box
Diffstat (limited to 'lib/partials.php')
-rw-r--r--lib/partials.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/partials.php b/lib/partials.php
index 12aa23d..6d5a918 100644
--- a/lib/partials.php
+++ b/lib/partials.php
@@ -139,15 +139,15 @@ function html_navigation_search()
<?php
if (str_starts_with($_SERVER["REQUEST_URI"], "/emotes")) {
?>
- <label for="sort_by">Sort by</label>
- <select name="sort_by">
- <option value="high_ratings" <?= ($_GET["sort_by"] ?? "") == "high_ratings" ? "selected" : "" ?>>
+ <label for="s">Sort by</label>
+ <select name="s">
+ <option value="high_ratings" <?= ($_GET["s"] ?? "") == "high_ratings" ? "selected" : "" ?>>
High ratings</option>
- <option value="low_ratings" <?= ($_GET["sort_by"] ?? "") == "low_ratings" ? "selected" : "" ?>>Low
+ <option value="low_ratings" <?= ($_GET["s"] ?? "") == "low_ratings" ? "selected" : "" ?>>Low
ratings</option>
- <option value="recent" <?= ($_GET["sort_by"] ?? "") == "recent" ? "selected" : "" ?>>Recent
+ <option value="recent" <?= ($_GET["s"] ?? "") == "recent" ? "selected" : "" ?>>Recent
</option>
- <option value="oldest" <?= ($_GET["sort_by"] ?? "") == "oldest" ? "selected" : "" ?>>Oldest
+ <option value="oldest" <?= ($_GET["s"] ?? "") == "oldest" ? "selected" : "" ?>>Oldest
</option>
</select>
<?php