]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/WikiTrek/themeinfo.php
new themed hr
[SourceForge/phpwiki.git] / themes / WikiTrek / themeinfo.php
1 <?php // -*-php-*-
2
3 rcs_id('$Id: themeinfo.php,v 1.20 2002-02-06 18:45:53 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  * The first experimental (and very alpha) theme pack is here, have
11  * some fun and play with it, fix it up if you like.
12  *
13  * This one is (by design) completely css-based so unfortunately it
14  * doesn't render properly or even the same across different browsers.
15  * A preview screen snapshot is also included for comparison testing.
16  *
17  * The reverse coloring of this theme was chosen to provide an extreme
18  * example of a heavily customized PhpWiki, through which any
19  * potential visual problems can be identified. The intention is to
20  * elimate as many non-html elements from the html templates as
21  * possible.
22  *
23  * This theme does not render properly in all browsers. In particular,
24  * OmniWeb renders some text as black-on-black. Netscape 4 will
25  * probably choke on it too.
26  * * * * * * * * * * * * */
27
28 require_once('lib/Theme.php');
29
30 class Theme_WikiTrek extends Theme {
31     function getRecentChangesFormatter ($format) {
32         include_once($this->file('lib/RecentChanges.php'));
33         if (preg_match('/^rss/', $format))
34             return false;       // use default
35         return '_WikiTrek_RecentChanges_Formatter';
36     }
37
38     function getPageHistoryFormatter ($format) {
39         include_once($this->file('lib/RecentChanges.php'));
40         if (preg_match('/^rss/', $format))
41             return false;       // use default
42         return '_WikiTrek_PageHistory_Formatter';
43     }
44 }
45
46 $Theme = new Theme_WikiTrek('WikiTrek');
47
48 // CSS file defines fonts, colors and background images for this
49 // style.  The companion '*-heavy.css' file isn't defined, it's just
50 // expected to be in the same directory that the base style is in.
51
52 $Theme->setDefaultCSS('WikiTrek', 'WikiTrek.css');
53 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
54 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
55 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
56
57 /**
58  * The logo image appears on every page and links to the HomePage.
59  */
60 //$Theme->addImageAlias('logo', 'logo.png');
61 $Theme->addImageAlias('logo', 'Ufp-logo.jpg');
62
63 /**
64  * The Signature image is shown after saving an edited page. If this
65  * is not set, any signature defined in index.php will be used. If it
66  * is not defined by index.php or in here then the "Thank you for
67  * editing..." screen will be omitted.
68  */
69 $Theme->addImageAlias('signature', 'lights.gif');
70
71 $Theme->addImageAlias('hr', 'hr.png');
72 $Theme->sethr();
73
74 $Theme->setButtonSeparator(" ");
75
76 /**
77  * WikiWords can automatically be split by inserting spaces between
78  * the words. The default is to leave WordsSmashedTogetherLikeSo.
79  */
80 //$Theme->setAutosplitWikiWords(false);
81
82 /*
83  * You may adjust the formats used for formatting dates and times
84  * below.  (These examples give the default formats.) Formats are
85  * given as format strings to PHP strftime() function See
86  * http://www.php.net/manual/en/function.strftime.php for details.
87  * Do not include the server's zone (%Z), times are converted to the
88  * user's time zone.
89  */
90 //$Theme->setDateTimeFormat("%B %e, %Y");   // may contain time of day
91 //$Theme->setDateFormat("%B %e, %Y");       // must not contain time
92
93 /**
94  * The "stardate" format here is really just metricdate.24hourtime. A
95  * "real" date2startdate conversion function might be fun but not very
96  * useful on a wiki.
97  */
98 $Theme->setDateTimeFormat("%Y%m%d.%H%M%S"); // may contain time of day
99 $Theme->setDateFormat("%Y%m%d"); // must not contain time
100
101
102 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
103 // (c-file-style: "gnu")
104 // Local Variables:
105 // mode: php
106 // tab-width: 8
107 // c-basic-offset: 4
108 // c-hanging-comment-ender-p: nil
109 // indent-tabs-mode: nil
110 // End:   
111 ?>