aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/skeleton.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/skeleton.php')
-rw-r--r--templates/skeleton.php72
1 files changed, 40 insertions, 32 deletions
diff --git a/templates/skeleton.php b/templates/skeleton.php
index 9e27386..3b2a963 100644
--- a/templates/skeleton.php
+++ b/templates/skeleton.php
@@ -46,39 +46,47 @@ $settings = GlobalSettings::getInstance();
</nav>
</header>
<main>
- <section id="leftPane">
- <?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')];
+ <div>
+ <section id="leftPane">
+ <?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]);
}
- $links[] = [
- 'href' => '/logout',
- 'icon' => 'logout',
- 'label' => __('navigation.logout'),
- 'confirmation' => __('navigation.logout.confirmation')
- ];
- call_template('side_navigation', ['links' => $links]);
- }
- ?>
- <p class="versionInfo"><?= sprintf(__('version'), get_version()) ?></p>
- </section>
- <section id="centrePane">
- <?php if (!isset($renderTitleHeading) || $renderTitleHeading): ?>
- <h1><?= $pageTitle ?></h1>
- <?php endif; ?>
- <?php slot(); ?>
- </section>
- <section id="rightPane">
-
- </section>
+ ?>
+ <p class="versionInfo"><?= sprintf(__('version'), get_version()) ?></p>
+ </section>
+ </div>
+ <div>
+ <section id="centrePane">
+ <?php if (!isset($renderTitleHeading) || $renderTitleHeading): ?>
+ <h1><?= $pageTitle ?></h1>
+ <?php endif; ?>
+ <?php slot(); ?>
+ </section>
+ </div>
+ <div>
+ <section id="rightPane">
+ <?php if ($user != null) {
+ call_template('notifications_panel', ['user' => $user]);
+ } ?>
+ </section>
+ </div>
</main>
</body>