2 rcs_id('$Id: themeinfo.php,v 1.2 2002-01-21 06:55:47 dairiki Exp $');
5 * This file defines an appearance ("theme") of PhpWiki similar to the Portland Pattern Repository.
8 require_once('lib/Theme.php');
10 class Theme_Portland extends Theme {
11 function LinkUnknownWikiWord($wikiword, $linktext = '') {
12 $url = WikiURL($wikiword, array('action' => 'edit'));
13 $link = HTML::span(HTML::a(array('href' => $url), '?'));
15 if (!empty($linktext)) {
16 $link->unshiftContent(HTML::u($linktext));
17 $link->setAttr('class', 'named-wikiunknown');
20 $link->unshiftContent(HTML::u($this->maybeSplitWikiWord($wikiword)));
21 $link->setAttr('class', 'wikiunknown');
28 $Theme = new Theme_Portland('Portland');
30 // CSS file defines fonts, colors and background images for this
31 // style. The companion '*-heavy.css' file isn't defined, it's just
32 // expected to be in the same directory that the base style is in.
34 $Theme->setDefaultCSS('Portland', 'portland.css');
35 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
36 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
37 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
40 * The logo image appears on every page and links to the HomePage.
42 //$Theme->addImageAlias('logo', 'logo.png');
45 * The Signature image is shown after saving an edited page. If this
46 * is not set, any signature defined in index.php will be used. If it
47 * is not defined by index.php or in here then the "Thank you for
48 * editing..." screen will be omitted.
50 $Theme->addImageAlias('signature', 'signature.png');
55 //$Theme->setLinkIcon('http');
56 //$Theme->setLinkIcon('https');
57 //$Theme->setLinkIcon('ftp');
58 //$Theme->setLinkIcon('mailto');
59 //$Theme->setLinkIcon('interwiki');
60 //$Theme->setLinkIcon('*', 'url');
62 $Theme->setButtonSeparator(' ');
65 * WikiWords can automatically be split by inserting spaces between
66 * the words. The default is to leave WordsSmashedTogetherLikeSo.
68 $Theme->setAutosplitWikiWords(false);
71 * You may adjust the formats used for formatting dates and times
72 * below. (These examples give the default formats.)
73 * Formats are given as format strings to PHP strftime() function See
74 * http://www.php.net/manual/en/function.strftime.php for details.
76 $Theme->setDateTimeFormat("%B %e, %Y"); // may contain time of day
77 $Theme->setDateFormat("%B %e, %Y"); // must not contain time
80 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
81 // (c-file-style: "gnu")
86 // c-hanging-comment-ender-p: nil
87 // indent-tabs-mode: nil