1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 09:14:58 +02:00
This commit is contained in:
Ryan Cramer
2019-06-27 13:53:01 -04:00
parent 46f62fa34f
commit 277f16dba7

View File

@@ -167,7 +167,11 @@ class CommentForm extends Wire implements CommentFormInterface {
$this->options['headline'] = "<$h3>" . $this->_('Post Comment') . "</$h3>"; // Form headline $this->options['headline'] = "<$h3>" . $this->_('Post Comment') . "</$h3>"; // Form headline
$this->options['successMessage'] = "<p class='success'><strong>" . $this->_('Thank you, your submission has been saved.') . "</strong></p>"; $this->options['successMessage'] = "<p class='success'><strong>" . $this->_('Thank you, your submission has been saved.') . "</strong></p>";
$this->options['pendingMessage'] = "<p class='success pending'><strong>" . $this->_('Your comment has been submitted and will appear once approved by the moderator.') . "</strong></p>"; $this->options['pendingMessage'] = "<p class='success pending'><strong>" . $this->_('Your comment has been submitted and will appear once approved by the moderator.') . "</strong></p>";
$this->options['errorMessage'] = "<p class='error'><strong>" . $this->_('Your submission was not saved due to one or more errors. Please check that you have completed all fields before submitting again.') . "</strong></p>"; $this->options['errorMessage'] = "<p class='error'><strong>" . $this->_('Your submission was not saved due to one or more errors. Please check that you have completed all fields before submitting again.') . "</strong></p>";
if(substr($this->wire('input')->url(), -1) != '/') {
$this->options['attrs']['action'] = $page->url;
}
// default labels // default labels
$this->options['labels']['cite'] = $this->_('Your Name'); $this->options['labels']['cite'] = $this->_('Your Name');