diff --git a/includes/VectorTemplate.php b/includes/VectorTemplate.php index 52b16aafa..9d80b3894 100644 --- a/includes/VectorTemplate.php +++ b/includes/VectorTemplate.php @@ -449,16 +449,29 @@ class VectorTemplate extends BaseTemplate { } private function renderSearchComponent() { + $searchHeaderAttrs = $this->data[ 'userlangattributes' ] ?? ''; + $searchAction = htmlspecialchars( $this->data[ 'wgScript' ] ?? '' ); + $searchDivID = $this->config->get( 'VectorUseSimpleSearch' ) ? 'simpleSearch' : ''; + $searchInputHTML = $this->makeSearchInput( [ 'id' => 'searchInput' ] ); + $titleHTML = Html::hidden( 'title', $this->get( 'searchtitle' ) ); + $fallbackSearchButtonHTML = $this->makeSearchButton( + 'fulltext', + [ 'id' => 'mw-searchButton', 'class' => 'searchButton mw-fallbackSearchButton' ] + ); + $searchButtonHTML = $this->makeSearchButton( + 'go', + [ 'id' => 'searchButton', 'class' => 'searchButton' ] + ); ?>