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.
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?
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.
12 >> The idea was about to ease themeing by giving all the pages the same
13 >> structure. The current structure is the following one:
15 >> div header - div actions ... div content - div footer (sometimes)
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:
22 >> * div banner (to show up a logo for example)
24 >> * div content-wrap containing div header, div actions, ... div content
27 >> * div realfooter (to put credits, "Powered by ikiwiki", "Valid XHTML"...)
29 >> From my tests, it works: Just adding the divs, without touching the stylesheet,
30 >> doesn't change ikiwiki appearance. And themeing is eased :-)
32 >> I can update the patch, if you want to follow and test this idea. --Fred
34 >>> Sure, go ahead --[[Joey]]
36 >>>>Here is an updated patch against current svn. --Fred
38 Index: templates/recentchanges.tmpl
39 ===================================================================
40 --- templates/recentchanges.tmpl (révision 3575)
41 +++ templates/recentchanges.tmpl (copie de travail)
49 +<div id="content-wrap">
53 <TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE>
56 <!-- from <TMPL_VAR NAME=WIKINAME> -->
60 +<div id="realfooter">
65 Index: templates/page.tmpl
66 ===================================================================
67 --- templates/page.tmpl (révision 3575)
68 +++ templates/page.tmpl (copie de travail)
70 <TMPL_IF NAME="META"><TMPL_VAR META></TMPL_IF>
76 +<div id="content-wrap">
80 <TMPL_LOOP NAME="PARENTLINKS">
82 <TMPL_IF EXTRAFOOTER><TMPL_VAR EXTRAFOOTER></TMPL_IF>
87 +<div id="realfooter">
92 Index: templates/editpage.tmpl
93 ===================================================================
94 --- templates/editpage.tmpl (révision 3575)
95 +++ templates/editpage.tmpl (copie de travail)
103 +<div id="content-wrap">
105 <TMPL_IF NAME="PAGE_CONFLICT">
107 <b>Your changes conflict with other changes made to the page.</b>
109 <TMPL_VAR PAGE_PREVIEW>
115 +<div id="realfooter">
120 Index: templates/misc.tmpl
121 ===================================================================
122 --- templates/misc.tmpl (révision 3575)
123 +++ templates/misc.tmpl (copie de travail)
131 +<div id="content-wrap">
135 <TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE>
142 +<div id="realfooter">