02d4e4929f
The SkinVector implements IContextSource, thus it has to provide the getConfig() method. Vector skin is currently using it's own `vectorConfig` in one place and it passes the VectorConfig to the VectorTemplate class. Sadly the VectorConfig is the same thing what $this->getConfig() provides. There is no need to make this code more complex by handling two different config containers which at the end are the same GlobalVarConfig instances. If we decide to handle VectorConfigs differently, let's thing it through, for now we should simplify code and remove all uncessary logic. Thanks to that, there is also no need to override the setupTemplate(). Change-Id: I89c8a77f7d96f867c8c72e61f9e104e14d9512d9 |
||
---|---|---|
.phan | ||
components | ||
i18n | ||
images | ||
includes | ||
screenshots | ||
skinStyles | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
CODE_OF_CONDUCT.md | ||
COPYING | ||
Gruntfile.js | ||
README.md | ||
collapsibleTabs.js | ||
composer.json | ||
hooks.txt | ||
jsduck.json | ||
package-lock.json | ||
package.json | ||
print.less | ||
responsive.less | ||
screen-hd.less | ||
screen.less | ||
skin.json | ||
variables.less | ||
vector.js |
README.md
Vector Skin
Configuration options
$wgVectorPrintLogo
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