mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
ab61dbb173
Managing the transition from old implementation to new: * A version number is exported from skins.minerva.scripts to tell dormant code added to Echo in I09c27a084100b223662f84de6cbe01bebe1fe774 to begin running. * A skinStyle is added for the new `ext.echo.mobile` module. `mobile.notifications.overlay` will soon cease to exist but is kept registered for backwards compatibility reasons - Drop ev.preventDefault call from onSkinClick - it is no longer necessary and will ensure notifications overlay closes when shield is clicked while it is open. Integration: * A server side hook SkinMinervaReplaceNotificationsBadge allows Echo to replace the current Minerva notification badge * A to-be-created client side hook is subscribed to to deal with the navigations drawer like functionality using the mainMenu code * id and class names are added to the container for the NotificationBadge for compatibility with ext.echo.init in Minerva's desktop mode (it will work like Vector) See I09c27a084100b223662f84de6cbe01bebe1fe774 for understanding the bigger picture. Depends-On: I09c27a084100b223662f84de6cbe01bebe1fe774 Bug: T221007 Change-Id: I4c11f1b241d629e1b294ebaec17472fbf944f8c7
69 lines
2.2 KiB
Plaintext
69 lines
2.2 KiB
Plaintext
{{{headelement}}}
|
|
<div id="mw-mf-viewport">
|
|
<nav id="mw-mf-page-left" class="navigation-drawer navigation-drawer--loading view-border-box">
|
|
{{{mainmenuhtml}}}
|
|
</nav>
|
|
<div id="mw-mf-page-center">
|
|
<!-- transparent-shield can be removed when Drawer updated -->
|
|
<a class="mw-mf-page-center__mask transparent-shield" href="#"></a>
|
|
<header class="header-container header-chrome">
|
|
<form class="header" action="{{wgScript}}" method="get">
|
|
<div>{{{menuButton}}}</div>
|
|
<div class="branding-box">
|
|
<a href="{{mainPageURL}}">
|
|
<span>{{{siteheading}}}</span>
|
|
{{#isBeta}}<sup>β</sup>{{/isBeta}}
|
|
</a>
|
|
</div>
|
|
<div class="search-box">
|
|
<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}}"
|
|
value="{{search}}">
|
|
</div>
|
|
<nav class="minerva-user-navigation" aria-labelledby="minerva-user-menu-toggle"> {{! See ToggleList's toggleID. }}
|
|
<div>{{{searchButton}}}</div>
|
|
{{^isAnon}}
|
|
<div class="minerva-user-notifications" id="pt-notifications-alert">
|
|
{{{userNotificationsHTML}}}
|
|
</div>
|
|
{{/isAnon}}
|
|
{{#userMenuHTML}}{{{userMenuHTML}}}{{/userMenuHTML}}
|
|
</nav>
|
|
</form>
|
|
</header>
|
|
<main id="content" class="mw-body">
|
|
<div class="banner-container">
|
|
{{>banners}}
|
|
</div>
|
|
{{#hasheadingholder}}
|
|
{{{prebodyhtml}}}
|
|
<div class="pre-content heading-holder">
|
|
<div class="page-heading">
|
|
{{{headinghtml}}}
|
|
{{{taglinehtml}}}
|
|
</div>
|
|
{{#tabs}}
|
|
<div class="minerva__tab-container">
|
|
{{#items}}
|
|
<a href="{{href}}" rel="{{rel}}" class="minerva__tab {{class}}" data-event-name="tabs.{{context}}">{{text}}</a>
|
|
{{/items}}
|
|
</div>
|
|
{{/tabs}}
|
|
{{{pageactionshtml}}}
|
|
{{{postheadinghtml}}}
|
|
{{{internalBanner}}}
|
|
<div class="minerva__subtitle">{{{subtitle}}}</div>
|
|
</div>
|
|
{{/hasheadingholder}}
|
|
{{{precontenthtml}}}
|
|
{{{contenthtml}}}
|
|
<div class="post-content" id="page-secondary-actions">
|
|
{{{secondaryactionshtml}}}
|
|
</div>
|
|
</main>
|
|
{{>footer}}
|
|
</div>
|
|
</div>
|
|
<div class="mw-notification-area" data-mw="interface"></div>
|
|
<!-- v:8.1.12 -->
|