Rjain has uploaded a new change for review. https://gerrit.wikimedia.org/r/57533
Change subject: (bug 43680) "Set $WgLogo to the .... " should be internationalised changed the default logo to mediawiki.png in setup.php, added the message in i18n and defined some css property in screen.css to place the message over the logo. ...................................................................... (bug 43680) "Set $WgLogo to the .... " should be internationalised changed the default logo to mediawiki.png in setup.php, added the message in i18n and defined some css property in screen.css to place the message over the logo. Change-Id: I9274fd895b09d3b21a4683fd6b55d63734451b8f --- M includes/Setup.php M languages/messages/MessagesEn.php M skins/Vector.php M skins/vector/screen.css 4 files changed, 10 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/33/57533/1 diff --git a/includes/Setup.php b/includes/Setup.php index e87b200..c0c8e65 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -73,7 +73,7 @@ if ( $wgStyleDirectory === false ) $wgStyleDirectory = "$IP/skins"; if ( $wgExtensionAssetsPath === false ) $wgExtensionAssetsPath = "$wgScriptPath/extensions"; -if ( $wgLogo === false ) $wgLogo = "$wgStylePath/common/images/wiki.png"; +if ( $wgLogo === false ) $wgLogo = "$wgStylePath/common/images/mediawiki.png"; if ( $wgUploadPath === false ) $wgUploadPath = "$wgScriptPath/images"; if ( $wgUploadDirectory === false ) $wgUploadDirectory = "$IP/images"; diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 3cbb89d..1a1a64f 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -688,6 +688,7 @@ 'underline-never' => 'Never', 'underline-default' => 'Skin or browser default', +'change-logo-url' => 'Set $WgLogo to the URL path of your own logo image', # Font style option in Special:Preferences 'editfont-style' => 'Edit area font style:', 'editfont-default' => 'Browser default', diff --git a/skins/Vector.php b/skins/Vector.php index d0f9995..fdb4ee3 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -243,7 +243,7 @@ <!-- panel --> <div id="mw-panel"> <!-- logo --> - <div id="p-logo" role="banner"><a style="background-image: url(<?php $this->text( 'logopath' ) ?>);" href="<?php echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] ) ?>" <?php echo Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( 'p-logo' ) ) ?>></a></div> + <div id="p-logo" role="banner"><div id="change-logo-url"><?php $this->msg( 'change-logo-url' ) ?> </div><a style="background-image: url(<?php $this->text( 'logopath' ) ?>);" href="<?php echo htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] ) ?>" <?php echo Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( 'p-logo' ) ) ?>></a></div> <!-- /logo --> <?php $this->renderPortals( $this->data['sidebar'] ); ?> </div> diff --git a/skins/vector/screen.css b/skins/vector/screen.css index 2e09ee1..f282146 100644 --- a/skins/vector/screen.css +++ b/skins/vector/screen.css @@ -576,6 +576,13 @@ background-position: center center; text-decoration: none; } +div#change-logo-url { + position: absolute; + margin-top: 2em; + margin-left: 1em; + width: 7em; + text-align: center; +} /* * -- To view, visit https://gerrit.wikimedia.org/r/57533 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9274fd895b09d3b21a4683fd6b55d63734451b8f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Rjain <richa.jain1...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits