From: <var...@us...> - 2008-08-29 15:19:01
|
Revision: 6224 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6224&view=rev Author: vargenau Date: 2008-08-29 15:19:11 +0000 (Fri, 29 Aug 2008) Log Message: ----------- Implement 'position' and 'width' arguments Modified Paths: -------------- trunk/lib/plugin/CreateToc.php Modified: trunk/lib/plugin/CreateToc.php =================================================================== --- trunk/lib/plugin/CreateToc.php 2008-08-29 15:16:20 UTC (rev 6223) +++ trunk/lib/plugin/CreateToc.php 2008-08-29 15:19:11 UTC (rev 6224) @@ -374,6 +374,9 @@ if ($notoc) { $html->setAttr('style','display:none;'); } + if (($position == "left") or ($position == "right")) { + $html->setAttr('style','float:'.$position.'; width:'.$width.';'); + } if ($liststyle == 'dl') $list = HTML::dl(array('id'=>'toclist','class' => 'toc')); elseif ($liststyle == 'ul') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |