Note that this is no longer needed with UseModWiki - the global StyleSheet configuration variable now does this
Sample data/config entry:
$GlobalCSS = '/default.css';
The Patch:
--- /home/matt/wiki/index.cgi Fri Sep 21 22:48:18 2001
+++ index.cgi Fri Sep 21 22:14:45 2001
@@ -48,7 +48,7 @@
$RCName $ShowEdits $ThinLine $LinkPattern
$InterLinkPattern $InterSitePattern $UrlProtocols
$UrlPattern $ImageExtensions $RFCPattern $ISBNPattern
- $FS $FS1 $FS2 $FS3 $CookieName $SiteBase
+ $FS $FS1 $FS2 $FS3 $CookieName $SiteBase $GlobalCSS
);
# Other global variables. Must be C<use vars> because they're
@@ -67,6 +67,7 @@
$UseConfig = 1; # 1 = use config file, 0 = do not look for config
# Default configuration (used if UseConfig is 0)
+$GlobalCSS = ""; # path to global css style sheet
$CookieName = "Wiki"; # Name for this wiki (for multi-wiki sites)
$SiteName = "Wiki"; # Name of site (used for titles)
$HomePage = "HomePage"; # Home page (change space to _)
@@ -915,14 +916,19 @@
} else {
$result = $q->header();
}
-
+
+ my %args;
+ if($GlobalCSS) {
+ $args{'-style'} = { 'src' => $GlobalCSS };
+ }
+
if ($SiteBase ne "") {
$result .= $q->start_html('-title' => "$SiteName: $title",
'-xbase' => $SiteBase,
- '-BGCOLOR' => 'white');
+ '-BGCOLOR' => 'white', %args);
} else {
$result .= $q->start_html('-title' => "$SiteName: $title",
- '-BGCOLOR' => 'white');
+ '-BGCOLOR' => 'white', %args);
}
if ($oldId ne "") {
$result .= $q->h3("(redirected from "