]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/smaller/themeinfo.php
fix MSIE6.0 error_log entries with null? request
[SourceForge/phpwiki.git] / themes / smaller / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.5 2006-02-22 06:51:37 rurban Exp $');
3 /**
4  * tiny actionbar, only Edit (if signed in) and Info => PageInfo,
5  *   all other Actionbars buttons in info.tmpl
6  * old-style Sign In button
7  * navbar also shorter labels and without buttons, just links
8  */
9
10 require_once('lib/Theme.php');
11
12 class Theme_smaller extends Theme {
13
14     function makeActionButton ($action, $label = false, $page_or_rev = false) {
15         extract($this->_get_name_and_rev($page_or_rev));
16
17         if (is_array($action)) {
18             $attr = $action;
19             $action = isset($attr['action']) ? $attr['action'] : 'browse';
20         }
21         else
22             $attr['action'] = $action;
23
24         $class = is_safe_action($action) ? 'named-wiki' : 'wikiadmin';
25         if (!$label)
26             $label = $this->_labelForAction($action);
27
28         if ($version)
29             $attr['version'] = $version;
30
31         if ($action == 'browse')
32             unset($attr['action']);
33
34         return $this->makeButton($label, WikiURL($pagename, $attr), $class);
35     }
36 }
37
38 $WikiTheme = new Theme_smaller('smaller');
39 // CSS file defines fonts, colors and background images for this
40 // style.  The companion '*-heavy.css' file isn't defined, it's just
41 // expected to be in the same directory that the base style is in.
42
43 // This should result in phpwiki-printer.css being used when
44 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
45 $WikiTheme->setDefaultCSS('PhpWiki',
46                        array(''      => 'phpwiki.css',
47                              'print' => 'phpwiki-printer.css'));
48
49 // This allows one to manually select "Printer" style (when browsing page)
50 // to see what the printer style looks like.
51 $WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
52 $WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
53 $WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
54
55 if (isBrowserIE()) {
56     $WikiTheme->addMoreHeaders($WikiTheme->_CSSlink(0,
57         $WikiTheme->_findFile('IEFixes.css'),'all'));
58     $WikiTheme->addMoreHeaders("\n");
59 }
60
61 /**
62  * The logo image appears on every page and links to the HomePage.
63  */
64 $WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
65
66 /**
67  * The Signature image is shown after saving an edited page. If this
68  * is set to false then the "Thank you for editing..." screen will
69  * be omitted.
70  */
71
72 $WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
73 // Uncomment this next line to disable the signature.
74 $WikiTheme->addImageAlias('signature', false);
75
76 /*
77  * Link icons.
78  */
79 //$WikiTheme->setLinkIcon('http');
80 $WikiTheme->setLinkIcon('https');
81 $WikiTheme->setLinkIcon('ftp');
82 $WikiTheme->setLinkIcon('mailto');
83 //$WikiTheme->setLinkIcon('interwiki');
84 //$WikiTheme->setLinkIcon('wikiuser');
85 //$WikiTheme->setLinkIcon('*', 'url');
86
87 //$WikiTheme->setButtonSeparator("\n | ");
88
89 /**
90  * WikiWords can automatically be split by inserting spaces between
91  * the words. The default is to leave WordsSmashedTogetherLikeSo.
92  */
93 $WikiTheme->setAutosplitWikiWords(false);
94
95 /**
96  * Layout improvement with dangling links for mostly closed wiki's:
97  * If false, only users with edit permissions will be presented the 
98  * special wikiunknown class with "?" and Tooltip.
99  * If true (default), any user will see the ?, but will be presented 
100  * the PrintLoginForm on a click.
101  */
102 $WikiTheme->setAnonEditUnknownLinks(false);
103
104 /*
105  * You may adjust the formats used for formatting dates and times
106  * below.  (These examples give the default formats.)
107  * Formats are given as format strings to PHP strftime() function See
108  * http://www.php.net/manual/en/function.strftime.php for details.
109  * Do not include the server's zone (%Z), times are converted to the
110  * user's time zone.
111  */
112 $WikiTheme->setDateFormat("%B %d, %Y");
113 $WikiTheme->setTimeFormat("%H:%M");
114
115 /*
116  * To suppress times in the "Last edited on" messages, give a
117  * give a second argument of false:
118  */
119 //$WikiTheme->setDateFormat("%B %d, %Y", false); 
120
121
122 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
123 // (c-file-style: "gnu")
124 // Local Variables:
125 // mode: php
126 // tab-width: 8
127 // c-basic-offset: 4
128 // c-hanging-comment-ender-p: nil
129 // indent-tabs-mode: nil
130 // End:   
131 ?>