public function createByHtml(&$t, &$nonMobileHtml) { if ((!$t || !$t->exists()) && !$this instanceof Mobile404Builder && !$this instanceof MobileSampleBuilder) { return ''; } $this->deviceOpts = MobileWikihow::getDevice(); $this->t = $t; $this->nonMobileHtml = $nonMobileHtml; $this->setTemplatePath(); $this->addCSSLibs(); $this->addJSLibs(); return $this->generateHtml(); }
public function getPromptHtml() { $this->setTemplatePath(); $vars['mqg_pic'] = $this->getPicture(); $vars['mqg_device'] = MobileWikihow::getDevice(); return EasyTemplate::html('mqg_photo_prompt.tmpl.php', $vars); }
private function getBodyVars(&$qgItem) { wfProfileIn(__METHOD__); $vars['mqg_article'] = $this->getArticleHtml($qgItem); $vars['mqg_pic'] = $this->picture; $vars['mqg_device'] = MobileWikihow::getDevice(); wfProfileOut(__METHOD__); return $vars; }