Adding wrap version 2023-08-13 (63b6c01).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
82229a3e1e
commit
d25794905f
112 changed files with 4620 additions and 0 deletions
35
plugins/55/wrap/syntax/closesection.php
Normal file
35
plugins/55/wrap/syntax/closesection.php
Normal file
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue