public function update($event, $val = null) { switch ($event) { case Render::CHUNK: parent::update($event, $val); break; case Render::STANDALONE: parent::update($event, $val); break; case Render::INIT: $this->setOutputDir(Config::output_dir() . strtolower($this->getFormatName()) . '/'); break; //No verbose } }
public function format_link($open, $name, $attrs, $props) { $link = parent::format_link($open, $name, $attrs, $props); // Add title attribute to external links so address can be seen in CHM files. $search = '`<a href="([^#"][^"]++)" class="link external">`'; $replacement = '<a href="\\1" class="link external" title="Link : \\1">'; $link = preg_replace($search, $replacement, $link); return $link; }