diff options
author | Daniel Baumann <daniel@debian.org> | 2024-12-01 21:17:14 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-12-12 11:27:45 +0100 |
commit | bf596cbb426bd672a46484bca3bd07cfa6662919 (patch) | |
tree | 41ef466309f3e567f63e8e68ef272b0a4e214138 /plugins/55/wrap/syntax/closesection.php | |
parent | Initial commit. (diff) | |
download | dokuwiki-plugins-extra-bf596cbb426bd672a46484bca3bd07cfa6662919.tar.xz dokuwiki-plugins-extra-bf596cbb426bd672a46484bca3bd07cfa6662919.zip |
Adding upstream version 20241201.upstream/20241201upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'plugins/55/wrap/syntax/closesection.php')
-rw-r--r-- | plugins/55/wrap/syntax/closesection.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/55/wrap/syntax/closesection.php b/plugins/55/wrap/syntax/closesection.php new file mode 100644 index 0000000..6e87481 --- /dev/null +++ b/plugins/55/wrap/syntax/closesection.php @@ -0,0 +1,35 @@ +<?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> + */ + +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($format, Doku_Renderer $renderer, $data) { + if($format == 'xhtml'){ + /** @var Doku_Renderer_xhtml $renderer */ + $renderer->finishSectionEdit(); + return true; + } + return false; + } + + +} + |