summaryrefslogtreecommitdiff
path: root/includes/pear/Text/Wiki/Render/Creole
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pear/Text/Wiki/Render/Creole')
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Address.php29
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Anchor.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Blockquote.php47
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Bold.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Box.php30
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Break.php24
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Center.php30
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Code.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Colortext.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Deflist.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Delimiter.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Embed.php29
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Emphasis.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Freelink.php9
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Function.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Heading.php16
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Horiz.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Html.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Image.php26
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Include.php16
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Interwiki.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Italic.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/List.php53
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Newline.php12
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Paragraph.php29
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Phplookup.php25
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Prefilter.php10
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Preformatted.php27
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Raw.php33
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Revise.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Strong.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Subscript.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Superscript.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Table.php70
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Tighten.php10
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Toc.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Tt.php29
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Underline.php23
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Url.php40
-rw-r--r--includes/pear/Text/Wiki/Render/Creole/Wikilink.php43
40 files changed, 0 insertions, 1051 deletions
diff --git a/includes/pear/Text/Wiki/Render/Creole/Address.php b/includes/pear/Text/Wiki/Render/Creole/Address.php
deleted file mode 100644
index 21726a6..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Address.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Address extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- if ($options['type'] == 'start') {
- return "-- ";
- }
-
- if ($options['type'] == 'end') {
- return "\n\n";
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Anchor.php b/includes/pear/Text/Wiki/Render/Creole/Anchor.php
deleted file mode 100644
index 59dd668..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Anchor.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-/**
-*
-* This class renders an anchor target name in Creole.
-*
-* @author Manuel Holtgrewe <purestorm at ggnore dot net>
-*
-* @author Paul M. Jones <pmjones at ciaweb dot net>
-*
-* @package Text_Wiki
-*
-*/
-
-class Text_Wiki_Render_Creole_Anchor extends Text_Wiki_Render {
-
- function token($options)
- {
- return '';
- }
-}
-
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Blockquote.php b/includes/pear/Text/Wiki/Render/Creole/Blockquote.php
deleted file mode 100644
index f6a3f06..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Blockquote.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Blockquote extends Text_Wiki_Render {
-
- var $css_stack = array();
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- // starting
- if ($options['type'] == 'start') {
- if (empty($options['css'])) $options['css'] = '';
- array_push($this->css_stack, $options['css']);
- $this->wiki->registerRenderCallback(array(&$this, 'renderInsideText'));
- return '';
- }
- // ending
- if ($options['type'] == 'end') {
- $this->wiki->popRenderCallback();
- return '';
- }
- }
-
- function renderInsideText($text) {
- $text = trim($text);
- if (array_pop($this->css_stack) == 'remark') {
- $text = preg_replace('/(^|\n)([\>\:]*) */', '\1:\2 ', $text);
- }
- else {
- $text = preg_replace('/(^|\n)([\>\:]*) */', '\1>\2 ', $text);
- }
- return $text . "\n\n";
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Bold.php b/includes/pear/Text/Wiki/Render/Creole/Bold.php
deleted file mode 100644
index fac63c9..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Bold.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Bold extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '**';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Box.php b/includes/pear/Text/Wiki/Render/Creole/Box.php
deleted file mode 100644
index c977c25..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Box.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-//There is no box rule for Creole, so use a simple table
-class Text_Wiki_Render_Creole_Box extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- if ($options['type'] == 'start') {
- return "|| ";
- }
-
- if ($options['type'] == 'end') {
- return "\n\n";
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Break.php b/includes/pear/Text/Wiki/Render/Creole/Break.php
deleted file mode 100644
index 375d53a..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Break.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Break extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return "\\\\";
- }
-}
-
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Center.php b/includes/pear/Text/Wiki/Render/Creole/Center.php
deleted file mode 100644
index bed9c5e..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Center.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-//There is no center rule for Creole, so use a simple table
-class Text_Wiki_Render_Creole_Center extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- if ($options['type'] == 'start') {
- return "| ";
- }
-
- if ($options['type'] == 'end') {
- return "\n\n";
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Code.php b/includes/pear/Text/Wiki/Render/Creole/Code.php
deleted file mode 100644
index a31bea5..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Code.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Code extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return "{{{\n" . $options['text'] . "\n}}}\n\n";
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Colortext.php b/includes/pear/Text/Wiki/Render/Creole/Colortext.php
deleted file mode 100644
index 19091c6..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Colortext.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Colortext extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Deflist.php b/includes/pear/Text/Wiki/Render/Creole/Deflist.php
deleted file mode 100644
index 05f47d0..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Deflist.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Deflist extends Text_Wiki_Render {
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return "\n";
- }
-}
-
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Delimiter.php b/includes/pear/Text/Wiki/Render/Creole/Delimiter.php
deleted file mode 100644
index 900448c..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Delimiter.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Delimiter extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return $options['text'];
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Embed.php b/includes/pear/Text/Wiki/Render/Creole/Embed.php
deleted file mode 100644
index dcf2cc1..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Embed.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Embed extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- if ($options['type'] == 'start') {
- return "{{";
- }
-
- if ($options['type'] == 'end') {
- return "}}";
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Emphasis.php b/includes/pear/Text/Wiki/Render/Creole/Emphasis.php
deleted file mode 100644
index ddc9237..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Emphasis.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Emphasis extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '//';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Freelink.php b/includes/pear/Text/Wiki/Render/Creole/Freelink.php
deleted file mode 100644
index 0439ac5..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Freelink.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-require_once 'Text/Wiki/Render/Creole/Wikilink.php';
-
-class Text_Wiki_Render_Creole_Freelink extends Text_Wiki_Render_Creole_Wikilink {
- // renders identically to wikilinks, only the parsing is different :-)
-}
-
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Function.php b/includes/pear/Text/Wiki/Render/Creole/Function.php
deleted file mode 100644
index 0f07917..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Function.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Function extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Heading.php b/includes/pear/Text/Wiki/Render/Creole/Heading.php
deleted file mode 100644
index 94ebf84..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Heading.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Heading extends Text_Wiki_Render {
- function token($options)
- {
- if ($options['type'] == 'start') {
- return str_pad('', $options['level'], '=') . ' ';
- }
- else if ($options['type'] == 'end') {
- // next line would add trailing '=' signs
- // return ' ' . str_pad('', $options['level'], '=') . "\n\n";
- return "\n\n";
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Horiz.php b/includes/pear/Text/Wiki/Render/Creole/Horiz.php
deleted file mode 100644
index 2937beb..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Horiz.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Horiz extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return "----\n\n";
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Html.php b/includes/pear/Text/Wiki/Render/Creole/Html.php
deleted file mode 100644
index f76a90e..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Html.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Html extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return "{{{" . $options['text'] . "}}}";
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Image.php b/includes/pear/Text/Wiki/Render/Creole/Image.php
deleted file mode 100644
index 1c4476f..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Image.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-class Text_Wiki_Render_Creole_Image extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- if (!strlen($options['attr']['alt']) || $options['src'] == $options['attr']['alt']) {
- return '{{'.$options['src'].'}}';
- } else {
- return '{{'.$options['src'].'|'.$options['attr']['alt'].'}}';
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Include.php b/includes/pear/Text/Wiki/Render/Creole/Include.php
deleted file mode 100644
index a0d30cf..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Include.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Include extends Text_Wiki_Render {
-
- function token()
- {
- if ($options['type'] == 'start') {
- return "{{";
- }
-
- if ($options['type'] == 'end') {
- return "}}";
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Interwiki.php b/includes/pear/Text/Wiki/Render/Creole/Interwiki.php
deleted file mode 100644
index d97eec4..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Interwiki.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Interwiki extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '[['.$options['site'].'>'.$options['page'].(strlen($options['text']) ? '|'.$options['text'] : '').']]';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Italic.php b/includes/pear/Text/Wiki/Render/Creole/Italic.php
deleted file mode 100644
index 6d8d0a0..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Italic.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Italic extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '//';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/List.php b/includes/pear/Text/Wiki/Render/Creole/List.php
deleted file mode 100644
index bbb9b76..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/List.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_List extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * This rendering method is syntactically and semantically compliant
- * with XHTML 1.1 in that sub-lists are part of the previous list item.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- // make nice variables (type, level, count)
-
- switch ($options['type']) {
-
- case 'bullet_list_start':
- case 'number_list_start':
- return '';
- break;
- case 'bullet_list_end':
- case 'number_list_end':
- if ($options['level'] == 0) {
- return "\n";
- }
- break;
- case 'bullet_item_start':
- $pad = str_pad('', $options['level'], '*');
- return $pad . ' ';
- break;
- case 'number_item_start':
- $pad = str_pad('', $options['level'], '#');
- return $pad . ' ';
- break;
- case 'bullet_item_end':
- case 'number_item_end':
- default:
- return "\n";
- break;
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Newline.php b/includes/pear/Text/Wiki/Render/Creole/Newline.php
deleted file mode 100644
index 697d8eb..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Newline.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Newline extends Text_Wiki_Render {
-
-
- function token($options)
- {
- return "\n";
- }
-}
-
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Paragraph.php b/includes/pear/Text/Wiki/Render/Creole/Paragraph.php
deleted file mode 100644
index 7d3840d..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Paragraph.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Paragraph extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- if ($options['type'] == 'start') {
- return "";
- }
-
- if ($options['type'] == 'end') {
- return "\n\n";
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Phplookup.php b/includes/pear/Text/Wiki/Render/Creole/Phplookup.php
deleted file mode 100644
index b667238..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Phplookup.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-// $Id: Phplookup.php 222265 2006-10-23 13:11:27Z mic $
-
-class Text_Wiki_Render_Creole_Phplookup extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return $options['text'];
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Prefilter.php b/includes/pear/Text/Wiki/Render/Creole/Prefilter.php
deleted file mode 100644
index d997af0..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Prefilter.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Prefilter extends Text_Wiki_Render {
- function token()
- {
- return '';
- }
-}
-
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Preformatted.php b/includes/pear/Text/Wiki/Render/Creole/Preformatted.php
deleted file mode 100644
index 4d0796f..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Preformatted.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Preformatted extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- $text = $options['text'];
-
- $text = preg_replace("/\n( +)}}}/s", "\n$1 }}}", $text);
-
- return "{{{\n" . $text . "\n}}}\n\n";
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Raw.php b/includes/pear/Text/Wiki/Render/Creole/Raw.php
deleted file mode 100644
index 7fd8b19..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Raw.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Raw extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- $text = $options['text'];
- if ($text == '\\') $text = ' ';
- if (isset($options['type']) && $options['type'] == 'escape') {
- $text = '~' . $text;
- }
- else {
- $find = "/}}}(?!})/";
- $replace = "}}}}}}{{{";
- $text = preg_replace($find, $replace, $text);
- }
- return $text;
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Revise.php b/includes/pear/Text/Wiki/Render/Creole/Revise.php
deleted file mode 100644
index 1497c42..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Revise.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Revise extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Strong.php b/includes/pear/Text/Wiki/Render/Creole/Strong.php
deleted file mode 100644
index de7da41..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Strong.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Strong extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '**';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Subscript.php b/includes/pear/Text/Wiki/Render/Creole/Subscript.php
deleted file mode 100644
index 640cfb7..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Subscript.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Subscript extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return ',,';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Superscript.php b/includes/pear/Text/Wiki/Render/Creole/Superscript.php
deleted file mode 100644
index c9dd995..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Superscript.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Superscript extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '^^';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Table.php b/includes/pear/Text/Wiki/Render/Creole/Table.php
deleted file mode 100644
index e24ea37..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Table.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Table extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
-
-
- switch ($options['type']) {
-
- case 'table_start':
- return '';
- break;
-
- case 'table_end':
- return "\n";
- break;
-
- case 'caption_start':
- return '|= ';
- break;
-
- case 'caption_end':
- return "\n";
- break;
-
- case 'row_start':
- return '';
- break;
-
- case 'row_end':
- return "\n";
- break;
-
- case 'cell_start':
- // is this a TH or TD cell?
- if ($options['attr'] == 'header') {
- // start a header cell
- $output = '|= ';
- } else {
- // start a normal cell
- $output = '| ';
- }
- return $output;
- break;
-
- case 'cell_end':
- return ' ';
- break;
-
- default:
- return '';
-
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Tighten.php b/includes/pear/Text/Wiki/Render/Creole/Tighten.php
deleted file mode 100644
index 67200d0..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Tighten.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Tighten extends Text_Wiki_Render {
-
- function token()
- {
- return '';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Toc.php b/includes/pear/Text/Wiki/Render/Creole/Toc.php
deleted file mode 100644
index 715292d..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Toc.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Toc extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Tt.php b/includes/pear/Text/Wiki/Render/Creole/Tt.php
deleted file mode 100644
index 8dbc371..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Tt.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Tt extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- if ($options['type'] == 'start') {
- return "{{{";
- }
-
- if ($options['type'] == 'end') {
- return "}}}";
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Underline.php b/includes/pear/Text/Wiki/Render/Creole/Underline.php
deleted file mode 100644
index e239555..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Underline.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Underline extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- return '__';
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Url.php b/includes/pear/Text/Wiki/Render/Creole/Url.php
deleted file mode 100644
index ca4ed2f..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Url.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Url extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into text matching the requested format.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- extract($options);
- if ($type == 'start') {
- return '[['.$href.'|';
- }
- else if ($type == 'end') {
- return ']]';
- }
- else {
- $noprot = str_replace('http://', '', str_replace('mailto:', '', $href));
- if (strpos($href, "#ref") === 0 || strpos($href, "#fn") === 0) {
- return $text;
- }
- else if (! strlen($text) || $text == $href || $text == $noprot) {
- return '[['.$href.']]';
- } else {
- return '[['.$href.'|'.$text.']]';
- }
- }
- }
-}
-?> \ No newline at end of file
diff --git a/includes/pear/Text/Wiki/Render/Creole/Wikilink.php b/includes/pear/Text/Wiki/Render/Creole/Wikilink.php
deleted file mode 100644
index fe4fc37..0000000
--- a/includes/pear/Text/Wiki/Render/Creole/Wikilink.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-class Text_Wiki_Render_Creole_Wikilink extends Text_Wiki_Render {
-
- /**
- *
- * Renders a token into XHTML.
- *
- * @access public
- *
- * @param array $options The "options" portion of the token (second
- * element).
- *
- * @return string The text rendered from the token options.
- *
- */
-
- function token($options)
- {
- $dup = (($options['page'] == $options['text']) || ($options['page'] == preg_replace('/\s+/', '_', $options['text'])));
-
- if ($options['type'] == 'start') {
- if ($dup) return '[[';
- else return '[['.$options['page'].
- (strlen($options['anchor']) ? $options['anchor'] : '').
- (strlen($options['text']) && (strlen($options['page']) || strlen($options['anchor'])) ? '|' : '');
- } else if ($options['type'] == 'end') {
- if ($dup && strlen($options['anchor'])) return $options['anchor'].']]';
- else return ']]';
- } else {
- if ($dup) return '[['.
- (strlen($options['text']) ? $options['text'] : '').
- (strlen($options['anchor']) ? $options['anchor'] : '').
- ']]';
- else return '[['.$options['page'].
- (strlen($options['anchor']) ? $options['anchor'] : '').
- (strlen($options['text']) && strlen($options['page']) && strlen($options['anchor']) ? '|' : '').
- (strlen($options['text']) ? $options['text'] : '').
- ']]';
- }
- }
-}
-?> \ No newline at end of file