mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
7d2d50873f
A new vector-2022 skin is added. This will be the eventual home of the new Vector skin when we are ready to migrate. Please see SkinVector class for the migration plan to simulate this as part of testing. Bug: T291098 Change-Id: Ibaddf94a5bfb5e21bbbaf1e0aa1b343a3f566d2d
52 lines
933 B
PHP
52 lines
933 B
PHP
<?php
|
|
|
|
/**
|
|
* @ingroup Skins
|
|
* @package Vector
|
|
* @internal
|
|
*/
|
|
class SkinVectorLegacy extends SkinVector {
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function __construct( $options = [] ) {
|
|
$options += [
|
|
'template' => self::getTemplateOption(),
|
|
'scripts' => self::getScriptsOption(),
|
|
'styles' => self::getStylesOption(),
|
|
];
|
|
parent::__construct( $options );
|
|
}
|
|
|
|
/**
|
|
* Temporary static function while we deprecate SkinVector class.
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getTemplateOption() {
|
|
return 'skin-legacy';
|
|
}
|
|
|
|
/**
|
|
* Temporary static function while we deprecate SkinVector class.
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function getScriptsOption() {
|
|
return [
|
|
'skins.vector.legacy.js',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Temporary static function while we deprecate SkinVector class.
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function getStylesOption() {
|
|
return [
|
|
'skins.vector.styles.legacy',
|
|
];
|
|
}
|
|
}
|