]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/SpaceWiki/themeinfo.php
Formatting for RecentChanges Mozilla sidebar.
[SourceForge/phpwiki.git] / themes / SpaceWiki / themeinfo.php
1 <?php // -*-php-*-
2
3 rcs_id('$Id: themeinfo.php,v 1.1 2002-02-22 23:46:56 carstenklapp Exp $');
4
5 /**
6  * This PhpWiki theme is experimental and will likely not appear as
7  * part of any release ("accessories not included"--download
8  * seperately.)
9  *
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.
13  *
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
18  * possible.
19  *
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  * * * * * * * * * * * * */
24
25 require_once('lib/Theme.php');
26
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';
33     }
34
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';
40     }
41 }
42
43 $Theme = new Theme_SpaceWiki('SpaceWiki');
44
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.
48
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');
53
54 /**
55  * The logo image appears on every page and links to the HomePage.
56  */
57 //$Theme->addImageAlias('logo', 'logo.png');
58 $Theme->addImageAlias('logo', 'Ufp-logo.jpg');
59
60 /**
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.
65  */
66 $Theme->addImageAlias('signature', 'lights.gif');
67
68 $Theme->addImageAlias('hr', 'hr.png');
69
70 $Theme->setButtonSeparator(" ");
71
72 /**
73  * WikiWords can automatically be split by inserting spaces between
74  * the words. The default is to leave WordsSmashedTogetherLikeSo.
75  */
76 //$Theme->setAutosplitWikiWords(false);
77
78 /**
79  * The "stardate" format here is really just metricdate.24hourtime. A
80  * "real" date2startdate conversion function might be fun but not very
81  * useful on a wiki.
82  */
83 $Theme->setTimeFormat("%H%M%S");
84 $Theme->setDateFormat("%Y%m%d"); // must not contain time
85
86
87 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
88 // (c-file-style: "gnu")
89 // Local Variables:
90 // mode: php
91 // tab-width: 8
92 // c-basic-offset: 4
93 // c-hanging-comment-ender-p: nil
94 // indent-tabs-mode: nil
95 // End:   
96 ?>