]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/themeinfo.php
Fixes for windows compatibility in strftime format strings.
[SourceForge/phpwiki.git] / themes / Sidebar / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.11 2003-03-24 22:57:24 dairiki Exp $');
3
4 /*
5  * This file defines the Sidebar appearance ("theme") of PhpWiki.
6  */
7
8 require_once('lib/Theme.php');
9
10 class Theme_Sidebar extends Theme {
11
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);
19         }
20
21         return $this->_path . $this->_findFile("templates/$name.tmpl");
22     }
23 }
24 $Theme = new Theme_Sidebar('Sidebar');
25
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.
29
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');
34
35 /**
36  * The logo image appears on every page and links to the HomePage.
37  */
38 //$Theme->addImageAlias('logo', 'logo.png');
39
40 /**
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.
45  */
46
47 // Comment this next line out to enable signature.
48 $Theme->addImageAlias('signature', false);
49
50 /*
51  * Link icons.
52  */
53 $Theme->setLinkIcon('http');
54 $Theme->setLinkIcon('https');
55 $Theme->setLinkIcon('ftp');
56 $Theme->setLinkIcon('mailto');
57 $Theme->setLinkIcon('interwiki');
58 $Theme->setLinkIcon('*', 'url');
59
60 //$Theme->setButtonSeparator(' | ');
61
62 /**
63  * WikiWords can automatically be split by inserting spaces between
64  * the words. The default is to leave WordsSmashedTogetherLikeSo.
65  */
66 //$Theme->setAutosplitWikiWords(false);
67
68 /*
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
74  * user's time zone.
75  */
76 //$Theme->setDateFormat("%B %d, %Y");
77
78
79 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
80 // (c-file-style: "gnu")
81 // Local Variables:
82 // mode: php
83 // tab-width: 8
84 // c-basic-offset: 4
85 // c-hanging-comment-ender-p: nil
86 // indent-tabs-mode: nil
87 // End:   
88 ?>