raster pushed a commit to branch master.

http://git.enlightenment.org/website/www.git/commit/?id=2fd0513bdd2d50ab6c897ec095348f8f7cec7132

commit 2fd0513bdd2d50ab6c897ec095348f8f7cec7132
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Apr 17 14:23:37 2015 +0900

    www - add folded plugin (it' doesn't work.. why? some js stuff)
---
 public_html/lib/plugins/folded/action.php          |  40 +++++++++
 public_html/lib/plugins/folded/closed.gif          | Bin 0 -> 53 bytes
 public_html/lib/plugins/folded/conf/default.php    |   8 ++
 public_html/lib/plugins/folded/conf/metadata.php   |   8 ++
 public_html/lib/plugins/folded/lang/cs/lang.php    |  16 ++++
 public_html/lib/plugins/folded/lang/da/lang.php    |  11 +++
 .../lib/plugins/folded/lang/da/settings.php        |   9 ++
 public_html/lib/plugins/folded/lang/de/lang.php    |  16 ++++
 .../lib/plugins/folded/lang/de/settings.php        |  11 +++
 public_html/lib/plugins/folded/lang/en/lang.php    |  16 ++++
 .../lib/plugins/folded/lang/en/settings.php        |  11 +++
 public_html/lib/plugins/folded/lang/eo/lang.php    |  11 +++
 .../lib/plugins/folded/lang/eo/settings.php        |   9 ++
 public_html/lib/plugins/folded/lang/es/lang.php    |  16 ++++
 public_html/lib/plugins/folded/lang/fr/lang.php    |  12 +++
 .../lib/plugins/folded/lang/fr/settings.php        |   9 ++
 public_html/lib/plugins/folded/lang/gl/lang.php    |  18 ++++
 public_html/lib/plugins/folded/lang/it/lang.php    |  18 ++++
 public_html/lib/plugins/folded/lang/ja/lang.php    |  16 ++++
 .../lib/plugins/folded/lang/ja/settings.php        |  11 +++
 public_html/lib/plugins/folded/lang/ko/lang.php    |  12 +++
 .../lib/plugins/folded/lang/ko/settings.php        |   9 ++
 public_html/lib/plugins/folded/lang/nl/lang.php    |  11 +++
 .../lib/plugins/folded/lang/nl/settings.php        |   9 ++
 public_html/lib/plugins/folded/lang/no/lang.php    |  16 ++++
 public_html/lib/plugins/folded/lang/pl/lang.php    |  16 ++++
 public_html/lib/plugins/folded/lang/pt-br/lang.php |  16 ++++
 public_html/lib/plugins/folded/lang/ru/lang.php    |  11 +++
 .../lib/plugins/folded/lang/ru/settings.php        |   9 ++
 public_html/lib/plugins/folded/lang/sv/lang.php    |  16 ++++
 public_html/lib/plugins/folded/lang/th/lang.php    |  16 ++++
 public_html/lib/plugins/folded/lang/tr/lang.php    |  16 ++++
 public_html/lib/plugins/folded/lang/zh-tw/lang.php |  16 ++++
 public_html/lib/plugins/folded/lang/zh/lang.php    |  16 ++++
 public_html/lib/plugins/folded/open.gif            | Bin 0 -> 51 bytes
 public_html/lib/plugins/folded/plugin.info.txt     |   7 ++
 public_html/lib/plugins/folded/script.js           |  50 +++++++++++
 public_html/lib/plugins/folded/style.css           |  27 ++++++
 public_html/lib/plugins/folded/syntax/div.php      |  98 +++++++++++++++++++++
 public_html/lib/plugins/folded/syntax/span.php     |  85 ++++++++++++++++++
 40 files changed, 722 insertions(+)

diff --git a/public_html/lib/plugins/folded/action.php 
b/public_html/lib/plugins/folded/action.php
new file mode 100644
index 0000000..3c3b097
--- /dev/null
+++ b/public_html/lib/plugins/folded/action.php
@@ -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 <mich...@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
+        );
+    }
+}
diff --git a/public_html/lib/plugins/folded/closed.gif 
b/public_html/lib/plugins/folded/closed.gif
new file mode 100644
index 0000000..c81c9ca
Binary files /dev/null and b/public_html/lib/plugins/folded/closed.gif differ
diff --git a/public_html/lib/plugins/folded/conf/default.php 
b/public_html/lib/plugins/folded/conf/default.php
new file mode 100644
index 0000000..d129325
--- /dev/null
+++ b/public_html/lib/plugins/folded/conf/default.php
@@ -0,0 +1,8 @@
+<?php
+/*
+ * folded plugin, default configuration settings
+ *
+ * @author    Christopher Smith <ch...@jalakai.co.uk>
+ */
+$conf['hide'] = '';            // hide tooltip, if empty will use localised 
string
+$conf['reveal'] = '';          // reveal tooltip, if empty will use localised 
string
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/conf/metadata.php 
b/public_html/lib/plugins/folded/conf/metadata.php
new file mode 100644
index 0000000..797bea3
--- /dev/null
+++ b/public_html/lib/plugins/folded/conf/metadata.php
@@ -0,0 +1,8 @@
+<?php
+/*
+ * Folded plugin, configuration metadata
+ *
+ * @author    Christopher Smith <ch...@jalakai.co.uk>
+ */
+$meta['hide']  = array('string');
+$meta['reveal'] = array('string');
diff --git a/public_html/lib/plugins/folded/lang/cs/lang.php 
b/public_html/lib/plugins/folded/lang/cs/lang.php
new file mode 100644
index 0000000..01bea12
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/cs/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Czech language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/da/lang.php 
b/public_html/lib/plugins/folded/lang/da/lang.php
new file mode 100644
index 0000000..07d745d
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/da/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Chris Smith <ch...@jalakai.co.uk>
+ */
+$lang['reveal']                = 'vis';
+$lang['reveallong']            = 'vis skjult indhold';
+$lang['hide']                  = 'skjul';
+$lang['hidelong']              = 'skjul indhold';
diff --git a/public_html/lib/plugins/folded/lang/da/settings.php 
b/public_html/lib/plugins/folded/lang/da/settings.php
new file mode 100644
index 0000000..efd8da2
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/da/settings.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Søren Birk <soer9...@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)';
diff --git a/public_html/lib/plugins/folded/lang/de/lang.php 
b/public_html/lib/plugins/folded/lang/de/lang.php
new file mode 100644
index 0000000..a0dbe0c
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/de/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * german language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/de/settings.php 
b/public_html/lib/plugins/folded/lang/de/settings.php
new file mode 100644
index 0000000..21601fc
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/de/settings.php
@@ -0,0 +1,11 @@
+<?php
+/**
+ * German language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Matthias Schulte <mailingl...@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)';
diff --git a/public_html/lib/plugins/folded/lang/en/lang.php 
b/public_html/lib/plugins/folded/lang/en/lang.php
new file mode 100644
index 0000000..68f230b
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/en/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * english language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/en/settings.php 
b/public_html/lib/plugins/folded/lang/en/settings.php
new file mode 100644
index 0000000..c537ece
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/en/settings.php
@@ -0,0 +1,11 @@
+<?php
+/**
+ * English language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Christopher Smith <ch...@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)';
diff --git a/public_html/lib/plugins/folded/lang/eo/lang.php 
b/public_html/lib/plugins/folded/lang/eo/lang.php
new file mode 100644
index 0000000..ca752df
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/eo/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Robert Bogenschneider <b...@uea.org>
+ */
+$lang['reveal']                = 'malkaŝi';
+$lang['reveallong']            = 'malkaŝi kaŝitan enhavon';
+$lang['hide']                  = 'kaŝi';
+$lang['hidelong']              = 'kaŝi enhavon';
diff --git a/public_html/lib/plugins/folded/lang/eo/settings.php 
b/public_html/lib/plugins/folded/lang/eo/settings.php
new file mode 100644
index 0000000..21f1e08
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/eo/settings.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Robert Bogenschneider <b...@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)';
diff --git a/public_html/lib/plugins/folded/lang/es/lang.php 
b/public_html/lib/plugins/folded/lang/es/lang.php
new file mode 100644
index 0000000..7fd89bb
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/es/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * spanish language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/fr/lang.php 
b/public_html/lib/plugins/folded/lang/fr/lang.php
new file mode 100644
index 0000000..c9bd8c6
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/fr/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Esther Brunner <est...@kaffeehaus.ch>
+ * @author Fabrice Dejaigher <fabr...@chtiland.com>
+ */
+$lang['reveal']                = 'révéler';
+$lang['reveallong']            = 'révéler le contenu masqué';
+$lang['hide']                  = 'masquer';
+$lang['hidelong']              = 'masquer le contenu';
diff --git a/public_html/lib/plugins/folded/lang/fr/settings.php 
b/public_html/lib/plugins/folded/lang/fr/settings.php
new file mode 100644
index 0000000..f9e9011
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/fr/settings.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Fabrice Dejaigher <fabr...@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)';
diff --git a/public_html/lib/plugins/folded/lang/gl/lang.php 
b/public_html/lib/plugins/folded/lang/gl/lang.php
new file mode 100644
index 0000000..f5c1add
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/gl/lang.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * galician language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Matthias Schulte <mailingl...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/it/lang.php 
b/public_html/lib/plugins/folded/lang/it/lang.php
new file mode 100644
index 0000000..8450e7d
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/it/lang.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * italian language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Christopher Smith <ch...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/ja/lang.php 
b/public_html/lib/plugins/folded/lang/ja/lang.php
new file mode 100644
index 0000000..fb50558
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/ja/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * japanese language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/ja/settings.php 
b/public_html/lib/plugins/folded/lang/ja/settings.php
new file mode 100644
index 0000000..b459f5e
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/ja/settings.php
@@ -0,0 +1,11 @@
+<?php
+/**
+ * English language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Christopher Smith <ch...@jalakai.co.uk>
+ */
+ 
+// for the configuration manager
+$lang['hide']  = '隠すためのtooltip';
+$lang['reveal']  = '表示するためのtooltip';
diff --git a/public_html/lib/plugins/folded/lang/ko/lang.php 
b/public_html/lib/plugins/folded/lang/ko/lang.php
new file mode 100644
index 0000000..b9e40dc
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/ko/lang.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author     Esther Brunner <est...@kaffeehaus.ch>
+ * @author Myeongjin <aranet...@gmail.com>
+ */
+$lang['reveal']                = '들추기';
+$lang['reveallong']            = '숨겨진 내용을 들춥니다';
+$lang['hide']                  = '숨기기';
+$lang['hidelong']              = '내용을 숨깁니다';
diff --git a/public_html/lib/plugins/folded/lang/ko/settings.php 
b/public_html/lib/plugins/folded/lang/ko/settings.php
new file mode 100644
index 0000000..28e471b
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/ko/settings.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Myeongjin <aranet...@gmail.com>
+ */
+$lang['hide']                  = '숨기는 접이식 툴팁<br />(지역화된 문자열을 사용하려면 비워 두세요)';
+$lang['reveal']                = '들추는 접이식 툴팁<br />(지역화된 문자열을 사용하려면 비워 두세요)';
diff --git a/public_html/lib/plugins/folded/lang/nl/lang.php 
b/public_html/lib/plugins/folded/lang/nl/lang.php
new file mode 100644
index 0000000..bd98042
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/nl/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author     Esther Brunner <est...@kaffeehaus.ch>
+ */
+$lang['reveal']                = 'tonen';
+$lang['reveallong']            = 'toon verborgen inhoud';
+$lang['hide']                  = 'verbergen';
+$lang['hidelong']              = 'verberg inhoud';
diff --git a/public_html/lib/plugins/folded/lang/nl/settings.php 
b/public_html/lib/plugins/folded/lang/nl/settings.php
new file mode 100644
index 0000000..add7cda
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/nl/settings.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Mark Prins <mpr...@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)';
diff --git a/public_html/lib/plugins/folded/lang/no/lang.php 
b/public_html/lib/plugins/folded/lang/no/lang.php
new file mode 100644
index 0000000..0101f68
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/no/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * norwegian language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Matthias Schulte <mailingl...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/pl/lang.php 
b/public_html/lib/plugins/folded/lang/pl/lang.php
new file mode 100644
index 0000000..0ce9521
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/pl/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * polish language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/pt-br/lang.php 
b/public_html/lib/plugins/folded/lang/pt-br/lang.php
new file mode 100644
index 0000000..ab2cd44
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/pt-br/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * portugese language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Matthias Schulte <mailingl...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/ru/lang.php 
b/public_html/lib/plugins/folded/lang/ru/lang.php
new file mode 100644
index 0000000..79a614c
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/ru/lang.php
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author     Esther Brunner <est...@kaffeehaus.ch>
+ */
+$lang['reveal']                = 'открыть';
+$lang['reveallong']            = 'показать скрытое оглавление';
+$lang['hide']                  = 'скрыть';
+$lang['hidelong']              = 'скрыть оглавление';
diff --git a/public_html/lib/plugins/folded/lang/ru/settings.php 
b/public_html/lib/plugins/folded/lang/ru/settings.php
new file mode 100644
index 0000000..da84f8d
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/ru/settings.php
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * 
+ * @author Aleksandr Selivanov <alexgear...@gmail.com>
+ */
+$lang['hide']                  = 'Подсказка для скрытия<br />(оставьте поле 
пустым для использования локализованных настроек)';
+$lang['reveal']                = 'Подсказка для раскрытия<br />(оставьте поле 
пустым для использования локализованных настроек)';
diff --git a/public_html/lib/plugins/folded/lang/sv/lang.php 
b/public_html/lib/plugins/folded/lang/sv/lang.php
new file mode 100644
index 0000000..77b228d
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/sv/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * swedish language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/th/lang.php 
b/public_html/lib/plugins/folded/lang/th/lang.php
new file mode 100644
index 0000000..4aa2e7d
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/th/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * thai language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Matthias Schulte <mailingl...@lupo49.de>
+ */
+
+// custom language strings for the plugin
+$lang['reveal']     = 'แสดง';
+$lang['reveallong'] = 'แสดงเนื้อหาที่ซ่อนไว้';
+
+$lang['hide']       = 'ซ่อน';
+$lang['hidelong']   = 'ซ่อนเนื้อหา';
+
+//Setup VIM: ex: et ts=2 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/tr/lang.php 
b/public_html/lib/plugins/folded/lang/tr/lang.php
new file mode 100644
index 0000000..6605f55
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/tr/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * turkish language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Chris Smith <ch...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/zh-tw/lang.php 
b/public_html/lib/plugins/folded/lang/zh-tw/lang.php
new file mode 100644
index 0000000..bede632
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/zh-tw/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Chinese (zh-tw) language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/lang/zh/lang.php 
b/public_html/lib/plugins/folded/lang/zh/lang.php
new file mode 100644
index 0000000..69248e9
--- /dev/null
+++ b/public_html/lib/plugins/folded/lang/zh/lang.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * chinese language file
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author     Esther Brunner <est...@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 :
\ No newline at end of file
diff --git a/public_html/lib/plugins/folded/open.gif 
b/public_html/lib/plugins/folded/open.gif
new file mode 100644
index 0000000..f538c89
Binary files /dev/null and b/public_html/lib/plugins/folded/open.gif differ
diff --git a/public_html/lib/plugins/folded/plugin.info.txt 
b/public_html/lib/plugins/folded/plugin.info.txt
new file mode 100644
index 0000000..1527cd9
--- /dev/null
+++ b/public_html/lib/plugins/folded/plugin.info.txt
@@ -0,0 +1,7 @@
+base   folded
+author Michael Hamann, Fabian van-de-l_Isle, Christopher Smith, Esther Brunner
+email  mich...@content-space.de
+date   2014-07-21
+name   folded plugin
+desc   Foldable page sections
+url    http://dokuwiki.org/plugin:folded
diff --git a/public_html/lib/plugins/folded/script.js 
b/public_html/lib/plugins/folded/script.js
new file mode 100644
index 0000000..d553328
--- /dev/null
+++ b/public_html/lib/plugins/folded/script.js
@@ -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 <mich...@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>');
diff --git a/public_html/lib/plugins/folded/style.css 
b/public_html/lib/plugins/folded/style.css
new file mode 100644
index 0000000..e953347
--- /dev/null
+++ b/public_html/lib/plugins/folded/style.css
@@ -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; }
+*/
diff --git a/public_html/lib/plugins/folded/syntax/div.php 
b/public_html/lib/plugins/folded/syntax/div.php
new file mode 100644
index 0000000..ae78322
--- /dev/null
+++ b/public_html/lib/plugins/folded/syntax/div.php
@@ -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 <ch...@jalakai.co.uk>
+ * @author     Esther Brunner <est...@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;
+    }
+}
diff --git a/public_html/lib/plugins/folded/syntax/span.php 
b/public_html/lib/plugins/folded/syntax/span.php
new file mode 100644
index 0000000..8854d89
--- /dev/null
+++ b/public_html/lib/plugins/folded/syntax/span.php
@@ -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 <ch...@jalakai.co.uk>
+ * @author     Esther Brunner <est...@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;
+    }
+}

-- 


Reply via email to