MediaWiki
REL1_20
|
00001 <?php 00028 class ResourceLoaderSiteModule extends ResourceLoaderWikiModule { 00029 00030 /* Protected Methods */ 00031 00039 protected function getPages( ResourceLoaderContext $context ) { 00040 global $wgHandheldStyle; 00041 00042 $pages = array( 00043 'MediaWiki:Common.js' => array( 'type' => 'script' ), 00044 'MediaWiki:Common.css' => array( 'type' => 'style' ), 00045 'MediaWiki:' . ucfirst( $context->getSkin() ) . '.js' => array( 'type' => 'script' ), 00046 'MediaWiki:' . ucfirst( $context->getSkin() ) . '.css' => array( 'type' => 'style' ), 00047 'MediaWiki:Print.css' => array( 'type' => 'style', 'media' => 'print' ), 00048 ); 00049 if ( $wgHandheldStyle ) { 00050 $pages['MediaWiki:Handheld.css'] = array( 00051 'type' => 'style', 00052 'media' => 'handheld' ); 00053 } 00054 return $pages; 00055 } 00056 00057 /* Methods */ 00058 00064 public function getGroup() { 00065 return 'site'; 00066 } 00067 }