mediawiki-skins-Citizen/templates/Drawer.mustache
2024-05-08 16:47:46 -04:00

30 lines
1 KiB
Plaintext

{{!
string msg-citizen-drawer-toggle The label used by the drawer button.
string msg-sitetitle the contents of the sitesubtitle message key
}}
<div class="citizen-drawer citizen-header__item citizen-menu-checkbox-container">
<input
type="checkbox"
id="citizen-drawer__checkbox"
class="citizen-menu-checkbox-checkbox"
role="button"
aria-labelledby="citizen-drawer__buttonCheckbox"
aria-haspopup="true">
{{>Drawer__button}}
{{! ID needed for a11y and checkbox hack }}
<aside id="citizen-drawer__card" class="citizen-drawer__card citizen-menu-checkbox-target">
<header class="citizen-drawer__header">
{{>Drawer__logo}}
<div class="citizen-drawer__siteinfo">
{{#data-sitestats}}{{>Drawer__siteStats}}{{/data-sitestats}}
<div class="mw-logo-wordmark">{{msg-sitetitle}}</div>
</div>
</header>
{{#data-main-menu}}
<section class="citizen-drawer__menu">
{{#data-portlets-first}}{{>Menu}}{{/data-portlets-first}}
{{#array-portlets-rest}}{{>Menu}}{{/array-portlets-rest}}
</section>
{{/data-main-menu}}
</aside>
</div>