about summary refs log tree commit diff stats
path: root/wiki/inc/parser/xhtmlsummary.php
diff options
context:
space:
mode:
authorahriman <ahriman@falte.red>2019-01-02 04:57:35 +0000
committerahriman <ahriman@falte.red>2019-01-02 04:57:35 +0000
commit2bd7f83a6495011ada78ca8a9f2af417caf01760 (patch)
treef9acdb7f09e011c65330ab993d4db3620787dbfb /wiki/inc/parser/xhtmlsummary.php
parentbcb215c3a7e914d05f166846a33860e48bba64fb (diff)
downloadsite-2bd7f83a6495011ada78ca8a9f2af417caf01760.tar.gz
removed dokuwiki
Diffstat (limited to 'wiki/inc/parser/xhtmlsummary.php')
-rw-r--r--wiki/inc/parser/xhtmlsummary.php89
1 files changed, 0 insertions, 89 deletions
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 @@
-<?php
-if(!defined('DOKU_INC')) die('meh.');
-
-/**
- * The summary XHTML form selects either up to the first two paragraphs
- * it find in a page or the first section (whichever comes first)
- * It strips out the table of contents if one exists
- * Section divs are not used - everything should be nested in a single
- * div with CSS class "page"
- * Headings have their a name link removed and section editing links
- * removed
- * It also attempts to capture the first heading in a page for
- * use as the title of the page.
- *
- *
- * @author Harry Fuecks <hfuecks@gmail.com>
- * @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.'<div>'.DOKU_LF;
-    }
-
-    function document_end() {
-        $this->doc = $this->sum_summary;
-        $this->doc .= DOKU_LF.'</div>'.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.'<h'.$level.'>';
-        $this->doc .= $this->_xmlEntities($text);
-        $this->doc .= "</h$level>".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 :