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