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