summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-12-01 17:02:56 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-12-01 17:02:56 +0000
commite3a24861f53db7293b2b17f05d5821871b85b2f6 (patch)
treee23a41684f6eee97e12a4a5b7c5bb396b80e86dd /inc/parser/xhtml.php
parent10bcc8aaa0f8014e1c5e2d059ea674fc0063233d (diff)
downloadrpg-e3a24861f53db7293b2b17f05d5821871b85b2f6.tar.gz
rpg-e3a24861f53db7293b2b17f05d5821871b85b2f6.tar.bz2
Update inbuilt renderers for node/leaf state in listitem_open
- includes, xhtml renderer adding 'node' class to <li> when it contains child list(s)
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 3a2e49155..b73e3a881 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -456,9 +456,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
* Open a list item
*
* @param int $level the nesting level
+ * @param bool $node true when a node; false when a leaf
*/
- function listitem_open($level) {
- $this->doc .= '<li class="level'.$level.'">';
+ function listitem_open($level, $node=false) {
+ $branching = $node ? ' node' : '';
+ $this->doc .= '<li class="level'.$level.$branching.'">';
}
/**