2 rcs_id('$Id: themeinfo.php,v 1.3 2002-02-02 07:24:50 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 invoke default's navbar.tmpl
14 if ($name == "default-navbar")
15 return "themes/default/templates/navbar.tmpl";
17 if ($name == "default-actionbar")
18 return "themes/default/templates/actionbar.tmpl";
20 return $this->_path . $this->_findFile("templates/$name.tmpl");
23 $Theme = new Theme_Sidebar('Sidebar');
25 // CSS file defines fonts, colors and background images for this
26 // style. The companion '*-heavy.css' file isn't defined, it's just
27 // expected to be in the same directory that the base style is in.
29 $Theme->setDefaultCSS(_("Sidebar"), 'sidebar.css');
30 $Theme->addAlternateCSS('PhpWiki', 'phpwiki.css');
31 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
32 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
35 * The logo image appears on every page and links to the HomePage.
37 //$Theme->addImageAlias('logo', 'logo.png');
40 * The Signature image is shown after saving an edited page. If this
41 * is not set, any signature defined in index.php will be used. If it
42 * is not defined by index.php or in here then the "Thank you for
43 * editing..." screen will be omitted.
46 // Comment this next line out to enable signature.
47 $Theme->addImageAlias('signature', false);
52 $Theme->setLinkIcon('http');
53 $Theme->setLinkIcon('https');
54 $Theme->setLinkIcon('ftp');
55 $Theme->setLinkIcon('mailto');
56 $Theme->setLinkIcon('interwiki');
57 $Theme->setLinkIcon('*', 'url');
59 //$Theme->setButtonSeparator(' | ');
62 * WikiWords can automatically be split by inserting spaces between
63 * the words. The default is to leave WordsSmashedTogetherLikeSo.
65 //$Theme->setAutosplitWikiWords(false);
68 * You may adjust the formats used for formatting dates and times
69 * below. (These examples give the default formats.)
70 * Formats are given as format strings to PHP strftime() function See
71 * http://www.php.net/manual/en/function.strftime.php for details.
73 //$Theme->setDateTimeFormat("%B %e, %Y"); // may contain time of day
74 //$Theme->setDateFormat("%B %e, %Y"); // must not contain time
77 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
78 // (c-file-style: "gnu")
83 // c-hanging-comment-ender-p: nil
84 // indent-tabs-mode: nil