| @@ 407-413 (lines=7) @@ | ||
| 404 | } |
|
| 405 | } |
|
| 406 | } |
|
| 407 | if ( isset( $options['link-class'] ) ) { |
|
| 408 | if ( isset( $attrs['class'] ) ) { |
|
| 409 | $attrs['class'] .= " {$options['link-class']}"; |
|
| 410 | } else { |
|
| 411 | $attrs['class'] = $options['link-class']; |
|
| 412 | } |
|
| 413 | } |
|
| 414 | $html = Html::rawElement( isset( $attrs['href'] ) |
|
| 415 | ? 'a' |
|
| 416 | : $options['link-fallback'], $attrs, $html ); |
|
| @@ 138-148 (lines=11) @@ | ||
| 135 | */ |
|
| 136 | public static function getTextInputAttributes( array $attrs ) { |
|
| 137 | global $wgUseMediaWikiUIEverywhere; |
|
| 138 | if ( $wgUseMediaWikiUIEverywhere ) { |
|
| 139 | if ( isset( $attrs['class'] ) ) { |
|
| 140 | if ( is_array( $attrs['class'] ) ) { |
|
| 141 | $attrs['class'][] = 'mw-ui-input'; |
|
| 142 | } else { |
|
| 143 | $attrs['class'] .= ' mw-ui-input'; |
|
| 144 | } |
|
| 145 | } else { |
|
| 146 | $attrs['class'] = 'mw-ui-input'; |
|
| 147 | } |
|
| 148 | } |
|
| 149 | return $attrs; |
|
| 150 | } |
|
| 151 | ||