]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/smaller/themeinfo.php
even simplier
[SourceForge/phpwiki.git] / themes / smaller / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.3 2004-06-14 11:26:53 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
40 // CSS file defines fonts, colors and background images for this
41 // style.  The companion '*-heavy.css' file isn't defined, it's just
42 // expected to be in the same directory that the base style is in.
43
44 // This should result in phpwiki-printer.css being used when
45 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
46 $WikiTheme->setDefaultCSS('PhpWiki',
47                        array(''      => 'phpwiki.css',
48                              'print' => 'phpwiki-printer.css'));
49
50 // This allows one to manually select "Printer" style (when browsing page)
51 // to see what the printer style looks like.
52 $WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
53 $WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
54 $WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
55
56 /**
57  * The logo image appears on every page and links to the HomePage.
58  */
59 $WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
60
61 /**
62  * The Signature image is shown after saving an edited page. If this
63  * is set to false then the "Thank you for editing..." screen will
64  * be omitted.
65  */
66
67 $WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
68 // Uncomment this next line to disable the signature.
69 $WikiTheme->addImageAlias('signature', false);
70
71 /*
72  * Link icons.
73  */
74 //$WikiTheme->setLinkIcon('http');
75 $WikiTheme->setLinkIcon('https');
76 $WikiTheme->setLinkIcon('ftp');
77 $WikiTheme->setLinkIcon('mailto');
78 //$WikiTheme->setLinkIcon('interwiki');
79 //$WikiTheme->setLinkIcon('wikiuser');
80 //$WikiTheme->setLinkIcon('*', 'url');
81
82 //$WikiTheme->setButtonSeparator("\n | ");
83
84 /**
85  * WikiWords can automatically be split by inserting spaces between
86  * the words. The default is to leave WordsSmashedTogetherLikeSo.
87  */
88 //$WikiTheme->setAutosplitWikiWords(false);
89
90 /**
91  * Layout improvement with dangling links for mostly closed wiki's:
92  * If false, only users with edit permissions will be presented the 
93  * special wikiunknown class with "?" and Tooltip.
94  * If true (default), any user will see the ?, but will be presented 
95  * the PrintLoginForm on a click.
96  */
97 $WikiTheme->setAnonEditUnknownLinks(false);
98
99 /*
100  * You may adjust the formats used for formatting dates and times
101  * below.  (These examples give the default formats.)
102  * Formats are given as format strings to PHP strftime() function See
103  * http://www.php.net/manual/en/function.strftime.php for details.
104  * Do not include the server's zone (%Z), times are converted to the
105  * user's time zone.
106  */
107 $WikiTheme->setDateFormat("%B %d, %Y");
108 $WikiTheme->setTimeFormat("%H:%M");
109
110 /*
111  * To suppress times in the "Last edited on" messages, give a
112  * give a second argument of false:
113  */
114 //$WikiTheme->setDateFormat("%B %d, %Y", false); 
115
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 ?>