2 rcs_id('$Id: themeinfo.php,v 1.5 2006-02-22 06:51:37 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 $WikiTheme = new Theme_smaller('smaller');
39 // CSS file defines fonts, colors and background images for this
40 // style. The companion '*-heavy.css' file isn't defined, it's just
41 // expected to be in the same directory that the base style is in.
43 // This should result in phpwiki-printer.css being used when
44 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
45 $WikiTheme->setDefaultCSS('PhpWiki',
46 array('' => 'phpwiki.css',
47 'print' => 'phpwiki-printer.css'));
49 // This allows one to manually select "Printer" style (when browsing page)
50 // to see what the printer style looks like.
51 $WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
52 $WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
53 $WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
56 $WikiTheme->addMoreHeaders($WikiTheme->_CSSlink(0,
57 $WikiTheme->_findFile('IEFixes.css'),'all'));
58 $WikiTheme->addMoreHeaders("\n");
62 * The logo image appears on every page and links to the HomePage.
64 $WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
67 * The Signature image is shown after saving an edited page. If this
68 * is set to false then the "Thank you for editing..." screen will
72 $WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
73 // Uncomment this next line to disable the signature.
74 $WikiTheme->addImageAlias('signature', false);
79 //$WikiTheme->setLinkIcon('http');
80 $WikiTheme->setLinkIcon('https');
81 $WikiTheme->setLinkIcon('ftp');
82 $WikiTheme->setLinkIcon('mailto');
83 //$WikiTheme->setLinkIcon('interwiki');
84 //$WikiTheme->setLinkIcon('wikiuser');
85 //$WikiTheme->setLinkIcon('*', 'url');
87 //$WikiTheme->setButtonSeparator("\n | ");
90 * WikiWords can automatically be split by inserting spaces between
91 * the words. The default is to leave WordsSmashedTogetherLikeSo.
93 $WikiTheme->setAutosplitWikiWords(false);
96 * Layout improvement with dangling links for mostly closed wiki's:
97 * If false, only users with edit permissions will be presented the
98 * special wikiunknown class with "?" and Tooltip.
99 * If true (default), any user will see the ?, but will be presented
100 * the PrintLoginForm on a click.
102 $WikiTheme->setAnonEditUnknownLinks(false);
105 * You may adjust the formats used for formatting dates and times
106 * below. (These examples give the default formats.)
107 * Formats are given as format strings to PHP strftime() function See
108 * http://www.php.net/manual/en/function.strftime.php for details.
109 * Do not include the server's zone (%Z), times are converted to the
112 $WikiTheme->setDateFormat("%B %d, %Y");
113 $WikiTheme->setTimeFormat("%H:%M");
116 * To suppress times in the "Last edited on" messages, give a
117 * give a second argument of false:
119 //$WikiTheme->setDateFormat("%B %d, %Y", false);
122 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
123 // (c-file-style: "gnu")
128 // c-hanging-comment-ender-p: nil
129 // indent-tabs-mode: nil