]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/wikilens/themeinfo.php
themes are now easier derivable classes from other themes.
[SourceForge/phpwiki.git] / themes / wikilens / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.10 2007-07-01 09:36:10 rurban Exp $');
3 /**
4  * The wikilens theme is just a normal Theme (can be based on any, here based on default),
5  * which additionally loads some wikilens libraries.
6  * And of course it has it's own set of icons for the ratingwidget.
7  */
8 require_once('lib/Theme.php');
9
10 class Theme_Wikilens extends Theme {
11
12     function load() {
13         // CSS file defines fonts, colors and background images for this
14         // style.  The companion '*-heavy.css' file isn't defined, it's just
15         // expected to be in the same directory that the base style is in.
16
17         // This should result in phpwiki-printer.css being used when
18         // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
19         $this->setDefaultCSS('PhpWiki',
20                                   array(''      => 'wikilens.css',
21                                         'print' => 'phpwiki-printer.css'));
22
23         // This allows one to manually select "Printer" style (when browsing page)
24         // to see what the printer style looks like.
25         $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
26         $this->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
27         $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
28
29         /**
30          * The logo image appears on every page and links to the HomePage.
31          */
32         $this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
33
34         /**
35          * The Signature image is shown after saving an edited page. If this
36          * is set to false then the "Thank you for editing..." screen will
37          * be omitted.
38          */
39
40         $this->addImageAlias('signature', WIKI_NAME . "Signature.png");
41         // Uncomment this next line to disable the signature.
42         $this->addImageAlias('signature', false);
43
44         /*
45          * Link icons.
46          */
47         //$this->setLinkIcon('http');
48         $this->setLinkIcon('https');
49         $this->setLinkIcon('ftp');
50         $this->setLinkIcon('mailto');
51         //$this->setLinkIcon('interwiki');
52         $this->setLinkIcon('wikiuser');
53         //$this->setLinkIcon('*', 'url');
54
55         //$this->setButtonSeparator(HTML::br());
56
57         /**
58          * WikiWords can automatically be split by inserting spaces between
59          * the words. The default is to leave WordsSmashedTogetherLikeSo.
60          */
61         //$this->setAutosplitWikiWords(false);
62
63         /**
64          * Layout improvement with dangling links for mostly closed wiki's:
65          * If false, only users with edit permissions will be presented the 
66          * special wikiunknown class with "?" and Tooltip.
67          * If true (default), any user will see the ?, but will be presented 
68          * the PrintLoginForm on a click.
69          */
70         $this->setAnonEditUnknownLinks(false);
71
72         /*
73          * You may adjust the formats used for formatting dates and times
74          * below.  (These examples give the default formats.)
75          * Formats are given as format strings to PHP strftime() function See
76          * http://www.php.net/manual/en/function.strftime.php for details.
77          * Do not include the server's zone (%Z), times are converted to the
78          * user's time zone.
79          */
80         $this->setDateFormat("%B %d, %Y");
81         $this->setTimeFormat("%H:%M");
82
83         /*
84          * To suppress times in the "Last edited on" messages, give a
85          * give a second argument of false:
86          */
87         //$this->setDateFormat("%B %d, %Y", false); 
88
89     }
90 }
91
92 $WikiTheme = new Theme_Wikilens('wikilens');
93 require_once("lib/wikilens/CustomPrefs.php");
94 require_once("lib/wikilens/PageListColumns.php");
95
96 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
97 // (c-file-style: "gnu")
98 // Local Variables:
99 // mode: php
100 // tab-width: 8
101 // c-basic-offset: 4
102 // c-hanging-comment-ender-p: nil
103 // indent-tabs-mode: nil
104 // End:   
105 ?>