From e4a9930b4716be77450a291f7f54a708e75be7f2 Mon Sep 17 00:00:00 2001 From: matthiasgrimm Date: Tue, 31 May 2005 20:41:55 +0200 Subject: toc toggle button The TOC toggle button was very small and inconspicuous. This patch replaces the old one with small arrows placed at the right border of the TOC header. Code cleanup in html.php: html_toc() and html_list_toc() are obsolete and have been removed. darcs-hash:20050531184155-7ef76-249f948b2a8b71d45aab2b8418db2be5eb638f6d.gz --- inc/html.php | 37 ------------------------------------- inc/parser/xhtml.php | 8 ++++++-- 2 files changed, 6 insertions(+), 39 deletions(-) (limited to 'inc') diff --git a/inc/html.php b/inc/html.php index b08f313e1..b9f2e957b 100644 --- a/inc/html.php +++ b/inc/html.php @@ -215,43 +215,6 @@ function html_btn($name,$id,$akey,$params,$method='get'){ return $ret; } -/** - * Print the table of contents - * - * @author Andreas Gohr - */ -function html_toc($toc){ - global $lang; - $ret = ''; - $ret .= '
'; - $ret .= '
'; - $ret .= $lang['toc']; - $ret .= ' '; - $ret .= '
'; - $ret .= '
'; - $ret .= html_buildlist($toc,'toc','html_list_toc'); - $ret .= '
'; - $ret .= '
'; - return $ret; -} - -/** - * TOC item formatter - * - * User function for html_buildlist() - * - * @author Andreas Gohr - */ -function html_list_toc($item){ - $ret = ''; - $ret .= ''; - $ret .= $item['name']; - $ret .= ''; - return $ret; -} - /** * show a wiki page * diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index da5c70459..06f286a20 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -70,9 +70,13 @@ class Doku_Renderer_xhtml extends Doku_Renderer { global $lang; $this->doc .= '
'.DOKU_LF; $this->doc .= '
'; +/* $this->doc .= ' '; $this->doc .= $lang['toc']; - $this->doc .= '
'.DOKU_LF; + $this->doc .= '
'.DOKU_LF; $this->doc .= '
'.DOKU_LF; } -- cgit v1.2.3