public function getDevice()
 {
     global $wgUser, $wgTitle;
     $platforms = MobileWikihow::getPlatformConfigs();
     $device = $platforms['iphoneapp'];
     if ($wgUser->getID() > 0) {
         $device['show-ads'] = false;
     } elseif (wikihowAds::adExclusions($wgTitle)) {
         $device['show-ads'] = false;
     }
     return $device;
 }
Beispiel #2
0
 function parse()
 {
     global $wgContLang;
     $this->loadHtml();
     $platforms = MobileWikihow::getPlatformConfigs();
     $this->device = $platforms['iphoneapp'];
     $this->imageNsText = $wgContLang->getNsText(NS_IMAGE);
     $sections = $this->parseArticleHtml($this->html);
     return $sections;
 }