www - add folded plugin (it' doesn't work.. why? some js stuff)

This commit is contained in:
Carsten Haitzler 2015-04-17 14:23:37 +09:00
parent 39b8c0ec35
commit 2fd0513bdd
40 changed files with 722 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<?php
/**
* Folded plugin: enables folded text font size with syntax ++ text ++
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Michael Hamann <michael@content-space.de>
*/
if(!defined('DOKU_INC')) die(); // no Dokuwiki, no go
/**
* Action part: makes the show/hide strings available in the browser
*/
class action_plugin_folded extends DokuWiki_Action_Plugin {
/**
* Register the handle function in the controller
*
* @param Doku_event_handler $controller The event controller
*/
function register(Doku_Event_Handler $controller) {
$controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'addhidereveal');
}
/**
* Add the hide and reveal strings to $JSINFO so it can be used in the javascript
*
* @param Doku_Event $event The event
* @param array $params The parameters for the event
*/
function addhidereveal($event, $params) {
global $JSINFO;
$hide = $this->getConf('hide') ? $this->getConf('hide') : $this->getLang('hide');
$reveal = $this->getConf('reveal') ? $this->getConf('reveal') : $this->getLang('reveal');
$JSINFO['plugin_folded'] = array(
'hide' => $hide,
'reveal' => $reveal
);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 B

View File

@ -0,0 +1,8 @@
<?php
/*
* folded plugin, default configuration settings
*
* @author Christopher Smith <chris@jalakai.co.uk>
*/
$conf['hide'] = ''; // hide tooltip, if empty will use localised string
$conf['reveal'] = ''; // reveal tooltip, if empty will use localised string

View File

@ -0,0 +1,8 @@
<?php
/*
* Folded plugin, configuration metadata
*
* @author Christopher Smith <chris@jalakai.co.uk>
*/
$meta['hide'] = array('string');
$meta['reveal'] = array('string');

View File

@ -0,0 +1,16 @@
<?php
/**
* Czech language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = 'zobrazit';
$lang['reveallong'] = 'zobrazit skrytý obsah';
$lang['hide'] = 'skrýt';
$lang['hidelong'] = 'skrýt obsah';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,11 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Chris Smith <chris@jalakai.co.uk>
*/
$lang['reveal'] = 'vis';
$lang['reveallong'] = 'vis skjult indhold';
$lang['hide'] = 'skjul';
$lang['hidelong'] = 'skjul indhold';

View File

@ -0,0 +1,9 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Søren Birk <soer9648@eucl.dk>
*/
$lang['hide'] = 'Foldet tooltip som skjules<br />(efterlad blankt for at benytte lokaliseret streng)';
$lang['reveal'] = 'Foldet tooltip som vises<br />(efterlad blankt for at benytte lokaliseret streng)';

View File

@ -0,0 +1,16 @@
<?php
/**
* german language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = 'aufklappen';
$lang['reveallong'] = 'zeige den eingeklappten Inhalt';
$lang['hide'] = 'zuklappen';
$lang['hidelong'] = 'verberge den Inhalt';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,11 @@
<?php
/**
* German language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Matthias Schulte <mailinglist@lupo49.de>
*/
// for the configuration manager
$lang['hide'] = 'Tooltip zum Zuklappen<br />(Feld leer lassen um den Standardwert zu nutzen)';
$lang['reveal'] = 'Tooltip zum Aufklappen<br />(Feld leer lassen um den Standardwert zu nutzen)';

View File

@ -0,0 +1,16 @@
<?php
/**
* english language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = 'reveal';
$lang['reveallong'] = 'reveal hidden content';
$lang['hide'] = 'hide';
$lang['hidelong'] = 'hide content';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,11 @@
<?php
/**
* English language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Christopher Smith <chris@jalakai.co.uk>
*/
// for the configuration manager
$lang['hide'] = 'Folding tooltip to hide<br />(leave empty to use localised string)';
$lang['reveal'] = 'Folding tooltip to reveal<br />(leave empty to use localised string)';

View File

@ -0,0 +1,11 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Robert Bogenschneider <bogi@uea.org>
*/
$lang['reveal'] = 'malkaŝi';
$lang['reveallong'] = 'malkaŝi kaŝitan enhavon';
$lang['hide'] = 'kaŝi';
$lang['hidelong'] = 'kaŝi enhavon';

View File

@ -0,0 +1,9 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Robert Bogenschneider <bogi@uea.org>
*/
$lang['hide'] = 'Konsilveziko por kaŝi<br />(lasu malplena por uzi tradukitan tekston)';
$lang['reveal'] = 'Konsilveziko por malkaŝi<br />(lasu malplena por uzi tradukitan tekston)';

View File

@ -0,0 +1,16 @@
<?php
/**
* spanish language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = 'mostrar';
$lang['reveallong'] = 'mostrar contenido oculto';
$lang['hide'] = 'ocultar';
$lang['hidelong'] = 'ocultar contenido';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,12 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Esther Brunner <esther@kaffeehaus.ch>
* @author Fabrice Dejaigher <fabrice@chtiland.com>
*/
$lang['reveal'] = 'révéler';
$lang['reveallong'] = 'révéler le contenu masqué';
$lang['hide'] = 'masquer';
$lang['hidelong'] = 'masquer le contenu';

View File

@ -0,0 +1,9 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Fabrice Dejaigher <fabrice@chtiland.com>
*/
$lang['hide'] = 'Contenu de l\'infobulle de l\'élément à masquer.<br/>(laissez vide pour utiliser la chaîne localisée)';
$lang['reveal'] = 'Contenu de l\'infobulle de l\'élément à révéler.<br/>(laissez vide pour utiliser la chaîne localisée)';

View File

@ -0,0 +1,18 @@
<?php
/**
* galician language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Matthias Schulte <mailinglist@lupo49.de>
*
* translations provided by anonymous ... thanks!
*/
// custom language strings for the plugin
$lang['reveal'] = 'amosar';
$lang['reveallong'] = 'amosar contido oculto';
$lang['hide'] = 'ocultar';
$lang['hidelong'] = 'ocultar contido';
//Setup VIM: ex: et ts=2 :

View File

@ -0,0 +1,18 @@
<?php
/**
* italian language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Christopher Smith <chris@jalakai.co.uk>
*
* translations provided by anonymous ... thanks!
*/
// custom language strings for the plugin
$lang['reveal'] = 'rivela';
$lang['reveallong'] = 'rivela contenuto nascosto';
$lang['hide'] = 'nascondi';
$lang['hidelong'] = 'nascondi contenuto';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,16 @@
<?php
/**
* japanese language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = '見せる';
$lang['reveallong'] = '内容を表示';
$lang['hide'] = '隠す';
$lang['hidelong'] = '内容を隠す';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,11 @@
<?php
/**
* English language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Christopher Smith <chris@jalakai.co.uk>
*/
// for the configuration manager
$lang['hide'] = '隠すためのtooltip';
$lang['reveal'] = '表示するためのtooltip';

View File

@ -0,0 +1,12 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Esther Brunner <esther@kaffeehaus.ch>
* @author Myeongjin <aranet100@gmail.com>
*/
$lang['reveal'] = '들추기';
$lang['reveallong'] = '숨겨진 내용을 들춥니다';
$lang['hide'] = '숨기기';
$lang['hidelong'] = '내용을 숨깁니다';

View File

@ -0,0 +1,9 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Myeongjin <aranet100@gmail.com>
*/
$lang['hide'] = '숨기는 접이식 툴팁<br />(지역화된 문자열을 사용하려면 비워 두세요)';
$lang['reveal'] = '들추는 접이식 툴팁<br />(지역화된 문자열을 사용하려면 비워 두세요)';

View File

@ -0,0 +1,11 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
$lang['reveal'] = 'tonen';
$lang['reveallong'] = 'toon verborgen inhoud';
$lang['hide'] = 'verbergen';
$lang['hidelong'] = 'verberg inhoud';

View File

@ -0,0 +1,9 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Mark Prins <mprins@users.sf.net>
*/
$lang['hide'] = 'Tooltip voor verbergen<br />(laat leeg om gelokaliseerde tekenreeks gebruiken)';
$lang['reveal'] = 'Tooltip voor tonen<br />(laat leeg om gelokaliseerde tekenreeks gebruiken)';

View File

@ -0,0 +1,16 @@
<?php
/**
* norwegian language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Matthias Schulte <mailinglist@lupo49.de>
*/
// custom language strings for the plugin
$lang['reveal'] = 'vis';
$lang['reveallong'] = 'vis skjult innhold ';
$lang['hide'] = 'skjul';
$lang['hidelong'] = 'skjul innhold';
//Setup VIM: ex: et ts=2 :

View File

@ -0,0 +1,16 @@
<?php
/**
* polish language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = 'pokaż';
$lang['reveallong'] = 'pokaż ukrytą zawartość';
$lang['hide'] = 'ukryj';
$lang['hidelong'] = 'ukryj zawartość';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,16 @@
<?php
/**
* portugese language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Matthias Schulte <mailinglist@lupo49.de>
*/
// custom language strings for the plugin
$lang['reveal'] = 'mostrar';
$lang['reveallong'] = 'mostrar conteúdo oculto';
$lang['hide'] = 'ocultar';
$lang['hidelong'] = 'ocultar conteúdo';
//Setup VIM: ex: et ts=2 :

View File

@ -0,0 +1,11 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
$lang['reveal'] = 'открыть';
$lang['reveallong'] = 'показать скрытое оглавление';
$lang['hide'] = 'скрыть';
$lang['hidelong'] = 'скрыть оглавление';

View File

@ -0,0 +1,9 @@
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
* @author Aleksandr Selivanov <alexgearbox@gmail.com>
*/
$lang['hide'] = 'Подсказка для скрытия<br />(оставьте поле пустым для использования локализованных настроек)';
$lang['reveal'] = 'Подсказка для раскрытия<br />(оставьте поле пустым для использования локализованных настроек)';

View File

@ -0,0 +1,16 @@
<?php
/**
* swedish language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = 'visa';
$lang['reveallong'] = 'visa dolt innehåll';
$lang['hide'] = 'dölj';
$lang['hidelong'] = 'dölj innehåll';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,16 @@
<?php
/**
* thai language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Matthias Schulte <mailinglist@lupo49.de>
*/
// custom language strings for the plugin
$lang['reveal'] = 'แสดง';
$lang['reveallong'] = 'แสดงเนื้อหาที่ซ่อนไว้';
$lang['hide'] = 'ซ่อน';
$lang['hidelong'] = 'ซ่อนเนื้อหา';
//Setup VIM: ex: et ts=2 :

View File

@ -0,0 +1,16 @@
<?php
/**
* turkish language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Chris Smith <chris@jalakai.co.uk>
*/
// custom language strings for the plugin
$lang['reveal'] = 'göster';
$lang['reveallong'] = 'gizlenen içeri?i göster';
$lang['hide'] = 'gizle';
$lang['hidelong'] = 'içeri?i gizle';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,16 @@
<?php
/**
* Chinese (zh-tw) language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = '顯示';
$lang['reveallong'] = '顯示隱藏內容';
$lang['hide'] = '隱藏';
$lang['hidelong'] = '隱藏內容';
//Setup VIM: ex: et ts=2 enc=utf-8 :

View File

@ -0,0 +1,16 @@
<?php
/**
* chinese language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
// custom language strings for the plugin
$lang['reveal'] = '显示';
$lang['reveallong'] = '显示隐藏内容';
$lang['hide'] = '隐藏';
$lang['hidelong'] = '隐藏内容';
//Setup VIM: ex: et ts=2 enc=utf-8 :

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 B

View File

@ -0,0 +1,7 @@
base folded
author Michael Hamann, Fabian van-de-l_Isle, Christopher Smith, Esther Brunner
email michael@content-space.de
date 2014-07-21
name folded plugin
desc Foldable page sections
url http://dokuwiki.org/plugin:folded

View File

@ -0,0 +1,50 @@
/*
* For Folded Text Plugin
*
* @author Fabian van-de-l_Isle <webmaster [at] lajzar [dot] co [dot] uk>
* @author Christopher Smith <chris [at] jalakai [dot] co [dot] uk>
* @author Schplurtz le Déboulonné <schplurtz [At] laposte [doT] net>
* @author Michael Hamann <michael@content-space.de>
*/
/*
* run on document load, setup everything we need
*/
jQuery(function() {
// containers for localised reveal/hide strings,
// populated from the content set by the action plugin
var folded_reveal = JSINFO['plugin_folded']['reveal'];
var folded_hide = JSINFO['plugin_folded']['hide'];
jQuery('a.folder[href*="#folded_"]').attr('title', folded_reveal);
/*
* toggle the folded element via className change also adjust the classname and
* title tooltip on the folding link
*/
jQuery('.dokuwiki .folder').click(function folded_toggle(evt) {
var id = this.href.match(/(#.*)$/)[1];
var $id = jQuery(id);
if ($id.hasClass('hidden')) {
$id.addClass('open').removeClass('hidden');
jQuery(this)
.addClass('open')
.attr('title', folded_hide);
} else {
$id.addClass('hidden').removeClass('open');
jQuery(this)
.removeClass('open')
.attr('title', folded_reveal);
}
evt.preventDefault();
return false;
});
});
// support graceful js degradation, this hides the folded blocks from view
// before they are shown,
// whilst still allowing non-js user to see any folded content.
document.write('<style type="text/css" media="screen"><!--/*--><![CDATA[/*><!--*/ .folded.hidden { display: none; } .folder .indicator { visibility: visible; } /*]]>*/--></style>');

View File

@ -0,0 +1,27 @@
.folder {
padding-left: 2px;
padding-right: 9px;
background: url(closed.gif) no-repeat right center;
}
.folder.open {
background: url(open.gif) no-repeat right center;
}
div.folded {
padding: 0.5em;
border: 1px dotted __medium__;
}
span.folded {
border: 1px dotted __medium__;
}
span.indicator {
visibility: hidden;
}
/* below style rules are created by javascript
.folded.hidden { display: none; }
.folder span.indicator { visibility: visible; }
*/

View File

@ -0,0 +1,98 @@
<?php
/**
* Folded text Plugin: enables folded text font size with syntax ++ text ++
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Fabian van-de-l_Isle <webmaster [at] lajzar [dot] co [dot] uk>
* @author Christopher Smith <chris@jalakai.co.uk>
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'syntax.php');
// maintain a global count of the number of folded elements in the page,
// this allows each to be uniquely identified
global $plugin_folded_count;
if (!isset($plugin_folded_count)) $plugin_folded_count = 0;
// global used to indicate that the localised folder link title tooltips
// strings have been written out
global $plugin_folded_strings_set;
if (!isset($plugin_folded_string_set)) $plugin_folded_string_set = false;
/**
* All DokuWiki plugins to extend the parser/rendering mechanism
* need to inherit from this class
*/
class syntax_plugin_folded_div extends DokuWiki_Syntax_Plugin {
function getType(){ return 'container'; }
function getPType() { return 'stack'; }
function getAllowedTypes() { return array('container','substition','protected','disabled','paragraphs','formatting'); }
function getSort(){ return 404; }
function connectTo($mode) { $this->Lexer->addEntryPattern('\+\+\+\+.*?\|(?=.*\+\+\+\+)',$mode,'plugin_folded_div'); }
function postConnect() { $this->Lexer->addExitPattern('\+\+\+\+','plugin_folded_div'); }
/**
* Handle the match
*/
function handle($match, $state, $pos, Doku_Handler $handler){
if ($state == DOKU_LEXER_ENTER){
$match = trim(substr($match,4,-1)); // strip markup
} else if ($state == DOKU_LEXER_UNMATCHED) {
$handler->_addCall('cdata',array($match), $pos);
return false;
}
return array($state, $match);
}
/**
* Create output
*/
function render($mode, Doku_Renderer $renderer, $data) {
global $plugin_folded_count;
if (empty($data)) return false;
list($state, $cdata) = $data;
if($mode == 'xhtml') {
switch ($state){
case DOKU_LEXER_ENTER:
$plugin_folded_count++;
$renderer->doc .= '<p><a class="folder" href="#folded_'.$plugin_folded_count.'">';
if ($cdata)
$renderer->doc .= ' '.$renderer->cdata($cdata);
$renderer->doc .= '</a></p><div class="folded hidden" id="folded_'.$plugin_folded_count.'">';
break;
case DOKU_LEXER_UNMATCHED: // defensive, shouldn't occur
$renderer->cdata($cdata);
break;
case DOKU_LEXER_EXIT:
$renderer->doc .= '</div>';
break;
}
return true;
} else {
// handle unknown formats generically - by calling standard render methods
switch ( $state ) {
case DOKU_LEXER_ENTER:
$renderer->p_open();
$renderer->cdata($cdata);
$renderer->p_close();
break;
case DOKU_LEXER_UNMATCHED: // defensive, shouldn't occur
$renderer->cdata($cdata);
break;
case DOKU_LEXER_EXIT:
break;
}
}
return false;
}
}

View File

@ -0,0 +1,85 @@
<?php
/**
* Folded text Plugin: enables folded text font size with syntax ++ text ++
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Fabian van-de-l_Isle <webmaster [at] lajzar [dot] co [dot] uk>
* @author Christopher Smith <chris@jalakai.co.uk>
* @author Esther Brunner <esther@kaffeehaus.ch>
*/
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'syntax.php');
// maintain a global count of the number of folded elements in the page,
// this allows each to be uniquely identified
global $plugin_folded_count;
if (!isset($plugin_folded_count)) $plugin_folded_count = 0;
// global used to indicate that the localised folder link title tooltips
// strings have been written out
global $plugin_folded_strings_set;
if (!isset($plugin_folded_string_set)) $plugin_folded_string_set = false;
/**
* All DokuWiki plugins to extend the parser/rendering mechanism
* need to inherit from this class
*/
class syntax_plugin_folded_span extends DokuWiki_Syntax_Plugin {
function getType(){ return 'formatting'; }
function getAllowedTypes() { return array('substition','protected','disabled','formatting'); }
function getSort(){ return 405; }
function connectTo($mode) { $this->Lexer->addEntryPattern('\+\+.*?\|(?=.*\+\+)',$mode,'plugin_folded_span'); }
function postConnect() { $this->Lexer->addExitPattern('\+\+','plugin_folded_span'); }
/**
* Handle the match
*/
function handle($match, $state, $pos, Doku_Handler $handler){
if ($state == DOKU_LEXER_ENTER){
$match = trim(substr($match,2,-1)); // strip markup
} else if ($state == DOKU_LEXER_UNMATCHED) {
$handler->_addCall('cdata',array($match), $pos);
return false;
}
return array($state, $match);
}
/**
* Create output
*/
function render($mode, Doku_Renderer $renderer, $data) {
global $plugin_folded_count;
if (empty($data)) return false;
list($state, $cdata) = $data;
if($mode == 'xhtml') {
switch ($state){
case DOKU_LEXER_ENTER:
$plugin_folded_count++;
$renderer->doc .= '<a class="folder" href="#folded_'.$plugin_folded_count.'">';
if ($cdata)
$renderer->doc .= ' '.$renderer->cdata($cdata);
$renderer->doc .= '</a><span class="folded hidden" id="folded_'.$plugin_folded_count.'">';
break;
case DOKU_LEXER_UNMATCHED:
$renderer->cdata($cdata);
break;
case DOKU_LEXER_EXIT:
$renderer->doc .= '</span>';
break;
}
return true;
} else {
if ($cdata) $renderer->cdata($cdata);
}
return false;
}
}