]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/themeinfo.php
Activated Id substitution for Subversion
[SourceForge/phpwiki.git] / themes / Sidebar / themeinfo.php
1 <?php
2 rcs_id('$Id$');
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     function load() {
33         // CSS file defines fonts, colors and background images for this
34         // style.  The companion '*-heavy.css' file isn't defined, it's just
35         // expected to be in the same directory that the base style is in.
36
37         $this->setDefaultCSS(_("Sidebar"), 'sidebar.css');
38         //$this->addAlternateCSS('PhpWiki', 'phpwiki.css');
39         //$this->setDefaultCSS('PhpWiki', 'phpwiki.css');
40         $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
41         $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
42
43         /**
44          * The logo image appears on every page and links to the HomePage.
45          */
46         //$this->addImageAlias('logo', 'logo.png');
47
48         /**
49          * The Signature image is shown after saving an edited page. If this
50          * is not set, any signature defined in index.php will be used. If it
51          * is not defined by index.php or in here then the "Thank you for
52          * editing..." screen will be omitted.
53          */
54
55         // Comment this next line out to enable signature.
56         $this->addImageAlias('signature', false);
57
58         $this->addImageAlias('search', 'search.png');
59
60         /*
61          * Link icons.
62          */
63         $this->setLinkIcon('http');
64         $this->setLinkIcon('https');
65         $this->setLinkIcon('ftp');
66         $this->setLinkIcon('mailto');
67         $this->setLinkIcon('interwiki');
68         $this->setLinkIcon('*', 'url');
69
70         //$this->setButtonSeparator(' | ');
71
72         /**
73          * WikiWords can automatically be split by inserting spaces between
74          * the words. The default is to leave WordsSmashedTogetherLikeSo.
75          */
76         $this->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         $this->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         //$this->setDateFormat("%B %d, %Y");
95     }
96 }
97
98 $WikiTheme = new Theme_Sidebar('Sidebar');
99
100 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
101 // (c-file-style: "gnu")
102 // Local Variables:
103 // mode: php
104 // tab-width: 8
105 // c-basic-offset: 4
106 // c-hanging-comment-ender-p: nil
107 // indent-tabs-mode: nil
108 // End:   
109 ?>