From 8e72ccc76582cf1f68b6e9e4816ac0bd785fc7d8 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 26 Jun 2010 12:31:47 +0200 Subject: [PATCH] src/utils_cgi.[ch]: Implement "html_print_logo". --- share/style.css | 18 ++++++++++++++++++ src/utils_cgi.c | 12 ++++++++++++ src/utils_cgi.h | 2 ++ 3 files changed, 32 insertions(+) diff --git a/share/style.css b/share/style.css index 740ae33..ac00a2b 100644 --- a/share/style.css +++ b/share/style.css @@ -35,6 +35,24 @@ body vertical-align: top; } +#logo-canvas +{ + display: block; + text-decoration: none; + color: black; +} + +#logo-canvas h1 +{ + margin: 0; +} + +#logo-subscript +{ + font-size: 90%; + font-style: italic; +} + #search-form { position: relative; diff --git a/src/utils_cgi.c b/src/utils_cgi.c index 92bda3e..96b1b82 100644 --- a/src/utils_cgi.c +++ b/src/utils_cgi.c @@ -573,6 +573,8 @@ int html_print_page (const char *title, /* {{{ */ " "); if (cb->top_left != NULL) (*cb->top_left) (user_data); + else + html_print_logo (NULL); printf ("\n" " "); if (cb->top_center != NULL) @@ -621,6 +623,16 @@ int html_print_page (const char *title, /* {{{ */ return (0); } /* }}} int html_print_page */ +int html_print_logo (__attribute__((unused)) void *user_data) /* {{{ */ +{ + printf ("\n" + "

c4

\n" + "
collection 4
\n" + "
\n"); + + return (0); +} /* }}} int html_print_search_box */ + int html_print_search_box (__attribute__((unused)) void *user_data) /* {{{ */ { char *term_html; diff --git a/src/utils_cgi.h b/src/utils_cgi.h index 2cd8bc9..67e2065 100644 --- a/src/utils_cgi.h +++ b/src/utils_cgi.h @@ -58,6 +58,8 @@ char *html_escape_copy (char *dest, const char *src, size_t n); int html_print_page (const char *title, const page_callbacks_t *cb, void *user_data); +int html_print_logo (void *user_data); + int html_print_search_box (void *user_data); /* vim: set sw=2 sts=2 et fdm=marker : */ -- 2.11.0