diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-18 13:34:08 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-18 13:34:08 +0500 |
| commit | 01b4d8ac76a2a6a7ee57dd173f3894022977d2cb (patch) | |
| tree | fa35eb8093b12aa18030d834ceabeccabaedae1f /lib/partials.php | |
| parent | 1a97ab8f9fbaf93ba100ea22533ba48f524821bf (diff) | |
feat: file catalogue
Diffstat (limited to 'lib/partials.php')
| -rw-r--r-- | lib/partials.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/partials.php b/lib/partials.php index 6c69c62..24e6e70 100644 --- a/lib/partials.php +++ b/lib/partials.php @@ -15,6 +15,11 @@ function html_big_navbar() <a href="/"> <button>Home</button> </a> + <?php if (FILE_CATALOG_PUBLIC || isset($_SESSION['is_moderator'])): ?> + <a href="/catalogue.php"> + <button>Catalogue</button> + </a> + <?php endif; ?> <?php if (FILE_CATALOG_RANDOM): ?> <a href="/?random"> <button>I'm Feeling Lucky</button> @@ -33,19 +38,29 @@ function html_big_navbar() <?php ; } -function html_mini_navbar() +function html_mini_navbar(string|null $subtitle = null) { echo '' ?> <section class="row align-center gap-8 navbar"> <a href="/" class="row gap-8 align-bottom" style="text-decoration:none;color:inherit;"> <img src="/static/img/brand/mini.webp" alt=""> - <h2><?= INSTANCE_NAME ?></h2> + <div class="column"> + <?php if ($subtitle): ?> + <p class="font-small"><?= $subtitle ?></p> + <?php endif; ?> + <h2><?= INSTANCE_NAME ?></h2> + </div> </a> <div class="row gap-8 align-bottom" style="height: 100%"> <a href="/"> <button>Home</button> </a> + <?php if (FILE_CATALOG_PUBLIC || isset($_SESSION['is_moderator'])): ?> + <a href="/catalogue.php"> + <button>Catalogue</button> + </a> + <?php endif; ?> <?php if (FILE_CATALOG_RANDOM): ?> <a href="/?random"> <button>I'm Feeling Lucky</button> |
