1<?php 2/** 3 * Imageflow Plugin 4 * 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author i-net software <tools@inetsoftware.de> 7 * @author Gerry Weissbach <gweissbach@inetsoftware.de> 8 */ 9 10// must be run within Dokuwiki 11if(!defined('DOKU_INC')) die(); 12if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 13 14require_once(DOKU_PLUGIN.'syntax.php'); 15 16class syntax_plugin_pagetemplater extends DokuWiki_Syntax_Plugin { 17 18 function getInfo(){ 19 return array_merge(confToHash(dirname(__FILE__).'/info.txt'), array( 20 'name' => 'Page Templater Syntax Component', 21 )); 22 } 23 24 function getType() { return 'substition'; } 25 function getPType() { return 'block'; } 26 function getSort() { return 300; } 27 28 function connectTo($mode) { 29 $this->Lexer->addSpecialPattern('@@CONTENT@@', $mode, 'plugin_pagetemplater'); 30 } 31 32 function handle($match, $state, $pos, &$handler) { 33 34 return true; 35 } 36 37 function render($mode, &$renderer, $data) { 38 $renderer->doc .= "@@CONTENT@@"; 39 return true; 40 } 41} 42// vim:ts=4:sw=4:et:enc=utf-8: 43