3 rcs_id('$Id: themeinfo.php,v 1.22 2002-02-08 22:03:03 dairiki Exp $');
6 * This PhpWiki theme is experimental and will likely not appear as
7 * part of any release ("accessories not included"--download
10 * The first experimental (and very alpha) theme pack is here, have
11 * some fun and play with it, fix it up if you like.
13 * This one is (by design) completely css-based so unfortunately it
14 * doesn't render properly or even the same across different browsers.
15 * A preview screen snapshot is also included for comparison testing.
17 * The reverse coloring of this theme was chosen to provide an extreme
18 * example of a heavily customized PhpWiki, through which any
19 * potential visual problems can be identified. The intention is to
20 * elimate as many non-html elements from the html templates as
23 * This theme does not render properly in all browsers. In particular,
24 * OmniWeb renders some text as black-on-black. Netscape 4 will
25 * probably choke on it too.
26 * * * * * * * * * * * * */
28 require_once('lib/Theme.php');
30 class Theme_WikiTrek extends Theme {
31 function getRecentChangesFormatter ($format) {
32 include_once($this->file('lib/RecentChanges.php'));
33 if (preg_match('/^rss/', $format))
34 return false; // use default
35 return '_WikiTrek_RecentChanges_Formatter';
38 function getPageHistoryFormatter ($format) {
39 include_once($this->file('lib/RecentChanges.php'));
40 if (preg_match('/^rss/', $format))
41 return false; // use default
42 return '_WikiTrek_PageHistory_Formatter';
46 $Theme = new Theme_WikiTrek('WikiTrek');
48 // CSS file defines fonts, colors and background images for this
49 // style. The companion '*-heavy.css' file isn't defined, it's just
50 // expected to be in the same directory that the base style is in.
52 $Theme->setDefaultCSS('WikiTrek', 'WikiTrek.css');
53 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
54 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
55 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
58 * The logo image appears on every page and links to the HomePage.
60 //$Theme->addImageAlias('logo', 'logo.png');
61 $Theme->addImageAlias('logo', 'Ufp-logo.jpg');
64 * The Signature image is shown after saving an edited page. If this
65 * is not set, any signature defined in index.php will be used. If it
66 * is not defined by index.php or in here then the "Thank you for
67 * editing..." screen will be omitted.
69 $Theme->addImageAlias('signature', 'lights.gif');
71 $Theme->addImageAlias('hr', 'hr.png');
73 $Theme->setButtonSeparator(" ");
76 * WikiWords can automatically be split by inserting spaces between
77 * the words. The default is to leave WordsSmashedTogetherLikeSo.
79 //$Theme->setAutosplitWikiWords(false);
82 * The "stardate" format here is really just metricdate.24hourtime. A
83 * "real" date2startdate conversion function might be fun but not very
86 $Theme->setTimeFormat("%H%M%S");
87 $Theme->setDateFormat("%Y%m%d"); // must not contain time
90 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
91 // (c-file-style: "gnu")
96 // c-hanging-comment-ender-p: nil
97 // indent-tabs-mode: nil