mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-25 08:05:51 +00:00
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',
|
||
|
];
|
||
|
}
|
||
|
}
|