3 rcs_id('$Id: themeinfo.php,v 1.22 2002-02-08 22:03:01 dairiki Exp $');
6 * WikiWiki Hawaiian theme for PhpWiki.
9 require_once('lib/Theme.php');
11 class Theme_Hawaiian extends Theme {
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')))));
22 $Theme = new Theme_Hawaiian('Hawaiian');
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.
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');
34 * The logo image appears on every page and links to the HomePage.
36 $Theme->addImageAlias('logo', 'PalmBeach.jpg');
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.
44 //$Theme->addImageAlias('signature', 'SubmersiblePiscesV.jpg');
45 $Theme->addImageAlias('signature', 'WaterFall.jpg');
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);
54 //To test out the randomization just use logo instead of signature
55 //$Theme->addImageAlias('logo', $imgFile);
60 $Theme->setLinkIcon('interwiki');
61 $Theme->setLinkIcon('*', 'flower.png');
63 //$Theme->setButtonSeparator(' | ');
66 * WikiWords can automatically be split by inserting spaces between
67 * the words. The default is to leave WordsSmashedTogetherLikeSo.
69 $Theme->setAutosplitWikiWords(true);
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
79 //$Theme->setDateFormat("%B %e, %Y"); // must not contain time
82 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
83 // (c-file-style: "gnu")
88 // c-hanging-comment-ender-p: nil
89 // indent-tabs-mode: nil