MediaWiki  REL1_24
ResourceLoaderSiteModule.php
Go to the documentation of this file.
00001 <?php
00028 class ResourceLoaderSiteModule extends ResourceLoaderWikiModule {
00029 
00030     /* Protected Methods */
00031 
00039     protected function getPages( ResourceLoaderContext $context ) {
00040         $pages = array();
00041         if ( $this->getConfig()->get( 'UseSiteJs' ) ) {
00042             $pages['MediaWiki:Common.js'] = array( 'type' => 'script' );
00043             $pages['MediaWiki:' . ucfirst( $context->getSkin() ) . '.js'] = array( 'type' => 'script' );
00044         }
00045         if ( $this->getConfig()->get( 'UseSiteCss' ) ) {
00046             $pages['MediaWiki:Common.css'] = array( 'type' => 'style' );
00047             $pages['MediaWiki:' . ucfirst( $context->getSkin() ) . '.css'] = array( 'type' => 'style' );
00048 
00049         }
00050         $pages['MediaWiki:Print.css'] = array( 'type' => 'style', 'media' => 'print' );
00051         return $pages;
00052     }
00053 
00054     /* Methods */
00055 
00061     public function getGroup() {
00062         return 'site';
00063     }
00064 }