From: Art Cancro Date: Fri, 5 Jan 2007 03:58:27 +0000 (+0000) Subject: * static.local/ is now created X-Git-Tag: v7.86~3700 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=6bd4383b0f4bb3e3b662615dae442199fed568d8 * static.local/ is now created * static.local/webcit.css (if found) is now referenced --- diff --git a/webcit/Makefile.in b/webcit/Makefile.in index a40e3fd39..187ae3c42 100644 --- a/webcit/Makefile.in +++ b/webcit/Makefile.in @@ -85,6 +85,7 @@ $(srcdir)/aclocal.m4: $(srcdir)/acinclude.m4 install: test -d $(DESTDIR)$(prefix) || mkdir $(DESTDIR)$(prefix) test -d $(DESTDIR)$(prefix)/static || mkdir $(DESTDIR)$(prefix)/static + test -d $(DESTDIR)$(prefix)/local || mkdir $(DESTDIR)$(prefix)/local for i in `find tiny_mce -type d | grep -v .svn` \ ; do \ test -d $(DESTDIR)$(prefix)/$$i || mkdir $(DESTDIR)$(prefix)/$$i; \ diff --git a/webcit/README.txt b/webcit/README.txt index f98af93e7..5e1916ac0 100644 --- a/webcit/README.txt +++ b/webcit/README.txt @@ -176,6 +176,21 @@ ones which you may be interested in are: If you would like to deploy a "favicon.ico" graphic, please put it in the static/ directory. WebCit will properly serve it from there. + + CUSTOMIZATION + ------------- + + The default WebCit installation will create an empty directory called +"static.local". In this directory you may place a file called "webcit.css" +which, if present, is referenced *after* the default stylesheet. If you +know CSS and wish to customize your WebCit installation, any styles you +declare in static.local/webcit.css will override the styles found in +static/webcit.css -- and your customizations will not be overwritten when +you upgrade WebCit later. + + You may also place other files, such as images, in static.local for +further customization. + CALENDAR SERVICE ---------------- diff --git a/webcit/static/head.html b/webcit/static/head.html index 8ed78102c..848504154 100644 --- a/webcit/static/head.html +++ b/webcit/static/head.html @@ -5,6 +5,7 @@ <?SERV_HUMANNODE> + diff --git a/webcit/webcit.c b/webcit/webcit.c index d61a66a14..803b877f8 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -429,6 +429,11 @@ void output_headers( int do_httpheaders, /**< 1 = output HTTP headers if (do_htmlhead) { begin_burst(); + if (!access("static.local/webcit.css", R_OK)) { + svprintf("CSSLOCAL", WCS_STRING, + "" + ); + } do_template("head"); } diff --git a/webcit/webserver.c b/webcit/webserver.c index 99820909d..a263c9c92 100644 --- a/webcit/webserver.c +++ b/webcit/webserver.c @@ -44,6 +44,7 @@ int ndirs=2; //sizeof(static_content_dirs);//sizeof(char *); */ char *static_content_dirs[] = { "static", /** static templates */ + "static.local", /** site local static templates */ "tiny_mce" /** the JS editor */ };