]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/shamino_com/themeinfo.php
rcs_id no longer makes sense with Subversion global version number
[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 // rcs_id('$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',
56                                   array(''      => 'shamino_com.css',
57                                         'print' => 'phpwiki-printer.css'));
58
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');
64
65         /**
66          * The logo image appears on every page and links to the HomePage.
67          */
68         //$this->addImageAlias('logo', WIKI_NAME . 'Logo.png');
69
70         /**
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
73          * be omitted.
74          */
75
76         //$this->addImageAlias('signature', WIKI_NAME . "Signature.png");
77         // Uncomment this next line to disable the signature.
78         $this->addImageAlias('signature', false);
79
80         /*
81          * Link icons.
82          */
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');
90
91         //$this->setButtonSeparator("\n | ");
92
93         /**
94          * WikiWords can automatically be split by inserting spaces between
95          * the words. The default is to leave WordsSmashedTogetherLikeSo.
96          */
97         //$this->setAutosplitWikiWords(false);
98
99         /**
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.
105          */
106         $this->setAnonEditUnknownLinks(false);
107
108         /*
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
114          * user's time zone.
115          */
116         $this->setDateFormat("%B %d, %Y");
117         $this->setTimeFormat("%H:%M");
118
119         /*
120          * To suppress times in the "Last edited on" messages, give a
121          * give a second argument of false:
122          */
123         //$this->setDateFormat("%B %d, %Y", false); 
124     }
125 }
126
127 $WikiTheme = new WikiTheme_shamino_com('shamino_com');
128
129
130 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
131 // (c-file-style: "gnu")
132 // Local Variables:
133 // mode: php
134 // tab-width: 8
135 // c-basic-offset: 4
136 // c-hanging-comment-ender-p: nil
137 // indent-tabs-mode: nil
138 // End:   
139 ?>