setOutputMode() public method

Set HTML/XHTML output mode (overwrites self::$allowedTags)
public setOutputMode ( $mode ) : void
return void
コード例 #1
0
ファイル: BaseFrontPresenter.php プロジェクト: krupaj/my-blog
 public function beforeRender()
 {
     //nastaveni spravne cesty k obrazkum pro Texy
     $this->texy->imageModule->root = $this->template->basePath . '/images/';
     $this->texy->setOutputMode(\Texy\Texy::HTML5);
     $this->texy->figureModule->leftClass = 'pull-left';
     $this->texy->figureModule->rightClass = 'pull-right';
     $this->texy->imageModule->leftClass = 'pull-left';
     $this->texy->imageModule->rightClass = 'pull-right';
     $this->template->today = new \Nette\Utils\DateTime();
 }
コード例 #2
0
ファイル: TexyFactory.php プロジェクト: Aprila/laboratory
 /**
  * @return Texy
  */
 public static function createTexy()
 {
     $texy = new Texy();
     $texy->encoding = 'utf-8';
     $texy->setOutputMode(Texy::HTML5);
     return $texy;
 }