xref: /plugin/footerv2/syntax.php (revision 6721d9b0a9dc3929b825e6ef297736d1bd298df8)
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}
32?>
33