コード例 #1
0
 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();
 }
コード例 #2
0
 public function getPromptHtml()
 {
     $this->setTemplatePath();
     $vars['mqg_pic'] = $this->getPicture();
     $vars['mqg_device'] = MobileWikihow::getDevice();
     return EasyTemplate::html('mqg_photo_prompt.tmpl.php', $vars);
 }
コード例 #3
0
ファイル: MQG.body.php プロジェクト: biribogos/wikihow-src
 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;
 }