]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/themeinfo.php
Do not initialize this way to keep the properties. Move calendarInit over to lib...
[SourceForge/phpwiki.git] / themes / Sidebar / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.25 2007-01-07 18:49:42 rurban Exp $');
3
4 /*
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.
9  */
10
11 require_once('lib/Theme.php');
12 require_once('lib/WikiPlugin.php');
13
14 class Theme_Sidebar extends Theme {
15
16     function Theme_Sidebar ($theme_name='Sidebar') {
17         $this->Theme($theme_name);
18         $this->calendarInit(true);
19     }
20
21     function findTemplate ($name) {
22         // hack for navbar.tmpl to hide the buttonseparator
23         if ($name == "navbar") {
24             $this->setButtonSeparator(HTML::Raw("<br />\n&nbsp;&middot;&nbsp;"));
25         }
26         if ($name == "actionbar" || $name == "signin") {
27             $this->setButtonSeparator(" ");
28         }
29         return parent::findTemplate($name);
30     }
31 }
32
33 $WikiTheme = new Theme_Sidebar('Sidebar');
34
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.
38
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');
44
45 /**
46  * The logo image appears on every page and links to the HomePage.
47  */
48 //$WikiTheme->addImageAlias('logo', 'logo.png');
49
50 /**
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.
55  */
56
57 // Comment this next line out to enable signature.
58 $WikiTheme->addImageAlias('signature', false);
59
60 /*
61  * Link icons.
62  */
63 $WikiTheme->setLinkIcon('http');
64 $WikiTheme->setLinkIcon('https');
65 $WikiTheme->setLinkIcon('ftp');
66 $WikiTheme->setLinkIcon('mailto');
67 $WikiTheme->setLinkIcon('interwiki');
68 $WikiTheme->setLinkIcon('*', 'url');
69
70 //$WikiTheme->setButtonSeparator(' | ');
71
72 /**
73  * WikiWords can automatically be split by inserting spaces between
74  * the words. The default is to leave WordsSmashedTogetherLikeSo.
75  */
76 $WikiTheme->setAutosplitWikiWords(true);
77
78 /**
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.
83  */
84 $WikiTheme->setAnonEditUnknownLinks(false);
85
86 /*
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
92  * user's time zone.
93  */
94 //$WikiTheme->setDateFormat("%B %d, %Y");
95
96
97 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
98 // (c-file-style: "gnu")
99 // Local Variables:
100 // mode: php
101 // tab-width: 8
102 // c-basic-offset: 4
103 // c-hanging-comment-ender-p: nil
104 // indent-tabs-mode: nil
105 // End:   
106 ?>