1<?php
2
3/**
4 * Info Indexmenu: Displays the index of a specified namespace.
5 *
6 * Version: 2.4
7 * last modified: 2006-07-10 11:19:22
8 * @license     GPL 2 (http://www.gnu.org/licenses/gpl.html)
9 * @author      Samuele Tognini <samuele@cli.di.unipi.it>
10 *
11 */
12
13if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
14if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
15require_once(DOKU_PLUGIN.'syntax.php');
16
17/**
18 * All DokuWiki plugins to extend the parser/rendering mechanism
19 * need to inherit from this class
20 */
21class syntax_plugin_livepreview extends DokuWiki_Syntax_Plugin {
22
23  /*
24  *  JS will be used to make dynamic menu
25  *
26  *  @type boolean
27  *  @access private
28  */
29  var $js = false;
30  /**
31   * return some info
32   */
33  function getInfo(){
34    return array(
35                 'author' => 'Ilya Lebedev',
36                 'email'  => 'ilya@lebedev.net',
37                 'date'   => '2006-09-03',
38                 'name'   => 'Livepreview v0.2',
39                 'desc'   => 'Shows preview of the specified page',
40                 'url'    => 'https://www.dokuwiki.org/plugin:livepreview'
41                 );
42  }
43
44  /**
45   * What kind of syntax are we?
46   */
47  function getType(){
48    return 'substition';
49  }
50
51  /**
52   * Where to sort in?
53   */
54  function getSort(){
55    return 138;
56  }
57
58  /**
59   * Connect pattern to lexer
60   */
61  function connectTo($mode) {
62  }
63
64  /**
65   * Handle the match
66   */
67  function handle($match, $state, $pos, &$handler){
68  }
69
70  /**
71   * Render output
72   */
73  function render($mode, &$renderer, $data) {
74  }
75
76} //Livepreview class end
77