diff options
author | Yaco <franco@reevo.org> | 2022-03-12 03:48:42 +0000 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2022-03-12 03:48:42 +0000 |
commit | 5a2b689265654f704d06eb2ea9ee1b21078edcfc (patch) | |
tree | b52e9ce5c8236d2ecf660950238c2dd3d42ad5d2 /platform/www/lib/plugins/wrap/syntax/closesection.php | |
parent | 46377a425154286e3072880d55667a18b4518df1 (diff) |
add plugins: wrap, bureaucracy, phpwikify
Diffstat (limited to 'platform/www/lib/plugins/wrap/syntax/closesection.php')
-rw-r--r-- | platform/www/lib/plugins/wrap/syntax/closesection.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/platform/www/lib/plugins/wrap/syntax/closesection.php b/platform/www/lib/plugins/wrap/syntax/closesection.php new file mode 100644 index 0000000..4bb4837 --- /dev/null +++ b/platform/www/lib/plugins/wrap/syntax/closesection.php @@ -0,0 +1,40 @@ +<?php +/** + * Section close helper of the Wrap Plugin + * + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + * @author Michael Hamann <michael@content-space.de> + */ + +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_wrap_closesection extends DokuWiki_Syntax_Plugin { + + function getType(){ return 'substition';} + function getPType(){ return 'block';} + function getSort(){ return 195; } + + /** + * Dummy handler, this syntax part has no syntax but is directly added to the instructions by the div syntax + */ + function handle($match, $state, $pos, Doku_Handler $handler){ + } + + /** + * Create output + */ + function render($mode, Doku_Renderer $renderer, $indata) { + if($mode == 'xhtml'){ + /** @var Doku_Renderer_xhtml $renderer */ + $renderer->finishSectionEdit(); + return true; + } + return false; + } + + +} + |