PageInfo, * all other Actionbars buttons in info.tmpl * old-style Sign In button * navbar also shorter labels and without buttons, just links */ require_once 'lib/WikiTheme.php'; class WikiTheme_smaller extends WikiTheme { function makeActionButton($action, $label = false, $page_or_rev = false) { extract($this->_get_name_and_rev($page_or_rev)); if (is_array($action)) { $attr = $action; $action = isset($attr['action']) ? $attr['action'] : 'browse'; } else $attr['action'] = $action; $class = is_safe_action($action) ? 'named-wiki' : 'wikiadmin'; if (!$label) $label = $this->_labelForAction($action); if ($version) $attr['version'] = $version; if ($action == 'browse') unset($attr['action']); return $this->makeButton($label, WikiURL($pagename, $attr), $class); } } $WikiTheme = new WikiTheme_smaller('smaller'); // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: