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',
56 array('' => 'shamino_com.css',
57 'print' => 'phpwiki-printer.css'));
59 // This allows one to manually select "Printer" style (when browsing page)
60 // to see what the printer style looks like.
61 $this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
62 $this->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
63 $this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
66 * The logo image appears on every page and links to the HomePage.
68 //$this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
71 * The Signature image is shown after saving an edited page. If this
72 * is set to false then the "Thank you for editing..." screen will
76 //$this->addImageAlias('signature', WIKI_NAME . "Signature.png");
77 // Uncomment this next line to disable the signature.
78 $this->addImageAlias('signature', false);
83 //$this->setLinkIcon('http');
84 //$this->setLinkIcon('https');
85 //$this->setLinkIcon('ftp');
86 //$this->setLinkIcon('mailto');
87 //$this->setLinkIcon('interwiki');
88 //$this->setLinkIcon('wikiuser');
89 //$this->setLinkIcon('*', 'url');
91 //$this->setButtonSeparator("\n | ");
94 * WikiWords can automatically be split by inserting spaces between
95 * the words. The default is to leave WordsSmashedTogetherLikeSo.
97 //$this->setAutosplitWikiWords(false);
100 * Layout improvement with dangling links for mostly closed wiki's:
101 * If false, only users with edit permissions will be presented the
102 * special wikiunknown class with "?" and Tooltip.
103 * If true (default), any user will see the ?, but will be presented
104 * the PrintLoginForm on a click.
106 $this->setAnonEditUnknownLinks(false);
109 * You may adjust the formats used for formatting dates and times
110 * below. (These examples give the default formats.)
111 * Formats are given as format strings to PHP strftime() function See
112 * http://www.php.net/manual/en/function.strftime.php for details.
113 * Do not include the server's zone (%Z), times are converted to the
116 $this->setDateFormat("%B %d, %Y");
117 $this->setTimeFormat("%H:%M");
120 * To suppress times in the "Last edited on" messages, give a
121 * give a second argument of false:
123 //$this->setDateFormat("%B %d, %Y", false);
127 $WikiTheme = new WikiTheme_shamino_com('shamino_com');
133 // c-hanging-comment-ender-p: nil
134 // indent-tabs-mode: nil