public function render($format, Doku_Renderer $renderer, $data) { $class = ''; // Add section edit infos only in XHTML renderers which are // sufficiently new if ($format === 'xhtml' && method_exists($renderer, 'startSectionEdit')) { // Call 'startSectionEdit' in two different ways... if (defined('SEC_EDIT_PATTERN')) { // FIXME: Insert plugin name here as 'target' // and section name as 'name' $sectionEditData = ['target' => 'plugin_exampleplugin', 'name' => 'section-name']; /* @var Doku_Renderer_xhtml $renderer */ $class = $renderer->startSectionEdit($data['bytepos_start'], $sectionEditData); } else { // backwards-compatibility for Frusterick Manners (2017-02-19) // FIXME: Insert plugin name here as section type // and section name as title /* @var Doku_Renderer_xhtml $renderer */ $class = $renderer->startSectionEdit($data['bytepos_start'], 'plugin_exampleplugin', 'section-name'); } } $renderer->doc .= '
'; // FIXME: Put your content here $renderer->doc .= '
'; // Add section edit infos only in XHTML renderers which are // sufficiently new if ($format === 'xhtml' && method_exists($renderer, 'finishSectionEdit')) { /* @var Doku_Renderer_xhtml $renderer */ $renderer->finishSectionEdit($data['bytepos_end']); } }