add footer
All checks were successful
pyrite-dev/taiga/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-03-09 02:15:55 +09:00
commit bce3ce55ec
Signed by: nishi
GPG key ID: 27EF69B208EB9343
6 changed files with 69 additions and 23 deletions

View file

@ -49,7 +49,7 @@ void classic_stylesheet(FILE* out, const char* top) {
fprintf(out, " padding: 8px;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "#content {\n");
fprintf(out, "#content, #footer {\n");
fprintf(out, " padding: 8px;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
@ -298,11 +298,25 @@ void classic_body(FILE* out, const char* top, const char* title, xl_node_t* body
child = body->first_child;
while(child != NULL) {
default_body(out, top, child, 6);
default_body(out, top, child, 0, 6);
child = child->next;
}
fprintf(out, " </div>\n");
fprintf(out, " <div id=\"footer\">\n");
if((nodes = xl_get_path(skinconf->root, "footer")) != NULL) {
child = nodes[0]->first_child;
while(child != NULL) {
default_body(out, top, child, 1, 6);
child = child->next;
}
free(nodes);
}
fprintf(out, " </div>\n");
fprintf(out, " </td>\n");
fprintf(out, " </tr>\n");