2 rcs_id('$Id: themeinfo.php,v 1.32 2004-06-13 09:40:08 rurban Exp $');
5 * This file defines the default appearance ("theme") of PhpWiki.
8 require_once('lib/Theme.php');
10 $Theme = new Theme('default');
12 // CSS file defines fonts, colors and background images for this
13 // style. The companion '*-heavy.css' file isn't defined, it's just
14 // expected to be in the same directory that the base style is in.
16 // This should result in phpwiki-printer.css being used when
17 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
18 $Theme->setDefaultCSS('PhpWiki',
19 array('' => 'phpwiki.css',
20 'print' => 'phpwiki-printer.css'));
22 // This allows one to manually select "Printer" style (when browsing page)
23 // to see what the printer style looks like.
24 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
25 $Theme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
26 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
29 * The logo image appears on every page and links to the HomePage.
31 $Theme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
34 * The Signature image is shown after saving an edited page. If this
35 * is set to false then the "Thank you for editing..." screen will
39 $Theme->addImageAlias('signature', WIKI_NAME . "Signature.png");
40 // Uncomment this next line to disable the signature.
41 //$Theme->addImageAlias('signature', false);
46 $Theme->setLinkIcon('http');
47 $Theme->setLinkIcon('https');
48 $Theme->setLinkIcon('ftp');
49 $Theme->setLinkIcon('mailto');
50 $Theme->setLinkIcon('interwiki');
51 $Theme->setLinkIcon('wikiuser');
52 $Theme->setLinkIcon('*', 'url');
54 $Theme->setButtonSeparator("\n | ");
57 * WikiWords can automatically be split by inserting spaces between
58 * the words. The default is to leave WordsSmashedTogetherLikeSo.
60 //$Theme->setAutosplitWikiWords(false);
63 * Layout improvement with dangling links for mostly closed wiki's:
64 * If false, only users with edit permissions will be presented the
65 * special wikiunknown class with "?" and Tooltip.
66 * If true (default), any user will see the ?, but will be presented
67 * the PrintLoginForm on a click.
69 //$Theme->setAnonEditUnknownLinks(false);
72 * You may adjust the formats used for formatting dates and times
73 * below. (These examples give the default formats.)
74 * Formats are given as format strings to PHP strftime() function See
75 * http://www.php.net/manual/en/function.strftime.php for details.
76 * Do not include the server's zone (%Z), times are converted to the
79 * Suggestion for french:
80 * $Theme->setDateFormat("%A %e %B %Y");
81 * $Theme->setTimeFormat("%H:%M:%S");
82 * Suggestion for capable php versions, using the server locale:
83 * $Theme->setDateFormat("%x");
84 * $Theme->setTimeFormat("%X");
86 //$Theme->setDateFormat("%B %d, %Y");
87 //$Theme->setTimeFormat("%I:%M %p");
90 * To suppress times in the "Last edited on" messages, give a
91 * give a second argument of false:
93 //$Theme->setDateFormat("%B %d, %Y", false);
97 * Custom UserPreferences:
98 * A list of name => _UserPreference class pairs.
99 * Rationale: Certain themes should be able to extend the predefined list
100 * of preferences. Display/editing is done in the theme specific userprefs.tmpl
101 * but storage/sanification/update/... must be extended to the Get/SetPreferences methods.
102 * See themes/wikilens/themeinfo.php
104 //$Theme->customUserPreference();
107 * Register custom PageList type and define custom PageList classes.
108 * Rationale: Certain themes should be able to extend the predefined list
109 * of pagelist types. E.g. certain plugins, like MostPopular might use
110 * info=pagename,hits,rating
111 * which displays the rating column whenever the wikilens theme is active.
112 * See themes/wikilens/themeinfo.php
115 //$Theme->addPageListColumn();
117 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
118 // (c-file-style: "gnu")
123 // c-hanging-comment-ender-p: nil
124 // indent-tabs-mode: nil