2 // Avoid direct call to this file.
3 // PHPWIKI_VERSION is defined in lib/prepend.php
4 if (!defined('PHPWIKI_VERSION')) {
12 * This theme is by design completely css-based so unfortunately it
13 * doesn't render properly or even the same across different browsers.
14 * Mozilla 0.98 was used for testing, it is the only Mac browser so
15 * far which correctly renders most of the css used here.
16 * A preview screen snapshot is included for comparison testing.
18 * The reverse coloring of this theme was chosen to provide an extreme
19 * example of a heavily customized PhpWiki, through which any
20 * potential visual problems can be identified and to eliminate any
21 * remaining non-structural html elements from the html templates.
24 require_once('lib/WikiTheme.php');
26 class WikiTheme_SpaceWiki extends WikiTheme {
28 function getRecentChangesFormatter ($format) {
29 include_once($this->file('lib/RecentChanges.php'));
30 if (preg_match('/^rss|^sidebar/', $format))
31 return false; // use default
32 return '_SpaceWiki_RecentChanges_Formatter';
35 function getPageHistoryFormatter ($format) {
36 include_once($this->file('lib/RecentChanges.php'));
37 if (preg_match('/^rss|^sidebar/', $format))
38 return false; // use default
39 return '_SpaceWiki_PageHistory_Formatter';
43 // CSS file defines fonts, colors and background images for this
44 // style. The companion '*-heavy.css' file isn't defined, it's just
45 // expected to be in the same directory that the base style is in.
47 $this->setDefaultCSS('SpaceWiki', 'SpaceWiki.css');
48 $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
49 $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
50 $this->addAlternateCSS('PhpWiki', 'phpwiki.css');
53 * The logo image appears on every page and links to the HomePage.
55 //$this->addImageAlias('logo', 'logo.png');
56 $this->addImageAlias('logo', 'Ufp-logo.jpg');
57 $this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
60 * The Signature image is shown after saving an edited page. If this
61 * is set to false then the "Thank you for editing..." screen will
64 $this->addImageAlias('signature', 'lights.png');
65 $this->addImageAlias('signature', WIKI_NAME . "Signature.png");
66 // Uncomment this next line to disable the signature.
67 //$this->addImageAlias('signature', false);
69 $this->addImageAlias('hr', 'hr.png');
71 $this->setButtonSeparator(" ");
74 * WikiWords can automatically be split by inserting spaces between
75 * the words. The default is to leave WordsSmashedTogetherLikeSo.
77 //$this->setAutosplitWikiWords(false);
80 * The "stardate" format here is really just metricdate.24hourtime. A
81 * "real" date2startdate conversion function might be fun but not very
84 $this->setTimeFormat("%H%M%S");
85 $this->setDateFormat("%Y%m%d"); // must not contain time
90 $WikiTheme = new WikiTheme_SpaceWiki('SpaceWiki');
93 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
94 // (c-file-style: "gnu")
99 // c-hanging-comment-ender-p: nil
100 // indent-tabs-mode: nil