From 7646fc80ea92010984f60aa4fc27333f5bba3bd8 Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 29 Aug 2008 15:22:32 +0000 Subject: [PATCH] Use paragraphs instead of lists git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6225 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/CreateToc.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/lib/plugin/CreateToc.php b/lib/plugin/CreateToc.php index 54e358836..4e198d48f 100644 --- a/lib/plugin/CreateToc.php +++ b/lib/plugin/CreateToc.php @@ -377,12 +377,7 @@ extends WikiPlugin 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 @@ extends WikiPlugin $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;')); -- 2.45.0