]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/SpaceWiki/themeinfo.php
Activated Id substitution for Subversion
[SourceForge/phpwiki.git] / themes / SpaceWiki / themeinfo.php
1 <?php // -*-php-*-
2
3 rcs_id('$Id$');
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
22     function getRecentChangesFormatter ($format) {
23         include_once($this->file('lib/RecentChanges.php'));
24         if (preg_match('/^rss|^sidebar/', $format))
25             return false;       // use default
26         return '_SpaceWiki_RecentChanges_Formatter';
27     }
28
29     function getPageHistoryFormatter ($format) {
30         include_once($this->file('lib/RecentChanges.php'));
31         if (preg_match('/^rss|^sidebar/', $format))
32             return false;       // use default
33         return '_SpaceWiki_PageHistory_Formatter';
34     }
35     
36     function load() {
37         // CSS file defines fonts, colors and background images for this
38         // style.  The companion '*-heavy.css' file isn't defined, it's just
39         // expected to be in the same directory that the base style is in.
40
41         $this->setDefaultCSS('SpaceWiki', 'SpaceWiki.css');
42         $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
43         $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
44         $this->addAlternateCSS('PhpWiki', 'phpwiki.css');
45
46         /**
47          * The logo image appears on every page and links to the HomePage.
48          */
49         //$this->addImageAlias('logo', 'logo.png');
50         $this->addImageAlias('logo', 'Ufp-logo.jpg');
51         $this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
52
53         /**
54          * The Signature image is shown after saving an edited page. If this
55          * is set to false then the "Thank you for editing..." screen will
56          * be omitted.
57          */
58         $this->addImageAlias('signature', 'lights.png');
59         $this->addImageAlias('signature', WIKI_NAME . "Signature.png");
60         // Uncomment this next line to disable the signature.
61         //$this->addImageAlias('signature', false);
62
63         $this->addImageAlias('hr', 'hr.png');
64
65         $this->setButtonSeparator(" ");
66
67         /**
68          * WikiWords can automatically be split by inserting spaces between
69          * the words. The default is to leave WordsSmashedTogetherLikeSo.
70          */
71         //$this->setAutosplitWikiWords(false);
72
73         /**
74          * The "stardate" format here is really just metricdate.24hourtime. A
75          * "real" date2startdate conversion function might be fun but not very
76          * useful on a wiki.
77          */
78         $this->setTimeFormat("%H%M%S");
79         $this->setDateFormat("%Y%m%d"); // must not contain time
80
81     }
82 }
83
84 $WikiTheme = new Theme_SpaceWiki('SpaceWiki');
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 ?>