From 2bd7f83a6495011ada78ca8a9f2af417caf01760 Mon Sep 17 00:00:00 2001 From: ahriman Date: Wed, 2 Jan 2019 04:57:35 +0000 Subject: removed dokuwiki --- wiki/inc/parser/xhtmlsummary.php | 89 ---------------------------------------- 1 file changed, 89 deletions(-) delete mode 100644 wiki/inc/parser/xhtmlsummary.php (limited to 'wiki/inc/parser/xhtmlsummary.php') diff --git a/wiki/inc/parser/xhtmlsummary.php b/wiki/inc/parser/xhtmlsummary.php deleted file mode 100644 index 867b71f..0000000 --- a/wiki/inc/parser/xhtmlsummary.php +++ /dev/null @@ -1,89 +0,0 @@ - - * @todo Is this currently used anywhere? Should it? - */ -class Doku_Renderer_xhtmlsummary extends Doku_Renderer_xhtml { - - // Namespace these variables to - // avoid clashes with parent classes - var $sum_paragraphs = 0; - var $sum_capture = true; - var $sum_inSection = false; - var $sum_summary = ''; - var $sum_pageTitle = false; - - function document_start() { - $this->doc .= DOKU_LF.'
'.DOKU_LF; - } - - function document_end() { - $this->doc = $this->sum_summary; - $this->doc .= DOKU_LF.'
'.DOKU_LF; - } - - // FIXME not supported anymore - function toc_open() { - $this->sum_summary .= $this->doc; - } - - // FIXME not supported anymore - function toc_close() { - $this->doc = ''; - } - - function header($text, $level, $pos) { - if ( !$this->sum_pageTitle ) { - $this->info['sum_pagetitle'] = $text; - $this->sum_pageTitle = true; - } - $this->doc .= DOKU_LF.''; - $this->doc .= $this->_xmlEntities($text); - $this->doc .= "".DOKU_LF; - } - - function section_open($level) { - if ( $this->sum_capture ) { - $this->sum_inSection = true; - } - } - - function section_close() { - if ( $this->sum_capture && $this->sum_inSection ) { - $this->sum_summary .= $this->doc; - $this->sum_capture = false; - } - } - - function p_open() { - if ( $this->sum_capture && $this->sum_paragraphs < 2 ) { - $this->sum_paragraphs++; - } - parent :: p_open(); - } - - function p_close() { - parent :: p_close(); - if ( $this->sum_capture && $this->sum_paragraphs >= 2 ) { - $this->sum_summary .= $this->doc; - $this->sum_capture = false; - } - } - -} - - -//Setup VIM: ex: et ts=2 : -- cgit 1.4.1-2-gfad0