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