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