mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
355b188db4
A new config flag wgVectorLanguageInHeader is added to allow us to render languages in sidebar or outside sidebar, in the header. it defaults to false to allow for further development and to not disrupt the status quo. To accomodate the new menu, a new header is added based on the design in Minerva to contain the heading and language button. The language button is floated to the right. The new menu is not styled. That exercise is left for the follow up task T268241 No caching implications of this change, as legacy and modern experiences remain touched without changing the default value of the new config flag Bug: T260738 Change-Id: I5af1522cac3831c1c833388461fe254c03191f65
25 lines
908 B
Plaintext
25 lines
908 B
Plaintext
{{!
|
|
@typedef object emphasized-sidebar-action
|
|
@prop string href
|
|
@prop string text
|
|
|
|
string html-logo-attributes for site logo. Must be used inside tag e.g. `class="logo" lang="en-gb"`
|
|
MenuDefinition data-portlets-first
|
|
MenuDefinition[] array-portlets-rest
|
|
emphasized-sidebar-action data-emphasized-sidebar-action For displaying an emphasized action in the sidebar.
|
|
}}
|
|
|
|
<div id="mw-panel" class="mw-sidebar">
|
|
{{#data-portlets-first}}{{>Menu}}{{/data-portlets-first}}
|
|
{{#data-emphasized-sidebar-action}}
|
|
<div class="mw-sidebar-action">
|
|
<a class="mw-sidebar-action-link" title="{{msg-vector-opt-out-tooltip}}"
|
|
href="{{href}}">{{msg-vector-opt-out}}</a>
|
|
</div>
|
|
{{/data-emphasized-sidebar-action}}
|
|
{{#array-portlets-rest}}{{>Menu}}{{/array-portlets-rest}}
|
|
{{^is-language-in-header}}
|
|
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
|
|
{{/is-language-in-header}}
|
|
</div>
|