3 rcs_id('$Id: themeinfo.php,v 1.1 2002-02-22 23:46:56 carstenklapp Exp $');
6 * This PhpWiki theme is experimental and will likely not appear as
7 * part of any release ("accessories not included"--download
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 also 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. The intention is to
17 * elimate as many non-html elements from the html templates as
20 * This theme does not render properly in all browsers. In particular,
21 * OmniWeb renders some text as black-on-black. Netscape 4 will
22 * probably choke on it too.
23 * * * * * * * * * * * * */
25 require_once('lib/Theme.php');
27 class Theme_SpaceWiki extends Theme {
28 function getRecentChangesFormatter ($format) {
29 include_once($this->file('lib/RecentChanges.php'));
30 if (preg_match('/^rss/', $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/', $format))
38 return false; // use default
39 return '_SpaceWiki_PageHistory_Formatter';
43 $Theme = new Theme_SpaceWiki('SpaceWiki');
45 // CSS file defines fonts, colors and background images for this
46 // style. The companion '*-heavy.css' file isn't defined, it's just
47 // expected to be in the same directory that the base style is in.
49 $Theme->setDefaultCSS('SpaceWiki', 'SpaceWiki.css');
50 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
51 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
52 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
55 * The logo image appears on every page and links to the HomePage.
57 //$Theme->addImageAlias('logo', 'logo.png');
58 $Theme->addImageAlias('logo', 'Ufp-logo.jpg');
61 * The Signature image is shown after saving an edited page. If this
62 * is not set, any signature defined in index.php will be used. If it
63 * is not defined by index.php or in here then the "Thank you for
64 * editing..." screen will be omitted.
66 $Theme->addImageAlias('signature', 'lights.gif');
68 $Theme->addImageAlias('hr', 'hr.png');
70 $Theme->setButtonSeparator(" ");
73 * WikiWords can automatically be split by inserting spaces between
74 * the words. The default is to leave WordsSmashedTogetherLikeSo.
76 //$Theme->setAutosplitWikiWords(false);
79 * The "stardate" format here is really just metricdate.24hourtime. A
80 * "real" date2startdate conversion function might be fun but not very
83 $Theme->setTimeFormat("%H%M%S");
84 $Theme->setDateFormat("%Y%m%d"); // must not contain time
87 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
88 // (c-file-style: "gnu")
93 // c-hanging-comment-ender-p: nil
94 // indent-tabs-mode: nil