MediaWiki
REL1_34
ResourceLoaderSiteStylesModule.php
Go to the documentation of this file.
1
<?php
29
class
ResourceLoaderSiteStylesModule
extends
ResourceLoaderWikiModule
{
30
37
protected
function
getPages
(
ResourceLoaderContext
$context
) {
38
$pages = [];
39
if
( $this->
getConfig
()->
get
(
'UseSiteCss'
) ) {
40
$pages[
'MediaWiki:Common.css'
] = [
'type'
=>
'style'
];
41
$pages[
'MediaWiki:'
. ucfirst(
$context
->getSkin() ) .
'.css'
] = [
'type'
=>
'style'
];
42
$pages[
'MediaWiki:Print.css'
] = [
'type'
=>
'style'
,
'media'
=>
'print'
];
43
44
}
45
return
$pages;
46
}
47
51
public
function
getType
() {
52
return
self::LOAD_STYLES;
53
}
54
58
public
function
getGroup
() {
59
return
'site'
;
60
}
61
}
ResourceLoaderContext
Context object that contains information about the state of a specific ResourceLoader web request.
Definition
ResourceLoaderContext.php:33
ResourceLoaderModule\getConfig
getConfig()
Definition
ResourceLoaderModule.php:200
ResourceLoaderSiteStylesModule
Module for site style customizations.
Definition
ResourceLoaderSiteStylesModule.php:29
ResourceLoaderSiteStylesModule\getGroup
getGroup()
Definition
ResourceLoaderSiteStylesModule.php:58
ResourceLoaderSiteStylesModule\getType
getType()
Definition
ResourceLoaderSiteStylesModule.php:51
ResourceLoaderSiteStylesModule\getPages
getPages(ResourceLoaderContext $context)
Get list of pages used by this module.
Definition
ResourceLoaderSiteStylesModule.php:37
ResourceLoaderWikiModule
Abstraction for ResourceLoader modules which pull from wiki pages.
Definition
ResourceLoaderWikiModule.php:53
$context
$context
Definition
load.php:45
includes
resourceloader
ResourceLoaderSiteStylesModule.php
Generated on Mon Nov 25 2024 16:05:38 for MediaWiki by
1.10.0