mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-01 09:16:34 +00:00
Merge "Update search form to use the default search page from the skin"
This commit is contained in:
commit
69999c2191
|
@ -240,6 +240,7 @@ class MinervaTemplate extends BaseTemplate {
|
||||||
$skinOptions->get( SkinOptions::TALK_AT_TOP ) ? [
|
$skinOptions->get( SkinOptions::TALK_AT_TOP ) ? [
|
||||||
'items' => array_values( $data['content_navigation']['namespaces'] ),
|
'items' => array_values( $data['content_navigation']['namespaces'] ),
|
||||||
] : false,
|
] : false,
|
||||||
|
'searchPageTitle' => $this->getSkin()->getSearchPageTitle(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
|
<input type="hidden" name="title" value="{{searchPageTitle}}"/>
|
||||||
<input class="search mw-ui-background-icon-search skin-minerva-search-trigger" type="search" name="search" id="searchInput"
|
<input class="search mw-ui-background-icon-search skin-minerva-search-trigger" type="search" name="search" id="searchInput"
|
||||||
autocomplete="off" placeholder="{{placeholder}}" aria-label="{{placeholder}}"
|
autocomplete="off" placeholder="{{placeholder}}" aria-label="{{placeholder}}"
|
||||||
value="{{search}}">
|
value="{{search}}">
|
||||||
|
|
Loading…
Reference in a new issue