From f8e675e602a11a874c375c4d725edd2accfe4b5a Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 23 May 2017 23:14:00 +0200 Subject: [PATCH] Posting works via AJAX now --- commentform.phtml | 71 ++++++++++++++++++++++++++++++++++------------- init.php | 2 +- 2 files changed, 52 insertions(+), 21 deletions(-) diff --git a/commentform.phtml b/commentform.phtml index adf0af2..8d07af0 100644 --- a/commentform.phtml +++ b/commentform.phtml @@ -1,32 +1,63 @@ -
-

Reply to this post

-
- - - - +

Reply to this post

+
+ + + + + + + + + - + -
+ +
-
+
+ +
-
- or - - Reply with Quill - + diff --git a/init.php b/init.php index 863608c..0f9a2bb 100644 --- a/init.php +++ b/init.php @@ -87,7 +87,6 @@ class Micropub extends Plugin implements IHandler if (!count($accounts)) { return $article; } - array_shift($accounts); ob_start(); include __DIR__ . '/commentform.phtml'; $html = ob_get_clean(); @@ -239,6 +238,7 @@ class Micropub extends Plugin implements IHandler [ 'code' => intval($code), 'location' => $location, + 'message' => 'Post created', ] ); exit(); -- 2.30.2