| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | public function alterCommentForm(Form $form) { |
||
| 10 | $fields = $form->Fields(); |
||
| 11 | |||
| 12 | |||
| 13 | if ($emailField = $fields->dataFieldByName('Email')) { |
||
| 14 | $emailField |
||
| 15 | ->setTitle(_t('CwpCommentingExtension.EMAIL_TITLE', 'Email')) |
||
| 16 | ->setDescription(_t('CwpCommentingExtension.WILL_NOT_BE_PUBLISHED', 'Will not be published.')); |
||
| 17 | } |
||
| 18 | |||
| 19 | if ($urlField = $fields->dataFieldByName('URL')) { |
||
| 20 | $urlField |
||
| 21 | ->setTitle(_t('CwpCommentingExtension.WEBSITE_TITLE', 'Your website (optional)')) |
||
| 22 | ->setAttribute('placeholder', 'http://'); |
||
| 23 | } |
||
| 26 |