|
From: <var...@us...> - 2008-08-29 15:22:22
|
Revision: 6225
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6225&view=rev
Author: vargenau
Date: 2008-08-29 15:22:32 +0000 (Fri, 29 Aug 2008)
Log Message:
-----------
Use paragraphs instead of lists
Modified Paths:
--------------
trunk/lib/plugin/CreateToc.php
Modified: trunk/lib/plugin/CreateToc.php
===================================================================
--- trunk/lib/plugin/CreateToc.php 2008-08-29 15:19:11 UTC (rev 6224)
+++ trunk/lib/plugin/CreateToc.php 2008-08-29 15:22:32 UTC (rev 6225)
@@ -377,12 +377,7 @@
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')
- $list = HTML::ul(array('id'=>'toclist','class' => 'toc'));
- elseif ($liststyle == 'ol')
- $list = HTML::ol(array('id'=>'toclist','class' => 'toc'));
+ $list = HTML::div(array('id'=>'toclist'));
if (!strstr($headers,",")) {
$headers = array($headers);
} else {
@@ -412,12 +407,8 @@
$indent = $level - 1;
$link = new WikiPageName($pagename,$page,$h['anchor']);
$li = WikiLink($link,'known',$h['text']);
- if ($liststyle == 'dl')
- $list->pushContent(HTML::dt(HTML::raw
- (str_repeat($indentstr,$indent)),$li));
- else
- $list->pushContent(HTML::li(HTML::raw
- (str_repeat($indentstr,$indent)),$li));
+ $list->pushContent(HTML::p(HTML::raw
+ (str_repeat($indentstr,$indent)),$li));
}
}
$list->setAttr('style','display:'.($jshide?'none;':'block;'));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|