2 rcs_id('$Id: themeinfo.php,v 1.11 2003-03-24 22:57:24 dairiki Exp $');
5 * This file defines the Sidebar appearance ("theme") of PhpWiki.
8 require_once('lib/Theme.php');
10 class Theme_Sidebar extends Theme {
12 function findTemplate ($name) {
13 // hack for navbar.tmpl to hide the buttonseparator
14 if ($name == "navbar" || $name == "actionbar" || $name == "signin") {
15 //$old = $Theme->getButtonSeparator();
16 //$this->setButtonSeparator(HTML::br());
17 $this->setButtonSeparator(' ');
18 //$Theme->setButtonSeparator($old);
21 return $this->_path . $this->_findFile("templates/$name.tmpl");
24 $Theme = new Theme_Sidebar('Sidebar');
26 // CSS file defines fonts, colors and background images for this
27 // style. The companion '*-heavy.css' file isn't defined, it's just
28 // expected to be in the same directory that the base style is in.
30 $Theme->setDefaultCSS(_("Sidebar"), 'sidebar.css');
31 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
32 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
33 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
36 * The logo image appears on every page and links to the HomePage.
38 //$Theme->addImageAlias('logo', 'logo.png');
41 * The Signature image is shown after saving an edited page. If this
42 * is not set, any signature defined in index.php will be used. If it
43 * is not defined by index.php or in here then the "Thank you for
44 * editing..." screen will be omitted.
47 // Comment this next line out to enable signature.
48 $Theme->addImageAlias('signature', false);
53 $Theme->setLinkIcon('http');
54 $Theme->setLinkIcon('https');
55 $Theme->setLinkIcon('ftp');
56 $Theme->setLinkIcon('mailto');
57 $Theme->setLinkIcon('interwiki');
58 $Theme->setLinkIcon('*', 'url');
60 //$Theme->setButtonSeparator(' | ');
63 * WikiWords can automatically be split by inserting spaces between
64 * the words. The default is to leave WordsSmashedTogetherLikeSo.
66 //$Theme->setAutosplitWikiWords(false);
69 * You may adjust the formats used for formatting dates and times
70 * below. (These examples give the default formats.)
71 * Formats are given as format strings to PHP strftime() function See
72 * http://www.php.net/manual/en/function.strftime.php for details.
73 * Do not include the server's zone (%Z), times are converted to the
76 //$Theme->setDateFormat("%B %d, %Y");
79 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
80 // (c-file-style: "gnu")
85 // c-hanging-comment-ender-p: nil
86 // indent-tabs-mode: nil