summaryrefslogtreecommitdiff
path: root/src/partials.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-09 18:00:11 +0500
committerilotterytea <iltsu@alright.party>2025-05-09 18:00:11 +0500
commit84458ca14672d25514970a7ab596cb2e4ff269d6 (patch)
treed3c768f5379c806e6655543a15b820819f4843f1 /src/partials.php
parent655a39a31859f7d414a0eb055ee0771f09f25bc5 (diff)
feat: options to hide public lists of emotesets and users
Diffstat (limited to 'src/partials.php')
-rw-r--r--src/partials.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/partials.php b/src/partials.php
index 38e63bb..274e3ee 100644
--- a/src/partials.php
+++ b/src/partials.php
@@ -11,8 +11,15 @@ function html_navigation_bar()
</a>
<div class="links">
<a href="/emotes" class="button">Emotes</a>
- <a href="/emotesets.php" class="button">Emotesets</a>
- <a href="/users.php" class="button">Users</a>
+
+ <?php if (EMOTESET_PUBLIC_LIST): ?>
+ <a href="/emotesets.php">Emotesets</a>
+ <?php endif; ?>
+
+ <?php if (ACCOUNT_PUBLIC_LIST): ?>
+ <a href="/users.php">Users</a>
+ <?php endif; ?>
+
<?php if (EMOTE_UPLOAD && (ANONYMOUS_UPLOAD || (isset($_SESSION["user_role"]) && $_SESSION["user_role"]["permission_upload"]))) {
echo '<a href="/emotes/upload.php" class="button">Upload</a>';
} ?>