blob: acc85d77ee3ca83131412a9ba1088b04d4a49b2e (
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
|
<?php
use Digitigrade\Model\NotePrivacyScope;
?>
<div class="infoLine">
<a class="authorName"
href="/@/<?= htmlspecialchars($note->author->getFullHandle()) ?>"><?= htmlspecialchars($note->author->displayName) ?></a>
<span class="authorPronouns">
<?php if (isset($note->author->pronouns) && trim($note->author->pronouns) != '') {
echo htmlspecialchars($note->author->pronouns);
} ?>
</span>
<a class="timestamp" href="<?= htmlspecialchars($note->getLocalUiHref()) ?>">
<?= format_datetime($note->created) ?>
</a>
<span class="privacyScope inlineIcon material-symbols <?= match ($note->privacy->scope) {
NotePrivacyScope::NONE => 'lock',
NotePrivacyScope::MUTUALS => 'group',
NotePrivacyScope::FOLLOWERS => 'groups',
NotePrivacyScope::PUBLIC => 'public'
} ?>" title="<?= match ($note->privacy->scope) {
NotePrivacyScope::NONE => __('note.privacy.scope.none'),
NotePrivacyScope::MUTUALS => __('note.privacy.scope.mutuals'),
NotePrivacyScope::FOLLOWERS => __('note.privacy.scope.followers'),
NotePrivacyScope::PUBLIC => __('note.privacy.scope.public')
} ?>"></span>
</div>
|