@@ -14,20 +14,20 @@ |
||
14 | 14 | */ |
15 | 15 | class CwpCommentingExtension extends Extension |
16 | 16 | { |
17 | - public function alterCommentForm(Form $form) |
|
18 | - { |
|
19 | - $fields = $form->Fields(); |
|
17 | + public function alterCommentForm(Form $form) |
|
18 | + { |
|
19 | + $fields = $form->Fields(); |
|
20 | 20 | |
21 | - if ($emailField = $fields->dataFieldByName('Email')) { |
|
22 | - $emailField |
|
23 | - ->setTitle(_t(__CLASS__ . '.EMAIL_TITLE', 'Email')) |
|
24 | - ->setDescription(_t(__CLASS__ . '.WILL_NOT_BE_PUBLISHED', 'Will not be published.')); |
|
25 | - } |
|
21 | + if ($emailField = $fields->dataFieldByName('Email')) { |
|
22 | + $emailField |
|
23 | + ->setTitle(_t(__CLASS__ . '.EMAIL_TITLE', 'Email')) |
|
24 | + ->setDescription(_t(__CLASS__ . '.WILL_NOT_BE_PUBLISHED', 'Will not be published.')); |
|
25 | + } |
|
26 | 26 | |
27 | - if ($urlField = $fields->dataFieldByName('URL')) { |
|
28 | - $urlField |
|
29 | - ->setTitle(_t(__CLASS__ . '.WEBSITE_TITLE', 'Your website (optional)')) |
|
30 | - ->setAttribute('placeholder', 'http://'); |
|
31 | - } |
|
32 | - } |
|
27 | + if ($urlField = $fields->dataFieldByName('URL')) { |
|
28 | + $urlField |
|
29 | + ->setTitle(_t(__CLASS__ . '.WEBSITE_TITLE', 'Your website (optional)')) |
|
30 | + ->setAttribute('placeholder', 'http://'); |
|
31 | + } |
|
32 | + } |
|
33 | 33 | } |