]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/SpaceWiki/themeinfo.php
Updated themes to work properly with RecentChanges?format=sidebar
[SourceForge/phpwiki.git] / themes / SpaceWiki / themeinfo.php
1 <?php // -*-php-*-
2
3 rcs_id('$Id: themeinfo.php,v 1.2 2002-03-08 20:31:13 carstenklapp Exp $');
4
5 /**
6  * This theme is by design completely css-based so unfortunately it
7  * doesn't render properly or even the same across different browsers.
8  * Mozilla 0.98 was used for testing, it is the only Mac browser so
9  * far which correctly renders most of the css used here.
10  * A preview screen snapshot is included for comparison testing.
11  *
12  * The reverse coloring of this theme was chosen to provide an extreme
13  * example of a heavily customized PhpWiki, through which any
14  * potential visual problems can be identified and to eliminate any
15  * remaining non-structural html elements from the html templates.
16  */
17
18 require_once('lib/Theme.php');
19
20 class Theme_SpaceWiki extends Theme {
21     function getRecentChangesFormatter ($format) {
22         include_once($this->file('lib/RecentChanges.php'));
23         if (preg_match('/^rss|^sidebar/', $format))
24             return false;       // use default
25         return '_SpaceWiki_RecentChanges_Formatter';
26     }
27
28     function getPageHistoryFormatter ($format) {
29         include_once($this->file('lib/RecentChanges.php'));
30         if (preg_match('/^rss|^sidebar/', $format))
31             return false;       // use default
32         return '_SpaceWiki_PageHistory_Formatter';
33     }
34 }
35
36 $Theme = new Theme_SpaceWiki('SpaceWiki');
37
38 // CSS file defines fonts, colors and background images for this
39 // style.  The companion '*-heavy.css' file isn't defined, it's just
40 // expected to be in the same directory that the base style is in.
41
42 $Theme->setDefaultCSS('SpaceWiki', 'SpaceWiki.css');
43 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
44 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
45 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
46
47 /**
48  * The logo image appears on every page and links to the HomePage.
49  */
50 //$Theme->addImageAlias('logo', 'logo.png');
51 $Theme->addImageAlias('logo', 'Ufp-logo.jpg');
52
53 /**
54  * The Signature image is shown after saving an edited page. If this
55  * is not set, any signature defined in index.php will be used. If it
56  * is not defined by index.php or in here then the "Thank you for
57  * editing..." screen will be omitted.
58  */
59 $Theme->addImageAlias('signature', 'lights.gif');
60
61 $Theme->addImageAlias('hr', 'hr.png');
62
63 $Theme->setButtonSeparator(" ");
64
65 /**
66  * WikiWords can automatically be split by inserting spaces between
67  * the words. The default is to leave WordsSmashedTogetherLikeSo.
68  */
69 //$Theme->setAutosplitWikiWords(false);
70
71 /**
72  * The "stardate" format here is really just metricdate.24hourtime. A
73  * "real" date2startdate conversion function might be fun but not very
74  * useful on a wiki.
75  */
76 $Theme->setTimeFormat("%H%M%S");
77 $Theme->setDateFormat("%Y%m%d"); // must not contain time
78
79
80 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
81 // (c-file-style: "gnu")
82 // Local Variables:
83 // mode: php
84 // tab-width: 8
85 // c-basic-offset: 4
86 // c-hanging-comment-ender-p: nil
87 // indent-tabs-mode: nil
88 // End:   
89 ?>