diff options
Diffstat (limited to 'templates/skeleton.php')
| -rw-r--r-- | templates/skeleton.php | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/templates/skeleton.php b/templates/skeleton.php index 3b2a963..f7670c0 100644 --- a/templates/skeleton.php +++ b/templates/skeleton.php @@ -11,18 +11,20 @@ $settings = GlobalSettings::getInstance(); <head> <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"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <script src="https://unpkg.com/htmx.org@2.0.4"></script> - <script src="https://unpkg.com/hyperscript.org@0.9.13"></script> - <script src="/static/language-switch.js" defer></script> + <?php call_template('head_tags'); ?> </head> <body hx-boost="true" hx-indicator="#loadingIndicator"> <header> <nav> + <?php if ($user != null): ?> + <a id="leftPaneActivator" href="/mobilepane/left" class="inlineIcon material-symbols-outlined"> + menu + </a> + <?php else: ?> + <span id="leftPaneActivator"></span> + <?php endif; ?> + <?php $links = $user == null ? [] : ['/feed/home' => __('timeline.home.shortName')]; $links = array_merge($links, [ @@ -33,6 +35,13 @@ $settings = GlobalSettings::getInstance(); ?> <span id="siteTitle"><?= $settings->get('instance.name') ?></span> <img id="loadingIndicator" class="htmx-indicator" src="/static/tail-spin.svg"> + + <?php if ($user != null): ?> + <a id="rightPaneActivator" href="/mobilepane/right" class="inlineIcon material-symbols-outlined"> + notifications + </a> + <?php endif; ?> + <?php if ($user == null): call_template('navigation_links', ['links' => [ '/login' => __('navigation.login') @@ -51,23 +60,8 @@ $settings = GlobalSettings::getInstance(); <?php if ($user != null) { call_template('write_note_form'); - $links = [[ - 'href' => '/followrequests', - 'icon' => 'person_add', - 'label' => __('navigation.followRequests'), - 'unreadCount' => FollowRelation::countWhere("object = ? AND status = 'pending'", [$user->actor->id]) - ]]; - if ($user->isAdmin) { - $links[] = ['href' => '/admin/settings/instance', 'icon' => 'settings', 'label' => __('navigation.instanceSettings')]; - } - $links[] = [ - 'href' => '/logout', - 'icon' => 'logout', - 'label' => __('navigation.logout'), - 'confirmation' => __('navigation.logout.confirmation') - ]; - call_template('side_navigation', ['links' => $links]); } + call_template('left_side_navigation'); ?> <p class="versionInfo"><?= sprintf(__('version'), get_version()) ?></p> </section> |
