You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
877 B

  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. class syntax_plugin_wrap_closesection extends DokuWiki_Syntax_Plugin {
  9. function getType(){ return 'substition';}
  10. function getPType(){ return 'block';}
  11. function getSort(){ return 195; }
  12. /**
  13. * Dummy handler, this syntax part has no syntax but is directly added to the instructions by the div syntax
  14. */
  15. function handle($match, $state, $pos, Doku_Handler $handler){
  16. }
  17. /**
  18. * Create output
  19. */
  20. function render($format, Doku_Renderer $renderer, $data) {
  21. if($format == 'xhtml'){
  22. /** @var Doku_Renderer_xhtml $renderer */
  23. $renderer->finishSectionEdit();
  24. return true;
  25. }
  26. return false;
  27. }
  28. }