]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/SpaceWiki/themeinfo.php
Remove $Id$
[SourceForge/phpwiki.git] / themes / SpaceWiki / themeinfo.php
1 <?php
2 // Avoid direct call to this file.
3 // PHPWIKI_VERSION is defined in lib/prepend.php
4 if (!defined('PHPWIKI_VERSION')) {
5     header("Location: /");
6     exit;
7 }
8
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 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 and to eliminate any
17  * remaining non-structural html elements from the html templates.
18  */
19
20 require_once 'lib/WikiTheme.php';
21
22 class WikiTheme_SpaceWiki extends WikiTheme {
23
24     function getRecentChangesFormatter ($format) {
25         include_once($this->file('lib/RecentChanges.php'));
26         if (preg_match('/^rss|^sidebar/', $format))
27             return false;       // use default
28         return '_SpaceWiki_RecentChanges_Formatter';
29     }
30
31     function getPageHistoryFormatter ($format) {
32         include_once($this->file('lib/RecentChanges.php'));
33         if (preg_match('/^rss|^sidebar/', $format))
34             return false;       // use default
35         return '_SpaceWiki_PageHistory_Formatter';
36     }
37
38     function load() {
39     // CSS file defines fonts, colors and background images for this
40     // style.  The companion '*-heavy.css' file isn't defined, it's just
41     // expected to be in the same directory that the base style is in.
42
43     $this->setDefaultCSS('SpaceWiki', 'SpaceWiki.css');
44     $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
45     $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
46     $this->addAlternateCSS('PhpWiki', 'phpwiki.css');
47
48     /**
49      * The logo image appears on every page and links to the HomePage.
50      */
51     //$this->addImageAlias('logo', 'logo.png');
52     $this->addImageAlias('logo', 'Ufp-logo.jpg');
53     $this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
54
55     /**
56      * The Signature image is shown after saving an edited page. If this
57      * is set to false then the "Thank you for editing..." screen will
58      * be omitted.
59      */
60     $this->addImageAlias('signature', 'lights.png');
61     $this->addImageAlias('signature', WIKI_NAME . "Signature.png");
62     // Uncomment this next line to disable the signature.
63     //$this->addImageAlias('signature', false);
64
65     $this->addImageAlias('hr', 'hr.png');
66
67     $this->setButtonSeparator(" ");
68
69     /**
70      * WikiWords can automatically be split by inserting spaces between
71      * the words. The default is to leave WordsSmashedTogetherLikeSo.
72      */
73     //$this->setAutosplitWikiWords(false);
74
75     /**
76      * The "stardate" format here is really just metricdate.24hourtime. A
77      * "real" date2startdate conversion function might be fun but not very
78      * useful on a wiki.
79      */
80     $this->setTimeFormat("%H%M%S");
81     $this->setDateFormat("%Y%m%d"); // must not contain time
82
83     }
84 }
85
86 $WikiTheme = new WikiTheme_SpaceWiki('SpaceWiki');
87
88 // Local Variables:
89 // mode: php
90 // tab-width: 8
91 // c-basic-offset: 4
92 // c-hanging-comment-ender-p: nil
93 // indent-tabs-mode: nil
94 // End: