/** * Construct */ public function __construct($baseUri) { parent::__construct(); // output $this->setOutputMode(self::HTML5); $this->htmlOutputModule->removeOptional = false; self::$advertisingNotice = false; // headings $this->headingModule->balancing = TexyHeadingModule::FIXED; // phrases $this->allowed['phrase/ins'] = true; // ++inserted++ $this->allowed['phrase/del'] = true; // --deleted-- $this->allowed['phrase/sup'] = true; // ^^superscript^^ $this->allowed['phrase/sub'] = true; // __subscript__ $this->allowed['phrase/cite'] = true; // ~~cite~~ $this->allowed['deprecated/codeswitch'] = true; // `=code // images $this->imageModule->fileRoot = WWW_DIR . "/files"; $this->imageModule->root = $baseUri . "/files/"; // flash, youtube.com, stream.cz, gravatar handlers $this->addHandler('image', array($this, 'youtubeHandler')); $this->addHandler('image', array($this, 'streamHandler')); $this->addHandler('image', array($this, 'flashHandler')); $this->addHandler("phrase", array($this, "netteLink")); $this->addHandler('image', array($this, 'gravatarHandler')); }
function __construct() { parent::__construct(); // some configurations $this->alignClasses['left'] = 'left'; $this->alignClasses['right'] = 'right'; }
public function __construct() { parent::__construct(); // output $this->setOutputMode(self::HTML4_TRANSITIONAL); $this->htmlOutputModule->removeOptional = false; self::$advertisingNotice = false; // headings $this->headingModule->balancing = TexyHeadingModule::FIXED; // phrases $this->allowed['phrase/ins'] = true; // ++inserted++ $this->allowed['phrase/del'] = true; // --deleted-- $this->allowed['phrase/sup'] = true; // ^^superscript^^ $this->allowed['phrase/sub'] = true; // __subscript__ $this->allowed['phrase/cite'] = true; // ~~cite~~ $this->allowed['deprecated/codeswitch'] = true; // `=code // images $this->imageModule->fileRoot = __DIR__ . "/images"; $this->imageModule->root = "images/"; // přidávání youtube.com, stream.cz videa, flash a gravatar $this->addHandler('image', array(__CLASS__, 'youtubeHandler')); $this->addHandler('image', array(__CLASS__, 'streamHandler')); $this->addHandler('image', array(__CLASS__, 'flashHandler')); $this->addHandler('image', array(__CLASS__, 'gravatarHandler')); }
public function __construct() { parent::__construct(); // safe mode \TexyConfigurator::safeMode($this); // output $this->setOutputMode(self::HTML4_TRANSITIONAL); $this->htmlOutputModule->removeOptional = false; self::$advertisingNotice = false; $this->allowed['heading/surrounded'] = false; $this->allowed['heading/underlined'] = false; $this->allowed['link/definition'] = false; $this->allowed['image/definition'] = false; $this->mergeLines = false; $this->addHandler('phrase', array(__CLASS__, 'linkHandler')); }
public function __construct() { parent::__construct(); // output $this->setOutputMode(self::HTML4_TRANSITIONAL); $this->htmlOutputModule->removeOptional = false; self::$advertisingNotice = false; // safe mode TexyConfigurator::safeMode($this); $this->allowed['heading/surrounded'] = false; $this->allowed['heading/underlined'] = false; $this->allowed['link/definition'] = false; $this->allowed['image/definition'] = false; // spojování textu v odstavcích po enteru $this->mergeLines = true; // přidání target="_blank" k odkazům // $this->addHandler('phrase', array(__CLASS__, 'addTargetHandler')); }
public function __construct() { parent::__construct(); $this->cache = SS_Cache::factory('SS_Texy'); $this->addHandler('script', array($this, 'scriptHandler')); }