コード例 #1
0
 protected function addJSLibs()
 {
     MobileBasicArticleBuilder::addJS('maim', true);
     // AIM.js
     MobileBasicArticleBuilder::addJS('muci', true);
     // User Completed Images script
 }
コード例 #2
0
 protected function addJSLibs()
 {
     global $wgLanguageCode;
     parent::addJSLibs();
     if ($wgLanguageCode == 'en' && $this->deviceOpts['show-checkmarks']) {
         self::addJS('cm', true);
         // checkmark js
     }
     if ($wgLanguageCode == 'en' && $this->deviceOpts['show-thumbratings']) {
         self::addJS('thr', true);
         // thumbs up/down ratings js
     }
     if ($wgLanguageCode == 'en' && $this->deviceOpts['show-cta']) {
         self::addJS('mtip', true);
         // tips features
         self::addJS('mtpt', true);
         // top ten tips feature
     }
     if ($wgLanguageCode == 'en' && class_exists('Hillary')) {
         self::addJS('stb', true);
         // Stubs / Hillary tool js
     }
     if (class_exists('WHVid') && strpos($this->nonMobileHtml, 'whvid_cont') !== false) {
         self::addJs('whv', true);
         // Wikivideo
     }
     if (class_exists('TextScroller') && strpos($this->nonMobileHtml, 'textscroller_outer') !== false) {
         self::addJS('ts', true);
         // TextScroller
     }
 }