2 rcs_id('$Id: themeinfo.php,v 1.1 2004-12-19 17:34:19 rurban Exp $');
4 * A minimalistic design by walter rafelsberger
5 * See http://www.shamino.com/wiki/
7 * Tiny actionbar: PageInfo, Edit and
8 * all other Actionbars buttons in info.tmpl,
9 * Signin implictly after Edit.
10 * tiny navbar: without buttons, just links
14 require_once('lib/Theme.php');
16 class Theme_shamino_com extends Theme {
18 function makeActionButton ($action, $label = false, $page_or_rev = false) {
19 extract($this->_get_name_and_rev($page_or_rev));
21 if (is_array($action)) {
23 $action = isset($attr['action']) ? $attr['action'] : 'browse';
26 $attr['action'] = $action;
28 $class = is_safe_action($action) ? 'named-wiki' : 'wikiadmin';
30 $label = $this->_labelForAction($action);
33 $attr['version'] = $version;
35 if ($action == 'browse')
36 unset($attr['action']);
38 return $this->makeButton($label, WikiURL($pagename, $attr), $class);
42 $WikiTheme = new Theme_shamino_com('shamino_com');
44 // CSS file defines fonts, colors and background images for this
45 // style. The companion '*-heavy.css' file isn't defined, it's just
46 // expected to be in the same directory that the base style is in.
48 // This should result in phpwiki-printer.css being used when
49 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
50 $WikiTheme->setDefaultCSS('PhpWiki',
51 array('' => 'shamino_com.css',
52 'print' => 'phpwiki-printer.css'));
54 // This allows one to manually select "Printer" style (when browsing page)
55 // to see what the printer style looks like.
56 $WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
57 $WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
58 $WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
61 * The logo image appears on every page and links to the HomePage.
63 //$WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
66 * The Signature image is shown after saving an edited page. If this
67 * is set to false then the "Thank you for editing..." screen will
71 //$WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
72 // Uncomment this next line to disable the signature.
73 $WikiTheme->addImageAlias('signature', false);
78 //$WikiTheme->setLinkIcon('http');
79 //$WikiTheme->setLinkIcon('https');
80 //$WikiTheme->setLinkIcon('ftp');
81 //$WikiTheme->setLinkIcon('mailto');
82 //$WikiTheme->setLinkIcon('interwiki');
83 //$WikiTheme->setLinkIcon('wikiuser');
84 //$WikiTheme->setLinkIcon('*', 'url');
86 //$WikiTheme->setButtonSeparator("\n | ");
89 * WikiWords can automatically be split by inserting spaces between
90 * the words. The default is to leave WordsSmashedTogetherLikeSo.
92 //$WikiTheme->setAutosplitWikiWords(false);
95 * Layout improvement with dangling links for mostly closed wiki's:
96 * If false, only users with edit permissions will be presented the
97 * special wikiunknown class with "?" and Tooltip.
98 * If true (default), any user will see the ?, but will be presented
99 * the PrintLoginForm on a click.
101 $WikiTheme->setAnonEditUnknownLinks(false);
104 * You may adjust the formats used for formatting dates and times
105 * below. (These examples give the default formats.)
106 * Formats are given as format strings to PHP strftime() function See
107 * http://www.php.net/manual/en/function.strftime.php for details.
108 * Do not include the server's zone (%Z), times are converted to the
111 $WikiTheme->setDateFormat("%B %d, %Y");
112 $WikiTheme->setTimeFormat("%H:%M");
115 * To suppress times in the "Last edited on" messages, give a
116 * give a second argument of false:
118 //$WikiTheme->setDateFormat("%B %d, %Y", false);
120 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
121 // (c-file-style: "gnu")
126 // c-hanging-comment-ender-p: nil
127 // indent-tabs-mode: nil