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