1<?php
2/**
3 * @license    GPL (http://www.gnu.org/licenses/gpl.html)
4 * @author     Hans-Juergen Schuemmer
5 *
6 */
7
8if(!defined('DOKU_INC')) die();
9if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
10
11require_once DOKU_PLUGIN.'syntax.php';
12
13class syntax_plugin_footer extends DokuWiki_Syntax_Plugin {
14
15    function getType() {
16        return 'substition';
17    }
18
19    function getSort() {
20        return 170;             /* ??? */
21    }
22
23    function connectTo($mode) {
24        $this->Lexer->addSpecialPattern('~~NOFOOTER~~',$mode,'plugin_footer');
25    }
26
27    function handle($match, $state, $pos, Doku_Handler $handler){
28		$match = str_replace("~~NOFOOTER~~", '', $match);
29	}
30
31    function render($mode, Doku_Renderer $renderer, $data) {
32        if($mode == 'xhtml'){
33            return true;
34        }
35        return false;
36    }
37
38}
39?>
40