1<?php
2/**
3 * Section close helper of the Wrap Plugin
4 *
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author     Michael Hamann <michael@content-space.de>
7 */
8
9class syntax_plugin_adhoctags_closesection extends DokuWiki_Syntax_Plugin {
10
11    function getType(){ return 'substition';}
12    function getPType(){ return 'block';}
13    function getSort(){ return 195; }
14
15    /**
16     * Dummy handler, this syntax part has no syntax but is directly added to the instructions by the div syntax
17     */
18    function handle($match, $state, $pos, Doku_Handler $handler){
19    }
20
21    /**
22     * Create output
23     */
24    function render($format, Doku_Renderer $renderer, $data) {
25        if($format == 'xhtml'){
26            /** @var Doku_Renderer_xhtml $renderer */
27            $renderer->finishSectionEdit();
28            return true;
29        }
30        return false;
31    }
32
33
34}
35
36