]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/themeinfo.php
Harmonize file footer
[SourceForge/phpwiki.git] / themes / Crao / 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 /*
12  * This file defines the default appearance ("theme") of PhpWiki.
13  */
14
15 require_once('lib/WikiTheme.php');
16
17 class WikiTheme_Crao extends WikiTheme {
18
19     function load() {
20         // CSS file defines fonts, colors and background images for this
21         // style.  The companion '*-heavy.css' file isn't defined, it's just
22         // expected to be in the same directory that the base style is in.
23
24         // This should result in phpwiki-printer.css being used when
25         // printing or print-previewing with style "PhpWiki" selected.
26         $this->setDefaultCSS('Crao',
27                                   array(''      => 'crao.css',
28                                         'print' => ''));
29
30         // This allows one to manually select "Printer" style (when browsing page)
31         // to see what the printer style looks like.
32         //$this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css');
33         //$this->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
34         //$this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
35
36
37         /**
38          * The logo image appears on every page and links to the HomePage.
39          */
40         //$this->addImageAlias('logo', 'logo.png');
41
42         /**
43          * The Signature image is shown after saving an edited page. If this
44          * is not set, any signature defined in index.php will be used. If it
45          * is not defined by index.php or in here then the "Thank you for
46          * editing..." screen will be omitted.
47          */
48
49         // Comment this next line out to enable signature.
50         $this->addImageAlias('signature', false);
51
52         /*
53          * Link icons.
54          */
55         $this->setLinkIcon('http');
56         $this->setLinkIcon('https');
57         $this->setLinkIcon('ftp');
58         $this->setLinkIcon('mailto');
59         $this->setLinkIcon('interwiki');
60         $this->setLinkIcon('*', 'url');
61
62         $this->setButtonSeparator(HTML::raw("&nbsp;|&nbsp;"));
63
64         /**
65          * WikiWords can automatically be split by inserting spaces between
66          * the words. The default is to leave WordsSmashedTogetherLikeSo.
67          */
68         $this->setAutosplitWikiWords(false);
69
70         /*
71          * You may adjust the formats used for formatting dates and times
72          * below.  (These examples give the default formats.)
73          * Formats are given as format strings to PHP strftime() function See
74          * http://www.php.net/manual/en/function.strftime.php for details.
75          * Do not include the server's zone (%Z), times are converted to the
76          * user's time zone.
77          */
78         //$this->setDateFormat("%B %d, %Y");
79         //$this->setTimeFormat("%I:%M %p");
80
81         /*
82          * To suppress times in the "Last edited on" messages, give a
83          * give a second argument of false:
84          */
85         //$this->setDateFormat("%B %d, %Y", false);
86         $this->setDateFormat("%A %e %B %Y"); // must not contain time
87         //$this->setDateFormat("%x"); // must not contain time
88         $this->setTimeFormat("%H:%M:%S");
89         //$this->setTimeFormat("%X");
90
91     }
92 }
93
94 $WikiTheme = new WikiTheme_Crao('Crao');
95
96 // Local Variables:
97 // mode: php
98 // tab-width: 8
99 // c-basic-offset: 4
100 // c-hanging-comment-ender-p: nil
101 // indent-tabs-mode: nil
102 // End: 
103 ?>