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