From: <rob...@us...> - 2009-01-20 14:39:22
|
Revision: 16328 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=16328&view=rev Author: robferguson Date: 2009-01-20 14:39:12 +0000 (Tue, 20 Jan 2009) Log Message: ----------- [ADD] new footnote wikiplugin Added Paths: ----------- branches/2.0/lib/wiki-plugins/wikiplugin_footnotearea.php Added: branches/2.0/lib/wiki-plugins/wikiplugin_footnotearea.php =================================================================== --- branches/2.0/lib/wiki-plugins/wikiplugin_footnotearea.php (rev 0) +++ branches/2.0/lib/wiki-plugins/wikiplugin_footnotearea.php 2009-01-20 14:39:12 UTC (rev 16328) @@ -0,0 +1,25 @@ +<?php +/* + * $Id: /tikiwiki/tiki/lib/wiki-plugins/wikiplugin_div.php,v 1.10 2009-01-19 11:28 robferguson + * + * FOOTNOTEAREA plugin. Inserts a section for collected footnotes created with the FOOTNOTES plugin . + * + * Syntax: + * + * {FOOTNOTEAREA()/} + */ +function wikiplugin_footnotearea_help() { + return tra("Inserts a section for collected footnotes within the wiki page").":<br />~np~{FOOTNOTEAREA()/}~/np~"; +} + +function wikiplugin_footnotearea($data, $params) { + + extract ($params,EXTR_SKIP); + foreach($GLOBALS["footnotesData"] as $key => $value){ + $footnoteOuput .= "<sup>". ($key + 1) ."</sup>".$value."<br />"; + } + return "<div style=\"border-top:2px solid #999;float:left;min-width:300px;font-size:11px;\">$footnoteOuput</div>"; +} +?> + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |