From 3e8366929f85e9c604b0f20fa68ba4f888f50f63 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 20 Jan 2007 00:57:15 +0100 Subject: [PATCH] add info to the renderer component darcs-hash:20070119235715-7ad00-06a76f498442e9a09e69869b43ee618662c6eda5.gz --- info.txt | 8 ++++++++ renderer.php | 7 +++++++ syntax.php | 9 +-------- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 info.txt diff --git a/info.txt b/info.txt new file mode 100644 index 0000000..ac609f9 --- /dev/null +++ b/info.txt @@ -0,0 +1,8 @@ +# General Plugin Info do not edit + +author Andreas Gohr +email andi@splitbrain.org +date 2007-01-20 +name S5 Slideshow Plugin +desc Display a Wiki page as S5 slideshow presentation +url http://wiki.splitbrain.org/plugin:s5 diff --git a/renderer.php b/renderer.php index b548ea1..047bdb3 100644 --- a/renderer.php +++ b/renderer.php @@ -19,6 +19,13 @@ class Doku_Renderer_s5 extends Doku_Renderer_xhtml { var $base=''; var $tpl=''; + /** + * return some info + */ + function getInfo(){ + return confToHash(dirname(__FILE__).'/info.txt'); + } + /** * Initialize the rendering */ diff --git a/syntax.php b/syntax.php index 9dabbc8..80619c2 100644 --- a/syntax.php +++ b/syntax.php @@ -21,14 +21,7 @@ class syntax_plugin_s5 extends DokuWiki_Syntax_Plugin { * return some info */ function getInfo(){ - return array( - 'author' => 'Andreas Gohr', - 'email' => 'andi@splitbrain.org', - 'date' => '2006-12-05', - 'name' => 'S5 Slideshow Plugin', - 'desc' => 'Display a Wiki page as S5 slideshow presentation', - 'url' => 'http://wiki.splitbrain.org/plugin:s5', - ); + return confToHash(dirname(__FILE__).'/info.txt'); } /**