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