]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/shamino_com/themeinfo.php
No tabs
[SourceForge/phpwiki.git] / themes / shamino_com / themeinfo.php
1 <?php
2 // Avoid direct call to this file.
3 // PHPWIKI_VERSION is defined in lib/prepend.php
4 if (!defined('PHPWIKI_VERSION')) {
5     header("Location: /");
6     exit;
7 }
8
9 // $Id$
10 /**
11  * A minimalistic design by walter rafelsberger
12  * See http://www.shamino.com/wiki/
13  *
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
18  * no logo
19  */
20
21 require_once('lib/WikiTheme.php');
22
23 class WikiTheme_shamino_com extends WikiTheme {
24
25     function makeActionButton ($action, $label = false, $page_or_rev = false) {
26         extract($this->_get_name_and_rev($page_or_rev));
27
28         if (is_array($action)) {
29             $attr = $action;
30             $action = isset($attr['action']) ? $attr['action'] : 'browse';
31         }
32         else
33             $attr['action'] = $action;
34
35         $class = is_safe_action($action) ? 'named-wiki' : 'wikiadmin';
36         if (!$label)
37             $label = $this->_labelForAction($action);
38
39         if ($version)
40             $attr['version'] = $version;
41
42         if ($action == 'browse')
43             unset($attr['action']);
44
45         return $this->makeButton($label, WikiURL($pagename, $attr), $class);
46     }
47
48     function load() {
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.
52
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'));
56
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');
62
63     /**
64      * The logo image appears on every page and links to the HomePage.
65      */
66     //$this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
67
68     /**
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
71      * be omitted.
72      */
73
74     //$this->addImageAlias('signature', WIKI_NAME . "Signature.png");
75     // Uncomment this next line to disable the signature.
76     $this->addImageAlias('signature', false);
77
78     /**
79      * WikiWords can automatically be split by inserting spaces between
80      * the words. The default is to leave WordsSmashedTogetherLikeSo.
81      */
82     //$this->setAutosplitWikiWords(false);
83
84     /**
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.
90      */
91     $this->setAnonEditUnknownLinks(false);
92
93     /*
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
99      * user's time zone.
100      */
101     $this->setDateFormat("%B %d, %Y");
102     $this->setTimeFormat("%H:%M");
103
104     /*
105      * To suppress times in the "Last edited on" messages, give a
106      * give a second argument of false:
107      */
108     //$this->setDateFormat("%B %d, %Y", false);
109     }
110 }
111
112 $WikiTheme = new WikiTheme_shamino_com('shamino_com');
113
114 // Local Variables:
115 // mode: php
116 // tab-width: 8
117 // c-basic-offset: 4
118 // c-hanging-comment-ender-p: nil
119 // indent-tabs-mode: nil
120 // End:
121 ?>