mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
ENHANCEMENT Added note about comment moderation to PageCommentInterface->PostCommentForm()
This commit is contained in:
parent
7ca05c6160
commit
f483e09ee0
@ -205,6 +205,19 @@ class PageCommentInterface extends RequestHandler {
|
|||||||
self::set_use_ajax_commenting(false);
|
self::set_use_ajax_commenting(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add note about moderated comments
|
||||||
|
if(PageComment::moderationEnabled()) {
|
||||||
|
$fields->push(
|
||||||
|
new LiteralField(
|
||||||
|
'ModerationNote',
|
||||||
|
sprintf(
|
||||||
|
'<p class="moderationMessage"><small>%s</small></p>',
|
||||||
|
_t('PageCommentInterface.ModerationEnabledNote', 'Note: Comments are moderated and won\'t show until they are approved')
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Shall We use AJAX?
|
// Shall We use AJAX?
|
||||||
if(self::$use_ajax_commenting) {
|
if(self::$use_ajax_commenting) {
|
||||||
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js');
|
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js');
|
||||||
|
@ -442,6 +442,7 @@ $lang['en_US']['PageComment']['SINGULARNAME'] = array(
|
|||||||
);
|
);
|
||||||
$lang['en_US']['PageCommentInterface']['COMMENTERURL'] = 'Your website URL';
|
$lang['en_US']['PageCommentInterface']['COMMENTERURL'] = 'Your website URL';
|
||||||
$lang['en_US']['PageCommentInterface']['DELETEALLCOMMENTS'] = 'Delete all comments on this page';
|
$lang['en_US']['PageCommentInterface']['DELETEALLCOMMENTS'] = 'Delete all comments on this page';
|
||||||
|
$lang['en_US']['PageCommentInterface']['ModerationEnabledNote'] = 'Note: Comments are moderated and won\'t show until they are approved';
|
||||||
$lang['en_US']['PageCommentInterface']['POST'] = 'Post';
|
$lang['en_US']['PageCommentInterface']['POST'] = 'Post';
|
||||||
$lang['en_US']['PageCommentInterface']['SPAMQUESTION'] = 'Spam protection question: %s';
|
$lang['en_US']['PageCommentInterface']['SPAMQUESTION'] = 'Spam protection question: %s';
|
||||||
$lang['en_US']['PageCommentInterface']['YOURCOMMENT'] = 'Comments';
|
$lang['en_US']['PageCommentInterface']['YOURCOMMENT'] = 'Comments';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user