]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Add_a_footer_div_on_all_pages_to_improve_theming.mdwn
67db77c4b58ea3fcd3fdab0432b95ceea4c8a752
[ikiwiki.git] / doc / bugs / Add_a_footer_div_on_all_pages_to_improve_theming.mdwn
1 The following patch adds a footer div on all pages to ease CSS themeing.
2 Indeed, the misc.tmpl, recentchanges.tmpl and editpage.tmpl templates lack such a div.
3
4 > So, the problem with this is that the default css inserts a horizontal
5 > line at the top of the footer div, and putting an empty footer on these
6 > other pages looks a bit weird. Any idea how to get around that?
7 > --[[Joey]]
8
9 >> Sorry I didn't see that. It definitely looks weird. We could add text  
10 >> in all footers or change the CSS stylesheet, but it's not clean IMHO.
11
12 >> The idea was about to ease themeing by giving all the pages the same
13 >> structure. The current structure is the following one:
14
15 >> div header - div actions ... div content - div footer (sometimes)
16
17 >> So we could add some new divs in all templates. By default, they will  
18 >> be empty and no CSS will be defined for them. This way ikiwiki
19 >> standard appearance is not changed but themeing will be eased.
20 >> The new page structure could be:
21
22 >> * div banner (to show up a logo for example)
23
24 >> * div content-wrap containing div header, div actions, ... div content
25 >> and div footer
26
27 >> * div realfooter (to put credits, "Powered by ikiwiki", "Valid XHTML"...)
28
29 >> From my tests, it works: Just adding the divs, without touching the stylesheet,
30 >> doesn't change ikiwiki appearance. And themeing is eased :-)
31
32 >> I can update the patch, if you want to follow and test this idea. --Fred
33
34 >>> Sure, go ahead --[[Joey]]
35
36 This patch is against current svn.
37
38         Index: templates/recentchanges.tmpl
39         ===================================================================
40         --- templates/recentchanges.tmpl        (révision 3543)
41         +++ templates/recentchanges.tmpl        (copie de travail)
42         @@ -64,6 +64,8 @@
43          </div>
44          
45          <!-- from <TMPL_VAR NAME=WIKINAME> -->
46         +<div id="footer">
47         +</div>
48          
49          </body>
50          </html>
51         Index: templates/editpage.tmpl
52         ===================================================================
53         --- templates/editpage.tmpl     (révision 3543)
54         +++ templates/editpage.tmpl     (copie de travail)
55         @@ -86,5 +86,7 @@
56          <TMPL_VAR PAGE_PREVIEW>
57          </div>
58          </TMPL_IF>
59         +<div id="footer">
60         +</div>
61          </body>
62          </html>
63         Index: templates/misc.tmpl
64         ===================================================================
65         --- templates/misc.tmpl (révision 3543)
66         +++ templates/misc.tmpl (copie de travail)
67         @@ -22,6 +22,8 @@
68         <div id="content">
69          <TMPL_VAR PAGEBODY>
70          </div>
71         +<div id="footer">
72         +</div>
73          
74          </body>
75          </html>