2021-09-09 22:13:48 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @ingroup Skins
|
|
|
|
* @package Vector
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
class SkinVector22 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';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Temporary static function while we deprecate SkinVector class.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public static function getScriptsOption() {
|
|
|
|
return [
|
2021-12-14 21:59:16 +00:00
|
|
|
'skins.vector.user',
|
2021-09-09 22:13:48 +00:00
|
|
|
'skins.vector.js',
|
|
|
|
'skins.vector.es6',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Temporary static function while we deprecate SkinVector class.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public static function getStylesOption() {
|
|
|
|
return [
|
|
|
|
'mediawiki.ui.button',
|
|
|
|
'skins.vector.styles',
|
2021-12-14 21:59:16 +00:00
|
|
|
'skins.vector.user.styles',
|
2021-09-09 22:13:48 +00:00
|
|
|
'skins.vector.icons',
|
|
|
|
'mediawiki.ui.icon',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|