<?php

/**
 * Info Indexmenu: Displays the index of a specified namespace. 
 *
 * Version: 2.4 
 * last modified: 2006-07-10 11:19:22
 * @license     GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author      Samuele Tognini <samuele@cli.di.unipi.it>
 * 
 */
 
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  
