blob: 94bc2f210c42d0a3d62822decaac696b5040d2ae (
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
|
<?php
$user = Digitigrade\Model\UserAccount::findByCurrentSession();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?= $pageTitle ?></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>
</head>
<body hx-boost="true">
<header>
<nav>
<ul>
<li><a href="/feed/global"><?= __('timeline.global.shortName') ?></a></li>
<li><a href="/feed/local"><?= __('timeline.local.shortName') ?></a></li>
</ul>
<span id="siteTitle"><?= __('digitigrade') ?></span>
<?php if ($user == null): ?>
<ul>
<li><a href="/login"><?= __('navigation.login') ?></a></li>
</ul>
<?php else: ?>
<div>
<?php call_template('actor_avatar', ['actor' => $user->actor]) ?>
<?= $user->actor->displayName ?>
</div>
<?php endif; ?>
</nav>
</header>
<main>
<?php if (!isset($renderTitleHeading) || $renderTitleHeading): ?>
<h1><?= $pageTitle ?></h1>
<?php endif; ?>
<?php slot(); ?>
</main>
</body>
</html>
|