mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-17 19:32:00 +00:00
407d367e37
* bug: Fix display of theme toggle button if set to auto * feat: Add subsearch script to drawer An input in the drawer allows to search portal headings and links for matching text - Hides all portals / links based on the search value Feature can be enabled by setting `$wgCitizenEnableDrawerSubSearch = true;` in LocalSettings. * bug: Fix subsearch
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
{{!
|
|
string msg-citizen-drawer-toggle The label used by the drawer button.
|
|
}}
|
|
<input
|
|
type="checkbox"
|
|
id="mw-drawer-checkbox"
|
|
class="mw-checkbox-hack-checkbox">
|
|
<label
|
|
id="mw-drawer-button"
|
|
class="mw-checkbox-hack-button"
|
|
for="mw-drawer-checkbox"
|
|
role="button"
|
|
aria-controls="mw-drawer">
|
|
{{msg-citizen-drawer-toggle}}
|
|
</label>
|
|
<div id="mw-drawer-button-icon">
|
|
<div id="mw-drawer-button-icon-1" class="mw-drawer-button-icon-div"></div>
|
|
<div id="mw-drawer-button-icon-2" class="mw-drawer-button-icon-div"></div>
|
|
<div id="mw-drawer-button-icon-3" class="mw-drawer-button-icon-div"></div>
|
|
</div>
|
|
<nav id="mw-drawer">
|
|
<section id="mw-drawer-logo" role="banner">
|
|
{{>Logo}}
|
|
</section>
|
|
<section id="mw-drawer-menu">
|
|
{{#data-drawer-subsearch}}<div style="display: flex; width: 100%;"><input type="text" id="drawer-search" style="margin: 0 auto;" /></div>{{/data-drawer-subsearch}}
|
|
{{#data-portals-first}}{{>Menu}}{{/data-portals-first}}
|
|
{{#array-portals-rest}}{{>Menu}}{{/array-portals-rest}}
|
|
{{#data-portals-languages}}{{>Menu}}{{/data-portals-languages}}
|
|
</section>
|
|
</nav> |