2 rcs_id('$Id: themeinfo.php,v 1.2 2004-04-21 04:21:32 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);
38 $Theme = new Theme_smaller('smaller');
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.
44 // This should result in phpwiki-printer.css being used when
45 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
46 $Theme->setDefaultCSS('PhpWiki',
47 array('' => 'phpwiki.css',
48 'print' => 'phpwiki-printer.css'));
50 // This allows one to manually select "Printer" style (when browsing page)
51 // to see what the printer style looks like.
52 $Theme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
53 $Theme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
54 $Theme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
57 * The logo image appears on every page and links to the HomePage.
59 $Theme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
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
67 $Theme->addImageAlias('signature', WIKI_NAME . "Signature.png");
68 // Uncomment this next line to disable the signature.
69 $Theme->addImageAlias('signature', false);
74 //$Theme->setLinkIcon('http');
75 $Theme->setLinkIcon('https');
76 $Theme->setLinkIcon('ftp');
77 $Theme->setLinkIcon('mailto');
78 //$Theme->setLinkIcon('interwiki');
79 //$Theme->setLinkIcon('wikiuser');
80 //$Theme->setLinkIcon('*', 'url');
82 //$Theme->setButtonSeparator("\n | ");
85 * WikiWords can automatically be split by inserting spaces between
86 * the words. The default is to leave WordsSmashedTogetherLikeSo.
88 //$Theme->setAutosplitWikiWords(false);
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.
97 $Theme->setAnonEditUnknownLinks(false);
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
107 $Theme->setDateFormat("%B %d, %Y");
108 $Theme->setTimeFormat("%H:%M");
111 * To suppress times in the "Last edited on" messages, give a
112 * give a second argument of false:
114 //$Theme->setDateFormat("%B %d, %Y", false);
117 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
118 // (c-file-style: "gnu")
123 // c-hanging-comment-ender-p: nil
124 // indent-tabs-mode: nil