]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/themeinfo.php
hack to call subtemplates from default theme
[SourceForge/phpwiki.git] / themes / Sidebar / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.3 2002-02-02 07:24:50 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 invoke default's navbar.tmpl
14         if ($name == "default-navbar")
15             return "themes/default/templates/navbar.tmpl";
16
17         if ($name == "default-actionbar")
18             return "themes/default/templates/actionbar.tmpl";
19
20         return $this->_path . $this->_findFile("templates/$name.tmpl");
21     }
22 }
23 $Theme = new Theme_Sidebar('Sidebar');
24
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.
28
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');
33
34 /**
35  * The logo image appears on every page and links to the HomePage.
36  */
37 //$Theme->addImageAlias('logo', 'logo.png');
38
39 /**
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.
44  */
45
46 // Comment this next line out to enable signature.
47 $Theme->addImageAlias('signature', false);
48
49 /*
50  * Link icons.
51  */
52 $Theme->setLinkIcon('http');
53 $Theme->setLinkIcon('https');
54 $Theme->setLinkIcon('ftp');
55 $Theme->setLinkIcon('mailto');
56 $Theme->setLinkIcon('interwiki');
57 $Theme->setLinkIcon('*', 'url');
58
59 //$Theme->setButtonSeparator(' | ');
60
61 /**
62  * WikiWords can automatically be split by inserting spaces between
63  * the words. The default is to leave WordsSmashedTogetherLikeSo.
64  */
65 //$Theme->setAutosplitWikiWords(false);
66
67 /*
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.
72  */
73 //$Theme->setDateTimeFormat("%B %e, %Y");   // may contain time of day
74 //$Theme->setDateFormat("%B %e, %Y");       // must not contain time
75
76
77 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
78 // (c-file-style: "gnu")
79 // Local Variables:
80 // mode: php
81 // tab-width: 8
82 // c-basic-offset: 4
83 // c-hanging-comment-ender-p: nil
84 // indent-tabs-mode: nil
85 // End:   
86 ?>