2 rcs_id('$Id: themeinfo.php,v 1.8 2002-02-14 06:21:41 carstenklapp 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 // this breaks the buttons on the edit page
15 if ($name == "navbar") {
16 //$old = $Theme->getButtonSeparator();
17 $this->setButtonSeparator(HTML::br());
18 //return "themes/default/templates/navbar.tmpl";
19 //$Theme->setButtonSeparator($old);
22 return $this->_path . $this->_findFile("templates/$name.tmpl");
25 $Theme = new Theme_Sidebar('Sidebar');
27 // CSS file defines fonts, colors and background images for this
28 // style. The companion '*-heavy.css' file isn't defined, it's just
29 // expected to be in the same directory that the base style is in.
31 $Theme->setDefaultCSS(_("Sidebar"), 'sidebar.css');
32 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
33 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
34 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
37 * The logo image appears on every page and links to the HomePage.
39 //$Theme->addImageAlias('logo', 'logo.png');
42 * The Signature image is shown after saving an edited page. If this
43 * is not set, any signature defined in index.php will be used. If it
44 * is not defined by index.php or in here then the "Thank you for
45 * editing..." screen will be omitted.
48 // Comment this next line out to enable signature.
49 $Theme->addImageAlias('signature', false);
54 $Theme->setLinkIcon('http');
55 $Theme->setLinkIcon('https');
56 $Theme->setLinkIcon('ftp');
57 $Theme->setLinkIcon('mailto');
58 $Theme->setLinkIcon('interwiki');
59 $Theme->setLinkIcon('*', 'url');
61 //$Theme->setButtonSeparator(' | ');
64 * WikiWords can automatically be split by inserting spaces between
65 * the words. The default is to leave WordsSmashedTogetherLikeSo.
67 //$Theme->setAutosplitWikiWords(false);
70 * You may adjust the formats used for formatting dates and times
71 * below. (These examples give the default formats.)
72 * Formats are given as format strings to PHP strftime() function See
73 * http://www.php.net/manual/en/function.strftime.php for details.
74 * Do not include the server's zone (%Z), times are converted to the
77 //$Theme->setDateFormat("%B %e, %Y");
80 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
81 // (c-file-style: "gnu")
86 // c-hanging-comment-ender-p: nil
87 // indent-tabs-mode: nil