40 parent::__construct( ...func_get_args() );
41 $this->vectorConfig = \MediaWiki\MediaWikiServices::getInstance()->getConfigFactory()
42 ->makeConfig(
'vector' );
47 $className = parent::getPageClasses(
$title );
55 if ( !$this->responsiveMode ) {
57 $out->addMeta(
'viewport',
'width=device-width, initial-scale=1' );
58 $out->addModuleStyles(
'skins.vector.styles.responsive' );
59 $this->responsiveMode =
true;
68 parent::initPage( $out );
70 if ( $this->vectorConfig->get(
'VectorResponsive' ) ) {
74 $out->addModules(
'skins.vector.js' );
82 parent::setupSkinUserCss( $out );
84 $out->addModuleStyles( [
85 'mediawiki.skinning.interface',
86 'skins.vector.styles',
97 public function setupTemplate( $classname, $repository =
false, $cache_dir =
false ) {
98 return new $classname( $this->vectorConfig );