Index: branches/liquidthreads/extensions/LqtBaseView.php |
— | — | @@ -126,6 +126,8 @@ |
127 | 127 | protected $request; |
128 | 128 | |
129 | 129 | protected $headerLevel = 2; /* h1, h2, h3, etc. */ |
| 130 | + protected $maxIndentationLevel = 4; |
| 131 | + |
130 | 132 | protected $user_colors; |
131 | 133 | protected $user_color_index; |
132 | 134 | const number_of_user_colors = 6; |
— | — | @@ -643,13 +645,19 @@ |
644 | 646 | } |
645 | 647 | |
646 | 648 | function indent() { |
647 | | - $this->output->addHTML( wfOpenElement( 'dl', array('class'=>'lqt_replies') ) ); |
648 | | - $this->output->addHTML( wfOpenElement( 'dd') ); |
| 649 | + if( $this->headerLevel <= $this->maxIndentationLevel ) { |
| 650 | + $this->output->addHTML('<dl class="lqt_replies"><dd>'); |
| 651 | + } else { |
| 652 | + $this->output->addHTML('<div class="lqt_replies_without_indent">'); |
| 653 | + } |
649 | 654 | $this->headerLevel += 1; |
650 | 655 | } |
651 | 656 | function unindent() { |
652 | | - $this->output->addHTML( wfCloseElement( 'dd') ); |
653 | | - $this->output->addHTML( wfCloseElement( 'dl') ); |
| 657 | + if( $this->headerLevel <= $this->maxIndentationLevel + 1 ) { |
| 658 | + $this->output->addHTML('</dd></dl>'); |
| 659 | + } else { |
| 660 | + $this->output->addHTML('</div>'); |
| 661 | + } |
654 | 662 | $this->headerLevel -= 1; |
655 | 663 | } |
656 | 664 | |