0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
test
/
core
/
WikiParser
/
[
Home
]
File: wikiplugin_foo.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: wikiplugin_foo.php 33195 2011-03-02 17:43:40Z changi67 $ /* Tiki-Wiki plugin example */ function wikiplugin_foo_info() { return array( 'name' => tra('Foo'), 'description' => tra('Sample plugin.'), 'prefs' => array( 'wikiplugin_example' ), 'body' => tra('text'), 'params' => array( 'face' => array( 'required' => true, 'name' => tra('Face'), 'description' => tra('Font family to use.'), ), 'size' => array( 'required' => true, 'name' => tra('Size'), 'description' => tra('As defined by CSS.'), ), ), ); } function wikiplugin_foo($data, $params) { extract ($params,EXTR_SKIP); $ret = "foo face=$face size=$size :: $data"; return $ret; }