Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_textwiki
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23011/serendipity_event_textwiki
Modified Files:
serendipity_event_textwiki.php
Log Message:
Tobias Schlitts patch for wiki images.
Fixed tab-indenting.
Index: serendipity_event_textwiki.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_textwiki/serendipity_event_textwiki.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- serendipity_event_textwiki.php 10 Jul 2004 08:24:14 -0000 1.6
+++ serendipity_event_textwiki.php 6 Sep 2004 09:26:28 -0000 1.7
@@ -14,455 +14,454 @@
@define('PLUGIN_EVENT_TEXTWIKI_NAME', 'Markup: Wiki');
@define('PLUGIN_EVENT_TEXTWIKI_DESC', 'Markup text using Text_Wiki');
@define('PLUGIN_EVENT_TEXTWIKI_TRANSFORM', '<a href="http://c2.com/cgi/wiki">Wiki</a> format allowed');
-
+
break;
}
// Currently only english available
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PREFILETER', 'Converts different OS linebreaks (Unix/DOS) to unified format and concates lines ending with \. Default is on. Not recommended to switch off.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_DELIMITER', 'Converts the Text_Wiki internal delimiter "\xFF" (255) to avoid conflicts while parsing. Default is on. Not recommended to switch off.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_CODE', 'Marks text between <code> and </code> as code. Using <code type=".."> you can switch highlighting on (e.g. for PHP). Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PHPCODE', 'Marks and highlights text between <php> and </php> as PHP code and adds PHP open tags. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HTML', 'Allows you to use real HTML between <html> and </html>. Beware JS is possible, too! If you use this, switch of markup for comments! Default is off. Not recommended to switch on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_RAW', 'Text between `` and `` is not touched by other markup rules. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_INCLUDE', 'Allows you to include and run PHP code with the syntax [[include /path/to/script.php]]. Resulting output is parsed by markup rules. Beware, security risk! If you use this, switch of markup for comments! Default is off. Not recommended to switch on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_INCLUDE_DESC_BASE', 'The base directory to your scripts. Default this is set to "/path/to/scripts/". If you leave this blank and switch include on you can only use absolute pathes.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HEADING', 'Lines starting with "+ " are marked as headlines (+ = <h1>, ++++++ = <h6>). Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HORIZ', '---- is converted to a horizontal line (<hr>). Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BREAK', 'Line endings marked with " _" define explicit linebreaks. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BLOCKQUOTE', 'Enables to use email style quoting ("> ", ">> ",...). Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_LIST', 'Allows creation of lists ("* " = undefined, "# " = numbered). Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_DEFLIST', 'Enables to create definition lists. Syntax: ": Topic : Definition". Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TABLE', 'Allows you to create tables. Only used for complete lines. Syntax: "|| Cell 1 || Cell 2 || Cell 3 ||". Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_EMBED', 'Allows you to include and run PHP code with the syntax [[embed /path/to/script.php]]. Resulting output is not parsed by markup rules. Beware, security risk! If you use this, switch of markup for comments! Default is off. Not recommended to switch on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_EMBED_DESC_BASE', 'The base directory to your scripts. Default this is set to "/path/to/scripts/". If you leave this blank and switch embed on you can only use absolute pathes.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_IMAGE', 'Enables the inclusion of images. ([[image /path/to/image.ext [HTML attributes] ]] or [[image path/to/image.ext [link="PageName"] [HTML attributes] ]] for linkes images) Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_IMAGE_DESC_BASE', 'Base directory to your images. Default this is set to "/path/to/images". If you leave this blank you can only use absolute pathes or URLs.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PHPLOOKUP', 'Creates lookup links to the PHP manual with [[php function-name]]. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TOC', 'Generates a table of contents over all used headlines with [[toc]]. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_NEWLINE', 'Converts single newlines ("\n") to line breaks. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_CENTER', 'Lines starting with "= " are centered. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PARAGRAPH', 'Double newlines are converted to paragraphs (<p></p>). Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_URL', 'Normal converts http://example.com to links, [http://example.com] to footnotes and [http://example.com Example] to descriptive links. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_URL_DESC_TARGET', 'Defines the target for your URLs. This is default set to "_blank", what is mostly feasible.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_FREELINK', 'Enables definition of non-standard wiki links using "((Non-standard link format))" and "((Non-standard link|Describtion))". Default is off.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_PAGES', 'The freelink rule (as well as the wikilink rule) must know, which pages exist and which have to be marked as "new". This specifies a file (local or remote) which has to contain 1 pagename per line. If the file is remote, it will be cached for the specified time.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_VIEWURL', 'This URL is specified to view the freelinks. You have to specify a "%s" inside this URL which will be replaced with the name of the freelink page.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_NEWURL', 'This URL is specified to create new freelinks. You have to specify a "%s" inside this URL which will be replaced with the name of the freelink page.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_NEWTEXT', 'This text will be added to undefined freelinks to link to the create page. Initially this is set to "?".');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_CACHETIME', 'If you specify a remote file (URL) for your freelink pages, this file will be cached for as many seconds you specify here. Default is 1 hour.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_INTERWIKI', 'Allows inter wiki linking to MeatBal, Avagoto und Wiki using SiteName:PageName or [SiteName:PageName Show this text instead]. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_INTERWIKI_DESC_TARGET', '');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_WIKILINK', 'Enables usage of standard WikiWords (2-X x uppercase) as wiki links. Default is off.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_PAGES', 'The wikilink rule must know, which pages exist and which have to be marked as "new". This specifies a file (local or remote) which has to contain 1 pagename per line. If the file is remote, it will be cached for the specified time.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_VIEWURL', 'This URL is specified to view the wikilinks. You have to specify a "%s" inside this URL which will be replaced with the name of the wikilink page.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_NEWURL', 'This URL is specified to create new wikilinks. You have to specify a "%s" inside this URL which will be replaced with the name of the wikilink page.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_NEWTEXT', 'This text will be added to undefined wikilinks to link to the create page. Initially this is set to "?".');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_CACHETIME', 'If you specify a remote file (URL) for your wikilink pages, this file will be cached for as many seconds you specify here. Default is 1 hour.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_COLORTEXT', 'Colorize text using ##color|text##. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_STRONG', '**Text** is marked strong. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BOLD', '\'\'\'Text\'\'\' is marked bold. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_EMPHASIS', '//Text// is marked emphasised. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_ITALIC', '\'\'Text\'\' is marked italic. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TT', '{{Text}} is writen in teletext (monotype). Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_SUPERSCRIPT', '^^Text^^ is written in superscript. Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_REVISE', 'Enables marking texts as revisions using "@@---delete this text+++insert this text@@". Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TIGHTEN', 'Finds more than 3 newlines and reduces the to 2 newlines (paragraph). Default is on.');
- @define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_ENTITIES', 'Escapes HTML entities. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PREFILETER', 'Converts different OS linebreaks (Unix/DOS) to unified format and concates lines ending with \. Default is on. Not recommended to switch off.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_DELIMITER', 'Converts the Text_Wiki internal delimiter "\xFF" (255) to avoid conflicts while parsing. Default is on. Not recommended to switch off.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_CODE', 'Marks text between <code> and </code> as code. Using <code type=".."> you can switch highlighting on (e.g. for PHP). Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PHPCODE', 'Marks and highlights text between <php> and </php> as PHP code and adds PHP open tags. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HTML', 'Allows you to use real HTML between <html> and </html>. Beware JS is possible, too! If you use this, switch of markup for comments! Default is off. Not recommended to switch on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_RAW', 'Text between `` and `` is not touched by other markup rules. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_INCLUDE', 'Allows you to include and run PHP code with the syntax [[include /path/to/script.php]]. Resulting output is parsed by markup rules. Beware, security risk! If you use this, switch of markup for comments! Default is off. Not recommended to switch on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_INCLUDE_DESC_BASE', 'The base directory to your scripts. Default this is set to "/path/to/scripts/". If you leave this blank and switch include on you can only use absolute pathes.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HEADING', 'Lines starting with "+ " are marked as headlines (+ = <h1>, ++++++ = <h6>). Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HORIZ', '---- is converted to a horizontal line (<hr>). Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BREAK', 'Line endings marked with " _" define explicit linebreaks. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BLOCKQUOTE', 'Enables to use email style quoting ("> ", ">> ",...). Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_LIST', 'Allows creation of lists ("* " = undefined, "# " = numbered). Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_DEFLIST', 'Enables to create definition lists. Syntax: ": Topic : Definition". Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TABLE', 'Allows you to create tables. Only used for complete lines. Syntax: "|| Cell 1 || Cell 2 || Cell 3 ||". Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_EMBED', 'Allows you to include and run PHP code with the syntax [[embed /path/to/script.php]]. Resulting output is not parsed by markup rules. Beware, security risk! If you use this, switch of markup for comments! Default is off. Not recommended to switch on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_EMBED_DESC_BASE', 'The base directory to your scripts. Default this is set to "/path/to/scripts/". If you leave this blank and switch embed on you can only use absolute pathes.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_IMAGE', 'Enables the inclusion of images. ([[image /path/to/image.ext [HTML attributes] ]] or [[image path/to/image.ext [link="PageName"] [HTML attributes] ]] for linkes images) Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_IMAGE_DESC_BASE', 'Base directory to your images. Default this is set to "/path/to/images". If you leave this blank you can only use absolute pathes or URLs.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PHPLOOKUP', 'Creates lookup links to the PHP manual with [[php function-name]]. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TOC', 'Generates a table of contents over all used headlines with [[toc]]. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_NEWLINE', 'Converts single newlines ("\n") to line breaks. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_CENTER', 'Lines starting with "= " are centered. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PARAGRAPH', 'Double newlines are converted to paragraphs (<p></p>). Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_URL', 'Normal converts http://example.com to links, [http://example.com] to footnotes and [http://example.com Example] to descriptive links. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_URL_DESC_TARGET', 'Defines the target for your URLs. This is default set to "_blank", what is mostly feasible.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_FREELINK', 'Enables definition of non-standard wiki links using "((Non-standard link format))" and "((Non-standard link|Describtion))". Default is off.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_PAGES', 'The freelink rule (as well as the wikilink rule) must know, which pages exist and which have to be marked as "new". This specifies a file (local or remote) which has to contain 1 pagename per line. If the file is remote, it will be cached for the specified time.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_VIEWURL', 'This URL is specified to view the freelinks. You have to specify a "%s" inside this URL which will be replaced with the name of the freelink page.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_NEWURL', 'This URL is specified to create new freelinks. You have to specify a "%s" inside this URL which will be replaced with the name of the freelink page.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_NEWTEXT', 'This text will be added to undefined freelinks to link to the create page. Initially this is set to "?".');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_CACHETIME', 'If you specify a remote file (URL) for your freelink pages, this file will be cached for as many seconds you specify here. Default is 1 hour.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_INTERWIKI', 'Allows inter wiki linking to MeatBal, Avagoto und Wiki using SiteName:PageName or [SiteName:PageName Show this text instead]. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_INTERWIKI_DESC_TARGET', '');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_WIKILINK', 'Enables usage of standard WikiWords (2-X x uppercase) as wiki links. Default is off.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_PAGES', 'The wikilink rule must know, which pages exist and which have to be marked as "new". This specifies a file (local or remote) which has to contain 1 pagename per line. If the file is remote, it will be cached for the specified time.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_VIEWURL', 'This URL is specified to view the wikilinks. You have to specify a "%s" inside this URL which will be replaced with the name of the wikilink page.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_NEWURL', 'This URL is specified to create new wikilinks. You have to specify a "%s" inside this URL which will be replaced with the name of the wikilink page.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_NEWTEXT', 'This text will be added to undefined wikilinks to link to the create page. Initially this is set to "?".');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_CACHETIME', 'If you specify a remote file (URL) for your wikilink pages, this file will be cached for as many seconds you specify here. Default is 1 hour.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_COLORTEXT', 'Colorize text using ##color|text##. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_STRONG', '**Text** is marked strong. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BOLD', '\'\'\'Text\'\'\' is marked bold. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_EMPHASIS', '//Text// is marked emphasised. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_ITALIC', '\'\'Text\'\' is marked italic. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TT', '{{Text}} is writen in teletext (monotype). Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_SUPERSCRIPT', '^^Text^^ is written in superscript. Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_REVISE', 'Enables marking texts as revisions using "@@---delete this text+++insert this text@@". Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TIGHTEN', 'Finds more than 3 newlines and reduces the to 2 newlines (paragraph). Default is on.');
+@define('PLUGIN_EVENT_TEXTWIKI_RULE_DESC_ENTITIES', 'Escapes HTML entities. Default is on.');
class serendipity_event_textwiki extends serendipity_event
{
var $wikiRules = array(
-
- 'prefilter' => array(
- 'file' => 'Text/Wiki/Rule/prefilter.php',
- 'name' => 'Text_Wiki_Rule_prefilter',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PREFILETER
- ),
-
- 'delimiter' => array(
- 'file' => 'Text/Wiki/Rule/delimiter.php',
- 'name' => 'Text_Wiki_Rule_delimiter',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_DELIMITER
- ),
-
- 'code' => array(
- 'file' => 'Text/Wiki/Rule/code.php',
- 'name' => 'Text_Wiki_Rule_code',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_CODE
- ),
-
- 'phpcode' => array(
- 'file' => 'Text/Wiki/Rule/phpcode.php',
- 'name' => 'Text_Wiki_Rule_phpcode',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PHPCODE
- ),
-
- 'html' => array(
- 'file' => 'Text/Wiki/Rule/html.php',
- 'name' => 'Text_Wiki_Rule_html',
- 'flag' => false,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HTML
- ),
-
- 'raw' => array(
- 'file' => 'Text/Wiki/Rule/raw.php',
- 'name' => 'Text_Wiki_Rule_raw',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_RAW
- ),
-
- 'include' => array(
- 'file' => 'Text/Wiki/Rule/include.php',
- 'name' => 'Text_Wiki_Rule_include',
- 'flag' => false,
- 'conf' => array(
- 'base' => '/path/to/scripts/'
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_INCLUDE,
- 's9yc' => array(
- 'base' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_INCLUDE_DESC_BASE))
- ),
-
- 'heading' => array(
- 'file' => 'Text/Wiki/Rule/heading.php',
- 'name' => 'Text_Wiki_Rule_heading',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HEADING
- ),
-
- 'horiz' => array(
- 'file' => 'Text/Wiki/Rule/horiz.php',
- 'name' => 'Text_Wiki_Rule_horiz',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HORIZ
- ),
-
- 'break' => array(
- 'file' => 'Text/Wiki/Rule/break.php',
- 'name' => 'Text_Wiki_Rule_break',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BREAK
- ),
-
- 'blockquote' => array(
- 'file' => 'Text/Wiki/Rule/blockquote.php',
- 'name' => 'Text_Wiki_Rule_blockquote',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BLOCKQUOTE
- ),
-
- 'list' => array(
- 'file' => 'Text/Wiki/Rule/list.php',
- 'name' => 'Text_Wiki_Rule_list',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_LIST
- ),
-
- 'deflist' => array(
- 'file' => 'Text/Wiki/Rule/deflist.php',
- 'name' => 'Text_Wiki_Rule_deflist',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_DEFLIST
- ),
-
- 'table' => array(
- 'file' => 'Text/Wiki/Rule/table.php',
- 'name' => 'Text_Wiki_Rule_table',
- 'flag' => true,
- 'conf' => array(
- 'border' => 1,
- 'spacing' => 0,
- 'padding' => 4
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TABLE
- ),
-
- 'embed' => array(
- 'file' => 'Text/Wiki/Rule/embed.php',
- 'name' => 'Text_Wiki_Rule_embed',
- 'flag' => false,
- 'conf' => array(
- 'base' => '/path/to/scripts/'
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_EMBED,
- 's9yc' => array(
- 'base' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_EMBED_DESC_BASE))
- ),
-
- 'image' => array(
- 'file' => 'Text/Wiki/Rule/image.php',
- 'name' => 'Text_Wiki_Rule_image',
- 'flag' => true,
- 'conf' => array(
- 'base' => '/path/to/images/'
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_IMAGE,
- 's9yc' => array(
- 'base' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_IMAGE_DESC_BASE))
- ),
-
- 'phplookup' => array(
- 'file' => 'Text/Wiki/Rule/phplookup.php',
- 'name' => 'Text_Wiki_Rule_phplookup',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PHPLOOKUP
- ),
-
- 'toc' => array(
- 'file' => 'Text/Wiki/Rule/toc.php',
- 'name' => 'Text_Wiki_Rule_toc',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TOC
- ),
-
- 'newline' => array(
- 'file' => 'Text/Wiki/Rule/newline.php',
- 'name' => 'Text_Wiki_Rule_newline',
- 'flag' => true,
- 'conf' => array(
- 'skip' => array(
- 'code',
- 'phpcode',
- 'heading',
- 'horiz',
- 'deflist',
- 'table',
- 'list',
- 'toc'
- )
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_NEWLINE
- ),
-
- 'center' => array(
- 'file' => 'Text/Wiki/Rule/center.php',
- 'name' => 'Text_Wiki_Rule_center',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_CENTER
- ),
-
- 'paragraph' => array(
- 'file' => 'Text/Wiki/Rule/paragraph.php',
- 'name' => 'Text_Wiki_Rule_paragraph',
- 'flag' => true,
- 'conf' => array(
- 'skip' => array(
- 'blockquote',
- 'code',
- 'phpcode',
- 'heading',
- 'horiz',
- 'deflist',
- 'table',
- 'list',
- 'toc'
- )
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PARAGRAPH
- ),
-
- 'url' => array(
- 'file' => 'Text/Wiki/Rule/url.php',
- 'name' => 'Text_Wiki_Rule_url',
- 'flag' => true,
- 'conf' => array(
- 'target' => '_BLANK'
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_URL,
- 's9yc' => array(
- 'target' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_URL_DESC_TARGET)),
- ),
-
- 'freelink' => array(
- 'file' => 'Text/Wiki/Rule/freelink.php',
- 'name' => 'Text_Wiki_Rule_freelink',
- 'flag' => false,
- 'conf' => array(
- 'pages' => array(),
- 'view_url' => 'http://example.com/index.php?page=%s',
- 'new_url' => 'http://example.com/new.php?page=%s',
- 'new_text' => '?'
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_FREELINK,
- 's9yc' => array(
- 'pages' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_PAGES),
- 'view_url' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_VIEWURL),
- 'new_url' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_NEWURL),
- 'new_text' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_NEWTEXT),
- 'cachetime' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_CACHETIME))
- ),
-
- 'interwiki' => array(
- 'file' => 'Text/Wiki/Rule/interwiki.php',
- 'name' => 'Text_Wiki_Rule_interwiki',
- 'flag' => true,
- 'conf' => array(
- 'sites' => array(
- 'MeatBall' => 'http://www.usemod.com/cgi-bin/mb.pl?%s',
- 'Advogato' => 'http://advogato.org/%s',
- 'Wiki' => 'http://c2.com/cgi/wiki?%s'
- ),
- 'target' => '_BLANK'
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_INTERWIKI,
- 's9yc' => array(
- 'pages' => array(
- 'target' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_INTERWIKI_DESC_TARGET))
- ),
-
- 'wikilink' => array(
- 'file' => 'Text/Wiki/Rule/wikilink.php',
- 'name' => 'Text_Wiki_Rule_wikilink',
- 'flag' => false,
- 'conf' => array(
- 'pages' => array(),
- 'view_url' => 'http://example.com/index.php?page=%s',
- 'new_url' => 'http://example.com/new.php?page=%s',
- 'new_text' => '?'
- ),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_WIKILINK,
- 's9yc' => array(
- 'pages' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_PAGES),
- 'view_url' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_VIEWURL),
- 'new_url' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_NEWURL),
- 'new_text' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_NEWTEXT),
- 'cachetime' => array(
- 'type' => 'string',
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_CACHETIME))
- ),
-
- 'colortext' => array(
- 'file' => 'Text/Wiki/Rule/colortext.php',
- 'name' => 'Text_Wiki_Rule_colortext',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_COLORTEXT
- ),
-
- 'strong' => array(
- 'file' => 'Text/Wiki/Rule/strong.php',
- 'name' => 'Text_Wiki_Rule_strong',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_STRONG
- ),
-
- 'bold' => array(
- 'file' => 'Text/Wiki/Rule/bold.php',
- 'name' => 'Text_Wiki_Rule_bold',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BOLD
- ),
-
- 'emphasis' => array(
- 'file' => 'Text/Wiki/Rule/emphasis.php',
- 'name' => 'Text_Wiki_Rule_emphasis',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_EMPHASIS
- ),
-
- 'italic' => array(
- 'file' => 'Text/Wiki/Rule/italic.php',
- 'name' => 'Text_Wiki_Rule_italic',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_ITALIC
- ),
-
- 'tt' => array(
- 'file' => 'Text/Wiki/Rule/tt.php',
- 'name' => 'Text_Wiki_Rule_tt',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TT
- ),
-
- 'superscript' => array(
- 'file' => 'Text/Wiki/Rule/superscript.php',
- 'name' => 'Text_Wiki_Rule_superscript',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_SUPERSCRIPT
- ),
-
- 'revise' => array(
- 'file' => 'Text/Wiki/Rule/revise.php',
- 'name' => 'Text_Wiki_Rule_revise',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_REVISE
- ),
-
- 'tighten' => array(
- 'file' => 'Text/Wiki/Rule/tighten.php',
- 'name' => 'Text_Wiki_Rule_tighten',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TIGHTEN
- ),
-
- 'entities' => array(
- 'file' => 'Text/Wiki/Rule/entities.php',
- 'name' => 'Text_Wiki_Rule_entities',
- 'flag' => true,
- 'conf' => array(),
- 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_ENTITIES
- )
- );
-
- var $nonWikiRules = array();
-
+ 'prefilter' => array(
+ 'file' => 'Text/Wiki/Rule/prefilter.php',
+ 'name' => 'Text_Wiki_Rule_prefilter',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PREFILETER
+ ),
+
+ 'delimiter' => array(
+ 'file' => 'Text/Wiki/Rule/delimiter.php',
+ 'name' => 'Text_Wiki_Rule_delimiter',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_DELIMITER
+ ),
+
+ 'code' => array(
+ 'file' => 'Text/Wiki/Rule/code.php',
+ 'name' => 'Text_Wiki_Rule_code',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_CODE
+ ),
+
+ 'phpcode' => array(
+ 'file' => 'Text/Wiki/Rule/phpcode.php',
+ 'name' => 'Text_Wiki_Rule_phpcode',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PHPCODE
+ ),
+
+ 'html' => array(
+ 'file' => 'Text/Wiki/Rule/html.php',
+ 'name' => 'Text_Wiki_Rule_html',
+ 'flag' => false,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HTML
+ ),
+
+ 'raw' => array(
+ 'file' => 'Text/Wiki/Rule/raw.php',
+ 'name' => 'Text_Wiki_Rule_raw',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_RAW
+ ),
+
+ 'include' => array(
+ 'file' => 'Text/Wiki/Rule/include.php',
+ 'name' => 'Text_Wiki_Rule_include',
+ 'flag' => false,
+ 'conf' => array(
+ 'base' => '/path/to/scripts/'
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_INCLUDE,
+ 's9yc' => array(
+ 'base' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_INCLUDE_DESC_BASE))
+ ),
+
+ 'heading' => array(
+ 'file' => 'Text/Wiki/Rule/heading.php',
+ 'name' => 'Text_Wiki_Rule_heading',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HEADING
+ ),
+
+ 'horiz' => array(
+ 'file' => 'Text/Wiki/Rule/horiz.php',
+ 'name' => 'Text_Wiki_Rule_horiz',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_HORIZ
+ ),
+
+ 'break' => array(
+ 'file' => 'Text/Wiki/Rule/break.php',
+ 'name' => 'Text_Wiki_Rule_break',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BREAK
+ ),
+
+ 'blockquote' => array(
+ 'file' => 'Text/Wiki/Rule/blockquote.php',
+ 'name' => 'Text_Wiki_Rule_blockquote',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BLOCKQUOTE
+ ),
+
+ 'list' => array(
+ 'file' => 'Text/Wiki/Rule/list.php',
+ 'name' => 'Text_Wiki_Rule_list',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_LIST
+ ),
+
+ 'deflist' => array(
+ 'file' => 'Text/Wiki/Rule/deflist.php',
+ 'name' => 'Text_Wiki_Rule_deflist',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_DEFLIST
+ ),
+
+ 'table' => array(
+ 'file' => 'Text/Wiki/Rule/table.php',
+ 'name' => 'Text_Wiki_Rule_table',
+ 'flag' => true,
+ 'conf' => array(
+ 'border' => 1,
+ 'spacing' => 0,
+ 'padding' => 4
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TABLE
+ ),
+
+ 'embed' => array(
+ 'file' => 'Text/Wiki/Rule/embed.php',
+ 'name' => 'Text_Wiki_Rule_embed',
+ 'flag' => false,
+ 'conf' => array(
+ 'base' => '/path/to/scripts/'
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_EMBED,
+ 's9yc' => array(
+ 'base' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_EMBED_DESC_BASE))
+ ),
+
+ 'image' => array(
+ 'file' => 'Text/Wiki/Rule/image.php',
+ 'name' => 'Text_Wiki_Rule_image',
+ 'flag' => true,
+ 'conf' => array(
+ 'base' => ''
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_IMAGE,
+ 's9yc' => array(
+ 'base' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_IMAGE_DESC_BASE))
+ ),
+
+ 'phplookup' => array(
+ 'file' => 'Text/Wiki/Rule/phplookup.php',
+ 'name' => 'Text_Wiki_Rule_phplookup',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PHPLOOKUP
+ ),
+
+ 'toc' => array(
+ 'file' => 'Text/Wiki/Rule/toc.php',
+ 'name' => 'Text_Wiki_Rule_toc',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TOC
+ ),
+
+ 'newline' => array(
+ 'file' => 'Text/Wiki/Rule/newline.php',
+ 'name' => 'Text_Wiki_Rule_newline',
+ 'flag' => true,
+ 'conf' => array(
+ 'skip' => array(
+ 'code',
+ 'phpcode',
+ 'heading',
+ 'horiz',
+ 'deflist',
+ 'table',
+ 'list',
+ 'toc'
+ )
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_NEWLINE
+ ),
+
+ 'center' => array(
+ 'file' => 'Text/Wiki/Rule/center.php',
+ 'name' => 'Text_Wiki_Rule_center',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_CENTER
+ ),
+
+ 'paragraph' => array(
+ 'file' => 'Text/Wiki/Rule/paragraph.php',
+ 'name' => 'Text_Wiki_Rule_paragraph',
+ 'flag' => true,
+ 'conf' => array(
+ 'skip' => array(
+ 'blockquote',
+ 'code',
+ 'phpcode',
+ 'heading',
+ 'horiz',
+ 'deflist',
+ 'table',
+ 'list',
+ 'toc'
+ )
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_PARAGRAPH
+ ),
+
+ 'url' => array(
+ 'file' => 'Text/Wiki/Rule/url.php',
+ 'name' => 'Text_Wiki_Rule_url',
+ 'flag' => true,
+ 'conf' => array(
+ 'target' => '_BLANK'
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_URL,
+ 's9yc' => array(
+ 'target' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_URL_DESC_TARGET)),
+ ),
+
+ 'freelink' => array(
+ 'file' => 'Text/Wiki/Rule/freelink.php',
+ 'name' => 'Text_Wiki_Rule_freelink',
+ 'flag' => false,
+ 'conf' => array(
+ 'pages' => array(),
+ 'view_url' => 'http://example.com/index.php?page=%s',
+ 'new_url' => 'http://example.com/new.php?page=%s',
+ 'new_text' => '?'
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_FREELINK,
+ 's9yc' => array(
+ 'pages' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_PAGES),
+ 'view_url' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_VIEWURL),
+ 'new_url' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_NEWURL),
+ 'new_text' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_FREELINK_DESC_NEWTEXT),
+ 'cachetime' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_CACHETIME))
+ ),
+
+ 'interwiki' => array(
+ 'file' => 'Text/Wiki/Rule/interwiki.php',
+ 'name' => 'Text_Wiki_Rule_interwiki',
+ 'flag' => true,
+ 'conf' => array(
+ 'sites' => array(
+ 'MeatBall' => 'http://www.usemod.com/cgi-bin/mb.pl?%s',
+ 'Advogato' => 'http://advogato.org/%s',
+ 'Wiki' => 'http://c2.com/cgi/wiki?%s'
+ ),
+ 'target' => '_BLANK'
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_INTERWIKI,
+ 's9yc' => array(
+ 'pages' => array(
+ 'target' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_INTERWIKI_DESC_TARGET))
+ ),
+
+ 'wikilink' => array(
+ 'file' => 'Text/Wiki/Rule/wikilink.php',
+ 'name' => 'Text_Wiki_Rule_wikilink',
+ 'flag' => false,
+ 'conf' => array(
+ 'pages' => array(),
+ 'view_url' => 'http://example.com/index.php?page=%s',
+ 'new_url' => 'http://example.com/new.php?page=%s',
+ 'new_text' => '?'
+ ),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_WIKILINK,
+ 's9yc' => array(
+ 'pages' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_PAGES),
+ 'view_url' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_VIEWURL),
+ 'new_url' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_NEWURL),
+ 'new_text' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_NEWTEXT),
+ 'cachetime' => array(
+ 'type' => 'string',
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_WIKILINK_DESC_CACHETIME))
+ ),
+
+ 'colortext' => array(
+ 'file' => 'Text/Wiki/Rule/colortext.php',
+ 'name' => 'Text_Wiki_Rule_colortext',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_COLORTEXT
+ ),
+
+ 'strong' => array(
+ 'file' => 'Text/Wiki/Rule/strong.php',
+ 'name' => 'Text_Wiki_Rule_strong',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_STRONG
+ ),
+
+ 'bold' => array(
+ 'file' => 'Text/Wiki/Rule/bold.php',
+ 'name' => 'Text_Wiki_Rule_bold',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_BOLD
+ ),
+
+ 'emphasis' => array(
+ 'file' => 'Text/Wiki/Rule/emphasis.php',
+ 'name' => 'Text_Wiki_Rule_emphasis',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_EMPHASIS
+ ),
+
+ 'italic' => array(
+ 'file' => 'Text/Wiki/Rule/italic.php',
+ 'name' => 'Text_Wiki_Rule_italic',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_ITALIC
+ ),
+
+ 'tt' => array(
+ 'file' => 'Text/Wiki/Rule/tt.php',
+ 'name' => 'Text_Wiki_Rule_tt',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TT
+ ),
+
+ 'superscript' => array(
+ 'file' => 'Text/Wiki/Rule/superscript.php',
+ 'name' => 'Text_Wiki_Rule_superscript',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_SUPERSCRIPT
+ ),
+
+ 'revise' => array(
+ 'file' => 'Text/Wiki/Rule/revise.php',
+ 'name' => 'Text_Wiki_Rule_revise',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_REVISE
+ ),
+
+ 'tighten' => array(
+ 'file' => 'Text/Wiki/Rule/tighten.php',
+ 'name' => 'Text_Wiki_Rule_tighten',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_TIGHTEN
+ ),
+
+ 'entities' => array(
+ 'file' => 'Text/Wiki/Rule/entities.php',
+ 'name' => 'Text_Wiki_Rule_entities',
+ 'flag' => true,
+ 'conf' => array(),
+ 'desc' => PLUGIN_EVENT_TEXTWIKI_RULE_DESC_ENTITIES
+ )
+ );
+
+ var $nonWikiRules = array();
+
function introspect(&$propbag)
{
global $serendipity;
@@ -523,7 +522,7 @@
}
}
}
-
+
function generate_content(&$title) {
$title = PLUGIN_EVENT_TEXTWIKI_NAME;
@@ -545,7 +544,7 @@
}
return true;
}
-
+
function _introspect_rule_config_item($name, &$propbag) {
if (strpos($name, '_') === false) {
$propbag->add('type', 'boolean');
@@ -566,7 +565,7 @@
global $serendipity;
$hooks = &$bag->get('event_hooks');
-
+
if (!isset($this->wiki) || !is_a($this->wiki, 'text_wiki')) {
$this->_init_wiki($bag);
}
@@ -597,7 +596,7 @@
return false;
}
}
-
+
function _init_wiki(&$bag) {
if (class_exists('Text_Wiki')) {
$this->wiki =& new Text_Wiki;
@@ -611,7 +610,7 @@
}
return true;
}
-
+
function _add_wiki_rule(&$bag, $name, $rule) {
$rule_info = $rule;
$rule_info['flag'] = true;
@@ -627,7 +626,7 @@
$this->wiki->insertRule($name, $rule_info);
return true;
}
-
+
function _get_link_pages(&$bag, $ruleName) {
global $serendipity;
if ($this->get_config($ruleName.'_pages') === null) {
@@ -653,4 +652,4 @@
}
/* vim: set sts=4 ts=4 expandtab : */
-?>
+?>
\ No newline at end of file
|