* */ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); require_once(DOKU_PLUGIN.'syntax.php'); /** * All DokuWiki plugins to extend the parser/rendering mechanism * need to inherit from this class */ class syntax_plugin_livepreview extends DokuWiki_Syntax_Plugin { /* * JS will be used to make dynamic menu * * @type boolean * @access private */ var $js = false; /** * return some info */ function getInfo(){ return array( 'author' => 'Ilya Lebedev', 'email' => 'ilya@lebedev.net', 'date' => '2006-09-03', 'name' => 'Livepreview v0.2', 'desc' => 'Shows preview of the specified page', 'url' => 'https://www.dokuwiki.org/plugin:livepreview' ); } /** * What kind of syntax are we? */ function getType(){ return 'substition'; } /** * Where to sort in? */ function getSort(){ return 138; } /** * Connect pattern to lexer */ function connectTo($mode) { } /** * Handle the match */ function handle($match, $state, $pos, &$handler){ } /** * Render output */ function render($mode, &$renderer, $data) { } } //Livepreview class end