From: <za...@us...> - 2003-06-30 02:47:43
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins-dist In directory sc8-pr-cvs1:/tmp/cvs-serv8619 Added Files: wikiplugin_box.php Log Message: Propagate BOX plugin to distro --- NEW FILE: wikiplugin_box.php --- <?php /* * $Header: /cvsroot/tikiwiki/tiki/lib/wiki-plugins-dist/wikiplugin_box.php,v 1.1 2003/06/30 02:47:24 zaufi Exp $ * * Tiki-Wiki BOX plugin. * * Syntax: * * {BOX([title=>Title],[bg=color],[width=>num[%]])} * Text inside box * {BOX} * */ function wikiplugin_box_help() { return "Insert theme styled box on wiki page"; } function wikiplugin_box($data,$params) { /* set default values for some args */ $title="Message box"; extract($params); $w = (isset($width)) ? " width=$width" : ""; $back = (isset($bg)) ? " style='background:$bg'" : ""; $begin="<table$w><tr><td><div class=cbox$back><div class=cbox-title>$title</div><div class=cbox-data$back>"; $end="</div></div></td></tr></table>"; return $begin . $data . $end; } ?> |