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