39 'default' =>
'wikimedia-ui'
43 if ( isset( $options[
'themeStyles'] ) ) {
44 $this->themeStyles = $options[
'themeStyles'];
51 if ( !$this->themeStylesAdded ) {
53 $themeMap = static::$builtinSkinThemeMap +
54 ExtensionRegistry::getInstance()->getAttribute(
'SkinCodexThemes' );
55 $theme = $themeMap[ $context->
getSkin() ] ?? $themeMap[
'default' ];
57 $styles = $this->themeStyles[ $theme ][ $dir ];
58 $this->styles = array_merge( $this->styles, (array)
$styles );
60 $this->themeStylesAdded =
true;
62 return parent::getStyleFiles( $context );
88 static $allIcons =
null;
89 if ( $allIcons ===
null ) {
90 $allIcons = json_decode( file_get_contents(
"$IP/resources/lib/codex-icons/codex-icons.json" ),
true );
92 return array_intersect_key( $allIcons, array_flip( $iconNames ) );
97class_alias( CodexModule::class,
'ResourceLoaderCodexModule' );
if(!defined( 'MEDIAWIKI')) if(ini_get('mbstring.func_overload')) if(!defined( 'MW_ENTRY_POINT')) global $IP
Environment checks.
The Registry loads JSON files, and uses a Processor to extract information from them.
Context object that contains information about the state of a specific ResourceLoader web request.
Interface for configuration instances.