3 rcs_id('$Id: themeinfo.php,v 1.2 2002-03-08 20:31:13 carstenklapp Exp $');
6 * This theme is by design completely css-based so unfortunately it
7 * doesn't render properly or even the same across different browsers.
8 * Mozilla 0.98 was used for testing, it is the only Mac browser so
9 * far which correctly renders most of the css used here.
10 * A preview screen snapshot is included for comparison testing.
12 * The reverse coloring of this theme was chosen to provide an extreme
13 * example of a heavily customized PhpWiki, through which any
14 * potential visual problems can be identified and to eliminate any
15 * remaining non-structural html elements from the html templates.
18 require_once('lib/Theme.php');
20 class Theme_SpaceWiki extends Theme {
21 function getRecentChangesFormatter ($format) {
22 include_once($this->file('lib/RecentChanges.php'));
23 if (preg_match('/^rss|^sidebar/', $format))
24 return false; // use default
25 return '_SpaceWiki_RecentChanges_Formatter';
28 function getPageHistoryFormatter ($format) {
29 include_once($this->file('lib/RecentChanges.php'));
30 if (preg_match('/^rss|^sidebar/', $format))
31 return false; // use default
32 return '_SpaceWiki_PageHistory_Formatter';
36 $Theme = new Theme_SpaceWiki('SpaceWiki');
38 // CSS file defines fonts, colors and background images for this
39 // style. The companion '*-heavy.css' file isn't defined, it's just
40 // expected to be in the same directory that the base style is in.
42 $Theme->setDefaultCSS('SpaceWiki', 'SpaceWiki.css');
43 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
44 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
45 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
48 * The logo image appears on every page and links to the HomePage.
50 //$Theme->addImageAlias('logo', 'logo.png');
51 $Theme->addImageAlias('logo', 'Ufp-logo.jpg');
54 * The Signature image is shown after saving an edited page. If this
55 * is not set, any signature defined in index.php will be used. If it
56 * is not defined by index.php or in here then the "Thank you for
57 * editing..." screen will be omitted.
59 $Theme->addImageAlias('signature', 'lights.gif');
61 $Theme->addImageAlias('hr', 'hr.png');
63 $Theme->setButtonSeparator(" ");
66 * WikiWords can automatically be split by inserting spaces between
67 * the words. The default is to leave WordsSmashedTogetherLikeSo.
69 //$Theme->setAutosplitWikiWords(false);
72 * The "stardate" format here is really just metricdate.24hourtime. A
73 * "real" date2startdate conversion function might be fun but not very
76 $Theme->setTimeFormat("%H%M%S");
77 $Theme->setDateFormat("%Y%m%d"); // must not contain time
80 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
81 // (c-file-style: "gnu")
86 // c-hanging-comment-ender-p: nil
87 // indent-tabs-mode: nil