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