]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/themeinfo.php
Fixed the bug of the varying editdate position in different browsers, other positioni...
[SourceForge/phpwiki.git] / themes / Sidebar / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.8 2002-02-14 06:21:41 carstenklapp 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         // 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);
20         }
21
22         return $this->_path . $this->_findFile("templates/$name.tmpl");
23     }
24 }
25 $Theme = new Theme_Sidebar('Sidebar');
26
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.
30
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');
35
36 /**
37  * The logo image appears on every page and links to the HomePage.
38  */
39 //$Theme->addImageAlias('logo', 'logo.png');
40
41 /**
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.
46  */
47
48 // Comment this next line out to enable signature.
49 $Theme->addImageAlias('signature', false);
50
51 /*
52  * Link icons.
53  */
54 $Theme->setLinkIcon('http');
55 $Theme->setLinkIcon('https');
56 $Theme->setLinkIcon('ftp');
57 $Theme->setLinkIcon('mailto');
58 $Theme->setLinkIcon('interwiki');
59 $Theme->setLinkIcon('*', 'url');
60
61 //$Theme->setButtonSeparator(' | ');
62
63 /**
64  * WikiWords can automatically be split by inserting spaces between
65  * the words. The default is to leave WordsSmashedTogetherLikeSo.
66  */
67 //$Theme->setAutosplitWikiWords(false);
68
69 /*
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
75  * user's time zone.
76  */
77 //$Theme->setDateFormat("%B %e, %Y");
78
79
80 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
81 // (c-file-style: "gnu")
82 // Local Variables:
83 // mode: php
84 // tab-width: 8
85 // c-basic-offset: 4
86 // c-hanging-comment-ender-p: nil
87 // indent-tabs-mode: nil
88 // End:   
89 ?>