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