2 rcs_id('$Id: themeinfo.php,v 1.6 2007-07-01 09:36:10 rurban Exp $');
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
10 require_once('lib/Theme.php');
12 class Theme_smaller extends Theme {
14 function makeActionButton ($action, $label = false, $page_or_rev = false) {
15 extract($this->_get_name_and_rev($page_or_rev));
17 if (is_array($action)) {
19 $action = isset($attr['action']) ? $attr['action'] : 'browse';
22 $attr['action'] = $action;
24 $class = is_safe_action($action) ? 'named-wiki' : 'wikiadmin';
26 $label = $this->_labelForAction($action);
29 $attr['version'] = $version;
31 if ($action == 'browse')
32 unset($attr['action']);
34 return $this->makeButton($label, WikiURL($pagename, $attr), $class);
39 $WikiTheme = new Theme_smaller('smaller');
41 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
42 // (c-file-style: "gnu")
47 // c-hanging-comment-ender-p: nil
48 // indent-tabs-mode: nil