From e0588a6113ff6b3c1000fa6c82629f81fb5e05b5 Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 15 Mar 2025 18:53:29 +0000 Subject: [refactor] move some templates to subdirs --- templates/actor/atom.php | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/actor/atom.php (limited to 'templates/actor/atom.php') diff --git a/templates/actor/atom.php b/templates/actor/atom.php new file mode 100644 index 0000000..8bd40fb --- /dev/null +++ b/templates/actor/atom.php @@ -0,0 +1,51 @@ +id/feed/$lang/feed.atom"); +$actorPage = path_to_uri("/@/$actor->handle"); + +echo ''; +?> + + + + <?= htmlspecialchars($actor->displayName) ?> — <?= GlobalSettings::getInstance()->get('instance.name') ?> + + created->format(DateTime::ATOM) ?> + + displayName) ?> + + + + + Digitigrade + avatar)): ?> + avatar ?> + + displayName) ?> + + + privacy->scope != NotePrivacyScope::PUBLIC || $note->inReplyTo != null) { + continue; + } + ?> + + id") ?> + <![CDATA[<?= htmlspecialchars(substr($note->plainContent, 0, 50), double_encode: false) ?>]]> + modified ?? $note->created)->format(DateTime::ATOM) ?> + handle/note/$note->id") ?>" /> + getBestContentAsHtml() ?>]]> + attachments as $file): ?> + + + + + \ No newline at end of file -- cgit v1.3