]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/themeinfo.php
Reformat code
[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 /*
10  * This file defines the Crao theme of PhpWiki.
11  */
12
13 require_once 'lib/WikiTheme.php';
14
15 class WikiTheme_Crao extends WikiTheme
16 {
17
18     function load()
19     {
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', array('' => 'crao.css', 'print' => ''));
27
28         /**
29          * The Signature image is shown after saving an edited page. If this
30          * is not set, any signature defined in index.php will be used. If it
31          * is not defined by index.php or in here then the "Thank you for
32          * editing..." screen will be omitted.
33          */
34
35         // Comment this next line out to enable signature.
36         $this->addImageAlias('signature', false);
37
38         /*
39          * Link icons.
40          */
41         $this->setLinkIcon('http');
42         $this->setLinkIcon('https');
43         $this->setLinkIcon('ftp');
44         $this->setLinkIcon('mailto');
45         $this->setLinkIcon('interwiki');
46         $this->setLinkIcon('*', 'url');
47
48         $this->setButtonSeparator(HTML::raw("&nbsp;|&nbsp;"));
49
50         /**
51          * WikiWords can automatically be split by inserting spaces between
52          * the words. The default is to leave WordsSmashedTogetherLikeSo.
53          */
54         $this->setAutosplitWikiWords(false);
55
56         /*
57          * You may adjust the formats used for formatting dates and times
58          * below.  (These examples give the default formats.)
59          * Formats are given as format strings to PHP strftime() function See
60          * http://www.php.net/manual/en/function.strftime.php for details.
61          * Do not include the server's zone (%Z), times are converted to the
62          * user's time zone.
63          */
64         //$this->setDateFormat("%B %d, %Y");
65         //$this->setTimeFormat("%I:%M %p");
66
67         /*
68          * To suppress times in the "Last edited on" messages, give a
69          * give a second argument of false:
70          */
71         //$this->setDateFormat("%B %d, %Y", false);
72         $this->setDateFormat("%A %e %B %Y"); // must not contain time
73         //$this->setDateFormat("%x"); // must not contain time
74         $this->setTimeFormat("%H:%M:%S");
75         //$this->setTimeFormat("%X");
76
77     }
78 }
79
80 $WikiTheme = new WikiTheme_Crao('Crao');
81
82 // Local Variables:
83 // mode: php
84 // tab-width: 8
85 // c-basic-offset: 4
86 // c-hanging-comment-ender-p: nil
87 // indent-tabs-mode: nil
88 // End: