This code creates a styled section beneath a new book:
<div class="book"><div class="nav"> <div class="links"><div class="prev"> </div><div class="next"> </div></div> <div class="titles"></div></div></div> </div>
If there is no data to be displayed, empty divs should not be output.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | book.module_8.patch | 3.06 KB | crunchywelch |
| #2 | book.module_7.patch | 7.89 KB | crunchywelch |
| book_divs.png | 9.83 KB | chrismessina |
Comments
Comment #1
robin monks commentedThe
<div class="book"><div class="nav"> <div class="links"><div class="prev"> </div><div class="next"> </div></div> <div class="titles"></div></div></div></div>still exists. Bumping up to HEAD.Robin
Comment #2
crunchywelch commentedHere is a patch that fixes this, it rearranges the theme_book_navigation function logic to only output the navigation book div if there is content to display.
Comment #3
crunchywelch commentedSeems I tried to sneak in my timezone system.module patch as well ;). Here is a patch without the system.module diff.
Comment #4
killes@www.drop.org commenteddoesn't apply anymore.
Comment #5
beginner commentedThis seems to be fixed in HEAD and it seems in 4.7, too.
Does the 4.6 accept minor bugs like this one?
Comment #6
(not verified) commented