diff options
| author | ilotterytea <iltsu@alright.party> | 2025-10-01 22:55:06 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-10-01 22:55:06 +0500 |
| commit | 536e3c4825a33f061cc3c8ca8db5cab63c44aac9 (patch) | |
| tree | a1da856996303fc3f495b1178af3d251389a1223 | |
| parent | d7b91eddc715deaed60ffe592325b6ffd3d69089 (diff) | |
feat/fix: custom title + button position
| -rw-r--r-- | lib/partials.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/partials.php b/lib/partials.php index 5e187a5..f45229d 100644 --- a/lib/partials.php +++ b/lib/partials.php @@ -64,7 +64,7 @@ function html_big_navbar() <?php ; } -function html_mini_navbar(string|null $subtitle = null) +function html_mini_navbar(string|null $subtitle = null, string $title = INSTANCE_NAME) { $brand_url = '/static/img/brand/mini.webp'; $static_folder = '/static/img/brand/mini'; @@ -87,11 +87,11 @@ function html_mini_navbar(string|null $subtitle = null) <?php if ($subtitle): ?> <p class="font-small"><?= $subtitle ?></p> <?php endif; ?> - <h2><?= INSTANCE_NAME ?></h2> + <h2><?= $title ?></h2> </div> </a> - <div class="row gap-8 align-bottom" style="height: 100%"> + <div class="row gap-8 align-bottom"> <a href="/"> <button>Home</button> </a> |
