2 rcs_id('$Id: themeinfo.php,v 1.25 2007-01-07 18:49:42 rurban Exp $');
5 * This file defines the Sidebar appearance ("theme") of PhpWiki,
6 * which can be used as parent class for all sidebar themes. See blog.
7 * This use the dynamic jscalendar, which doesn't need extra requests
8 * per month/year change.
11 require_once('lib/Theme.php');
12 require_once('lib/WikiPlugin.php');
14 class Theme_Sidebar extends Theme {
16 function Theme_Sidebar ($theme_name='Sidebar') {
17 $this->Theme($theme_name);
18 $this->calendarInit(true);
21 function findTemplate ($name) {
22 // hack for navbar.tmpl to hide the buttonseparator
23 if ($name == "navbar") {
24 $this->setButtonSeparator(HTML::Raw("<br />\n · "));
26 if ($name == "actionbar" || $name == "signin") {
27 $this->setButtonSeparator(" ");
29 return parent::findTemplate($name);
33 $WikiTheme = new Theme_Sidebar('Sidebar');
35 // CSS file defines fonts, colors and background images for this
36 // style. The companion '*-heavy.css' file isn't defined, it's just
37 // expected to be in the same directory that the base style is in.
39 $WikiTheme->setDefaultCSS(_("Sidebar"), 'sidebar.css');
40 //$WikiTheme->addAlternateCSS('PhpWiki', 'phpwiki.css');
41 //$WikiTheme->setDefaultCSS('PhpWiki', 'phpwiki.css');
42 $WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
43 $WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
46 * The logo image appears on every page and links to the HomePage.
48 //$WikiTheme->addImageAlias('logo', 'logo.png');
51 * The Signature image is shown after saving an edited page. If this
52 * is not set, any signature defined in index.php will be used. If it
53 * is not defined by index.php or in here then the "Thank you for
54 * editing..." screen will be omitted.
57 // Comment this next line out to enable signature.
58 $WikiTheme->addImageAlias('signature', false);
63 $WikiTheme->setLinkIcon('http');
64 $WikiTheme->setLinkIcon('https');
65 $WikiTheme->setLinkIcon('ftp');
66 $WikiTheme->setLinkIcon('mailto');
67 $WikiTheme->setLinkIcon('interwiki');
68 $WikiTheme->setLinkIcon('*', 'url');
70 //$WikiTheme->setButtonSeparator(' | ');
73 * WikiWords can automatically be split by inserting spaces between
74 * the words. The default is to leave WordsSmashedTogetherLikeSo.
76 $WikiTheme->setAutosplitWikiWords(true);
79 * If true (default) show create '?' buttons on not existing pages, even if the
80 * user is not signed in.
81 * If false, anon users get no links and it looks cleaner, but then they
82 * cannot easily fix missing pages.
84 $WikiTheme->setAnonEditUnknownLinks(false);
87 * You may adjust the formats used for formatting dates and times
88 * below. (These examples give the default formats.)
89 * Formats are given as format strings to PHP strftime() function See
90 * http://www.php.net/manual/en/function.strftime.php for details.
91 * Do not include the server's zone (%Z), times are converted to the
94 //$WikiTheme->setDateFormat("%B %d, %Y");
97 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
98 // (c-file-style: "gnu")
103 // c-hanging-comment-ender-p: nil
104 // indent-tabs-mode: nil