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'); } /**