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 * A preview screen snapshot is included for comparison testing.
16 * The reverse coloring of this theme was chosen to provide an extreme
17 * example of a heavily customized PhpWiki, through which any
18 * potential visual problems can be identified and to eliminate any
19 * remaining non-structural html elements from the html templates.
22 require_once 'lib/WikiTheme.php';
24 class WikiTheme_SpaceWiki extends WikiTheme {
26 function getRecentChangesFormatter ($format) {
27 include_once($this->file('lib/RecentChanges.php'));
28 if (preg_match('/^rss|^sidebar/', $format))
29 return false; // use default
30 return '_SpaceWiki_RecentChanges_Formatter';
33 function getPageHistoryFormatter ($format) {
34 include_once($this->file('lib/RecentChanges.php'));
35 if (preg_match('/^rss|^sidebar/', $format))
36 return false; // use default
37 return '_SpaceWiki_PageHistory_Formatter';
41 // CSS file defines fonts, colors and background images for this
42 // style. The companion '*-heavy.css' file isn't defined, it's just
43 // expected to be in the same directory that the base style is in.
45 $this->setDefaultCSS('SpaceWiki', 'SpaceWiki.css');
46 $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
47 $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
48 $this->addAlternateCSS('PhpWiki', 'phpwiki.css');
51 * The logo image appears on every page and links to the HomePage.
53 //$this->addImageAlias('logo', 'logo.png');
54 $this->addImageAlias('logo', 'Ufp-logo.jpg');
55 $this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
58 * The Signature image is shown after saving an edited page. If this
59 * is set to false then the "Thank you for editing..." screen will
62 $this->addImageAlias('signature', 'lights.png');
63 $this->addImageAlias('signature', WIKI_NAME . "Signature.png");
64 // Uncomment this next line to disable the signature.
65 //$this->addImageAlias('signature', false);
67 $this->addImageAlias('hr', 'hr.png');
69 $this->setButtonSeparator(" ");
72 * WikiWords can automatically be split by inserting spaces between
73 * the words. The default is to leave WordsSmashedTogetherLikeSo.
75 //$this->setAutosplitWikiWords(false);
78 * The "stardate" format here is really just metricdate.24hourtime. A
79 * "real" date2startdate conversion function might be fun but not very
82 $this->setTimeFormat("%H%M%S");
83 $this->setDateFormat("%Y%m%d"); // must not contain time
88 $WikiTheme = new WikiTheme_SpaceWiki('SpaceWiki');
94 // c-hanging-comment-ender-p: nil
95 // indent-tabs-mode: nil