Set HTML/XHTML output mode (overwrites self::$allowedTags)
public setOutputMode ( $mode ) : void | ||
리턴 | void |
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(); }
/** * @return Texy */ public static function createTexy() { $texy = new Texy(); $texy->encoding = 'utf-8'; $texy->setOutputMode(Texy::HTML5); return $texy; }