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