aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/note_page.php
diff options
context:
space:
mode:
authorwinter2025-03-15 18:53:29 +0000
committerwinter2025-03-15 18:53:29 +0000
commite0588a6113ff6b3c1000fa6c82629f81fb5e05b5 (patch)
treeef6beb046a7dcc7542b88f0962d4e5e264895b7a /templates/note_page.php
parent61b122e88cc6783b4d0cf5142a22002f8e558c60 (diff)
[refactor] move some templates to subdirs
Diffstat (limited to 'templates/note_page.php')
-rw-r--r--templates/note_page.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/templates/note_page.php b/templates/note_page.php
deleted file mode 100644
index 647c64e..0000000
--- a/templates/note_page.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/** @var \Digitigrade\Model\Note $note */
-
-use Digitigrade\FormattingProvider;
-use Digitigrade\Model\UserAccount;
-use Digitigrade\UserSettings;
-
-$page = $note->getPage();
-
-call_template('skeleton', ['pageTitle' => $page->title, 'renderTitleHeading' => false], function () use ($note, $page) { ?>
- <div class="notePage">
- <article lang="<?= htmlspecialchars($note->language) ?>">
- <h1><?= htmlspecialchars($page->title) ?></h1>
- <a class="pageAuthor" href="/@/<?= htmlspecialchars($note->author->getFullHandle()) ?>">
- <?php call_template('actor_avatar', ['actor' => $note->author]); ?>
- <span><?= __f(
- 'note.page.author',
- '<span class="displayName">' . htmlspecialchars($note->author->displayName) . '</span>'
- ) ?></span>
- </a>
- <div class="created">
- <?= __f('note.page.created', format_datetime($note->created)) ?>
- </div>
- <?php if (isset($note->modified) && $note->modified != $note->created): ?>
- <div class="modified">
- <?= __f('note.page.modified', format_datetime($note->modified)) ?>
- </div>
- <?php endif; ?>
- <hr>
- <div class="pageContent">
- <?= $page->getBestContentAsHtml() ?>
- </div>
- </article>
- </div>
-<?php }); \ No newline at end of file