Comment Hint
Add a few instructions for your visitors on how to write a comment, right below the comment message field.
Something looks broken? We accept bounties to fix them faster.
^ | 203 Downloads |
---|---|
v1.1.0 | 200 Downloads |
v1.0.1 | 209 Downloads |
v1.0.0 | 109 Downloads |
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 to be written in the comment body.'
];
You can also specify it through the extension state modifier. Makes the comment hint becomes even more dynamic:
<?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 to be written in the comment body.';
}
State::set('x.comment\.hint.content', $hint);