diff options
Diffstat (limited to 'templates/skeleton.php')
| -rw-r--r-- | templates/skeleton.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/skeleton.php b/templates/skeleton.php index 3aaf132..5186b4a 100644 --- a/templates/skeleton.php +++ b/templates/skeleton.php @@ -1,14 +1,16 @@ <?php - use Digitigrade\GlobalSettings; use Digitigrade\Model\FollowRelation; -$user = Digitigrade\Model\UserAccount::findByCurrentSession(); +use Digitigrade\Model\UserAccount; + +$user = UserAccount::findByCurrentSession(); +$settings = GlobalSettings::getInstance(); ?> <!DOCTYPE html> <html lang="en"> <head> - <title><?= $pageTitle ?></title> + <title><?= $pageTitle ?> — <?= $settings->get('instance.name') ?></title> <link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="https://fonts.bunny.net/css?family=dm-sans:400,400i,800,800i"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1"> @@ -29,7 +31,7 @@ $user = Digitigrade\Model\UserAccount::findByCurrentSession(); ]); call_template('navigation_links', ['links' => $links]); ?> - <span id="siteTitle"><?= GlobalSettings::getInstance()->get('instance.name') ?></span> + <span id="siteTitle"><?= $settings->get('instance.name') ?></span> <img id="loadingIndicator" class="htmx-indicator" src="/static/tail-spin.svg"> <?php if ($user == null): call_template('navigation_links', ['links' => [ @@ -61,6 +63,7 @@ $user = Digitigrade\Model\UserAccount::findByCurrentSession(); call_template('side_navigation', ['links' => $links]); } ?> + <p class="versionInfo"><?= sprintf(__('version'), get_version()) ?></p> </section> <section id="centrePane"> <?php if (!isset($renderTitleHeading) || $renderTitleHeading): ?> |
