diff options
author | chris <chris@jalakai.co.uk> | 2007-02-06 02:48:21 +0100 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2007-02-06 02:48:21 +0100 |
commit | e7856bea477397d242c532d448a8ade3f4014c68 (patch) | |
tree | 90deb8db8c036feace7e2f2b73b754921d95952c /inc/parser/renderer.php | |
parent | 34dbe7111b03874a70e60229522124c79f45f19e (diff) | |
download | rpg-e7856bea477397d242c532d448a8ade3f4014c68.tar.gz rpg-e7856bea477397d242c532d448a8ade3f4014c68.tar.bz2 |
refactor renderer header() to separate out adding toc items
adds a new render method toc_additem($id, $text, $level)
This allows toc items to be added separately from the header() function, allowing
plugins to generate their own table of content items without having to copy dw
core code (which may in the future change).
darcs-hash:20070206014821-9b6ab-218184e543f6b348e710acc2fe30a8ec329c66a8.gz
Diffstat (limited to 'inc/parser/renderer.php')
-rw-r--r-- | inc/parser/renderer.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/parser/renderer.php b/inc/parser/renderer.php index 2b6957692..a6bf0c543 100644 --- a/inc/parser/renderer.php +++ b/inc/parser/renderer.php @@ -70,6 +70,8 @@ class Doku_Renderer extends DokuWiki_Plugin { function render_TOC() { return ''; } + function toc_additem($id, $text, $level) {} + function header($text, $level, $pos) {} function section_edit($start, $end, $level, $name) {} |