Comment Hint

Adds a few instructions for your visitors on how to leave a comment, just below the comment message field.

0 stars out of 5

00000
  • AuthorTaufik Nurrohman
  • Maintainer1
  • Member
  • Version1.2.1

Open .\lot\x\comment.hint\state.php file, then replace the default comment hint state as you wish:

<?php

return [
    'content' => 'Some HTML tags are allowed in the comment body.'
];

To make the comment hint even more dynamic, you can also specify it using the extension state modifier:

<?php

if ($is_comment_use_markdown) {
    $hint = 'Please use Markdown syntax in the comment body. All HTML tags will be removed!';
} else {
    $hint = 'Some HTML tags are allowed in the comment body.';
}

State::set("x.comment\\.hint.content", $hint);

0 Comments

No comments yet.