Example #1
0
 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
     }
 }
Example #2
0
 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;
 }