]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/themeinfo.php
strftime format suggestions and tex class
[SourceForge/phpwiki.git] / themes / default / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.32 2004-06-13 09:40:08 rurban Exp $');
3
4 /*
5  * This file defines the default appearance ("theme") of PhpWiki.
6  */
7
8 require_once('lib/Theme.php');
9
10 $Theme = 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 $Theme->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 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
25 $Theme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
26 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
27
28 /**
29  * The logo image appears on every page and links to the HomePage.
30  */
31 $Theme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
32
33 /**
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
36  * be omitted.
37  */
38
39 $Theme->addImageAlias('signature', WIKI_NAME . "Signature.png");
40 // Uncomment this next line to disable the signature.
41 //$Theme->addImageAlias('signature', false);
42
43 /*
44  * Link icons.
45  */
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');
53
54 $Theme->setButtonSeparator("\n | ");
55
56 /**
57  * WikiWords can automatically be split by inserting spaces between
58  * the words. The default is to leave WordsSmashedTogetherLikeSo.
59  */
60 //$Theme->setAutosplitWikiWords(false);
61
62 /**
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.
68  */
69 //$Theme->setAnonEditUnknownLinks(false);
70
71 /*
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
77  * user's time zone.
78  *
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");
85  */
86 //$Theme->setDateFormat("%B %d, %Y");
87 //$Theme->setTimeFormat("%I:%M %p");
88
89 /*
90  * To suppress times in the "Last edited on" messages, give a
91  * give a second argument of false:
92  */
93 //$Theme->setDateFormat("%B %d, %Y", false); 
94
95
96 /**
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
103  */
104 //$Theme->customUserPreference(); 
105
106 /**
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
113  */
114 // 
115 //$Theme->addPageListColumn(); 
116
117 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
118 // (c-file-style: "gnu")
119 // Local Variables:
120 // mode: php
121 // tab-width: 8
122 // c-basic-offset: 4
123 // c-hanging-comment-ender-p: nil
124 // indent-tabs-mode: nil
125 // End:   
126 ?>