From 139e9108789737b050ca7c4c8d08fecd5fbbfea7 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 18 Apr 2016 15:53:27 +0200 Subject: [PATCH] Added box for page comments --- com.woltlab.wcf/box.xml | 10 +++ com.woltlab.wcf/objectType.xml | 6 ++ com.woltlab.wcf/templates/boxPageComments.tpl | 5 ++ com.woltlab.wcf/userGroupOption.xml | 48 +++++++++++ .../files/lib/acp/form/PageEditForm.class.php | 2 +- .../box/PageCommentsBoxController.class.php | 50 ++++++++++++ .../manager/PageCommentManager.class.php | 81 +++++++++++++++++++ wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + 9 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 com.woltlab.wcf/templates/boxPageComments.tpl create mode 100644 wcfsetup/install/files/lib/system/box/PageCommentsBoxController.class.php create mode 100644 wcfsetup/install/files/lib/system/comment/manager/PageCommentManager.class.php diff --git a/com.woltlab.wcf/box.xml b/com.woltlab.wcf/box.xml index c7c840ef35..cccf7d63a7 100644 --- a/com.woltlab.wcf/box.xml +++ b/com.woltlab.wcf/box.xml @@ -176,5 +176,15 @@ 1 0 + + + Kommentare + Page Comments + system + wcf\system\box\PageCommentsBoxController + contentBottom + 1 + 0 + diff --git a/com.woltlab.wcf/objectType.xml b/com.woltlab.wcf/objectType.xml index ddb79aae23..91e6426c8e 100644 --- a/com.woltlab.wcf/objectType.xml +++ b/com.woltlab.wcf/objectType.xml @@ -151,6 +151,12 @@ com.woltlab.wcf.moderation + + + com.woltlab.wcf.page + com.woltlab.wcf.comment.commentableContent + + diff --git a/com.woltlab.wcf/templates/boxPageComments.tpl b/com.woltlab.wcf/templates/boxPageComments.tpl new file mode 100644 index 0000000000..d2e5a0d926 --- /dev/null +++ b/com.woltlab.wcf/templates/boxPageComments.tpl @@ -0,0 +1,5 @@ +{include file='__commentJavaScript' commentContainerID='pageCommentList'} + + diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index eb6cc9cecc..fdb84aa4a4 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -29,6 +29,10 @@ user.message + + user + + mod @@ -36,6 +40,9 @@ mod.general + + mod.general + @@ -693,6 +700,25 @@ png]]> + + + + + + + + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 2234c3d5e7..96e6b176b6 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -2604,6 +2604,7 @@ Errors are: + -- 2.20.1