aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/mobilepane_left.php
blob: 7dccca3566d4173b520f12d5dc4749825309ee94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
use Digitigrade\GlobalSettings;
use Digitigrade\Model\UserAccount;

$user = UserAccount::requireByCurrentSession();
$settings = GlobalSettings::getInstance();
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <title><?= __('writeNote.label') ?> &mdash; <?= $settings->get('instance.name') ?></title>
    <?php call_template('head_tags'); ?>
</head>

<body hx-boost="true">
    <header>
        <nav>
            <a id="leftPaneActivator" class="inlineIcon material-symbols-outlined" _="on click go back">close</a>
            <span></span>
            <span></span>
            <span>
                <img id="loadingIndicator" class="htmx-indicator" src="/static/tail-spin.svg">
            </span>
        </nav>
    </header>
    <main class="mobilePane">
        <?php
        $links = [
            '/feed/home' => __('timeline.home.shortName'),
            '/feed/global' => __('timeline.global.shortName'),
            '/feed/local' => __('timeline.local.shortName'),
        ];
        call_template('navigation_links', ['links' => $links]);

        call_template('write_note_form', ['actor' => $user->actor]);
        call_template('left_side_navigation');
        ?>
        <p class="versionInfo"><?= sprintf(__('version'), get_version()) ?></p>
    </main>
</body>

</html>