4 * The wikilens theme is just a normal WikiTheme (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/
9 require_once('lib/WikiTheme.php');
11 class WikiTheme_Wikilens extends WikiTheme {
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.
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'));
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');
31 * The logo image appears on every page and links to the HomePage.
33 $this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
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
41 $this->addImageAlias('signature', WIKI_NAME . "Signature.png");
42 // Uncomment this next line to disable the signature.
43 $this->addImageAlias('signature', false);
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');
56 //$this->setButtonSeparator(HTML::br());
59 * WikiWords can automatically be split by inserting spaces between
60 * the words. The default is to leave WordsSmashedTogetherLikeSo.
62 //$this->setAutosplitWikiWords(false);
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.
71 $this->setAnonEditUnknownLinks(false);
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
81 $this->setDateFormat("%B %d, %Y");
82 $this->setTimeFormat("%H:%M");
85 * To suppress times in the "Last edited on" messages, give a
86 * give a second argument of false:
88 //$this->setDateFormat("%B %d, %Y", false);
93 $WikiTheme = new WikiTheme_Wikilens('wikilens');
94 require_once("lib/wikilens/CustomPrefs.php");
95 require_once("lib/wikilens/PageListColumns.php");
97 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
98 // (c-file-style: "gnu")
103 // c-hanging-comment-ender-p: nil
104 // indent-tabs-mode: nil