Fossil SCM

CSS fixes - make <div class="content"> ... </div> actually enclose the content. Also add a couple of missing footers.

eric 2008-07-18 21:44 trunk
Commit 23ed5e2cd6e89a22c922d9f6ac6f9627d9d442bd
2 files changed +2 +4 -4
--- src/setup.c
+++ src/setup.c
@@ -683,10 +683,11 @@
683683
@ <hr>
684684
@ Here is the default page header:
685685
@ <blockquote><pre>
686686
@ %h(zDefaultHeader)
687687
@ </pre></blockquote>
688
+ style_footer();
688689
db_end_transaction(0);
689690
}
690691
691692
/*
692693
** WEBPAGE: setup_footer
@@ -715,7 +716,8 @@
715716
@ <hr>
716717
@ Here is the default page footer:
717718
@ <blockquote><pre>
718719
@ %h(zDefaultFooter)
719720
@ </pre></blockquote>
721
+ style_footer();
720722
db_end_transaction(0);
721723
}
722724
--- src/setup.c
+++ src/setup.c
@@ -683,10 +683,11 @@
683 @ <hr>
684 @ Here is the default page header:
685 @ <blockquote><pre>
686 @ %h(zDefaultHeader)
687 @ </pre></blockquote>
 
688 db_end_transaction(0);
689 }
690
691 /*
692 ** WEBPAGE: setup_footer
@@ -715,7 +716,8 @@
715 @ <hr>
716 @ Here is the default page footer:
717 @ <blockquote><pre>
718 @ %h(zDefaultFooter)
719 @ </pre></blockquote>
 
720 db_end_transaction(0);
721 }
722
--- src/setup.c
+++ src/setup.c
@@ -683,10 +683,11 @@
683 @ <hr>
684 @ Here is the default page header:
685 @ <blockquote><pre>
686 @ %h(zDefaultHeader)
687 @ </pre></blockquote>
688 style_footer();
689 db_end_transaction(0);
690 }
691
692 /*
693 ** WEBPAGE: setup_footer
@@ -715,7 +716,8 @@
716 @ <hr>
717 @ Here is the default page footer:
718 @ <blockquote><pre>
719 @ %h(zDefaultFooter)
720 @ </pre></blockquote>
721 style_footer();
722 db_end_transaction(0);
723 }
724
+4 -4
--- src/style.c
+++ src/style.c
@@ -119,13 +119,13 @@
119119
120120
/* Go back and put the submenu at the top of the page. We delay the
121121
** creation of the submenu until the end so that we can add elements
122122
** to the submenu while generating page text.
123123
*/
124
+ cgi_destination(CGI_HEADER);
124125
if( nSubmenu>0 ){
125126
int i;
126
- cgi_destination(CGI_HEADER);
127127
@ <div class="submenu">
128128
qsort(aSubmenu, nSubmenu, sizeof(aSubmenu[0]), submenuCompare);
129129
for(i=0; i<nSubmenu; i++){
130130
struct Submenu *p = &aSubmenu[i];
131131
if( p->zLink==0 ){
@@ -133,18 +133,18 @@
133133
}else{
134134
@ <a class="label" href="%s(p->zLink)">%h(p->zLabel)</a>
135135
}
136136
}
137137
@ </div>
138
- cgi_destination(CGI_BODY);
139138
}
139
+ @ <div class="content">
140
+ cgi_destination(CGI_BODY);
140141
141142
/* Put the footer at the bottom of the page.
142143
*/
143
- @ <div class="content">
144
- zFooter = db_get("footer", (char*)zDefaultFooter);
145144
@ </div>
145
+ zFooter = db_get("footer", (char*)zDefaultFooter);
146146
Th_Render(zFooter);
147147
}
148148
149149
/* @-comment: // */
150150
/*
151151
--- src/style.c
+++ src/style.c
@@ -119,13 +119,13 @@
119
120 /* Go back and put the submenu at the top of the page. We delay the
121 ** creation of the submenu until the end so that we can add elements
122 ** to the submenu while generating page text.
123 */
 
124 if( nSubmenu>0 ){
125 int i;
126 cgi_destination(CGI_HEADER);
127 @ <div class="submenu">
128 qsort(aSubmenu, nSubmenu, sizeof(aSubmenu[0]), submenuCompare);
129 for(i=0; i<nSubmenu; i++){
130 struct Submenu *p = &aSubmenu[i];
131 if( p->zLink==0 ){
@@ -133,18 +133,18 @@
133 }else{
134 @ <a class="label" href="%s(p->zLink)">%h(p->zLabel)</a>
135 }
136 }
137 @ </div>
138 cgi_destination(CGI_BODY);
139 }
 
 
140
141 /* Put the footer at the bottom of the page.
142 */
143 @ <div class="content">
144 zFooter = db_get("footer", (char*)zDefaultFooter);
145 @ </div>
 
146 Th_Render(zFooter);
147 }
148
149 /* @-comment: // */
150 /*
151
--- src/style.c
+++ src/style.c
@@ -119,13 +119,13 @@
119
120 /* Go back and put the submenu at the top of the page. We delay the
121 ** creation of the submenu until the end so that we can add elements
122 ** to the submenu while generating page text.
123 */
124 cgi_destination(CGI_HEADER);
125 if( nSubmenu>0 ){
126 int i;
 
127 @ <div class="submenu">
128 qsort(aSubmenu, nSubmenu, sizeof(aSubmenu[0]), submenuCompare);
129 for(i=0; i<nSubmenu; i++){
130 struct Submenu *p = &aSubmenu[i];
131 if( p->zLink==0 ){
@@ -133,18 +133,18 @@
133 }else{
134 @ <a class="label" href="%s(p->zLink)">%h(p->zLabel)</a>
135 }
136 }
137 @ </div>
 
138 }
139 @ <div class="content">
140 cgi_destination(CGI_BODY);
141
142 /* Put the footer at the bottom of the page.
143 */
 
 
144 @ </div>
145 zFooter = db_get("footer", (char*)zDefaultFooter);
146 Th_Render(zFooter);
147 }
148
149 /* @-comment: // */
150 /*
151

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button