|
@@ 564-567 (lines=4) @@
|
| 561 |
|
$wrapperAttributes = [ |
| 562 |
|
'class' => $divCssClasses, |
| 563 |
|
]; |
| 564 |
|
if ( $this->mHideIf ) { |
| 565 |
|
$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf ); |
| 566 |
|
$wrapperAttributes['class'][] = ' mw-htmlform-hide-if'; |
| 567 |
|
} |
| 568 |
|
$html = Html::rawElement( 'div', $wrapperAttributes, $label . $field ); |
| 569 |
|
$html .= $helptext; |
| 570 |
|
|
|
@@ 767-770 (lines=4) @@
|
| 764 |
|
} |
| 765 |
|
|
| 766 |
|
$rowAttributes = []; |
| 767 |
|
if ( $this->mHideIf ) { |
| 768 |
|
$rowAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf ); |
| 769 |
|
$rowAttributes['class'] = 'mw-htmlform-hide-if'; |
| 770 |
|
} |
| 771 |
|
|
| 772 |
|
$tdClasses = [ 'htmlform-tip' ]; |
| 773 |
|
if ( $this->mHelpClass !== false ) { |
|
@@ 801-804 (lines=4) @@
|
| 798 |
|
if ( $this->mHelpClass !== false ) { |
| 799 |
|
$wrapperAttributes['class'] .= " {$this->mHelpClass}"; |
| 800 |
|
} |
| 801 |
|
if ( $this->mHideIf ) { |
| 802 |
|
$wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf ); |
| 803 |
|
$wrapperAttributes['class'] .= ' mw-htmlform-hide-if'; |
| 804 |
|
} |
| 805 |
|
$div = Html::rawElement( 'div', $wrapperAttributes, $helptext ); |
| 806 |
|
|
| 807 |
|
return $div; |