diff options
| author | winter | 2025-03-22 19:41:55 +0000 |
|---|---|---|
| committer | winter | 2025-03-22 19:41:55 +0000 |
| commit | 39fcc5d52ac4c6e76ff87d95ef5b4b63300fe071 (patch) | |
| tree | 75b83a228906064e80160359a76fa3820a9449eb /templates/pages/page.php | |
| parent | b535baf69b9a2525bc8a33b9c96460b84af8e6e2 (diff) | |
implement editing pages
Diffstat (limited to 'templates/pages/page.php')
| -rw-r--r-- | templates/pages/page.php | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/templates/pages/page.php b/templates/pages/page.php index 97cea6d..4babb9d 100644 --- a/templates/pages/page.php +++ b/templates/pages/page.php @@ -13,27 +13,6 @@ call_template('skeleton', [ 'ogHandle' => '@' . $note->author->getFullHandle(true) ], 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> + <?php call_template('pages/page_item', ['note' => $note, 'page' => $page]); ?> </div> <?php });
\ No newline at end of file |
