mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-11 22:06:07 +00:00
7530f1c145
- Update SkinMinerva class to output data previously handled by MinervaTemplate. - Update relevant templates with updated data keys. Bug: T293815 Change-Id: I33df396b07c4d2d9c1c5743d90dc54cdbd3345af
106 lines
4.3 KiB
Plaintext
106 lines
4.3 KiB
Plaintext
<div id="mw-mf-viewport">
|
|
<div id="mw-mf-page-center">
|
|
<a class="mw-mf-page-center__mask" href="#"></a>
|
|
<header class="header-container header-chrome">
|
|
<form class="minerva-header" {{#data-search-box}}action="{{form-action}}"{{/data-search-box}} method="get">
|
|
<nav class="navigation-drawer toggle-list view-border-box">
|
|
<input type="checkbox" id="main-menu-input" class="toggle-list__checkbox" role="button" aria-labelledby="mw-mf-main-menu-button">
|
|
<label for="main-menu-input" id="mw-mf-main-menu-button"
|
|
class=" mw-ui-button mw-ui-quiet mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-menu-base20 mw-ui-icon-flush-left toggle-list__toggle"
|
|
title="{{msg-mobile-frontend-main-menu-button-tooltip}}" data-event-name="ui.mainmenu">{{msg-mobile-frontend-main-menu-button-tooltip}}</label>
|
|
{{#data-minerva-main-menu}}{{>menu}}{{/data-minerva-main-menu}}
|
|
<label class="main-menu-mask" for="main-menu-input"></label>
|
|
</nav>
|
|
<div class="branding-box">
|
|
<a href="{{link-mainpage}}">
|
|
{{#data-logos}}
|
|
<span>{{>Logo}}</span>
|
|
{{/data-logos}}
|
|
{{#is-minerva-beta}}<sup>β</sup>{{/is-minerva-beta}}
|
|
</a>
|
|
</div>
|
|
{{#data-search-box}}
|
|
<div class="search-box">
|
|
<input type="hidden" name="title" value="{{page-title}}"/>
|
|
<input class="search mw-ui-background-icon-search skin-minerva-search-trigger" type="search" name="search" id="searchInput"
|
|
{{{html-input-attributes}}}">
|
|
</div>
|
|
{{/data-search-box}}
|
|
<nav class="minerva-user-navigation" aria-label="{{msg-minerva-user-navigation}}">
|
|
<div>
|
|
{{!
|
|
A button when clicked will submit the form
|
|
This is used so that on tablet devices with JS disabled the search button
|
|
passes the value of input to the search
|
|
We avoid using input[type=submit] as these cannot be easily styled as mediawiki ui icons
|
|
which is problematic in Opera Mini (see T140490)
|
|
}}
|
|
<button id="searchIcon" class="mw-ui-icon mw-ui-icon-element mw-ui-icon-wikimedia-search-base20 skin-minerva-search-trigger mw-ui-button mw-ui-quiet">{{msg-searchbutton}}</button>
|
|
</div>
|
|
{{^is-anon}}
|
|
<div class="minerva-user-notifications" id="pt-notifications-alert">
|
|
{{{html-minerva-user-notifications}}}
|
|
</div>
|
|
{{/is-anon}}
|
|
{{#html-minerva-user-menu}}{{{html-minerva-user-menu}}}{{/html-minerva-user-menu}}
|
|
</nav>
|
|
</form>
|
|
</header>
|
|
<main id="content" class="mw-body">
|
|
<div class="banner-container">
|
|
{{>banners}}
|
|
</div>
|
|
{{#html-user-message}}
|
|
<div class="minerva-anon-talk-message warningbox">
|
|
<span class="mw-ui-icon mw-ui-icon-wikimedia-userTalk-warning"></span>
|
|
{{{html-user-message}}}
|
|
</div>
|
|
{{/html-user-message}}
|
|
<div class="pre-content heading-holder">
|
|
<div class="page-heading">
|
|
{{{html-minerva-heading}}}
|
|
{{{html-minerva-tagline}}}
|
|
</div>
|
|
{{#data-minerva-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>
|
|
{{/data-minerva-tabs}}
|
|
{{#data-minerva-page-actions}}
|
|
{{>PageActionsMenu}}
|
|
{{/data-minerva-page-actions}}
|
|
{{{html-minerva-post-heading}}}
|
|
<div class="minerva__subtitle">{{{html-subtitle}}}</div>
|
|
</div>
|
|
<div id="bodyContent" class="content">
|
|
{{{html-body-content}}}
|
|
{{! This shows "Return to page" on talk page when talk tab not shown at top.
|
|
To see set wgMinervaTalkAtTop to false and visit a talk page}}
|
|
{{{html-minerva-subject-link}}}
|
|
</div>
|
|
<div class="post-content" id="page-secondary-actions">
|
|
{{#data-minerva-secondary-actions}}
|
|
{{#talk}}
|
|
<a {{#attributes}} href="{{href}}" data-title="{{data-title}}" class="{{class}} mw-ui-button button"{{/attributes}}>
|
|
{{{label}}}
|
|
</a>
|
|
{{/talk}}
|
|
{{#language}}
|
|
<a {{#attributes}} href="{{href}}" data-title="{{data-title}}" class="{{class}} mw-ui-button button"{{/attributes}}>
|
|
{{{label}}}
|
|
</a>
|
|
{{/language}}
|
|
{{/data-minerva-secondary-actions}}
|
|
</div>
|
|
{{#html-categories}}
|
|
<div class="post-content">{{{.}}}</div>
|
|
{{/html-categories}}
|
|
</main>
|
|
{{>footer}}
|
|
</div>
|
|
</div>
|
|
<div class="mw-notification-area" data-mw="interface"></div>
|
|
<!-- v:8.3.1 -->
|