mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-27 17:10:19 +00:00
Use SkinMustache value for user messages
This is now provided in the core SkinMustache interface and is not needed here. Change-Id: Iaee8fad2b1fd5e72beee544b0c2e8f62ff371073
This commit is contained in:
parent
be6734937f
commit
14e8b4d5b7
|
@ -116,8 +116,6 @@ class SkinVector extends SkinMustache {
|
|||
//
|
||||
// Conditionally used values must use null to indicate absence (not false or '').
|
||||
$mainPageHref = Skin::makeMainPageUrl();
|
||||
// From Skin::getNewtalks(). Always returns string, cast to null if empty.
|
||||
$newTalksHtml = $skin->getNewtalks() ?: null;
|
||||
|
||||
$isSearchInHeader = $featureManager->isFeatureEnabled( Constants::FEATURE_SEARCH_IN_HEADER );
|
||||
|
||||
|
@ -130,7 +128,6 @@ class SkinVector extends SkinMustache {
|
|||
// Remember that the string '0' is a valid title.
|
||||
// From OutputPage::getPageTitle, via ::setPageTitle().
|
||||
'html-title' => $out->getPageTitle(),
|
||||
'html-newtalk' => $newTalksHtml ? '<div class="usermessage">' . $newTalksHtml . '</div>' : '',
|
||||
|
||||
'html-categories' => $skin->getCategories(),
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
{{#page-isarticle}}<div id="siteSub" class="noprint">{{msg-tagline}}</div>{{/page-isarticle}}
|
||||
<div id="contentSub"{{{html-user-language-attributes}}}>{{{html-subtitle}}}</div>
|
||||
<div id="contentSub2">{{{html-undelete-link}}}</div>
|
||||
{{{html-newtalk}}}
|
||||
{{{html-user-message}}}
|
||||
{{!
|
||||
Keep this empty `div` for compatibility with gadgets and user scripts
|
||||
using this place to insert extra elements before.
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
{{#page-isarticle}}<div id="siteSub" class="noprint">{{msg-tagline}}</div>{{/page-isarticle}}
|
||||
<div id="contentSub"{{{html-user-language-attributes}}}>{{{html-subtitle}}}</div>
|
||||
<div id="contentSub2">{{{html-undelete-link}}}</div>
|
||||
{{{html-newtalk}}}
|
||||
{{{html-user-message}}}
|
||||
{{^is-search-in-header}}
|
||||
<a class="mw-jump-link" href="#mw-sidebar-button">{{msg-vector-jumptonavigation}}</a>
|
||||
<a class="mw-jump-link" href="#searchInput">{{msg-vector-jumptosearch}}</a>
|
||||
|
|
Loading…
Reference in a new issue