*/ class syntax_plugin_s5 extends SyntaxPlugin { /** @inheritdoc */ public function getType() { return 'substition'; } /** @inheritdoc */ public function getPType() { return 'normal'; } /** @inheritdoc */ public function getSort() { return 800; } /** @inheritdoc */ public function connectTo($mode) { $this->Lexer->addSpecialPattern('~~SLIDESHOW[^~]*~~', $mode, 'plugin_s5'); } /** @inheritdoc */ public function handle($match, $state, $pos, Doku_Handler $handler) { if ($match != '~~SLIDESHOW~~') return [trim(substr($match, 11, -2))]; return []; } /** @inheritdoc */ public function render($format, Doku_Renderer $renderer, $data) { global $ID; if ($format != 'xhtml') return false; $renderer->doc .= ''; $renderer->doc .= '' . $this->getLang('view') . ''; $renderer->doc .= ''; return true; } }