]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/shamino_com/themeinfo.php
Add a minimalistic design by walter rafelsberger
[SourceForge/phpwiki.git] / themes / shamino_com / themeinfo.php
1 <?php
2 rcs_id('$Id: themeinfo.php,v 1.1 2004-12-19 17:34:19 rurban Exp $');
3 /**
4  * A minimalistic design by walter rafelsberger
5  * See http://www.shamino.com/wiki/
6  *
7  * Tiny actionbar: PageInfo, Edit and 
8  *   all other Actionbars buttons in info.tmpl, 
9  * Signin implictly after Edit.
10  * tiny navbar: without buttons, just links
11  * no logo
12  */
13
14 require_once('lib/Theme.php');
15
16 class Theme_shamino_com extends Theme {
17
18     function makeActionButton ($action, $label = false, $page_or_rev = false) {
19         extract($this->_get_name_and_rev($page_or_rev));
20
21         if (is_array($action)) {
22             $attr = $action;
23             $action = isset($attr['action']) ? $attr['action'] : 'browse';
24         }
25         else
26             $attr['action'] = $action;
27
28         $class = is_safe_action($action) ? 'named-wiki' : 'wikiadmin';
29         if (!$label)
30             $label = $this->_labelForAction($action);
31
32         if ($version)
33             $attr['version'] = $version;
34
35         if ($action == 'browse')
36             unset($attr['action']);
37
38         return $this->makeButton($label, WikiURL($pagename, $attr), $class);
39     }
40 }
41
42 $WikiTheme = new Theme_shamino_com('shamino_com');
43
44 // CSS file defines fonts, colors and background images for this
45 // style.  The companion '*-heavy.css' file isn't defined, it's just
46 // expected to be in the same directory that the base style is in.
47
48 // This should result in phpwiki-printer.css being used when
49 // printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
50 $WikiTheme->setDefaultCSS('PhpWiki',
51                        array(''      => 'shamino_com.css',
52                              'print' => 'phpwiki-printer.css'));
53
54 // This allows one to manually select "Printer" style (when browsing page)
55 // to see what the printer style looks like.
56 $WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
57 $WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
58 $WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
59
60 /**
61  * The logo image appears on every page and links to the HomePage.
62  */
63 //$WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
64
65 /**
66  * The Signature image is shown after saving an edited page. If this
67  * is set to false then the "Thank you for editing..." screen will
68  * be omitted.
69  */
70
71 //$WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
72 // Uncomment this next line to disable the signature.
73 $WikiTheme->addImageAlias('signature', false);
74
75 /*
76  * Link icons.
77  */
78 //$WikiTheme->setLinkIcon('http');
79 //$WikiTheme->setLinkIcon('https');
80 //$WikiTheme->setLinkIcon('ftp');
81 //$WikiTheme->setLinkIcon('mailto');
82 //$WikiTheme->setLinkIcon('interwiki');
83 //$WikiTheme->setLinkIcon('wikiuser');
84 //$WikiTheme->setLinkIcon('*', 'url');
85
86 //$WikiTheme->setButtonSeparator("\n | ");
87
88 /**
89  * WikiWords can automatically be split by inserting spaces between
90  * the words. The default is to leave WordsSmashedTogetherLikeSo.
91  */
92 //$WikiTheme->setAutosplitWikiWords(false);
93
94 /**
95  * Layout improvement with dangling links for mostly closed wiki's:
96  * If false, only users with edit permissions will be presented the 
97  * special wikiunknown class with "?" and Tooltip.
98  * If true (default), any user will see the ?, but will be presented 
99  * the PrintLoginForm on a click.
100  */
101 $WikiTheme->setAnonEditUnknownLinks(false);
102
103 /*
104  * You may adjust the formats used for formatting dates and times
105  * below.  (These examples give the default formats.)
106  * Formats are given as format strings to PHP strftime() function See
107  * http://www.php.net/manual/en/function.strftime.php for details.
108  * Do not include the server's zone (%Z), times are converted to the
109  * user's time zone.
110  */
111 $WikiTheme->setDateFormat("%B %d, %Y");
112 $WikiTheme->setTimeFormat("%H:%M");
113
114 /*
115  * To suppress times in the "Last edited on" messages, give a
116  * give a second argument of false:
117  */
118 //$WikiTheme->setDateFormat("%B %d, %Y", false); 
119
120 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
121 // (c-file-style: "gnu")
122 // Local Variables:
123 // mode: php
124 // tab-width: 8
125 // c-basic-offset: 4
126 // c-hanging-comment-ender-p: nil
127 // indent-tabs-mode: nil
128 // End:   
129 ?>