2 // Avoid direct call to this file.
3 // PHPWIKI_VERSION is defined in lib/prepend.php
4 if (!defined('PHPWIKI_VERSION')) {
11 * tiny actionbar, only Edit (if signed in) and Info => PageInfo,
12 * all other Actionbars buttons in info.tmpl
13 * old-style Sign In button
14 * navbar also shorter labels and without buttons, just links
17 require_once('lib/WikiTheme.php');
19 class WikiTheme_smaller extends WikiTheme {
21 function makeActionButton ($action, $label = false, $page_or_rev = false) {
22 extract($this->_get_name_and_rev($page_or_rev));
24 if (is_array($action)) {
26 $action = isset($attr['action']) ? $attr['action'] : 'browse';
29 $attr['action'] = $action;
31 $class = is_safe_action($action) ? 'named-wiki' : 'wikiadmin';
33 $label = $this->_labelForAction($action);
36 $attr['version'] = $version;
38 if ($action == 'browse')
39 unset($attr['action']);
41 return $this->makeButton($label, WikiURL($pagename, $attr), $class);
46 $WikiTheme = new WikiTheme_smaller('smaller');
48 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
49 // (c-file-style: "gnu")
54 // c-hanging-comment-ender-p: nil
55 // indent-tabs-mode: nil