aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/mobilepane_left.php
blob: 6af46647c8fc281bf875ec959c03a62da45db5fa (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
44
45
46
<?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>
    <header id="header" hx-swap-oob="true">
        <nav>
            <a id="leftPaneActivator" class="inlineIcon material-symbols close" _="on click go back"></a>
            <span></span>
            <span></span>
            <span>
                <img id="loadingIndicator" class="htmx-indicator" src="/static/tail-spin.svg">
            </span>
        </nav>
    </header>
    <main class="mobilePane" id="main" hx-boost="true" hx-indicator="#loadingIndicator" hx-vals='{"fl": 1}'
        hx-swap-oob="true">
        <section id="centrePane">
            <?php
            $links = [
                '/feed/home' => __('timeline.home.shortName'),
                '/feed/global' => __('timeline.global.shortName'),
                '/feed/local' => __('timeline.local.shortName'),
            ];
            call_template('navigation/header_links', ['links' => $links]);

            call_template('note/write_form', ['actor' => $user->actor]);
            call_template('navigation/left_side');
            ?>
            <p class="versionInfo"><?= sprintf(__('version'), get_version()) ?></p>
        </section>
    </main>
</body>

</html>