From 39fcc5d52ac4c6e76ff87d95ef5b4b63300fe071 Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 22 Mar 2025 19:41:55 +0000 Subject: implement editing pages --- templates/pages/editable.php | 39 ++++++++++++++++++++++++++++++ templates/pages/page.php | 23 +----------------- templates/pages/page_item.php | 55 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 95 insertions(+), 22 deletions(-) create mode 100644 templates/pages/editable.php create mode 100644 templates/pages/page_item.php (limited to 'templates/pages') diff --git a/templates/pages/editable.php b/templates/pages/editable.php new file mode 100644 index 0000000..67c97ca --- /dev/null +++ b/templates/pages/editable.php @@ -0,0 +1,39 @@ +
+
+
+ + +
+ +
+ + $note->author]); ?> + ' . htmlspecialchars($note->author->displayName) . '' + ) ?> + +
+ created)) ?> +
+ modified) && $note->modified != $note->created): ?> +
+ modified)) ?> +
+ +
+
+ +
+ + +
+ +
+ + +
+
+
\ No newline at end of file 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) { ?>
-
-

title) ?>

- - $note->author]); ?> - ' . htmlspecialchars($note->author->displayName) . '' - ) ?> - -
- created)) ?> -
- modified) && $note->modified != $note->created): ?> -
- modified)) ?> -
- -
-
- getBestContentAsHtml() ?> -
-
+ $note, 'page' => $page]); ?>
+
+ +
+
+ getBestContentAsHtml() ?> +
+
\ No newline at end of file -- cgit v1.3