Go to file
jdlrobson e2e3acf76a Print logo should use an absolute URI
The logo is configured as a relative URL.
CSSMin encodeImageAsDataURI requires a file path.

There seems to be no reason to use a data uri here.
The print stylesheet is loaded on page load so the image
will be downloaded before a print action takes place.

Inspecting I788bcecadf26e4e5558b5b37e6fb1b2e9378277e
using a data uri makes little difference to the synchronous
nature of a print.

Bug: T177800
Change-Id: I0254ae8e360f09fe1c786695510550c7fec02026
2017-10-11 19:06:29 +00:00
components Make dropdown menus appear above VisualEditor toolbar 2017-08-03 01:27:05 +02:00
i18n Localisation updates from https://translatewiki.net. 2017-09-04 22:04:31 +02:00
images Use tabs instead of spaces for indenting 2017-03-25 14:56:54 +01:00
screenshots Add skin screenshot for the installer 2017-08-11 15:37:34 -04:00
skinStyles Replace colors on Special:Preferences view with WikimediaUI ones 2017-08-18 15:42:33 -07:00
.eslintrc.json build: Replace jshint and jscs with eslint 2016-11-29 08:39:55 -08:00
.gitignore collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
.gitreview
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 06:46:03 +00:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md 2017-06-07 13:51:49 +04:30
collapsibleTabs.js build: Update eslint-config-wikimedia 0.4->0.5, eslint 19->20 2017-08-25 16:21:21 +01:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 0.12.0 2017-09-01 05:01:28 +00:00
COPYING
Gruntfile.js Use json extension for .stylelintrc 2017-08-19 06:46:03 +00:00
Hooks.php Vector should operate in responsive mode when the mobile skin 2017-07-03 15:57:49 -07:00
hooks.txt
jsduck.json collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
package.json build: Update eslint-config-wikimedia 0.4->0.5, eslint 19->20 2017-08-25 16:21:21 +01:00
phpcs.xml Don't pass $this by reference 2017-09-01 15:32:45 +01:00
print.less Merge "Change print wordmark margin bottom to 20px from 10px" 2017-08-22 22:16:08 +00:00
README.md Print logo should use an absolute URI 2017-10-11 19:06:29 +00:00
ResourceLoaderLessModule.php Print logo should use an absolute URI 2017-10-11 19:06:29 +00:00
responsive.less Use global variable for tablet media query in responsive.less 2016-12-13 15:27:38 -08:00
screen-hd.less Remove position: absolute from #p-logo element 2017-07-13 16:28:08 +08:00
screen.less build: Introduce stylelint and make pass 2016-11-29 08:40:03 -08:00
skin.json Add print logo 2017-08-01 10:55:53 -04:00
SkinVector.php Hygiene: Do not use ConfigFactory::getDefaultInstance() 2017-07-28 17:59:03 +02:00
variables.less chmod -x variables.less 2017-08-23 22:37:00 -07:00
vector.js build: Update eslint-config-wikimedia 0.4->0.5, eslint 19->20 2017-08-25 16:21:21 +01:00
Vector.php
VectorTemplate.php Don't pass $this by reference 2017-09-01 15:32:45 +01:00

Vector Skin

Configuration options

Logo used in print styles. Keys are url, width, and height (in pixels). Note that this solution only works correctly if the image pointed to by url is an SVG that does not specify width and height attributes, or its width and height match the corresponding variables below. Alternatively, a PNG or other type of image can be used, but its dimensions also need to match the corresponding variable below. That in turn may result in blurry images, though.

The URL can be absolute or relative.

Example configuration:

$wgVectorPrintLogo = [
	'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
	'width' => 174,
	'height' => 27
];
  • Type: Array
  • Default: false