Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | protected function _getHeaderCommentHtml($element) |
||
24 | { |
||
25 | $groupConfig = $element->getGroup(); |
||
26 | |||
27 | if (empty($groupConfig['help_url']) || !$element->getComment()) { |
||
28 | return parent::_getHeaderCommentHtml($element); |
||
29 | } |
||
30 | |||
31 | $html = '<div class="comment">'. |
||
32 | $element->getComment(). |
||
33 | ' <a target="_blank" href="'. |
||
34 | $groupConfig['help_url']. |
||
35 | '">'. |
||
36 | __( |
||
37 | 'Help' |
||
38 | ).'</a></div>'; |
||
39 | |||
40 | return $html; |
||
41 | } |
||
65 |