]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/themeinfo.php
Add search button alias
[SourceForge/phpwiki.git] / themes / default / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.36 2007-01-20 11:45:21 rurban Exp $');
3
4 /*
5  * This file defines the default appearance ("theme") of PhpWiki.
6  */
7
8 require_once('lib/Theme.php');
9
10 $WikiTheme = new Theme('default');
11
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.
15
16 // This should result in phpwiki-printer.css being used when
17 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
18 $WikiTheme->setDefaultCSS('PhpWiki',
19                        array(''      => 'phpwiki.css',
20                              'print' => 'phpwiki-printer.css'));
21
22 // This allows one to manually select "Printer" style (when browsing page)
23 // to see what the printer style looks like.
24 $WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
25 $WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
26 $WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
27
28 /**
29  * The logo image appears on every page and links to the HomePage.
30  */
31 $WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
32
33 $WikiTheme->addImageAlias('search', 'search.png');
34
35 /**
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
38  * be omitted.
39  */
40
41 $WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
42 // Uncomment this next line to disable the signature.
43 //$WikiTheme->addImageAlias('signature', false);
44
45 /*
46  * Link icons.
47  */
48 $WikiTheme->setLinkIcon('http');
49 $WikiTheme->setLinkIcon('https');
50 $WikiTheme->setLinkIcon('ftp');
51 $WikiTheme->setLinkIcon('mailto');
52 $WikiTheme->setLinkIcon('interwiki');
53 $WikiTheme->setLinkIcon('wikiuser');
54 $WikiTheme->setLinkIcon('*', 'url');
55
56 $WikiTheme->setButtonSeparator("\n | ");
57
58 /**
59  * WikiWords can automatically be split by inserting spaces between
60  * the words. The default is to leave WordsSmashedTogetherLikeSo.
61  */
62 $WikiTheme->setAutosplitWikiWords(false);
63
64 /**
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.
70  */
71 //$WikiTheme->setAnonEditUnknownLinks(false);
72
73 /*
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
79  * user's time zone.
80  *
81  * Suggestion for french: 
82  *   $WikiTheme->setDateFormat("%A %e %B %Y");
83  *   $WikiTheme->setTimeFormat("%H:%M:%S");
84  * Suggestion for capable php versions, using the server locale:
85  *   $WikiTheme->setDateFormat("%x");
86  *   $WikiTheme->setTimeFormat("%X");
87  */
88 //$WikiTheme->setDateFormat("%B %d, %Y");
89 //$WikiTheme->setTimeFormat("%I:%M %p");
90
91 /*
92  * To suppress times in the "Last edited on" messages, give a
93  * give a second argument of false:
94  */
95 //$WikiTheme->setDateFormat("%B %d, %Y", false); 
96
97
98 /**
99  * Custom UserPreferences:
100  * A list of name => _UserPreference class pairs.
101  * Rationale: Certain themes should be able to extend the predefined list 
102  * of preferences. Display/editing is done in the theme specific userprefs.tmpl
103  * but storage/sanification/update/... must be extended to the Get/SetPreferences methods.
104  * See themes/wikilens/themeinfo.php
105  */
106 //$WikiTheme->customUserPreference(); 
107
108 /**
109  * Register custom PageList type and define custom PageList classes.
110  * Rationale: Certain themes should be able to extend the predefined list 
111  * of pagelist types. E.g. certain plugins, like MostPopular might use 
112  * info=pagename,hits,rating
113  * which displays the rating column whenever the wikilens theme is active.
114  * See themes/wikilens/themeinfo.php
115  */
116 // 
117 //$WikiTheme->addPageListColumn(); 
118
119 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
120 // (c-file-style: "gnu")
121 // Local Variables:
122 // mode: php
123 // tab-width: 8
124 // c-basic-offset: 4
125 // c-hanging-comment-ender-p: nil
126 // indent-tabs-mode: nil
127 // End:   
128 ?>