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 {
22 function getRecentChangesFormatter ($format) {
23 include_once($this->file('lib/RecentChanges.php'));
24 if (preg_match('/^rss|^sidebar/', $format))
25 return false; // use default
26 return '_SpaceWiki_RecentChanges_Formatter';
29 function getPageHistoryFormatter ($format) {
30 include_once($this->file('lib/RecentChanges.php'));
31 if (preg_match('/^rss|^sidebar/', $format))
32 return false; // use default
33 return '_SpaceWiki_PageHistory_Formatter';
37 // CSS file defines fonts, colors and background images for this
38 // style. The companion '*-heavy.css' file isn't defined, it's just
39 // expected to be in the same directory that the base style is in.
41 $this->setDefaultCSS('SpaceWiki', 'SpaceWiki.css');
42 $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
43 $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
44 $this->addAlternateCSS('PhpWiki', 'phpwiki.css');
47 * The logo image appears on every page and links to the HomePage.
49 //$this->addImageAlias('logo', 'logo.png');
50 $this->addImageAlias('logo', 'Ufp-logo.jpg');
51 $this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
54 * The Signature image is shown after saving an edited page. If this
55 * is set to false then the "Thank you for editing..." screen will
58 $this->addImageAlias('signature', 'lights.png');
59 $this->addImageAlias('signature', WIKI_NAME . "Signature.png");
60 // Uncomment this next line to disable the signature.
61 //$this->addImageAlias('signature', false);
63 $this->addImageAlias('hr', 'hr.png');
65 $this->setButtonSeparator(" ");
68 * WikiWords can automatically be split by inserting spaces between
69 * the words. The default is to leave WordsSmashedTogetherLikeSo.
71 //$this->setAutosplitWikiWords(false);
74 * The "stardate" format here is really just metricdate.24hourtime. A
75 * "real" date2startdate conversion function might be fun but not very
78 $this->setTimeFormat("%H%M%S");
79 $this->setDateFormat("%Y%m%d"); // must not contain time
84 $WikiTheme = new Theme_SpaceWiki('SpaceWiki');
87 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
88 // (c-file-style: "gnu")
93 // c-hanging-comment-ender-p: nil
94 // indent-tabs-mode: nil