2 // Avoid direct call to this file.
3 // PHPWIKI_VERSION is defined in lib/prepend.php
4 if (!defined('PHPWIKI_VERSION')) {
10 * A minimalistic design by walter rafelsberger
11 * See http://www.shamino.com/wiki/
13 * Tiny actionbar: PageInfo, Edit and
14 * all other Actionbars buttons in info.tmpl,
15 * Signin implictly after Edit.
16 * tiny navbar: without buttons, just links
20 require_once 'lib/WikiTheme.php';
22 class WikiTheme_shamino_com extends WikiTheme {
24 function makeActionButton ($action, $label = false, $page_or_rev = false) {
25 extract($this->_get_name_and_rev($page_or_rev));
27 if (is_array($action)) {
29 $action = isset($attr['action']) ? $attr['action'] : 'browse';
32 $attr['action'] = $action;
34 $class = is_safe_action($action) ? 'named-wiki' : 'wikiadmin';
36 $label = $this->_labelForAction($action);
39 $attr['version'] = $version;
41 if ($action == 'browse')
42 unset($attr['action']);
44 return $this->makeButton($label, WikiURL($pagename, $attr), $class);
48 // CSS file defines fonts, colors and background images for this
49 // style. The companion '*-heavy.css' file isn't defined, it's just
50 // expected to be in the same directory that the base style is in.
52 // This should result in phpwiki-printer.css being used when
53 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
54 $this->setDefaultCSS('PhpWiki', array('' => 'shamino_com.css', 'print' => 'phpwiki-printer.css'));
56 // This allows one to manually select "Printer" style (when browsing page)
57 // to see what the printer style looks like.
58 $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
59 $this->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
60 $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
63 * The logo image appears on every page and links to the HomePage.
65 //$this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
68 * The Signature image is shown after saving an edited page. If this
69 * is set to false then the "Thank you for editing..." screen will
73 //$this->addImageAlias('signature', WIKI_NAME . "Signature.png");
74 // Uncomment this next line to disable the signature.
75 $this->addImageAlias('signature', false);
78 * WikiWords can automatically be split by inserting spaces between
79 * the words. The default is to leave WordsSmashedTogetherLikeSo.
81 //$this->setAutosplitWikiWords(false);
84 * Layout improvement with dangling links for mostly closed wiki's:
85 * If false, only users with edit permissions will be presented the
86 * special wikiunknown class with "?" and Tooltip.
87 * If true (default), any user will see the ?, but will be presented
88 * the PrintLoginForm on a click.
90 $this->setAnonEditUnknownLinks(false);
93 * You may adjust the formats used for formatting dates and times
94 * below. (These examples give the default formats.)
95 * Formats are given as format strings to PHP strftime() function See
96 * http://www.php.net/manual/en/function.strftime.php for details.
97 * Do not include the server's zone (%Z), times are converted to the
100 $this->setDateFormat("%B %d, %Y");
101 $this->setTimeFormat("%H:%M");
104 * To suppress times in the "Last edited on" messages, give a
105 * give a second argument of false:
107 //$this->setDateFormat("%B %d, %Y", false);
111 $WikiTheme = new WikiTheme_shamino_com('shamino_com');
117 // c-hanging-comment-ender-p: nil
118 // indent-tabs-mode: nil