Skip to content

Commit

Permalink
FANDOM's AssetsManager -> MW's ResourceLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
lkucharczyk committed Jul 24, 2018
1 parent 211d6f0 commit 42e1f80
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PortableInfoboxHooks.class.php
Expand Up @@ -5,11 +5,10 @@ class PortableInfoboxHooks {
public static function onBeforePageDisplay( OutputPage $out, Skin $skin ) {
global $wgEnablePortableInfoboxEuropaTheme;

Wikia::addAssetsToOutput( 'portable_infobox_js' );
$out->addModules( 'ext.PortableInfobox' );

Wikia::addAssetsToOutput( 'portable_infobox_scss' );
if ( !empty( $wgEnablePortableInfoboxEuropaTheme ) ) {
Wikia::addAssetsToOutput( 'portable_infobox_europa_theme_scss' );
$out->addModules( 'ext.PortableInfoboxEuropaTheme' );
}

return true;
Expand Down
13 changes: 13 additions & 0 deletions extension.json
Expand Up @@ -15,6 +15,19 @@
"MessagesDirs": {
"PortableInfobox": "i18n"
},
"ResourceModules": {
"ext.PortableInfobox": {
"scripts": "js/PortableInfobox.js",
"styles": "styles/PortableInfobox.scss"
},
"ext.PortableInfoboxEuropaTheme": {
"styles": "styles/PortableInfoboxEuropaTheme.scss"
}
},
"ResourceFileModulePaths": {
"localBasePath": "",
"remoteExtPath": "extensions/PortableInfobox"
},
"AutoloadClasses": {
"F": "includes/nirvana/WikiaApp.class.php",
"WikiaApp": "includes/nirvana/WikiaApp.class.php",
Expand Down

0 comments on commit 42e1f80

Please sign in to comment.