3 rcs_id('$Id: themeinfo.php,v 1.25 2004-02-28 21:09:57 rurban 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');
37 $Theme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
40 * The Signature image is shown after saving an edited page. If this
41 * is set to false then the "Thank you for editing..." screen will
44 //$Theme->addImageAlias('signature', 'SubmersiblePiscesV.jpg');
45 $Theme->addImageAlias('signature', 'WaterFall.jpg');
46 $Theme->addImageAlias('signature', WIKI_NAME . "Signature.png");
47 // Uncomment this next line to disable the signature.
48 //$Theme->addImageAlias('signature', false);
50 // If you want to see more than just the waterfall let a random
51 // picture be chosen for the signature image:
52 //include_once($Theme->file('lib/random.php'));
53 include_once("themes/$Theme->_name/lib/random.php");
54 $imgSet = new randomImage($Theme->file("images/pictures"));
55 $imgFile = "pictures/" . $imgSet->filename;
56 $Theme->addImageAlias('signature', $imgFile);
58 //To test out the randomization just use logo instead of signature
59 //$Theme->addImageAlias('logo', $imgFile);
64 $Theme->setLinkIcon('interwiki');
65 $Theme->setLinkIcon('*', 'flower.png');
67 $Theme->setButtonSeparator(' ');
70 * WikiWords can automatically be split by inserting spaces between
71 * the words. The default is to leave WordsSmashedTogetherLikeSo.
73 $Theme->setAutosplitWikiWords(true);
76 * You may adjust the formats used for formatting dates and times
77 * below. (These examples give the default formats.)
78 * Formats are given as format strings to PHP strftime() function See
79 * http://www.php.net/manual/en/function.strftime.php for details.
80 * Do not include the server's zone (%Z), times are converted to the
83 //$Theme->setDateFormat("%B %d, %Y"); // must not contain time
86 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
87 // (c-file-style: "gnu")
92 // c-hanging-comment-ender-p: nil
93 // indent-tabs-mode: nil