* @return string
*/
private function makeForm() {
- global $wgScript;
-
$form = Html::openElement( 'fieldset' ) . "\n";
$form .= Html::element(
'legend',
array(),
$this->msg( 'booksources-search-legend' )->text()
) . "\n";
- $form .= Html::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . "\n";
+ $form .= Html::openElement( 'form', array( 'method' => 'get', 'action' => wfScript() ) ) . "\n";
$form .= Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() ) . "\n";
$form .= '<p>' . Xml::inputLabel(
$this->msg( 'booksources-isbn' )->text(),
'isbn',
20,
$this->isbn,
- array( 'autofocus' => true )
+ array( 'autofocus' => true, 'class' => 'mw-ui-input-inline' )
);
- $form .= ' ' . Xml::submitButton( $this->msg( 'booksources-go' )->text() ) . "</p>\n";
+
+ if ( $wgUseMediaWikiUIEverywhere ) {
+ $form .= ' ' . Xml::submitButton(
+ $this->msg( 'booksources-search' )->text(),
+ array( 'class' => 'mw-ui-button mw-ui-progressive' )
+ ) . "</p>\n";
+ } else {
+ $form .= ' ' . Xml::submitButton(
+ $this->msg( 'booksources-search' )->text()
+ ) . "</p>\n";
+ }
+
$form .= Html::closeElement( 'form' ) . "\n";
$form .= Html::closeElement( 'fieldset' ) . "\n";