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