if ( $tagFilter ) {
$filterSelection = Html::rawElement(
'td',
- array( 'class' => 'mw-label' ),
- array_shift( $tagFilter )
- );
- $filterSelection .= Html::rawElement(
- 'td',
- array( 'class' => 'mw-input' ),
- implode( ' ', $tagFilter )
+ array(),
+ array_shift( $tagFilter ) . implode( ' ', $tagFilter )
);
} else {
$filterSelection = Html::rawElement( 'td', array( 'colspan' => 2 ), '' );
'target',
$this->opts['target'],
'text',
- array( 'size' => '40', 'required' => '', 'class' => 'mw-input' ) +
+ array( 'size' => '40', 'required' => '', 'class' => 'mw-input mw-ui-input-inline' ) +
( $this->opts['target'] ? array() : array( 'autofocus' )
)
);
$namespaceSelection = Xml::tags(
'td',
- array( 'class' => 'mw-label' ),
+ array(),
Xml::label(
$this->msg( 'namespace' )->text(),
'namespace',
''
- )
- );
- $namespaceSelection .= Html::rawElement(
- 'td',
- null,
+ ) .
Html::namespaceSelector(
array( 'selected' => $this->opts['namespace'], 'all' => '' ),
array(
$deletedOnlyCheck . $checkLabelTopOnly . $checkLabelNewOnly
);
+ $className = 'mw-submit';
+ if ( $this->getConfig( 'UseMediaWikiUIEverywhere') ) {
+ $className .= ' mw-ui-button mw-ui-progressive';
+ }
+
$dateSelectionAndSubmit = Xml::tags( 'td', array( 'colspan' => 2 ),
Xml::dateMenu(
$this->opts['year'] === '' ? MWTimestamp::getInstance()->format( 'Y' ) : $this->opts['year'],
) . ' ' .
Xml::submitButton(
$this->msg( 'sp-contributions-submit' )->text(),
- array( 'class' => 'mw-submit' )
+ array( 'class' => $className )
)
);