lupo49 / dokuwiki-plugin-dir

Dir plugin for DokuWiki
http://www.dokuwiki.org/plugin:dir
6 stars 10 forks source link

Bootstrap sidebar formatting error #24

Open metbril opened 8 years ago

metbril commented 8 years ago

When used with the bootstrap theme, the first entry in the sidebar is right aligned. The rest of the lines is left aligned like it should.

Syntax:

~~DIR::?noheader&list&ego&collapse~~
picc09 commented 7 years ago

Issue depends on bad init of 'row_counter'. When plugin builds table, at the first iteration, the value is null. I don't know how to fix the problem, for now I changed the file "inc/parser/xhtml.php", at line 1381 the method tablerow_open() opens the TR tag and the problem is the use of class "row" in place of "row0". The temporary fix consists to change

$class = 'row' . $this->_counter['row_counter'] ++;

to

$rowCount = $this->_counter['row_counter'] ++; $rowCount = is_null($rowCount) ? 0 : $rowCount; $class = 'row' . $rowCount;

I hope it could help you. Bye.