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