From: <lra...@us...> - 2003-03-16 21:23:35
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins-dist In directory sc8-pr-cvs1:/tmp/cvs-serv23053/lib/wiki-plugins-dist Modified Files: wikiplugin_split.php Added Files: wikiplugin_dl.php Log Message: Definition lists plugin added. Some tests tested (hehe) Removed duplicate method in dirlib class --- NEW FILE: wikiplugin_dl.php --- <?php // Definition lists // Usage: // {DL()} // term1:def1 // term2:def2 // {DL} // function wikiplugin_dl($data,$params) { global $tikilib; global $replacement; extract($params); $result='<dl>'; $lines = split("\n",$data); foreach($lines as $line) { $parts = explode(":",$line); if(isset($parts[0])&&isset($parts[1])) { $result.='<dt>'.$parts[0].'</dt><dd>'.$parts[1].'</dd>'; } } $result.='</dl>'; return $result; } ?> Index: wikiplugin_split.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki-plugins-dist/wikiplugin_split.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- wikiplugin_split.php 15 Mar 2003 18:54:09 -0000 1.1 +++ wikiplugin_split.php 16 Mar 2003 21:23:33 -0000 1.2 @@ -1,4 +1,13 @@ <?php + +// Splits the page in two colums +// Usage: +// {SPLIT()} +// column1 +// --- +// column2 +// {SPLIT} + function wikiplugin_split($data,$params) { global $tikilib; global $replacement; |