]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Hawaiian/themeinfo.php
Cleanup/refactor time-zone offset preference and relative date
[SourceForge/phpwiki.git] / themes / Hawaiian / themeinfo.php
1 <?php
2
3 rcs_id('$Id: themeinfo.php,v 1.22 2002-02-08 22:03:01 dairiki Exp $');
4
5 /**
6  * WikiWiki Hawaiian theme for PhpWiki.
7  */
8
9 require_once('lib/Theme.php');
10
11 class Theme_Hawaiian extends Theme {
12     function getCSS() {
13         // FIXME: this is a hack which will not be needed once
14         //        we have dynamic CSS.
15         $css = Theme::getCSS();
16         $css->pushcontent(HTML::style(array('type' => 'text/css'),
17                              new RawXml(sprintf("<!--\nbody {background-image: url(%s);}\n-->",
18                                                 $this->getImageURL('uhhbackground.jpg')))));
19         return $css;
20     }
21 }
22 $Theme = new Theme_Hawaiian('Hawaiian');
23
24 // CSS file defines fonts, colors and background images for this
25 // style.  The companion '*-heavy.css' file isn't defined, it's just
26 // expected to be in the same directory that the base style is in.
27
28 $Theme->setDefaultCSS('Hawaiian', 'Hawaiian.css');
29 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
30 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
31 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
32
33 /**
34  * The logo image appears on every page and links to the HomePage.
35  */
36 $Theme->addImageAlias('logo', 'PalmBeach.jpg');
37
38 /**
39  * The Signature image is shown after saving an edited page. If this
40  * is not set, any signature defined in index.php will be used. If it
41  * is not defined by index.php or in here then the "Thank you for
42  * editing..." screen will be omitted.
43  */
44 //$Theme->addImageAlias('signature', 'SubmersiblePiscesV.jpg');
45 $Theme->addImageAlias('signature', 'WaterFall.jpg');
46
47 // If you want to see more than just the waterfall let a random
48 // picture be chosen for the signature image:
49 include_once($Theme->file('lib/random.php'));
50 $imgSet = new randomImage($Theme->file("images/pictures"));
51 $imgFile = "pictures/" . $imgSet->filename;
52 $Theme->addImageAlias('signature', $imgFile);
53
54 //To test out the randomization just use logo instead of signature
55 //$Theme->addImageAlias('logo', $imgFile);
56
57 /*
58  * Link Icons
59  */
60 $Theme->setLinkIcon('interwiki');
61 $Theme->setLinkIcon('*', 'flower.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(true);
70
71 /*
72  * You may adjust the formats used for formatting dates and times
73  * below.  (These examples give the default formats.)
74  * Formats are given as format strings to PHP strftime() function See
75  * http://www.php.net/manual/en/function.strftime.php for details.
76  * Do not include the server's zone (%Z), times are converted to the
77  * user's time zone.
78  */
79 //$Theme->setDateFormat("%B %e, %Y");       // must not contain time
80
81
82 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
83 // (c-file-style: "gnu")
84 // Local Variables:
85 // mode: php
86 // tab-width: 8
87 // c-basic-offset: 4
88 // c-hanging-comment-ender-p: nil
89 // indent-tabs-mode: nil
90 // End:   
91 ?>