diff options
author | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2005-05-31 20:41:55 +0200 |
---|---|---|
committer | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2005-05-31 20:41:55 +0200 |
commit | e4a9930b4716be77450a291f7f54a708e75be7f2 (patch) | |
tree | a3b8597cb2ad87563b41422399371f0316807518 /inc/parser/xhtml.php | |
parent | a3ec5f4af2e46256ac7efebb3a11e7084783080b (diff) | |
download | rpg-e4a9930b4716be77450a291f7f54a708e75be7f2.tar.gz rpg-e4a9930b4716be77450a291f7f54a708e75be7f2.tar.bz2 |
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
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 8 |
1 files changed, 6 insertions, 2 deletions
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 .= '<div class="toc">'.DOKU_LF; $this->doc .= '<div class="tocheader">'; +/* $this->doc .= ' <script type="text/javascript">showTocToggle("+","-")';*/ + $this->doc .= '<script type="text/javascript">showTocToggle('; + $this->doc .= '"<img src=\"'.DOKU_BASE.'images/arrow_down.png\">",'; + $this->doc .= '"<img src=\"'.DOKU_BASE.'images/arrow_up.png\">")'; + $this->doc .= '</script>'; $this->doc .= $lang['toc']; - $this->doc .= ' <script type="text/javascript">showTocToggle("+","-")'; - $this->doc .= '</script></div>'.DOKU_LF; + $this->doc .= '</div>'.DOKU_LF; $this->doc .= '<div id="tocinside">'.DOKU_LF; } |