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/html.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/html.php')
-rw-r--r-- | inc/html.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/inc/html.php b/inc/html.php index b08f313e1..b9f2e957b 100644 --- a/inc/html.php +++ b/inc/html.php @@ -216,43 +216,6 @@ function html_btn($name,$id,$akey,$params,$method='get'){ } /** - * Print the table of contents - * - * @author Andreas Gohr <andi@splitbrain.org> - */ -function html_toc($toc){ - global $lang; - $ret = ''; - $ret .= '<div class="toc">'; - $ret .= '<div class="tocheader">'; - $ret .= $lang['toc']; - $ret .= ' <script type="text/javascript">'; - $ret .= 'showTocToggle("+","-")'; - $ret .= '</script>'; - $ret .= '</div>'; - $ret .= '<div id="tocinside">'; - $ret .= html_buildlist($toc,'toc','html_list_toc'); - $ret .= '</div>'; - $ret .= '</div>'; - return $ret; -} - -/** - * TOC item formatter - * - * User function for html_buildlist() - * - * @author Andreas Gohr <andi@splitbrain.org> - */ -function html_list_toc($item){ - $ret = ''; - $ret .= '<a href="#'.$item['id'].'" class="toc">'; - $ret .= $item['name']; - $ret .= '</a>'; - return $ret; -} - -/** * show a wiki page * * @author Andreas Gohr <andi@splitbrain.org> |