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